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

Variables

str torder = 'SSPRK3'
 
str sorder = 'thirdOrder'
 
float skin_depth_norm = 0.1
 
float omega_p_tau = 1.0
 
int gamma = 5./3.
 
int Zi = 1
 
int Ze = -1
 
int Ai = 10
 
int Ae = 250
 
None nu_p_tau = None
 
bool use_viscosity_limiter = False
 
int artificial_viscosity_coefficient = 1E-6
 
str gradient_method = "ip"
 
None penalty_beta = None
 
float penalty_eta = +1.0
 
warpy mesh
 
warpy efluid
 
warpy efluid_gradient
 
warpy efluid_gradient2
 
warpy ifluid
 
warpy ifluid_gradient
 
warpy ifluid_gradient2
 
warpy field
 
warpy zpinch_5moment_electron_ic
 
warpy zpinch_5moment_ion_ic
 
warpy zpinch_5moment_field_ic
 
list applicators = []
 
list apps_electrons = []
 
list apps_ions = []
 
list apps_fields = []
 
list dirichlet_apps = []
 
list rho = [rho_L,rho_R]
 
list px = [0.0,0.0]
 
list py = [0.0,0.0]
 
list pz = [0.0,0.0]
 
list pressure = [P_L,P_R]
 
list e = [0,0]
 
list analytic_solution_apps = []
 
list variable_adjusters = []
 
warpy writer = warpy.host_actions.writer(name='writer', ReadVars=[fluid,fluid_analytic, fluid_gradient,fluid_gradient2])
 
 else :
 
warpy spatial_solver
 
warpy time_integrator = warpy.host_actions.erk(name="ti", scheme=torder, spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)
 
int dt = 1e-5
 
int nout = 100
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)
 
list integrator_apps = []
 
list integrator_analytic_solution_apps = []
 
warpy dg_integrator
 
warpy integrator_host_action
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ Ae

int examples.dg.5-moment.zpinch_5-moment_1D.Ae = 250

◆ Ai

int examples.dg.5-moment.zpinch_5-moment_1D.Ai = 10

◆ analytic_solution_apps

list examples.dg.5-moment.zpinch_5-moment_1D.analytic_solution_apps = []

◆ applicators

list examples.dg.5-moment.zpinch_5-moment_1D.applicators = []

◆ apps_electrons

list examples.dg.5-moment.zpinch_5-moment_1D.apps_electrons = []

◆ apps_fields

list examples.dg.5-moment.zpinch_5-moment_1D.apps_fields = []

◆ apps_ions

list examples.dg.5-moment.zpinch_5-moment_1D.apps_ions = []

◆ artificial_viscosity_coefficient

int examples.dg.5-moment.zpinch_5-moment_1D.artificial_viscosity_coefficient = 1E-6

◆ detect_nonscalar

examples.dg.5-moment.zpinch_5-moment_1D.detect_nonscalar

◆ dg_integrator

warpy examples.dg.5-moment.zpinch_5-moment_1D.dg_integrator
Initial value:
2 spatial_order=sorder,
3 applications=integrator_apps,
4 )
dg_integrator This integrator takes into account element geometry and sums for integrating a function...
Definition: integrators.py:35

◆ dirichlet_apps

list examples.dg.5-moment.zpinch_5-moment_1D.dirichlet_apps = []

◆ dt

int examples.dg.5-moment.zpinch_5-moment_1D.dt = 1e-5

◆ dt_controller

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

◆ e

list examples.dg.5-moment.zpinch_5-moment_1D.e = [0,0]

◆ efluid

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

◆ efluid_gradient

warpy examples.dg.5-moment.zpinch_5-moment_1D.efluid_gradient
Initial value:
1= warpy.variable(name='efluid_gradient',
2 components=[prefix+"_"+suffix for prefix in efluid.components() for suffix in ['x','y','z']],
3 basis_array_set=sorder)

◆ efluid_gradient2

warpy examples.dg.5-moment.zpinch_5-moment_1D.efluid_gradient2
Initial value:
1= warpy.variable(name='efluid_gradient2',
2 components=[prefix+"_"+suffix for prefix in efluid.components() for suffix in ['x','y','z']],
3 basis_array_set=sorder)

◆ else

examples.dg.5-moment.zpinch_5-moment_1D.else :

◆ field

warpy examples.dg.5-moment.zpinch_5-moment_1D.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.zpinch_5-moment_1D.gamma = 5./3.

◆ gen_xdmf

examples.dg.5-moment.zpinch_5-moment_1D.gen_xdmf

◆ gradient_method

str examples.dg.5-moment.zpinch_5-moment_1D.gradient_method = "ip"

◆ ifluid

warpy examples.dg.5-moment.zpinch_5-moment_1D.ifluid
Initial value:
1= warpy.variable(name='ifluid',
2 components=['rho', 'px', 'py', 'pz', 'e'],
3 explodable=False,
4 basis_array_set=sorder)

◆ ifluid_gradient

warpy examples.dg.5-moment.zpinch_5-moment_1D.ifluid_gradient
Initial value:
1= warpy.variable(name='ifluid_gradient',
2 components=[prefix+"_"+suffix for prefix in ifluid.components() for suffix in ['x','y','z']],
3 basis_array_set=sorder)

◆ ifluid_gradient2

warpy examples.dg.5-moment.zpinch_5-moment_1D.ifluid_gradient2
Initial value:
1= warpy.variable(name='ifluid_gradient2',
2 components=[prefix+"_"+suffix for prefix in ifluid.components() for suffix in ['x','y','z']],
3 basis_array_set=sorder)

◆ integrator_analytic_solution_apps

list examples.dg.5-moment.zpinch_5-moment_1D.integrator_analytic_solution_apps = []

◆ integrator_apps

list examples.dg.5-moment.zpinch_5-moment_1D.integrator_apps = []

◆ integrator_host_action

warpy examples.dg.5-moment.zpinch_5-moment_1D.integrator_host_action
Initial value:
1= warpy.host_actions.integrator(name="integrator",
2 patch_process_integrators=[dg_integrator],
3 time_integrator=time_integrator)
Definition: integrator.py:6

◆ mesh

warpy examples.dg.5-moment.zpinch_5-moment_1D.mesh
Initial value:
1= warpy.mesh.block(Bounds=[0, 1.0],
2 NumCells=[40],
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.zpinch_5-moment_1D.nout = 100

◆ nu_p_tau

None examples.dg.5-moment.zpinch_5-moment_1D.nu_p_tau = None

◆ omega_p_tau

float examples.dg.5-moment.zpinch_5-moment_1D.omega_p_tau = 1.0

◆ penalty_beta

float examples.dg.5-moment.zpinch_5-moment_1D.penalty_beta = None

◆ penalty_eta

float examples.dg.5-moment.zpinch_5-moment_1D.penalty_eta = +1.0

◆ pressure

list examples.dg.5-moment.zpinch_5-moment_1D.pressure = [P_L,P_R]

◆ px

list examples.dg.5-moment.zpinch_5-moment_1D.px = [0.0,0.0]

◆ py

list examples.dg.5-moment.zpinch_5-moment_1D.py = [0.0,0.0]

◆ pz

list examples.dg.5-moment.zpinch_5-moment_1D.pz = [0.0,0.0]

◆ rho

list examples.dg.5-moment.zpinch_5-moment_1D.rho = [rho_L,rho_R]

◆ sim

warpy examples.dg.5-moment.zpinch_5-moment_1D.sim
Initial value:
1= warpy.dg_sim(name='test',
2 meshes=[mesh],
3 initial_conditions=applicators,
4 temporal_solvers=[time_integrator],
5 writers=[writer],
6 # post_ti_host_actions=[integrator_host_action],
7 extra_end_host_actions=[integrator_host_action],
8 # time=[0,nout*dt],
9 time=[0,0.1],
10 # time=[0,0.01],
11 dt_controller = dt_controller,
12 flexible_writeout=True,
13 write_steps=nout,
14 verbosity='info')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ skin_depth_norm

float examples.dg.5-moment.zpinch_5-moment_1D.skin_depth_norm = 0.1

◆ sorder

str examples.dg.5-moment.zpinch_5-moment_1D.sorder = 'thirdOrder'

◆ spatial_solver

warpy examples.dg.5-moment.zpinch_5-moment_1D.spatial_solver
Initial value:
1= warpy.spatial_solvers.dg(name="dg",
2 spatial_order=sorder,
3 applications=apps,
4 penalty_beta=penalty_beta,
5 penalty_eta=penalty_eta)

◆ time_integrator

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

◆ torder

str examples.dg.5-moment.zpinch_5-moment_1D.torder = 'SSPRK3'

◆ True

examples.dg.5-moment.zpinch_5-moment_1D.True

◆ use_viscosity_limiter

bool examples.dg.5-moment.zpinch_5-moment_1D.use_viscosity_limiter = False

◆ variable_adjusters

list examples.dg.5-moment.zpinch_5-moment_1D.variable_adjusters = []

◆ writer

warpy examples.dg.5-moment.zpinch_5-moment_1D.writer = warpy.host_actions.writer(name='writer', ReadVars=[fluid,fluid_analytic, fluid_gradient,fluid_gradient2])

◆ Ze

int examples.dg.5-moment.zpinch_5-moment_1D.Ze = -1

◆ Zi

int examples.dg.5-moment.zpinch_5-moment_1D.Zi = 1

◆ zpinch_5moment_electron_ic

warpy examples.dg.5-moment.zpinch_5-moment_1D.zpinch_5moment_electron_ic
Initial value:
1= warpy.functions.zpinch_5moment_fluid_1D(name='zpinch_5moment_electron_ic',
2 density_left=rho_L,
3 density_right=rho_R,
4 pressure_left=P_L,
5 pressure_right=P_R,
6 gamma=gamma,
7 center=[0,0,0])

◆ zpinch_5moment_field_ic

warpy examples.dg.5-moment.zpinch_5-moment_1D.zpinch_5moment_field_ic
Initial value:
1= warpy.functions.zpinch_5moment_field_1D(name='zpinch_5moment_field_ic',
2 density_left=rho_L,
3 density_right=rho_R,
4 pressure_left=P_L,
5 pressure_right=P_R,
6 gamma=gamma,
7 center=[0,0,0])

◆ zpinch_5moment_ion_ic

warpy examples.dg.5-moment.zpinch_5-moment_1D.zpinch_5moment_ion_ic
Initial value:
1= warpy.functions.zpinch_5moment_fluid_1D(name='zpinch_5moment_ion_ic',
2 density_left=rho_L,
3 density_right=rho_R,
4 pressure_left=P_L,
5 pressure_right=P_R,
6 gamma=gamma,
7 center=[0,0,0])