WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.dg.advection.advection_heaviside Namespace Reference

Variables

str torder = 'Dormand45'
 
str sorder = 'secondOrder'
 
list velocity1 = [1.0,0.0,0.0]
 
list velocity2 = [-1.0,0.0,0.0]
 
bool periodic_boundary_conditions = False
 
bool use_limiters = False
 
warpy mesh = warpy.mesh.block(Bounds=[-0.5, 0.5],NumCells=[64],NodeSets=['Left', 'Right'],NumLayers=1,PeriodicBoundaries=['Left','Right'] if periodic_boundary_conditions else None,basis_array_set=sorder)
 
warpy fluid1 = warpy.variable(name='fluid1',components=['rho'],basis_array_set=sorder)
 
warpy fluid2 = warpy.variable(name='fluid2',components=['rho'],basis_array_set=sorder)
 
warpy fluid_ic1 = warpy.functions.heaviside(name='fluid_ic1',neg=0.5,pos=0,direction=[1,0,0],center=[0,0,0])
 
warpy fluid_ic2 = warpy.functions.heaviside(name='fluid_ic2',neg=0,pos=0.5,direction=[1,0,0],center=[0,0,0])
 
list applicators = []
 
list apps = []
 
list bc_apps = []
 
warpy writer = warpy.host_actions.writer(name='writer',ReadVars=[fluid1,fluid2])
 
warpy spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps,on_subdomains=['all'])
 
list variable_adjusters = []
 
warpy temporal_solver = warpy.host_actions.erk(name='rk', scheme=torder,spatial_solvers=[spatial_solver],variable_adjusters=variable_adjusters)
 
int dt = 1e-3
 
warpy dt_controller = warpy.dt_calc.stability_dt(dt)
 
int write_steps = 1000
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ applicators

list examples.dg.advection.advection_heaviside.applicators = []

◆ apps

list examples.dg.advection.advection_heaviside.apps = []

◆ bc_apps

list examples.dg.advection.advection_heaviside.bc_apps = []

◆ detect_nonscalar

examples.dg.advection.advection_heaviside.detect_nonscalar

◆ dt

int examples.dg.advection.advection_heaviside.dt = 1e-3

◆ dt_controller

warpy examples.dg.advection.advection_heaviside.dt_controller = warpy.dt_calc.stability_dt(dt)

◆ fluid1

warpy examples.dg.advection.advection_heaviside.fluid1 = warpy.variable(name='fluid1',components=['rho'],basis_array_set=sorder)

◆ fluid2

warpy examples.dg.advection.advection_heaviside.fluid2 = warpy.variable(name='fluid2',components=['rho'],basis_array_set=sorder)

◆ fluid_ic1

warpy examples.dg.advection.advection_heaviside.fluid_ic1 = warpy.functions.heaviside(name='fluid_ic1',neg=0.5,pos=0,direction=[1,0,0],center=[0,0,0])

◆ fluid_ic2

warpy examples.dg.advection.advection_heaviside.fluid_ic2 = warpy.functions.heaviside(name='fluid_ic2',neg=0,pos=0.5,direction=[1,0,0],center=[0,0,0])

◆ gen_xdmf

examples.dg.advection.advection_heaviside.gen_xdmf

◆ mesh

warpy examples.dg.advection.advection_heaviside.mesh = warpy.mesh.block(Bounds=[-0.5, 0.5],NumCells=[64],NodeSets=['Left', 'Right'],NumLayers=1,PeriodicBoundaries=['Left','Right'] if periodic_boundary_conditions else None,basis_array_set=sorder)

◆ periodic_boundary_conditions

bool examples.dg.advection.advection_heaviside.periodic_boundary_conditions = False

◆ sim

warpy examples.dg.advection.advection_heaviside.sim
Initial value:
1= warpy.dg_sim(name='advection_heaviside',
2 meshes=[mesh],
3 initial_conditions=applicators,
4 temporal_solvers=[temporal_solver],
5 writers=[writer],
6 time=[0,dt*write_steps],
7 dt_controller=dt_controller,
8 flexible_writeout=False,
9 write_steps=write_steps,
10 verbosity='info')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ sorder

str examples.dg.advection.advection_heaviside.sorder = 'secondOrder'

◆ spatial_solver

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

◆ temporal_solver

warpy examples.dg.advection.advection_heaviside.temporal_solver = warpy.host_actions.erk(name='rk', scheme=torder,spatial_solvers=[spatial_solver],variable_adjusters=variable_adjusters)

◆ torder

str examples.dg.advection.advection_heaviside.torder = 'Dormand45'

◆ True

examples.dg.advection.advection_heaviside.True

◆ use_limiters

bool examples.dg.advection.advection_heaviside.use_limiters = False

◆ variable_adjusters

list examples.dg.advection.advection_heaviside.variable_adjusters = []

◆ velocity1

list examples.dg.advection.advection_heaviside.velocity1 = [1.0,0.0,0.0]

◆ velocity2

list examples.dg.advection.advection_heaviside.velocity2 = [-1.0,0.0,0.0]

◆ write_steps

int examples.dg.advection.advection_heaviside.write_steps = 1000

◆ writer

warpy examples.dg.advection.advection_heaviside.writer = warpy.host_actions.writer(name='writer',ReadVars=[fluid1,fluid2])