WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.dg.13-moment.shock_tube Namespace Reference

Variables

str torder = 'SSPRK3'
 
str sorder = 'secondOrder'
 
float mass = 1.0
 
float charge = 1.0
 
int nu_p_tau = 1.e4
 
float P = 1.0
 
float n = 1.0
 
float jump = 0.9
 
warpy mesh = warpy.mesh.block(Bounds=[-0.5, 0.5],NumCells=[128],NodeSets=['Left', 'Right'],NumLayers=2,basis_array_set=sorder)
 
warpy fluid = warpy.variable(name='fluid', components=['rho', 'px', 'py', 'pz', 'exx', 'exy', 'exz', 'eyy', 'eyz', 'ezz', 'Hx', 'Hy', 'Hz'],basis_array_set=sorder)
 
warpy fluid_gradient = warpy.variable(name='fluid_gradient', components=[prefix+"_"+suffix for prefix in fluid.components() for suffix in ['x','y','z']],basis_array_set=sorder)
 
warpy shock_tube_function = warpy.functions.shock_tube_13moment(name='shock_tube', transition_width=0.1)
 
list applicators = []
 
list 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)
 
warpy temporal_solver = warpy.temporal_solvers.rk(name="rk", scheme=torder)
 
list variable_adjusters = []
 
warpy time_integrator = warpy.host_actions.time_integrator(name="ti", temporal_solver=temporal_solver, spatial_solver=spatial_solver, variable_adjusters=variable_adjusters)
 
warpy sim = warpy.dg_sim(name='shock_tube',meshes=[mesh],initial_conditions=applicators,time_integrators=[time_integrator],writers=[writer],time=[0,0.12],dt = 1.e-5,fixed_dt=True,write_steps=100,verbosity='info')
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ applicators

list examples.dg.13-moment.shock_tube.applicators = []

◆ apps

list examples.dg.13-moment.shock_tube.apps = []

◆ charge

float examples.dg.13-moment.shock_tube.charge = 1.0

◆ detect_nonscalar

examples.dg.13-moment.shock_tube.detect_nonscalar

◆ fluid

warpy examples.dg.13-moment.shock_tube.fluid = warpy.variable(name='fluid', components=['rho', 'px', 'py', 'pz', 'exx', 'exy', 'exz', 'eyy', 'eyz', 'ezz', 'Hx', 'Hy', 'Hz'],basis_array_set=sorder)

◆ fluid_gradient

warpy examples.dg.13-moment.shock_tube.fluid_gradient = warpy.variable(name='fluid_gradient', components=[prefix+"_"+suffix for prefix in fluid.components() for suffix in ['x','y','z']],basis_array_set=sorder)

◆ gen_xdmf

examples.dg.13-moment.shock_tube.gen_xdmf

◆ jump

float examples.dg.13-moment.shock_tube.jump = 0.9

◆ mass

float examples.dg.13-moment.shock_tube.mass = 1.0

◆ mesh

warpy examples.dg.13-moment.shock_tube.mesh = warpy.mesh.block(Bounds=[-0.5, 0.5],NumCells=[128],NodeSets=['Left', 'Right'],NumLayers=2,basis_array_set=sorder)

◆ n

float examples.dg.13-moment.shock_tube.n = 1.0

◆ nu_p_tau

int examples.dg.13-moment.shock_tube.nu_p_tau = 1.e4

◆ P

float examples.dg.13-moment.shock_tube.P = 1.0

◆ shock_tube_function

warpy examples.dg.13-moment.shock_tube.shock_tube_function = warpy.functions.shock_tube_13moment(name='shock_tube', transition_width=0.1)

◆ sim

warpy examples.dg.13-moment.shock_tube.sim = warpy.dg_sim(name='shock_tube',meshes=[mesh],initial_conditions=applicators,time_integrators=[time_integrator],writers=[writer],time=[0,0.12],dt = 1.e-5,fixed_dt=True,write_steps=100,verbosity='info')

◆ sorder

str examples.dg.13-moment.shock_tube.sorder = 'secondOrder'

◆ spatial_solver

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

◆ temporal_solver

warpy examples.dg.13-moment.shock_tube.temporal_solver = warpy.temporal_solvers.rk(name="rk", scheme=torder)

◆ time_integrator

warpy examples.dg.13-moment.shock_tube.time_integrator = warpy.host_actions.time_integrator(name="ti", temporal_solver=temporal_solver, spatial_solver=spatial_solver, variable_adjusters=variable_adjusters)

◆ torder

str examples.dg.13-moment.shock_tube.torder = 'SSPRK3'

◆ True

examples.dg.13-moment.shock_tube.True

◆ variable_adjusters

list examples.dg.13-moment.shock_tube.variable_adjusters = []

◆ writer

warpy examples.dg.13-moment.shock_tube.writer = warpy.host_actions.writer(name='writer', ReadVars=[fluid, fluid_gradient])