Skip to content

Commit

Permalink
[Workflow] Update test problem wiki pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunYen-Chen committed Jan 16, 2025
1 parent 12181f5 commit f6627db
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,37 @@
- [[Miscellaneous Options | Installation:-Option-List#miscellaneous-options]]


# Default setup
# Simulation setup
1. Units

1. External (for `Input__TestProb` only)

See the comment of each runtime variable

2. Internal (for all other input files and internal usage)
| [L] | [M] | [T] | [V] = [L]/[T] | [D] = [M]/[D]^3 |
|--- |--- |--- |--- |--- |
| kpc | 1.0e8 Msun | Myr | ~ 9.8e2 km/s | ~ 6.8e-23 g/cm^3 |
| kpc | 1.0e9 Msun | Myr | ~ 9.8e2 km/s | ~ 6.8e-23 g/cm^3 |

2. Low-resolution default setup

1. Download the low-resolution initial conditions and `Input_*` by executing
```bash
sh download_ic_low_res.sh
```

2. Default resolution ~ 80 pc (root grid 128^3; [[MAX_LEVEL | Runtime-Parameters:-Refinement#MAX_LEVEL]] = 7)

3. High-resolution setup

2. Default resolution ~ 80 pc ([[MAX_LEVEL | Runtime-Parameters:-Refinement#MAX_LEVEL]] = 7)
1. Download the high-resolution initial conditions and `Input_*` by executing
```bash
sh download_ic_high_res.sh
```

2. Highest resolution ~ 20 pc (root grid 128^3; [[MAX_LEVEL | Runtime-Parameters:-Refinement#MAX_LEVEL]] = 9)

3. This setup reproduces the AGORA high-resolution run presented in the GAMER-2 paper (Schive et al. 2018)


# Note
Expand All @@ -40,11 +59,16 @@
[Ji-hoon Kim, et al., 2016, ApJ, 833, 202](https://dx.doi.org/10.3847/1538-4357/833/2/202) [(arXiv: 1610.03066)](https://dx.doi.org/10.3847/1538-4357/833/2/202)
2. Other references
- [AGORA website](https://sites.google.com/site/santacruzcomparisonproject/)
- [AGORA initial condition](https://goo.gl/8JzbIJ)
- [AGORA initial conditions](https://goo.gl/8JzbIJ)
- [Enzo setup](https://bitbucket.org/enzo/enzo-dev/src/19f4a44e06f1c386573dc77b3608ba66b64d93bc/run/Hydro/Hydro-3D/AgoraGalaxy/?at=week-of-code)
- [Goldbaum et al. 2016](https://arxiv.org/abs/1605.00646)
- [yt hub](https://girder.hub.yt/#collection/5736481ddd9119000164acf1)
3. Run the script `download_ic.sh` to download the low-resolution initial condition files for this test
> [!NOTE]
> It's the same script used in the "AgoraGalaxy" test problem of Enzo.
- [CloudyData_UVB table](https://github.com/grackle-project/grackle_data_files/tree/main/input)
3. The low-resolution initial condition files from `sh download_ic_low_res.sh` are the same initial conditions used
in the `AgoraGalaxy` test problem of Enzo
4. Some handy yt analysis scripts are put at `yt_script`


# First-time GRACKLE installation guide (on NTU clusters as an example)

Please refer to the README file at `./example/grackle/`
8 changes: 5 additions & 3 deletions doc/wiki/Test-Problem-related/Test-Problems:-DiskHeating.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
- Available options
- [[Miscellaneous Options | Installation:-Option-List#miscellaneous-options]]

> [!NOTE]
> DiskHeatingParticleIC uses the floating-point type for particle type and assumes single precision
# Quick start
0. Generate `gamer`
Expand All @@ -44,9 +46,9 @@

4. Switch to the high-resolution run

1. Link high-resolution `PAR_IC`
1. Link high-resolution `DiskHeatingParticleIC`
```bash
ln -sf ic_files/PAR_IC_0.4_M7 PAR_IC
ln -sf ic_files/PAR_IC_0.4_M7 DiskHeatingParticleIC
```
2. Set [[PAR_NPAR | Particles#PAR_NPAR]]=80000000, [[MAX_LEVEL | Runtime-Parameters:-Refinement#MAX_LEVEL]]=3, and change all values in `Input__Flag_NParPatch` to `800`

Expand All @@ -61,7 +63,7 @@

c. Set center to be the location of the soliton in `get_par_ic.py`

d. Execute `get_par_ic.py`, it will generate `PAR_IC`
d. Execute `get_par_ic.py`, it will generate `DiskHeatingParticleIC`

2. Halo

Expand Down

0 comments on commit f6627db

Please sign in to comment.