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

Variables

str torder = 'TVDRK2'
 
str sorder = 'secondOrder'
 
float skin_depth_norm = 0.1
 
float nu_p_norm = 0.1
 
int gamma = 5./3.
 
bool periodic_boundary_conditions = True
 
str imhd_numerical_flux_type = "Rusanov"
 
str gradient_method = "ip"
 
float penalty_beta = +1.0
 
float penalty_eta = 1.0
 
warpy mesh
 
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 fluid_gradient2 = warpy.variable(name='fluid_gradient2', components=gradient_component_names,basis_array_set=sorder)
 
warpy zpinch_imhd_ic = warpy.functions.zpinch_imhd_2D(name='zpinch_imhd_ic',skin_depth_norm=skin_depth_norm,gamma=gamma)
 
list ic_applicators
 
list apps = []
 
list dirichlet_apps = []
 
list neumann_apps = []
 
warpy writer
 
warpy spatial_solver
 
list variable_adjusters = []
 
warpy ti
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=1.0e-4)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ apps

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

◆ component_names

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

◆ detect_nonscalar

examples.dg.mhd.zpinch_imhd_2D.detect_nonscalar

◆ dirichlet_apps

list examples.dg.mhd.zpinch_imhd_2D.dirichlet_apps = []

◆ dt_controller

warpy examples.dg.mhd.zpinch_imhd_2D.dt_controller = warpy.dt_calc.fixed_dt(init_dt=1.0e-4)

◆ fluid

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

◆ fluid_gradient

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

◆ fluid_gradient2

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

◆ gamma

int examples.dg.mhd.zpinch_imhd_2D.gamma = 5./3.

◆ gen_xdmf

examples.dg.mhd.zpinch_imhd_2D.gen_xdmf

◆ gradient_component_names

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

◆ gradient_method

str examples.dg.mhd.zpinch_imhd_2D.gradient_method = "ip"

◆ ic_applicators

list examples.dg.mhd.zpinch_imhd_2D.ic_applicators
Initial value:
1= [warpy.applicator(spatial_order=sorder,
2 fun=zpinch_imhd_ic,
3 var=fluid,
4 components=None,
5 spatial_scheme='Nodal')]

◆ imhd_numerical_flux_type

str examples.dg.mhd.zpinch_imhd_2D.imhd_numerical_flux_type = "Rusanov"

◆ mesh

warpy examples.dg.mhd.zpinch_imhd_2D.mesh
Initial value:
1= warpy.mesh.block(Bounds=[0.0, 1.0, 0.0, 1.0],
2 NumCells=[128, 128],
3 NodeSets=['Left', 'Right', 'Bottom','Top'],
4 NumLayers=1,
5 PeriodicBoundaries=['Left', 'Right'] if periodic_boundary_conditions else None,
6 basis_array_set=sorder)
block mesh generator
Definition: mesh.py:87

◆ neumann_apps

list examples.dg.mhd.zpinch_imhd_2D.neumann_apps = []

◆ nu_p_norm

float examples.dg.mhd.zpinch_imhd_2D.nu_p_norm = 0.1

◆ penalty_beta

float examples.dg.mhd.zpinch_imhd_2D.penalty_beta = +1.0

◆ penalty_eta

float examples.dg.mhd.zpinch_imhd_2D.penalty_eta = 1.0

◆ periodic_boundary_conditions

bool examples.dg.mhd.zpinch_imhd_2D.periodic_boundary_conditions = True

◆ sim

warpy examples.dg.mhd.zpinch_imhd_2D.sim
Initial value:
1= warpy.dg_sim(name='128128_zero_gradient_bc_bottom_conducting_wall_bc_top',
2 meshes=[mesh],
3 initial_conditions=ic_applicators,
4 temporal_solvers=[ti],
5 writers=[writer],
6 time=[0.,0.625],
7 dt_controller=dt_controller,
8 write_steps=50,
9 verbosity='debug')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ skin_depth_norm

float examples.dg.mhd.zpinch_imhd_2D.skin_depth_norm = 0.1

◆ sorder

str examples.dg.mhd.zpinch_imhd_2D.sorder = 'secondOrder'

◆ spatial_solver

warpy examples.dg.mhd.zpinch_imhd_2D.spatial_solver
Initial value:
1= warpy.spatial_solvers.dg(name="dg",
2 spatial_order=sorder,
3 applications=apps)

◆ ti

warpy examples.dg.mhd.zpinch_imhd_2D.ti
Initial value:
1= warpy.host_actions.erk(name="ti",
2 scheme=torder,
3 spatial_solvers=[spatial_solver],
4 variable_adjusters=variable_adjusters)
Explicit Runge-Kutta temporal solver Note: Dormand45 currently will not work correctly with limiters ...
Definition: erk.py:5

◆ torder

str examples.dg.mhd.zpinch_imhd_2D.torder = 'TVDRK2'

◆ True

examples.dg.mhd.zpinch_imhd_2D.True

◆ variable_adjusters

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

◆ writer

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

◆ zpinch_imhd_ic

warpy examples.dg.mhd.zpinch_imhd_2D.zpinch_imhd_ic = warpy.functions.zpinch_imhd_2D(name='zpinch_imhd_ic',skin_depth_norm=skin_depth_norm,gamma=gamma)