PLUTO Test Problems  4.4-patch2
Functions
init.c File Reference

Orszag-Tang MHD vortex. More...

Functions

void InitDomain (Data *d, Grid *grid)
 

Detailed Description

The Orszag Tang vortex system describes a doubly periodic fluid configuration leading to two-dimensional supersonic MHD turbulence. Although an analytical solution is not known, its simple and reproducible set of initial conditions has made it a widespread benchmark for inter-scheme comparison.

The computational domain is the periodic box $[0,2\pi]^D$ where D is the number of spatial dimensions. In 2D, the initial condition is given by

\[ \vec{v} = \left(-\sin y,\, \sin x, 0\right) \,,\qquad \vec{B} = \left(-\sin y,\, \sin 2x, 0\right) \,,\qquad \rho = 25/9\,,\qquad p = 5/3 \]

This test problem does not have any input parameter.

A snapshot of the solution on a 512x512 grid is shown below.

mhd_ot.02.jpg
Density at t=3.1 (configuration #02).
Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
April 13, 2014

References

Function Documentation

◆ InitDomain()

void InitDomain ( Data *  d,
Grid *  grid 
)

Assign initial condition by looping over the computational domain. Called after the usual Init() function to assign initial conditions on primitive variables. Value assigned here will overwrite those prescribed during Init().