WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.fvm.sodshock Namespace Reference

Variables

int torder = 4
 
int sorder = 4
 
int jump = 2
 
int gamma = 5/3
 
warpy mesh
 
warpy fluid
 
warpy dens_ic
 
warpy energy_ic
 
warpy null_func = warpy.functions.set_to(name='null', value=0)
 
list ic_applicators
 
list ss1
 
list ss_sets = [ss1]
 
warpy writer
 
warpy sim
 
 None
 
 gen_xdmf
 

Variable Documentation

◆ dens_ic

warpy examples.fvm.sodshock.dens_ic
Initial value:
1= warpy.functions.heaviside(name='dens_ic',
2 direction=[1,0,0],
3 center=[0,0,0],
4 neg=1,
5 pos=jump)
Heaviside step function.
Definition: heaviside.py:4

◆ energy_ic

warpy examples.fvm.sodshock.energy_ic
Initial value:
1= warpy.functions.heaviside(name='energy_ic',
2 direction=[1,0,0],
3 center=[0,0,0],
4 neg=1/(gamma*(gamma-1)),
5 pos=jump/(gamma*(gamma-1)))

◆ fluid

warpy examples.fvm.sodshock.fluid
Initial value:
1= warpy.variable(name='fluid',
2 components=['rho', 'px', 'py', 'pz', 'e'])
Definition: variable.py:4

◆ gamma

int examples.fvm.sodshock.gamma = 5/3

◆ gen_xdmf

examples.fvm.sodshock.gen_xdmf

◆ ic_applicators

list examples.fvm.sodshock.ic_applicators
Initial value:
1= [
2 warpy.applicator(spatial_order=sorder*2,
3 fun=dens_ic,
4 var=fluid,
5 components=['rho'],
6 spatial_scheme='FiniteVolume'),
7 warpy.applicator(spatial_order=sorder,
8 fun=null_func,
9 var=fluid,
10 components=['px','py','pz'],
11 spatial_scheme='FiniteVolume'),
12 warpy.applicator(spatial_order=sorder*2,
13 fun=energy_ic,
14 var=fluid,
15 components=['e'],
16 spatial_scheme='FiniteVolume')
17 ]

◆ jump

int examples.fvm.sodshock.jump = 2

◆ mesh

warpy examples.fvm.sodshock.mesh
Initial value:
1= warpy.mesh.block(Bounds=[-1, 1],
2 NumCells=[100],
3 NodeSets=['Left', 'Right'],
4 NumLayers=sorder,
5 PeriodicBoundaries=['Left','Right'])
block mesh generator
Definition: mesh.py:87

◆ None

examples.fvm.sodshock.None

◆ null_func

warpy examples.fvm.sodshock.null_func = warpy.functions.set_to(name='null', value=0)

◆ sim

warpy examples.fvm.sodshock.sim
Initial value:
1= warpy.fvm_sim(name='sodshock',
2 torder=torder,
3 sorder=sorder,
4 meshes=[mesh],
5 initial_conditions=ic_applicators,
6 boundary_conditions=None,
7 writers=[writer],
8 subsolver_sets=ss_sets,
9 time=[0,1],
10 dt=1,
11 write_steps=100,
12 cfl_max=0.5,
13 verbosity='info')
Finite volume simulation using RK Reconstruction.
Definition: fvm_sim.py:1

◆ sorder

int examples.fvm.sodshock.sorder = 4

◆ ss1

list examples.fvm.sodshock.ss1
Initial value:
1= [warpy.hyperapps.euler_roe(name='euler_flux',
2 variable=fluid,
3 components=None,
4 gamma=gamma)]
Definition: euler_roe.py:4

◆ ss_sets

list examples.fvm.sodshock.ss_sets = [ss1]

◆ torder

int examples.fvm.sodshock.torder = 4

◆ writer

warpy examples.fvm.sodshock.writer
Initial value:
1= warpy.host_actions.writer(name='writer',
2 ReadVars=[fluid])
Writes out a list of variables.
Definition: writer.py:4