forked from gamer-project/gamer
-
Notifications
You must be signed in to change notification settings - Fork 13
Runtime Parameters: Initial Conditions
hyschive edited this page Jan 7, 2025
·
5 revisions
Parameters described on this page: OPT__INIT, OPT__INIT_BFIELD_BYVECPOT, RESTART_LOAD_NRANK, OPT__RESTART_RESET, OPT__UM_IC_LEVEL, OPT__UM_IC_NLEVEL, OPT__UM_IC_NVAR, OPT__UM_IC_FORMAT, OPT__UM_IC_FLOAT8, OPT__UM_IC_DOWNGRADE, OPT__UM_IC_REFINE, OPT__UM_IC_LOAD_NRANK, OPT__INIT_RESTRICT, INIT_SUBSAMPLING_NCELL, OPT__FFTW_STARTUP
Parameters below are shown in the format: Name
(Valid Values) [Default Value]
-
-
Description:
Grid initialization method.
OPT__INIT=1
: using analytical functions; see Setting IC from Analytical Functions — Grids.OPT__INIT=2
: restarting from a simulation snapshot.OPT__INIT=3
: loading a uniform-mesh binary file namedUM_IC
; see Setting IC from Files — Grids. - Restriction:
-
Description:
Grid initialization method.
-
-
Description:
Set the magnetic field from either a vector potential file named
B_IC
(see Setting IC from Files — Magnetic Field) or an analytical vector potential function (see Setting IC from Functions — Magnetic Field). - Restriction: For --mhd only.
-
Description:
Set the magnetic field from either a vector potential file named
-
-
Description:
Number of parallel I/O for restart. In other words,
RESTART_LOAD_NRANK
MPI processes will load the restart file in parallel. - Restriction:
-
Description:
Number of parallel I/O for restart. In other words,
-
- Description: During restart, reset some of the simulation status parameters (e.g., step, time, snapshot ID) to their initial values as if the simulation starts over again.
- Restriction:
-
OPT__UM_IC_LEVEL
(0 ≤ input < --nlevel) [0]- Description: Starting AMR level in the uniform-mesh initial condition file. See Setting IC from Files — Grids for details.
- Restriction:
-
OPT__UM_IC_NLEVEL
(1 ≤ input ≤ --nlevel-OPT__UM_IC_LEVEL) [1]- Description: Number of AMR levels in the uniform-mesh initial condition file. See Setting IC from Files — Grids for details.
- Restriction:
-
- Description: Number of fluid variables stored in the uniform-mesh initial condition file. The default value is 5+--passive for --model=HYDRO. See Setting IC from Files — Grids for details.
- Restriction:
-
- Description: Data format of the uniform-mesh initial condition file. See Setting IC from Files — Grids for details.
- Restriction:
-
OPT__UM_IC_FLOAT8
(<0: same as --double, 0=single precision, 1=double precision) [-1]- Description: Floating-point precision of the uniform-mesh initial condition file.
- Restriction:
-
- Description: Downgrade (i.e. derefine) the uniform-mesh initial condition data for cells not satisfying any refinement criteria. See Setting IC from Files — Grids for details.
- Restriction:
-
-
Description:
Refine the uniform-mesh initial condition data from level
OPT__UM_IC_LEVEL
to MAX_LEVEL for cells satisfying the adopted refinement criteria. See Setting IC from Files — Grids for details. - Restriction:
-
Description:
Refine the uniform-mesh initial condition data from level
-
-
Description:
Number of parallel I/O for loading the uniform-mesh initial condition file.
Specifically, it allows
OPT__UM_IC_LOAD_NRANK
MPI processes to load the initial condition file concurrently. But the actually achieved parallel I/O depends on the system specifications. See also Setting IC from Files — Grids. - Restriction:
-
Description:
Number of parallel I/O for loading the uniform-mesh initial condition file.
Specifically, it allows
-
- Description: For non-leaf patches, replace fluid data by the volume-weighted average of their child patch data. It is similar to the option OPT__FIXUP_RESTRICT except that it only applies to the initial condition.
- Restriction:
-
-
Description:
Perform sub-sampling when constructing the grid IC to make it smoother.
Specifically, each cell will be divided into Nsub3
sub-cells when calling the grid IC function, where
Nsub =
INIT_SUBSAMPLING_NCELL
, and then take the volume-weighted average of these sub-cells. - Restriction: Only applicable when adopting OPT__INIT=1.
-
Description:
Perform sub-sampling when constructing the grid IC to make it smoother.
Specifically, each cell will be divided into Nsub3
sub-cells when calling the grid IC function, where
Nsub =
-
-
Description:
Initialize FFTW plans.
MEASURE
is recommended for the balance between FFTW plan initialization time and FFT performance. Note that simulation results can vary in each run on the level of machine precision forOPT__FFTW_STARTUP != ESTIMATE
. -
Restriction:
PATIENT
is not supported by FFTW2. Must useESTIMATE
when enabling --bitwise_reproducibility.
-
Description:
Initialize FFTW plans.
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