Skip to content

Commit

Permalink
rename cyl -> axisymmetric
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Dec 13, 2024
1 parent c57a25d commit 789e8b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Exec/unit_tests/diffusion_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ analyic solution) at the end of the simulation. This can be used
for convergence testing.


## 2-d cylindrical with AMR
## 2-d axisymmetric with AMR

This uses the 2nd order accurate predictor-corrector formulation of
diffusion that is used with the CTU hydrodynamics solver. A test of
the diffusion in 2-d cylindrical coordinates, with 2 levels of
refinement can be run as:
the diffusion in 2-d cylindrical axisymmetric coordinates,
with 2 levels of refinement can be run as:

```
./Castro2d.gnu.ex inputs.2d.cyl amr.n_cell=64 128
./Castro2d.gnu.ex inputs.2d.cyl amr.n_cell=128 256
./Castro2d.gnu.ex inputs.2d.cyl amr.n_cell=256 512
./Castro2d.gnu.ex inputs.2d.axisymmetric amr.n_cell=64 128
./Castro2d.gnu.ex inputs.2d.axisymmetric amr.n_cell=128 256
./Castro2d.gnu.ex inputs.2d.axisymmetric amr.n_cell=256 512
```

At the end, each run will report the norm of the error against the
Expand Down
2 changes: 1 addition & 1 deletion Exec/unit_tests/diffusion_test/prob_util.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE
Real analytic(const Real* r, const Real time, const int coord_type) {

Real exponent;
if (AMREX_SPACEDIM == 1 && coord_type == 2) {
if (coord_type == 2) {
// Handle spherical coordinates
exponent = 3.0_rt / 2.0_rt;
} else if (AMREX_SPACEDIM == 2 && coord_type == 1) {
Expand Down

0 comments on commit 789e8b1

Please sign in to comment.