Poisson Parameters#
This namelist, &POISSON_PARAMS, is used to specify runtime parameters for the Poisson solver. It is used only if poisson=.true. or pic=.true.
Solvers#
Two different Poisson solvers are available in RAMSES: conjugate gradient (CG) and multigrid (MG). Unlike the CG solver, MG has an initialization overhead cost (at every call of the solver), but is much more efficient on very big levels with few “holes”. The multigrid solver is therefore used for all coarse levels.
In addition, MG can be used on refined levels in conjuction with CG. The parameter cg_levelmin selects the Poisson solver as follows:
Coarse levels are solved with MG
Refined levels with l <
cg_levelminare solved with MGRefined levels with l >=
cg_levelminare solved with CG
Gravity types#
Different sources of gravity can be added to the simulation. To activate self-gravity of the gas and particles, set self_gravity=.true.. Additional sources of gravity can be added by
adding an analytical density distribution to the Poisson source term from which the gravitational potential is determined (see rho_ana.f90)
adding an analytical force directly (see gravana.f90)
These two methods can be combined by setting both gravity_rho_ana_type and gravity_force_ana_type.
Variable name |
Fortran type |
Default value |
Description |
|---|---|---|---|
|
|
0 |
(deprecated) Type of gravity force. Possible choices are: |
|
|
|
Switch on self-gravity (Poisson solver) |
|
|
0 |
Add gravity from an analytical density profile. This will add an analytical contribution to the Poisson source term. 0 = no additional contribution, 2 = a point mass, 3 = galactic disk (see rho_ana.f90) |
|
|
0 |
Add an analytical gravitational force. 0 = no additional contribution, 1 = constant vector, 2 = a point mass, 3 = galactic disk (see gravana.f90) |
|
|
1e-4 |
Stopping criterion for the iterative Poisson solver: residual 2-norm should be lower than |
|
|
0.0, |
(deprecated) Parameters used to define the analytical gravity field (routine |
|
|
0.0, |
Parameters used to define the analytical mass density field (routine |
|
|
0.0, |
Parameters used to define the analytical gravity field (routine |
|
|
999 |
Minimum level from which the Conjugate Gradient solver is used in place of the Multigrid solver. |
|
|
0 |
Maximum level for CIC dark matter interpolation (default |