In 2 dimensional models we do not only have the problem of avoiding the singularity but we choose a potential that allows to mimic the average influence that the planet would have on the vertical gas column.
A value often used for the smoothing is $`0.7H`$ where $`H`$ is the disc scale height. We remark that the parameter $`\epsilon`$ is considered in the code in units of the Hill radius and not in disc scale height.
In 2 dimensional models we certainly have the problem of avoiding the singularity as well as in the 3D case; however the main constraint is to choose a potential that allows to mimic the average influence that the planet would have on the vertical gas column.
A value often used for the smoothing lenght is $`0.7H`$ where $`H`$ is the disc scale height. We remark that the smoothing parameter $`\epsilon`$ is considered in the code in units of the Hill radius and not in disc scale height.
To select this choice for a simulation in the config file: