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

Variables

str torder = 'RK4'
 
str sorder = 'firstOrder'
 
float gamma = 5.0/3.0
 
bool useLimiter = False
 
bool always_limit = True
 
float cfl = 1.0
 
str numerical_flux_type = "Rusanov"
 
warpy mesh = warpy.mesh.block(Bounds=[-.5, .5],NumCells=[16],NodeSets=['leftWall', 'rightWall'],NumLayers=1,basis_array_set=sorder)
 
list component_names = ['rho', 'px', 'py', 'pz', 'e', 'Bx', 'By', 'Bz']
 
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 briowu_ic = warpy.functions.briowu_mhd(name='briowu_ic',gamma=gamma,transition_width=0.0)
 
list ic_applicators = [warpy.applicator(spatial_order=sorder,fun=briowu_ic,var=fluid,components=None,spatial_scheme='Nodal')]
 
list apps = []
 
list bc_apps = []
 
list bc_apps_copyout = []
 
list bc_apps_dirichlet = []
 
list rho = [1.0,0.125]
 
list px = [0.0,0.0]
 
list py = [0.0,0.0]
 
list pz = [0.0,0.0]
 
list Bx = [0.75, 0.75]
 
list By = [1.0, -1.0]
 
list Bz = [0.0, 0.0]
 
list pressure = [1.0,0.1]
 
list e = [0,0]
 
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, on_subdomains=['all'],cfl=cfl)
 
list variable_adjusters = []
 
warpy ti = warpy.host_actions.erk(name="rk", scheme=torder, spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=1e-3)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ always_limit

bool examples.dg.mhd.brio_wu_shocktube_test1.always_limit = True

◆ apps

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

◆ bc_apps

list examples.dg.mhd.brio_wu_shocktube_test1.bc_apps = []

◆ bc_apps_copyout

list examples.dg.mhd.brio_wu_shocktube_test1.bc_apps_copyout = []

◆ bc_apps_dirichlet

list examples.dg.mhd.brio_wu_shocktube_test1.bc_apps_dirichlet = []

◆ briowu_ic

warpy examples.dg.mhd.brio_wu_shocktube_test1.briowu_ic = warpy.functions.briowu_mhd(name='briowu_ic',gamma=gamma,transition_width=0.0)

◆ Bx

list examples.dg.mhd.brio_wu_shocktube_test1.Bx = [0.75, 0.75]

◆ By

list examples.dg.mhd.brio_wu_shocktube_test1.By = [1.0, -1.0]

◆ Bz

list examples.dg.mhd.brio_wu_shocktube_test1.Bz = [0.0, 0.0]

◆ cfl

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

◆ component_names

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

◆ detect_nonscalar

examples.dg.mhd.brio_wu_shocktube_test1.detect_nonscalar

◆ dt_controller

warpy examples.dg.mhd.brio_wu_shocktube_test1.dt_controller = warpy.dt_calc.fixed_dt(init_dt=1e-3)

◆ e

list examples.dg.mhd.brio_wu_shocktube_test1.e = [0,0]

◆ fluid

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

◆ fluid_gradient

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

◆ gamma

float examples.dg.mhd.brio_wu_shocktube_test1.gamma = 5.0/3.0

◆ gen_xdmf

examples.dg.mhd.brio_wu_shocktube_test1.gen_xdmf

◆ gradient_component_names

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

◆ ic_applicators

list examples.dg.mhd.brio_wu_shocktube_test1.ic_applicators = [warpy.applicator(spatial_order=sorder,fun=briowu_ic,var=fluid,components=None,spatial_scheme='Nodal')]

◆ mesh

warpy examples.dg.mhd.brio_wu_shocktube_test1.mesh = warpy.mesh.block(Bounds=[-.5, .5],NumCells=[16],NodeSets=['leftWall', 'rightWall'],NumLayers=1,basis_array_set=sorder)

◆ numerical_flux_type

str examples.dg.mhd.brio_wu_shocktube_test1.numerical_flux_type = "Rusanov"

◆ pressure

list examples.dg.mhd.brio_wu_shocktube_test1.pressure = [1.0,0.1]

◆ px

list examples.dg.mhd.brio_wu_shocktube_test1.px = [0.0,0.0]

◆ py

list examples.dg.mhd.brio_wu_shocktube_test1.py = [0.0,0.0]

◆ pz

list examples.dg.mhd.brio_wu_shocktube_test1.pz = [0.0,0.0]

◆ rho

list examples.dg.mhd.brio_wu_shocktube_test1.rho = [1.0,0.125]

◆ sim

warpy examples.dg.mhd.brio_wu_shocktube_test1.sim
Initial value:
1= warpy.dg_sim(name='briowu_apr4_testing_rusanov_zero_geometric_source',
2 meshes=[mesh],
3 initial_conditions=ic_applicators,
4 temporal_solvers=[ti],
5 writers=[writer],
6 time=[0.,0.2],
7 # time=[0.,0.002],
8 # time=[0.,1.e-5*1000],
9 dt_controller=dt_controller,
10 flexible_writeout=False,
11 write_steps=100,
12 verbosity='debug')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ sorder

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

◆ spatial_solver

warpy examples.dg.mhd.brio_wu_shocktube_test1.spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps, on_subdomains=['all'],cfl=cfl)

◆ ti

warpy examples.dg.mhd.brio_wu_shocktube_test1.ti = warpy.host_actions.erk(name="rk", scheme=torder, spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)

◆ torder

str examples.dg.mhd.brio_wu_shocktube_test1.torder = 'RK4'

◆ True

examples.dg.mhd.brio_wu_shocktube_test1.True

◆ useLimiter

bool examples.dg.mhd.brio_wu_shocktube_test1.useLimiter = False

◆ variable_adjusters

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

◆ writer

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