WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.dg.mhd.orszag_tang Namespace Reference

Variables

str torder = 'SSPRK3'
 
str sorder = 'firstOrder'
 
int omega_c_norm = 1
 
int skin_depth_norm = 1
 
float gamma = 1.667
 
str numerical_flux_type = "HLLD"
 
float cfl = 1.0
 
float c_h = 1.0
 
bool use_limiter = False
 
float alpha_coefficient = 500.0
 
float floor_density = 1.0E-2
 
float floor_pressure = 1.0E-2
 
warpy mesh
 
list component_names = ['rho', 'px', 'py', 'pz', 'e', 'Bx', 'By', 'Bz','psi']
 
warpy fluid = warpy.variable(name='fluid',components=component_names,basis_array_set=sorder)
 
list gradient_component_names = [prefix+"_"+suffix for prefix in component_names for suffix in ['x','y','z']]
 
warpy fluid_gradient = warpy.variable(name='fluid_gradient', components=gradient_component_names,basis_array_set=sorder)
 
warpy orszag_tang_ic
 
list ic_applicators
 
list apps = []
 
list limiter_apps = []
 
warpy writer = warpy.host_actions.writer(name='writer',ReadVars=[fluid,fluid_gradient])
 
warpy spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps,cfl=cfl)
 
list variable_adjusters = []
 
warpy ti
 
warpy dt_controller = warpy.dt_calc.stability_dt(init_dt=1e-4)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ alpha_coefficient

float examples.dg.mhd.orszag_tang.alpha_coefficient = 500.0

◆ apps

list examples.dg.mhd.orszag_tang.apps = []

◆ c_h

float examples.dg.mhd.orszag_tang.c_h = 1.0

◆ cfl

float examples.dg.mhd.orszag_tang.cfl = 1.0

◆ component_names

list examples.dg.mhd.orszag_tang.component_names = ['rho', 'px', 'py', 'pz', 'e', 'Bx', 'By', 'Bz','psi']

◆ detect_nonscalar

examples.dg.mhd.orszag_tang.detect_nonscalar

◆ dt_controller

warpy examples.dg.mhd.orszag_tang.dt_controller = warpy.dt_calc.stability_dt(init_dt=1e-4)

◆ floor_density

float examples.dg.mhd.orszag_tang.floor_density = 1.0E-2

◆ floor_pressure

float examples.dg.mhd.orszag_tang.floor_pressure = 1.0E-2

◆ fluid

warpy examples.dg.mhd.orszag_tang.fluid = warpy.variable(name='fluid',components=component_names,basis_array_set=sorder)

◆ fluid_gradient

warpy examples.dg.mhd.orszag_tang.fluid_gradient = warpy.variable(name='fluid_gradient', components=gradient_component_names,basis_array_set=sorder)

◆ gamma

float examples.dg.mhd.orszag_tang.gamma = 1.667

◆ gen_xdmf

examples.dg.mhd.orszag_tang.gen_xdmf

◆ gradient_component_names

list examples.dg.mhd.orszag_tang.gradient_component_names = [prefix+"_"+suffix for prefix in component_names for suffix in ['x','y','z']]

◆ ic_applicators

list examples.dg.mhd.orszag_tang.ic_applicators
Initial value:
1= [warpy.applicator(spatial_order=sorder,
2 fun=orszag_tang_ic,
3 var=fluid,
4 components=component_names[0:8],
5 spatial_scheme='Nodal')]

◆ limiter_apps

list examples.dg.mhd.orszag_tang.limiter_apps = []

◆ mesh

warpy examples.dg.mhd.orszag_tang.mesh
Initial value:
1= warpy.mesh.block(Bounds=[0.0,2.0*math.pi, 0.0, 2.0*math.pi],
2 # NumCells=[288,288],
3 # NumCells=[128,128],
4 # NumCells=[64,64],
5 NumCells=[32,32],
6 # NumCells=[16,16],
7 # NumCells=[8,8],
8 # NumCells=[4,4],
9 NodeSets=['leftWall', 'rightWall','bottomWall','topWall'],
10 NumLayers=1,
11 PeriodicBoundaries = ['leftWall','rightWall', 'bottomWall', 'topWall'],
12 basis_array_set=sorder,
13 block_type="symmetric")
block mesh generator
Definition: mesh.py:87

◆ numerical_flux_type

str examples.dg.mhd.orszag_tang.numerical_flux_type = "HLLD"

◆ omega_c_norm

int examples.dg.mhd.orszag_tang.omega_c_norm = 1

◆ orszag_tang_ic

warpy examples.dg.mhd.orszag_tang.orszag_tang_ic
Initial value:
1= warpy.functions.orszagtang_mhd(name='orszag_tang_ic',
2 omega_c_norm=omega_c_norm,
3 skin_depth_norm=skin_depth_norm,
4 gamma=gamma)
Definition: orszagtang_mhd.py:4

◆ sim

warpy examples.dg.mhd.orszag_tang.sim
Initial value:
1= warpy.dg_sim(name='1storder_32x32_div_cleaning',
2 meshes=[mesh],
3 initial_conditions=ic_applicators,
4 temporal_solvers=[ti],
5 writers=[writer],
6 time=[0.,3.0],
7 # time=[0.,8.0],
8 dt_controller=dt_controller,
9 write_steps=100,
10 verbosity='info')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ skin_depth_norm

int examples.dg.mhd.orszag_tang.skin_depth_norm = 1

◆ sorder

str examples.dg.mhd.orszag_tang.sorder = 'firstOrder'

◆ spatial_solver

warpy examples.dg.mhd.orszag_tang.spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps,cfl=cfl)

◆ ti

warpy examples.dg.mhd.orszag_tang.ti
Initial value:
1= warpy.host_actions.erk(name="rk", scheme=torder,
2 spatial_solvers=[spatial_solver],
3 variable_adjusters=variable_adjusters)
Explicit Runge-Kutta temporal solver Note: Dormand45 currently will not work correctly with limiters ...
Definition: erk.py:5

◆ torder

str examples.dg.mhd.orszag_tang.torder = 'SSPRK3'

◆ True

examples.dg.mhd.orszag_tang.True

◆ use_limiter

bool examples.dg.mhd.orszag_tang.use_limiter = False

◆ variable_adjusters

list examples.dg.mhd.orszag_tang.variable_adjusters = []

◆ writer

warpy examples.dg.mhd.orszag_tang.writer = warpy.host_actions.writer(name='writer',ReadVars=[fluid,fluid_gradient])