-
Notifications
You must be signed in to change notification settings - Fork 65
Runtime Parameters: Gravity
hyschive edited this page Jan 7, 2025
·
1 revision
Parameters described on this page: OPT__BC_POT, GFUNC_COEFF0, NEWTON_G, SOR_OMEGA, SOR_MAX_ITER, SOR_MIN_ITER, MG_MAX_ITER, MG_NPRE_SMOOTH, MG_NPOST_SMOOTH, MG_TOLERATED_ERROR, OPT__GRA_P5_GRADIENT, OPT__SELF_GRAVITY, OPT__EXT_ACC, OPT__EXT_POT, EXT_POT_TABLE_NAME, EXT_POT_TABLE_NPOINT_X, EXT_POT_TABLE_NPOINT_Y, EXT_POT_TABLE_NPOINT_Z, EXT_POT_TABLE_DH, EXT_POT_TABLE_EDGEL_X, EXT_POT_TABLE_EDGEL_Y, EXT_POT_TABLE_EDGEL_Z
Parameters below are shown in the format: Name
(Valid Values) [Default Value]
-
- Description: Gravity boundary condition. See also Potential Outside the Isolated Boundaries.
- Restriction:
-
-
Description:
Green's function coefficient for calculating the "self"
gravitational potential of each cell (i.e., the gravitational
potential contribution from the mass within the same cell).
The default value depends on the particle interpolation scheme
(
PAR_INTERP
). Set GFUNC_COEFF0=0.0 to exclude the self-potential. - Restriction: Only applicable to the isolated boundary condition.
-
Description:
Green's function coefficient for calculating the "self"
gravitational potential of each cell (i.e., the gravitational
potential contribution from the mass within the same cell).
The default value depends on the particle interpolation scheme
(
-
NEWTON_G
(>0.0) [conform to the unit system set by OPT__UNIT]
-
- Description: Parameter of the SOR Poisson solver for optimizing the convergence rate.
- Restriction: Only applicable when adopting the compilation option --pot_scheme=SOR.
-
-
Description:
Maximum number of iterations in the SOR Poisson solver.
The default value depends on the adopted floating-point accuracy (
FLOAT8
). - Restriction: Only applicable when adopting the compilation option --pot_scheme=SOR.
-
Description:
Maximum number of iterations in the SOR Poisson solver.
The default value depends on the adopted floating-point accuracy (
-
- Description: Minimum number of iterations in the SOR Poisson solver.
- Restriction: Only applicable when adopting the compilation option --pot_scheme=SOR.
-
- Description: Maximum number of iterations in the multigrid Poisson solver. The default value depends on the adopted floating-point accuracy (--double).
- Restriction: Only applicable when adopting the compilation option --pot_scheme=MG.
-
- Description: Number of pre-smoothing steps in the multigrid Poisson solver.
- Restriction: Only applicable when adopting the compilation option --pot_scheme=MG.
-
- Description: Number of post-smoothing steps in the multigrid Poisson solver.
- Restriction: Only applicable when adopting the compilation option --pot_scheme=MG.
-
- Description: Maximum tolerable error in the multigrid Poisson solver.
- Restriction: Only applicable when adopting the compilation option --pot_scheme=MG.
-
- Description: Use 5-point instead of 3-point gradient for calculating the gravitational acceleration from potential. This functionality is only experimental.
-
Restriction:
Must manually set
#define GRA_GHOST_SIZE 2
(and#define USG_GHOST_SIZE 2
as well when adopting the compilation option --unsplit_gravity) in the header fileMacro.h
. Unsupported for particle update.
-
- Description: Enable self-gravity.
- Restriction:
-
- Description: Add external acceleration. See External Acceleration/Potential for how to specify external acceleration.
- Restriction: Not applicable to the wave dark matter simulations (--model=ELBDM).
-
- Description: Add external potential. See External Acceleration/Potential for how to specify external potential.
- Restriction:
-
-
Description:
For OPT__EXT_POT
=2
: table name. - Restriction:
-
Description:
For OPT__EXT_POT
-
-
Description:
For OPT__EXT_POT
=2
: table size (i.e., number of data points) along the x direction. - Restriction:
-
Description:
For OPT__EXT_POT
-
- Description: See EXT_POT_TABLE_NPOINT_X.
- Restriction:
-
- Description: See EXT_POT_TABLE_NPOINT_X.
- Restriction:
-
-
Description:
For OPT__EXT_POT
=2
: spatial interval between adjacent tabular data. - Restriction:
-
Description:
For OPT__EXT_POT
-
-
Description:
For OPT__EXT_POT
=2
: starting x coordinate of the tabular data. -
Restriction:
Must cover the simulation domain plus gravity ghost zones. Specifically,
EXT_POT_TABLE_EDGEL_X
must be smaller or equal toDomainLeftEdge - 1*RootLevelCell
andEXT_POT_TABLE_EDGEL_X + (EXT_POT_TABLE_NPOINT_X-1)*EXT_POT_TABLE_DH
must be larger or equal toDomainRightEdge + 1*RootLevelCell
.
-
Description:
For OPT__EXT_POT
-
- Description: See EXT_POT_TABLE_EDGEL_X.
- Restriction:
-
- Description: See EXT_POT_TABLE_EDGEL_X.
- Restriction:
Getting Started
User Guide
- Installation
- Running the Code
- Adding New Simulations
- Runtime Parameters
- MPI and OpenMP
- GPU
- Physics Modules
- Outputs
- Simulation Logs
- Data Analysis
- In Situ Python Analysis
- Test Problems
- Troubleshooting
Advanced Topics
Developer Guide