Skip to content

3D Orszag Tang Vortex

evazlimen edited this page Sep 23, 2023 · 1 revision

3D Orszag-Tang Vortex

Described in Orszag and Tang, 1979. This test explores the transition to supersonic MHD turbulence. It illustrates the ability of a code to handle shock-shock interactions as well as the formation of MHD shocks and turbulent dynamics. This test is performed with the mhd build (cholla/builds/make.type.mhd).Full initial conditions can be found in cholla/src/grid/initial_conditions.cppunder Orszag_Tang_Vortex().

Parameter file: (cholla/examples/3D/orszag_tang_vortex.txt)

#
# Parameter File for the Orszag-Tang Vortex
# See [Gardiner & Stone 2008](https://arxiv.org/abs/0712.2634)
#

################################################
# number of grid cells in the x dimension
nx=128
# number of grid cells in the y dimension
ny=128
# number of grid cells in the z dimension
nz=128
# final output time
tout=0.5
# time interval for output
outstep=0.5
# name of initial conditions
init=Orszag_Tang_Vortex
# domain properties
xmin=0.0
ymin=0.0
zmin=0.0
xlen=1.0
ylen=1.0
zlen=1.0
# type of boundary conditions
xl_bcnd=1
xu_bcnd=1
yl_bcnd=1
yu_bcnd=1
zl_bcnd=1
zu_bcnd=1
# path to output directory
outdir=./

#################################################
# Parameters for Orszag-Tang Vortex. This problem is defined for a specific set
# of initial conditions which have been hard coded into the initial conditions
# function. The only thing that needs set here is the adiabatic index

# value of gamma
gamma=1.666666666666667

Upon completion, you should obtain two output files. The final density and total pressures (in code units) of a slice along the z-midplane is shown below as a color coded contour plot. Examples of how to plot projections and slices can be found in cholla/python_scripts/Projection_Slice_Tutorial.ipynb.
Two 2D histograms with contours side by side, showing density and pressure, respectively, of cells in the y direction vs cells in x direction. The leftmost is the final density plot while the rightmost is the final pressure plot, both at t = 0.5. They share similiarities such as two regions of higher density/pressure at the middle, spiraling around each other. However, the pressure plot has less of a gradient between areas of high and low pressure.

For both density and pressure, we see a vortex growing from the center of the grid. The contours are not perfectly symmetrical, highlighting the small scale disontinuities and vortices.

We can compare to the solution of Martin and Miniati 2011:

With outstep = 0.01, you will obtain 51 output files and can obtain the evolution of the total density (here at 10 fps):

orszag-tang-vortex-density.mp4
Clone this wiki locally