-
Notifications
You must be signed in to change notification settings - Fork 76
Update wiki #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update wiki #466
Changes from 4 commits
c8cd705
f0a1793
ac4a90b
cc70a3f
fb91a94
09a7466
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,154 @@ | ||
| Parameters described on this page: | ||
| [ELBDM_MASS](#ELBDM_MASS), | ||
| [ELBDM_PLANCK_CONST](#ELBDM_PLANCK_CONST), | ||
| [ELBDM_LAMBDA](#ELBDM_LAMBDA), | ||
| [ELBDM_TAYLOR3_COEFF](#ELBDM_TAYLOR3_COEFF), | ||
| [ELBDM_TAYLOR3_AUTO](#ELBDM_TAYLOR3_AUTO), | ||
| [ELBDM_REMOVE_MOTION_CM](#ELBDM_REMOVE_MOTION_CM), | ||
| [ELBDM_BASE_SPECTRAL](#ELBDM_BASE_SPECTRAL), | ||
| [ELBDM_MATCH_PHASE](#ELBDM_MATCH_PHASE), | ||
| [ELBDM_FIRST_WAVE_LEVEL](#ELBDM_FIRST_WAVE_LEVEL), | ||
| [OPT__RES_PHASE](#OPT__RES_PHASE), | ||
| [SPEC_INT_TABLE_PATH](#SPEC_INT_TABLE_PATH), | ||
| [SPEC_INT_XY_INSTEAD_DEPHA](#SPEC_INT_XY_INSTEAD_DEPHA), | ||
| [SPEC_INT_VORTEX_THRESHOLD](#SPEC_INT_VORTEX_THRESHOLD), | ||
| [SPEC_INT_GHOST_BOUNDARY](#SPEC_INT_GHOST_BOUNDARY) | ||
|
|
||
| Parameters below are shown in the format:   **`Name`   (Valid Values)   [Default Value]** | ||
|
|
||
| <a name="ELBDM_MASS"></a> | ||
| * #### `ELBDM_MASS`   (>0)   [none] | ||
| * **Description:** | ||
| Particle mass in ev/c^2. | ||
| (Input unit is fixed even when OPT__UNIT or COMOVING is on) | ||
| * **Restriction:** | ||
|
|
||
| <a name="ELBDM_PLANCK_CONST"></a> | ||
| * #### `ELBDM_PLANCK_CONST`   (>0)   [conform to the unit system set by [[OPT__UNIT | Runtime-Parameters:-Units#OPT__UNIT]] or [[--comoving | Installation:-Option-List#--comoving]]] | ||
| * **Description:** | ||
| Reduced planck constant in g.cm^2/s^2. | ||
| * **Restriction:** | ||
| It will be overwritten by the default value when [[OPT__UNIT | Runtime-Parameters:-Units#OPT__UNIT]] or [[--comoving | Installation:-Option-List#--comoving]] | ||
| is on; no default when [[OPT__UNIT | Runtime-Parameters:-Units#OPT__UNIT]] and | ||
| [[--comoving | Installation:-Option-List#--comoving]] is off. | ||
|
|
||
| <a name="ELBDM_LAMBDA"></a> | ||
| * #### `ELBDM_LAMBDA`   (none)   [1] | ||
| * **Description:** | ||
| Quartic self-interaction coefficient in ELBDM. | ||
| * **Restriction:** | ||
|
|
||
| <a name="ELBDM_TAYLOR3_COEFF"></a> | ||
| * #### `ELBDM_TAYLOR3_COEFF`   (≥0.125)   [1.0/6.0] | ||
| * **Description:** | ||
| Coefficient for the 3rd-order Taylor expansion of the wave function. | ||
| Values below 0.125 are always unstable. | ||
| Values ≤ 1/6 become unstable if | ||
| [[DT__FLUID | Runtime-Parameters:-Timestep#DT__FLUID]] > | ||
| $\sqrt{3}\pi/8$ or $\sqrt{27}\pi/32$ (when [[--laplacian_four | Installation:-Option-List#--laplacian_four]] is enabled). | ||
| * **Restriction:** | ||
| Only applicable when the compilation option | ||
| [[ --wave_scheme | Installation:-Option-List#--wave_scheme ]] = `FD`. | ||
| Ignored if `[ELBDM_TAYLOR3_AUTO](#ELBDM_TAYLOR3_AUTO)` is enable. | ||
|
|
||
| * #### `ELBDM_TAYLOR3_AUTO`   (none)   [0] | ||
| * **Description:** | ||
| If this parameter is set to 1, the code will automatically determine the coefficient | ||
| [ELBDM_TAYLOR3_COEFF](#ELBDM_TAYLOR3_COEFF) to minimize the amplitude error | ||
| for the smallest wavelength. | ||
| * **Restriction:** | ||
| Useless if [[ OPT__FREEZE_FLUID | Runtime-Parameters:-Hydro#OPT__FREEZE_FLUID]] is on. | ||
|
|
||
| <a name="ELBDM_REMOVE_MOTION_CM"></a> | ||
| * #### `ELBDM_REMOVE_MOTION_CM`   (0=none, 1=init, 2=every step)   [0] | ||
| * **Description:** | ||
| Remove the motion of center-of-mass. | ||
| * **Restriction:** | ||
| Only applicable when enabled | ||
| [[ OPT__CK_CONSERVATION | Runtime-Parameters:-Miscellaneous#OPT__CK_CONSERVATION ]]. | ||
| Not supported when | ||
| [[ --bitwise_reproducibility | Installation:-Option-List#--bitwise_reproducibility ]] = true. | ||
|
|
||
| <a name="ELBDM_BASE_SPECTRAL"></a> | ||
| * #### `ELBDM_BASE_SPECTRAL`   (0=off, 1=on)   [0] | ||
| * **Description:** | ||
| Adopt the spectral method to evolve base-level wave function. | ||
| * **Restriction:** | ||
| Requires [[--fftw | Installation:-Option-List#--fftw]] = FFTW2/FFTW | ||
| and periodic boundary conditions for all directions: | ||
| [[OPT__BC_FLU | Runtime-Parameters:-Hydro#OPT__BC_FLU_XM]] = 1. | ||
|
|
||
| <a name="ELBDM_MATCH_PHASE"></a> | ||
| * #### `ELBDM_MATCH_PHASE`   (0=off, 1=on)   [1] | ||
| * **Description:** | ||
| Match child phases with father phases during data restriction. | ||
| * **Restriction:** | ||
| Only applicable when enabling the compilation option | ||
| [[ --elbdm_scheme | Installation:-Option-List#--elbdm_scheme]] = `HYBRID`. | ||
| Requires [[ OPT__UM_IC_LEVEL | Runtime-Parameters:-Initial-Conditions#OPT__UM_IC_LEVEL ]] | ||
| ≥ [ELBDM_FIRST_WAVE_LEVEL](#ELBDM_FIRST_WAVE_LEVEL). | ||
|
|
||
| <a name="ELBDM_FIRST_WAVE_LEVEL"></a> | ||
| * #### `ELBDM_FIRST_WAVE_LEVEL`   (1 ≤ input ≤ [[ MAX_LEVEL | Runtime-Parameters:-Refinement#MAX_LEVEL]])   [none] | ||
| * **Description:** | ||
| Level at which to switch to the wave solver. | ||
| * **Restriction:** | ||
| Only applicable when enabling the compilation option | ||
| [[ --elbdm_scheme | Installation:-Option-List#--elbdm_scheme]] = `HYBRID`. | ||
|
|
||
| <a name="OPT__RES_PHASE"></a> | ||
| * #### `OPT__RES_PHASE`   (0=off, 1=on)   [0] | ||
| * **Description:** | ||
| Restriction on phase. (i.e., the averages of fine-grid data equal the coarse-grid data) | ||
| * **Restriction:** | ||
|
|
||
| <a name="SPEC_INT_TABLE_PATH"></a> | ||
| * #### `SPEC_INT_TABLE_PATH`   (none)   [none] | ||
| * **Description:** | ||
| Path to the table of the spectral interpolation. | ||
| See [[ ELBDM Spectral Interpolation | ELBDM-Spectral-Interpolation]] for details. | ||
| Table download script is available at | ||
| `example/test_problem/ELBDM/LSS_Hybrid/download_spectral_interpolation_tables.sh`. | ||
| * **Restriction:** | ||
| Only applicable when the enabling compilation option | ||
| [[ --spectral_interpolation | Installation:-Option-List#--spectral_interpolation]] | ||
| and [[ Interpolation schemes | Runtime-Parameters:-Interpolation##INT_TABLE]] = 8. | ||
|
|
||
| <a name="SPEC_INT_XY_INSTEAD_DEPHA"></a> | ||
| * #### `SPEC_INT_XY_INSTEAD_DEPHA`   (0=off, 1=on)   [1] | ||
| * **Description:** | ||
| Interpolate x and y (real and imaginary parts in current implementation) around vortices | ||
| instead of density and phase for the spectral interpolation, | ||
| which has the advantage of being well-defined across vortices | ||
| * **Restriction:** | ||
| Only applicable when the enabling compilation option | ||
| [[ --spectral_interpolation | Installation:-Option-List#--spectral_interpolation]] | ||
| and [[ Interpolation schemes | Runtime-Parameters:-Interpolation##INT_TABLE]] = 8. | ||
|
|
||
| <a name="SPEC_INT_VORTEX_THRESHOLD"></a> | ||
| * #### `SPEC_INT_VORTEX_THRESHOLD`   (≥0)   [0.1] | ||
| * **Description:** | ||
| Vortex detection threshold for [SPEC_INT_XY_INSTEAD_DEPHA](#SPEC_INT_XY_INSTEAD_DEPHA), | ||
| triggered when Lap(S) * dx**2 > threshold, indicating a significant phase jump. | ||
| * **Restriction:** | ||
| Only applicable when the enabling compilation option | ||
| [[ --spectral_interpolation | Installation:-Option-List#--spectral_interpolation]] | ||
| and [[ Interpolation schemes | Runtime-Parameters:-Interpolation##INT_TABLE]] = 8. | ||
|
|
||
| <a name="SPEC_INT_GHOST_BOUNDARY"></a> | ||
| * #### `SPEC_INT_GHOST_BOUNDARY`   (≥1)   [4] | ||
| * **Description:** | ||
| Ghost boundary size for spectral interpolation. | ||
| * **Restriction:** | ||
| Only applicable when the enabling compilation option | ||
| [[ --spectral_interpolation | Installation:-Option-List#--spectral_interpolation]] | ||
| and [[ Interpolation schemes | Runtime-Parameters:-Interpolation##INT_TABLE]] = 8. | ||
|
|
||
| ## Remarks | ||
|
|
||
|
|
||
| <br> | ||
|
|
||
| ## Links | ||
| * [[Main page of Runtime Parameters | Runtime Parameters]] | ||
| * [[Main page of ELBDM | ELBDM]] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,10 +17,14 @@ Parameters described on this page: | |
| [EXT_POT_TABLE_NPOINT_X](#EXT_POT_TABLE_NPOINT_X), | ||
| [EXT_POT_TABLE_NPOINT_Y](#EXT_POT_TABLE_NPOINT_Y), | ||
| [EXT_POT_TABLE_NPOINT_Z](#EXT_POT_TABLE_NPOINT_Z), | ||
| [EXT_POT_TABLE_DH](#EXT_POT_TABLE_DH), | ||
| [EXT_POT_TABLE_DH_X](#EXT_POT_TABLE_DH_X), | ||
| [EXT_POT_TABLE_DH_Y](#EXT_POT_TABLE_DH_Y), | ||
| [EXT_POT_TABLE_DH_Z](#EXT_POT_TABLE_DH_Z), | ||
| [EXT_POT_TABLE_EDGEL_X](#EXT_POT_TABLE_EDGEL_X), | ||
| [EXT_POT_TABLE_EDGEL_Y](#EXT_POT_TABLE_EDGEL_Y), | ||
| [EXT_POT_TABLE_EDGEL_Z](#EXT_POT_TABLE_EDGEL_Z) | ||
| [EXT_POT_TABLE_EDGEL_Z](#EXT_POT_TABLE_EDGEL_Z), | ||
| [EXT_POT_TABLE_FLOAT8](#EXT_POT_TABLE_FLOAT8), | ||
| [OPT__GRAVITY_EXTRA_MASS](#OPT__GRAVITY_EXTRA_MASS) | ||
|
|
||
|
|
||
|
|
||
|
|
@@ -132,7 +136,7 @@ Enable self-gravity. | |
| * #### `OPT__EXT_ACC`   (0=off, 1=on)   [0] | ||
| * **Description:** | ||
| Add external acceleration. See | ||
| [External Acceleration/Potential](#external-accelerationpotential) | ||
| [[ External Acceleration/Potential | Gravity#external-accelerationpotential]] | ||
| for how to specify external acceleration. | ||
| * **Restriction:** | ||
| Not applicable to the wave dark matter simulations | ||
|
|
@@ -142,7 +146,7 @@ Not applicable to the wave dark matter simulations | |
| * #### `OPT__EXT_POT`   (0=off, 1=function, 2=table)   [0] | ||
| * **Description:** | ||
| Add external potential. See | ||
| [External Acceleration/Potential](#external-accelerationpotential) | ||
| [[ External Acceleration/Potential | Gravity#external-accelerationpotential]] | ||
| for how to specify external potential. | ||
| * **Restriction:** | ||
|
|
||
|
|
@@ -170,10 +174,22 @@ See [EXT_POT_TABLE_NPOINT_X](#EXT_POT_TABLE_NPOINT_X). | |
| See [EXT_POT_TABLE_NPOINT_X](#EXT_POT_TABLE_NPOINT_X). | ||
| * **Restriction:** | ||
|
|
||
| <a name="EXT_POT_TABLE_DH"></a> | ||
| * #### `EXT_POT_TABLE_DH`   (>0.0)   [none] | ||
| <a name="EXT_POT_TABLE_DH_X"></a> | ||
| * #### `EXT_POT_TABLE_DH_X`   (>0.0)   [none] | ||
| * **Description:** | ||
| For [OPT__EXT_POT](#OPT__EXT_POT)`=2`: spatial interval between adjacent tabular data. | ||
| For [OPT__EXT_POT](#OPT__EXT_POT)`=2`: spatial interval along the x direction between adjacent tabular data. | ||
| * **Restriction:** | ||
|
|
||
| <a name="EXT_POT_TABLE_DH_Y"></a> | ||
| * #### `EXT_POT_TABLE_DH_Y`   (>0.0)   [none] | ||
| * **Description:** | ||
| See [EXT_POT_TABLE_DH_X](#EXT_POT_TABLE_DH_X). | ||
| * **Restriction:** | ||
|
|
||
| <a name="EXT_POT_TABLE_DH_Z"></a> | ||
| * #### `EXT_POT_TABLE_DH_Z`   (>0.0)   [none] | ||
| * **Description:** | ||
| See [EXT_POT_TABLE_DH_X](#EXT_POT_TABLE_DH_X). | ||
| * **Restriction:** | ||
|
|
||
| <a name="EXT_POT_TABLE_EDGEL_X"></a> | ||
|
|
@@ -198,6 +214,26 @@ See [EXT_POT_TABLE_EDGEL_X](#EXT_POT_TABLE_EDGEL_X). | |
| See [EXT_POT_TABLE_EDGEL_X](#EXT_POT_TABLE_EDGEL_X). | ||
| * **Restriction:** | ||
|
|
||
| <a name="EXT_POT_TABLE_FLOAT8"></a> | ||
| * #### `EXT_POT_TABLE_FLOAT8`   (0=single precision, 1=double precision; <0 → set to default)   [-1] | ||
| * **Description:** | ||
| For [OPT__EXT_POT](#OPT__EXT_POT)`=2`: floating-point accuracy of the tabular data. | ||
| **NOT SUPPORTED YET!!** The code currently only supports the default setting, | ||
| which matches the floating-point accuracy specified by | ||
| [[--double | Installation:-Option-List#--double]] during compilation. | ||
| * **Restriction:** | ||
|
|
||
| OPT__GRAVITY_EXTRA_MASS | ||
| <a name="OPT__GRAVITY_EXTRA_MASS"></a> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here I didn't write a detailed guide of how to edit this function. Is that ok? |
||
| * #### `OPT__GRAVITY_EXTRA_MASS`   (0=off, 1=on)   [0] | ||
| * **Description:** | ||
| Enable extra mass in the gravity solver. | ||
| Mass introduced here is only used for gravity (e.g., Poisson equation) and | ||
| is excluded from other equations (e.g., hydro/MHD/Schrödinger) and output data. | ||
| To configure the extra mass, edit /src/SelfGravity/Poi_AddExtraMassForGravity.cpp. | ||
| Refer to [[Initialization Function | Adding-New-Simulations#initialization-function]] for details. | ||
| * **Restriction:** | ||
|
|
||
|
|
||
| ## Remarks | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,12 @@ | ||
| Parameters described on this page: | ||
| [OMP_NTHREAD](#OMP_NTHREAD), | ||
| [OPT__INIT_GRID_WITH_OMP](#OPT__INIT_GRID_WITH_OMP), | ||
| [OPT__OVERLAP_MPI](#OPT__OVERLAP_MPI), | ||
| [LB_INPUT__WLI_MAX](#LB_INPUT__WLI_MAX), | ||
| [LB_INPUT__PAR_WEIGHT](#LB_INPUT__PAR_WEIGHT), | ||
| [OPT__RECORD_LOAD_BALANCE](#OPT__RECORD_LOAD_BALANCE), | ||
| [OPT__MINIMIZE_MPI_BARRIER](#OPT__MINIMIZE_MPI_BARRIER) | ||
| [OPT__MINIMIZE_MPI_BARRIER](#OPT__MINIMIZE_MPI_BARRIER), | ||
| [OPT__LB_EXCHANGE_FATHER](#OPT__LB_EXCHANGE_FATHER) | ||
|
|
||
|
|
||
| Parameters below are shown in the format:   **`Name`   (Valid Values)   [Default Value]** | ||
|
|
@@ -34,6 +36,17 @@ for example, the initial condition setup involves random numbers. | |
| Only applicable when enabling the compilation option | ||
| [[--openmp | Installation:-Option-List#--openmp]]. | ||
|
|
||
| <a name="OPT__OVERLAP_MPI"></a> | ||
| * #### `OPT__OVERLAP_MPI`   (0=off, 1=on)   [0] | ||
| * **Description:** | ||
| Whether or not to enable the overlapping MPI communication | ||
| of CPU/GPU computation. **NOT SUPPORTED YET!!** | ||
| * **Restriction:** | ||
| Only applicable when enabling the compilation option | ||
| [[--overlap_mpi | Installation:-Option-List#--overlap_mpi]], | ||
| [[--mpi | Installation:-Option-List#--mpi]], | ||
| [[--openmp | Installation:-Option-List#--openmp]]. | ||
|
|
||
| <a name="LB_INPUT__WLI_MAX"></a> | ||
| * #### `LB_INPUT__WLI_MAX`   (≥0.0)   [0.1] | ||
| * **Description:** | ||
|
|
@@ -81,6 +94,16 @@ set [[PAR_IMPROVE_ACC | Runtime Parameters:-Particles#PAR_IMPROVE_ACC]]=1. | |
| must be disabled. In addition, it is currently recommended to disable | ||
| [[AUTO_REDUCE_DT | Runtime Parameters:-Timestep#AUTO_REDUCE_DT]]. | ||
|
|
||
| <a name="OPT__LB_EXCHANGE_FATHER"></a> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure where to place this parameter. Currently I put here. |
||
| * #### `OPT__LB_EXCHANGE_FATHER`   (0=off, 1=on)   [0 usually, 1 for [[--ELBDM_SCHEME=HYBRID | Installation:-Option-List#--elbdm_scheme]]] | ||
| * **Description:** | ||
| Enables the exchange of all cells from all father patches during load balancing. | ||
| * **Restriction:** | ||
| Only applicable when enabling the compilation option | ||
| [[--mpi | Installation:-Option-List#--mpi]]. | ||
| This option is mandatory for [[--ELBDM_SCHEME=HYBRID | Installation:-Option-List#--elbdm_scheme]] | ||
| to ensure proper phase field matching. | ||
|
|
||
|
|
||
| ## Remarks | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ok not to mention --model=ELBDM here?