Path: blob/main/examples/paper_self_gravitating_gas_dynamics/README.md
2055 views
Overview of how to reproduce results in Euler-gravity paper
Run the following commands from the Julia REPL. The code used in the paper was written for Trixi.jl v0.2
. Since breaking changes were introduced in Trixi.jl v0.3
, the code provided below does not reproduce the examples exactly. Complete instructions how to reproduce the numerical experiments using an older version of Trixi.jl are available at https://doi.org/10.5281/zenodo.3996575.
Sec. 4.1.1, Table 2, EOC tests compressible Euler
polydeg = 3:
polydeg = 4:
Sec. 4.1.2, Table 3, EOC tests hyperbolic diffusion
polydeg = 3:
polydeg = 4:
Sec. 4.1.3, Table 4, EOC tests coupled Euler-gravity
polydeg = 3:
polydeg = 4:
Sec. 4.1.3, Table 5, EOC tests coupled Euler-gravity (update gravity once per step)
This is only available in Trixi.jl v0.2
.
Sec. 4.2.1, Figures 3 + 5a, Jeans energies with Euler/CK45 and gravity/CK45
Sec. 4.2.1, Figure 4, Jeans energies with Euler/CK45 and gravity/CK45 (update gravity once per step)
This is only available in Trixi.jl v0.2
.
Sec. 4.2.1, Figure 5b, Jeans energies with Euler/CK45 and gravity/RK3S*
Sec. 4.2.1, Creating Jeans energies figures 3 and 4
One must also shrink the analysis interval in the above command, e.g.,
to generate necessary data for the plots to look nice. Then run the python script with the analysis file from the run as input
to generate the figure.
Sec. 4.2.2, Figure 6, T=0.5, AMR meshes for Sedov + gravity
T = 0.0 and T = 0.5:
T = 1.0:
Sec. 4.2.2, Figure 7a, T=0.5, Sedov + gravity with Euler/CK45 and gravity/RK3S*
AMR mesh:
Uniform mesh:
Sec. 4.2.2, Figure 7b, T=1.0, Sedov + gravity with Euler/CK45 and gravity/RK3S*
AMR mesh:
Uniform mesh:
Sec. 4.2.2, Table 6, Sedov + gravity, performance uniform vs. AMR
AMR mesh:
Uniform mesh:
Postprocessing
To postprocess the solution files use Trixi2Vtk
with nvisnodes=16
and format=:vti
. Then use Paraview.