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

Variables

str torder = 'TVDRK2'
 
str sorder = 'secondOrder'
 
int gamma = 5/3
 
float mass = 1.0
 
int Zi = 1
 
int Ze = -1
 
int skin_depth_norm = 1e-2
 
int omega_p_norm = 1e3
 
int rho_L = 1
 
int P_L = 1/gamma
 
int rho_R = 4
 
int P_R = 4/gamma
 
int Ai = 1
 
int Ae = 1/1836
 
warpy mesh
 
warpy ions
 
warpy electrons
 
warpy field
 
warpy ions_ic
 
warpy elec_ic
 
list applicators = []
 
list apps = []
 
warpy writer = warpy.host_actions.writer(name='writer', ReadVars=[ions, electrons, field])
 
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-6
 
int nout = 100
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ Ae

int examples.dg.5-moment.tf_shock.Ae = 1/1836

◆ Ai

int examples.dg.5-moment.tf_shock.Ai = 1

◆ applicators

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

◆ apps

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

◆ detect_nonscalar

examples.dg.5-moment.tf_shock.detect_nonscalar

◆ dt

int examples.dg.5-moment.tf_shock.dt = 1e-6

◆ dt_controller

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

◆ elec_ic

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

◆ electrons

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

◆ field

warpy examples.dg.5-moment.tf_shock.field
Initial value:
1= warpy.variable(name='field',
2 components=['Ex','Ey','Ez', 'Bx','By','Bz'],
3 basis_array_set=sorder)

◆ gamma

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

◆ gen_xdmf

examples.dg.5-moment.tf_shock.gen_xdmf

◆ ions

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

◆ ions_ic

warpy examples.dg.5-moment.tf_shock.ions_ic
Initial value:
1= warpy.functions.shock_tube_5moment(name='ion_shock_tube',
2 density_left=Ai*rho_L,
3 density_right=Ai*rho_R,
4 pressure_left=P_L*.5,
5 pressure_right=P_R*.5,
6 gamma=gamma,
7 center=[5,0,0])

◆ mass

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

◆ mesh

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

◆ nout

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

◆ omega_p_norm

int examples.dg.5-moment.tf_shock.omega_p_norm = 1e3

◆ P_L

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

◆ P_R

int examples.dg.5-moment.tf_shock.P_R = 4/gamma

◆ rho_L

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

◆ rho_R

int examples.dg.5-moment.tf_shock.rho_R = 4

◆ sim

warpy examples.dg.5-moment.tf_shock.sim
Initial value:
1= warpy.dg_sim(name='tf_shock',
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

◆ skin_depth_norm

int examples.dg.5-moment.tf_shock.skin_depth_norm = 1e-2

◆ sorder

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

◆ spatial_solver

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

◆ time_integrator

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

◆ torder

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

◆ True

examples.dg.5-moment.tf_shock.True

◆ variable_adjusters

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

◆ writer

warpy examples.dg.5-moment.tf_shock.writer = warpy.host_actions.writer(name='writer', ReadVars=[ions, electrons, field])

◆ Ze

int examples.dg.5-moment.tf_shock.Ze = -1

◆ Zi

int examples.dg.5-moment.tf_shock.Zi = 1