WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.dg.5-moment.shock2d Namespace Reference

Variables

str torder = 'TVDRK2'
 
str sorder = 'secondOrder'
 
int gamma = 5/3
 
float mass = 1.0
 
float charge = 1.0
 
int nu_p_tau = 1.e6
 
int rho_L = 1
 
int P_L = 1/gamma
 
int rho_R = 2
 
int P_R = 2/gamma
 
bool use_limiters = False
 
warpy mesh
 
warpy fluid
 
warpy fluid_gradient
 
warpy shock_tube_function
 
list applicators = []
 
list apps = []
 
warpy writer = warpy.host_actions.writer(name='writer', ReadVars=[fluid])
 
warpy spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps)
 
list variable_adjusters = []
 
warpy time_integrator = warpy.host_actions.erk(name="ti", scheme=torder, spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)
 
int dt = 1e-4
 
int nout = 100
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ applicators

list examples.dg.5-moment.shock2d.applicators = []

◆ apps

list examples.dg.5-moment.shock2d.apps = []

◆ charge

float examples.dg.5-moment.shock2d.charge = 1.0

◆ detect_nonscalar

examples.dg.5-moment.shock2d.detect_nonscalar

◆ dt

int examples.dg.5-moment.shock2d.dt = 1e-4

◆ dt_controller

warpy examples.dg.5-moment.shock2d.dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)

◆ fluid

warpy examples.dg.5-moment.shock2d.fluid
Initial value:
1= warpy.variable(name='fluid',
2 components=['rho', 'px', 'py', 'pz', 'e'],
3 basis_array_set=sorder)
Definition: variable.py:4

◆ fluid_gradient

warpy examples.dg.5-moment.shock2d.fluid_gradient
Initial value:
1= warpy.variable(name='fluid_gradient',
2 components=[prefix+"_"+suffix for prefix in fluid.components() for suffix in ['x','y','z']],
3 basis_array_set=sorder)

◆ gamma

int examples.dg.5-moment.shock2d.gamma = 5/3

◆ gen_xdmf

examples.dg.5-moment.shock2d.gen_xdmf

◆ mass

float examples.dg.5-moment.shock2d.mass = 1.0

◆ mesh

warpy examples.dg.5-moment.shock2d.mesh
Initial value:
1= warpy.mesh.block(Bounds=[0, 10]*2,
2 NumCells=[100]*2,
3 NodeSets=['Left', 'Right', 'Top', 'Bottom'],
4 NumLayers=1,
5 basis_array_set=sorder,
6 PeriodicBoundaries=['Left', 'Right', 'Top', 'Bottom'])
block mesh generator
Definition: mesh.py:87

◆ nout

int examples.dg.5-moment.shock2d.nout = 100

◆ nu_p_tau

None examples.dg.5-moment.shock2d.nu_p_tau = 1.e6

◆ P_L

int examples.dg.5-moment.shock2d.P_L = 1/gamma

◆ P_R

int examples.dg.5-moment.shock2d.P_R = 2/gamma

◆ rho_L

int examples.dg.5-moment.shock2d.rho_L = 1

◆ rho_R

int examples.dg.5-moment.shock2d.rho_R = 2

◆ shock_tube_function

warpy examples.dg.5-moment.shock2d.shock_tube_function
Initial value:
1= warpy.functions.shock_tube_5moment(name='shock_tube',
2 density_left=rho_L,
3 density_right=rho_R,
4 pressure_left=P_L,
5 pressure_right=P_R,
6 gamma=gamma,
7 center=[5,5,0],
8 direction=[0.5*sqrt(2),0.5*sqrt(2),0])
Function which sets 5-moment fluid to shock tube conditions.
Definition: shock_tube.py:45

◆ sim

warpy examples.dg.5-moment.shock2d.sim
Initial value:
1= warpy.dg_sim(name='shock2d_w_limiter_alpha0',
2 meshes=[mesh],
3 initial_conditions=applicators,
4 temporal_solvers=[time_integrator],
5 writers=[writer],
6 time=[0,1],
7 dt_controller = dt_controller,
8 flexible_writeout=True,
9 write_steps=nout,
10 verbosity='info')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ sorder

str examples.dg.5-moment.shock2d.sorder = 'secondOrder'

◆ spatial_solver

warpy examples.dg.5-moment.shock2d.spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps)

◆ time_integrator

warpy examples.dg.5-moment.shock2d.time_integrator = warpy.host_actions.erk(name="ti", scheme=torder, spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)

◆ torder

str examples.dg.5-moment.shock2d.torder = 'TVDRK2'

◆ True

examples.dg.5-moment.shock2d.True

◆ use_limiters

bool examples.dg.5-moment.shock2d.use_limiters = False

◆ variable_adjusters

list examples.dg.5-moment.shock2d.variable_adjusters = []

◆ writer

warpy examples.dg.5-moment.shock2d.writer = warpy.host_actions.writer(name='writer', ReadVars=[fluid])