Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions doc/wiki/ELBDM.md

This file was deleted.

38 changes: 38 additions & 0 deletions doc/wiki/Physics-Modules-related/ELBDM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

## Compilation Options

Related options:
[[--model | Installation:-Option-List#--model]],  
[[--elbdm_scheme | Installation:-Option-List#--elbdm_scheme]],  
[[--wave_scheme | Installation:-Option-List#--wave_scheme]],  
[[--conserve_mass | Installation:-Option-List#--conserve_mass]],  
[[--laplacian_four | Installation:-Option-List#--laplacian_four]],  
[[--gramfe_scheme | Installation:-Option-List#--gramfe_scheme]],  
[[--hybrid_scheme | Installation:-Option-List#--hybrid_scheme]],  
[[--self_interaction | Installation:-Option-List#--self_interaction]],  


## Runtime Parameters
[[Runtime parameters: ELBDM | Runtime-Parameters:-ELBDM]]

Other related parameters:
[[ OPT__INT_PHASE | Runtime-Parameters:-Interpolation#OPT__INT_PHASE]],  
[[ OPT__LB_EXCHANGE_FATHER | Runtime-Parameters:-MPI-and-OpenMP#OPT__LB_EXCHANGE_FATHER]],  
[[ OPT__FLAG_ENGY_DENSITY | Runtime-Parameters:-Refinement#OPT__FLAG_ENGY_DENSITY]],  
[[ OPT__FLAG_INTERFERENCE | Runtime-Parameters:-Refinement#OPT__FLAG_INTERFERENCE]],  
[[ OPT__FLAG_SPECTRAL | Runtime-Parameters:-Refinement#OPT__FLAG_SPECTRAL]],  
[[ OPT__FLAG_SPECTRAL_N | Runtime-Parameters:-Refinement#OPT__FLAG_SPECTRAL_N]],  
[[ DT__PHASE | Runtime-Parameters:-Timestep#DT__PHASE]],  
[[ DT__HYBRID_CFL | Runtime-Parameters:-Timestep#DT__HYBRID_CFL]],  
[[ DT__HYBRID_CFL_INIT | Runtime-Parameters:-Timestep#DT__HYBRID_CFL_INIT]],  
[[ DT__HYBRID_VELOCITY | Runtime-Parameters:-Timestep#DT__HYBRID_VELOCITY]],  
[[ DT__HYBRID_VELOCITY_INIT | Runtime-Parameters:-Timestep#DT__HYBRID_VELOCITY_INIT]],  

## Remarks


<br>

## Links
* [[Main page of Physics Modules | Physics-Modules]]
* [[Main page of Runtime Parameters | Runtime Parameters]]
68 changes: 34 additions & 34 deletions doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-All.md

Large diffs are not rendered by default.

154 changes: 154 additions & 0 deletions doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-ELBDM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
Parameters described on this page:
[ELBDM_MASS](#ELBDM_MASS), &nbsp;
[ELBDM_PLANCK_CONST](#ELBDM_PLANCK_CONST), &nbsp;
[ELBDM_LAMBDA](#ELBDM_LAMBDA), &nbsp;
[ELBDM_TAYLOR3_COEFF](#ELBDM_TAYLOR3_COEFF), &nbsp;
[ELBDM_TAYLOR3_AUTO](#ELBDM_TAYLOR3_AUTO), &nbsp;
[ELBDM_REMOVE_MOTION_CM](#ELBDM_REMOVE_MOTION_CM), &nbsp;
[ELBDM_BASE_SPECTRAL](#ELBDM_BASE_SPECTRAL), &nbsp;
[ELBDM_MATCH_PHASE](#ELBDM_MATCH_PHASE), &nbsp;
[ELBDM_FIRST_WAVE_LEVEL](#ELBDM_FIRST_WAVE_LEVEL), &nbsp;
[OPT__RES_PHASE](#OPT__RES_PHASE), &nbsp;
[SPEC_INT_TABLE_PATH](#SPEC_INT_TABLE_PATH), &nbsp;
[SPEC_INT_XY_INSTEAD_DEPHA](#SPEC_INT_XY_INSTEAD_DEPHA), &nbsp;
[SPEC_INT_VORTEX_THRESHOLD](#SPEC_INT_VORTEX_THRESHOLD), &nbsp;
[SPEC_INT_GHOST_BOUNDARY](#SPEC_INT_GHOST_BOUNDARY) &nbsp;

Parameters below are shown in the format: &ensp; **`Name` &ensp; (Valid Values) &ensp; [Default Value]**

<a name="ELBDM_MASS"></a>
* #### `ELBDM_MASS` &ensp; (>0) &ensp; [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` &ensp; (>0) &ensp; [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` &ensp; (none) &ensp; [1]
* **Description:**
Quartic self-interaction coefficient in ELBDM.
* **Restriction:**

<a name="ELBDM_TAYLOR3_COEFF"></a>
* #### `ELBDM_TAYLOR3_COEFF` &ensp; (&#8805;0.125) &ensp; [1.0/6.0]
* **Description:**
Coefficient for the 3rd-order Taylor expansion of the wave function.
Values below 0.125 are always unstable.
Values &#8804; 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` &ensp; (none) &ensp; [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` &ensp; (0=none, 1=init, 2=every step) &ensp; [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` &ensp; (0=off, 1=on) &ensp; [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` &ensp; (0=off, 1=on) &ensp; [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 ]]
&#8805; [ELBDM_FIRST_WAVE_LEVEL](#ELBDM_FIRST_WAVE_LEVEL).

<a name="ELBDM_FIRST_WAVE_LEVEL"></a>
* #### `ELBDM_FIRST_WAVE_LEVEL` &ensp; (1 &#8804; input &#8804; [[ MAX_LEVEL | Runtime-Parameters:-Refinement#MAX_LEVEL]]) &ensp; [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` &ensp; (0=off, 1=on) &ensp; [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` &ensp; (none) &ensp; [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` &ensp; (0=off, 1=on) &ensp; [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` &ensp; (&#8805;0) &ensp; [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` &ensp; (&#8805;1) &ensp; [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]]
49 changes: 42 additions & 7 deletions doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-Gravity.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ Parameters described on this page:
[EXT_POT_TABLE_NPOINT_X](#EXT_POT_TABLE_NPOINT_X), &nbsp;
[EXT_POT_TABLE_NPOINT_Y](#EXT_POT_TABLE_NPOINT_Y), &nbsp;
[EXT_POT_TABLE_NPOINT_Z](#EXT_POT_TABLE_NPOINT_Z), &nbsp;
[EXT_POT_TABLE_DH](#EXT_POT_TABLE_DH), &nbsp;
[EXT_POT_TABLE_DH_X](#EXT_POT_TABLE_DH_X), &nbsp;
[EXT_POT_TABLE_DH_Y](#EXT_POT_TABLE_DH_Y), &nbsp;
[EXT_POT_TABLE_DH_Z](#EXT_POT_TABLE_DH_Z), &nbsp;
[EXT_POT_TABLE_EDGEL_X](#EXT_POT_TABLE_EDGEL_X), &nbsp;
[EXT_POT_TABLE_EDGEL_Y](#EXT_POT_TABLE_EDGEL_Y), &nbsp;
[EXT_POT_TABLE_EDGEL_Z](#EXT_POT_TABLE_EDGEL_Z) &nbsp;
[EXT_POT_TABLE_EDGEL_Z](#EXT_POT_TABLE_EDGEL_Z), &nbsp;
[EXT_POT_TABLE_FLOAT8](#EXT_POT_TABLE_FLOAT8), &nbsp;
[OPT__GRAVITY_EXTRA_MASS](#OPT__GRAVITY_EXTRA_MASS) &nbsp;



Expand Down Expand Up @@ -132,7 +136,7 @@ Enable self-gravity.
* #### `OPT__EXT_ACC` &ensp; (0=off, 1=on) &ensp; [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
Expand All @@ -142,7 +146,7 @@ Not applicable to the wave dark matter simulations
* #### `OPT__EXT_POT` &ensp; (0=off, 1=function, 2=table) &ensp; [0]
* **Description:**
Add external potential. See
[External Acceleration/Potential](#external-accelerationpotential)
[[ External Acceleration/Potential | Gravity#external-accelerationpotential]]
for how to specify external potential.
* **Restriction:**

Expand Down Expand Up @@ -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` &ensp; (>0.0) &ensp; [none]
<a name="EXT_POT_TABLE_DH_X"></a>
* #### `EXT_POT_TABLE_DH_X` &ensp; (>0.0) &ensp; [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` &ensp; (>0.0) &ensp; [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` &ensp; (>0.0) &ensp; [none]
* **Description:**
See [EXT_POT_TABLE_DH_X](#EXT_POT_TABLE_DH_X).
* **Restriction:**

<a name="EXT_POT_TABLE_EDGEL_X"></a>
Expand All @@ -198,6 +214,25 @@ 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` &ensp; (0=single precision, 1=double precision; <0 &#8594; set to default) &ensp; [-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:**

<a name="OPT__GRAVITY_EXTRA_MASS"></a>
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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` &ensp; (0=off, 1=on) &ensp; [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

Expand Down
14 changes: 14 additions & 0 deletions doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-Hydro.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Parameters described on this page:
[MIN_DENS](#MIN_DENS), &nbsp;
[MIN_PRES](#MIN_PRES), &nbsp;
[MIN_EINT](#MIN_EINT), &nbsp;
[MIN_TEMP](#MIN_TEMP), &nbsp;
[MIN_ENTR](#MIN_ENTR), &nbsp;
[OPT__CHECK_PRES_AFTER_FLU](#OPT__CHECK_PRES_AFTER_FLU), &nbsp;
[OPT__LAST_RESORT_FLOOR](#OPT__LAST_RESORT_FLOOR), &nbsp;
[JEANS_MIN_PRES](#JEANS_MIN_PRES), &nbsp;
Expand Down Expand Up @@ -311,6 +313,18 @@ Gas pressure floor.
Gas internal energy density floor.
* **Restriction:**

<a name="MIN_TEMP"></a>
* #### `MIN_TEMP` &ensp; (&#8805;0.0) &ensp; [0.0]
* **Description:**
Gas temperature floor in K.
* **Restriction:**

<a name="MIN_ENTR"></a>
* #### `MIN_ENTR` &ensp; (&#8805;0.0) &ensp; [0.0]
* **Description:**
Gas entropy floor.
* **Restriction:**

<a name="JEANS_MIN_PRES"></a>
* #### `JEANS_MIN_PRES` &ensp; (0=off, 1=on) &ensp; [0]
* **Description:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ This page includes the following topics:
* [[Hydro | Runtime-Parameters:-Hydro]]
-- Hydro solvers, physical constants, boundary conditions

* [[ELBDM | Runtime-Parameters:-ELBDM]]
-- ELBDM solvers, physical constants, boundary conditions

* [[Gravity | Runtime-Parameters:-Gravity]]
-- Gravity solvers, physical constants, boundary conditions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Parameters described on this page:
[OPT__RHO_INT_SCHEME](#OPT__RHO_INT_SCHEME), &nbsp;
[OPT__GRA_INT_SCHEME](#OPT__GRA_INT_SCHEME), &nbsp;
[OPT__REF_POT_INT_SCHEME](#OPT__REF_POT_INT_SCHEME), &nbsp;
[OPT__INT_PHASE](#OPT__INT_PHASE), &nbsp;
[INT_MONO_COEFF](#INT_MONO_COEFF), &nbsp;
[INT_MONO_COEFF_B](#INT_MONO_COEFF_B), &nbsp;
[MONO_MAX_ITER](#MONO_MAX_ITER), &nbsp;
Expand All @@ -41,6 +42,7 @@ Supported interpolation schemes:
|5 | Non-conservative quadratic|
|6 | Conservative quartic|
|7 | Non-conservative quartic|
|8 | Spectral |


Parameters below are shown in the format: &ensp; **`Name` &ensp; (Valid Values) &ensp; [Default Value]**
Expand Down Expand Up @@ -112,6 +114,14 @@ gravitational acceleration.
Interpolation scheme for computing the gravitational potential on the newly refined patches.
* **Restriction:**

<a name="OPT__INT_PHASE"></a>
* #### `OPT__INT_PHASE` &ensp; (0=off, 1=on) &ensp; [1]
* **Description:**
Enable phase interpolation (does not support MinMod-1D).
The interpolation scheme follows `OPT__REF_FLU_INT_SCHEME`.
* **Restriction:**
For [[--model | Installation:-Option-List#--model]]=ELBDM only.

<a name="INT_MONO_COEFF"></a>
* #### `INT_MONO_COEFF` &ensp; (1.0 &#8804; input &#8804; 4.0) &ensp; [2.0]
* **Description:**
Expand Down
Loading