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

Variables

str torder = 'SSPRK3'
 
str sorder = 'thirdOrder'
 
list velocity = [-1.0,-0.65,0.0]
 
bool periodic_boundary_conditions = True
 
bool use_limiters = False
 
warpy mesh = warpy.mesh.block(Bounds=[0.0, 1.0, 0.0, 1.0, 0.0, 1.0],NumCells=[20,20,20],NodeSets=['Left', 'Right', 'Bottom', 'Top','Front','Back'],NumLayers=1,PeriodicBoundaries=['Left','Right', 'Bottom', 'Top', 'Front', 'Back'] if periodic_boundary_conditions else None,basis_array_set=sorder)
 
warpy fluid = warpy.variable(name='fluid',components=['rho'],basis_array_set=sorder)
 
warpy fluid_ic = warpy.functions.bandpass(name='fluid_ic',center=[0.5,0.5,0.5],width=[0.25,0.25,0.25],inside_value=1,outside_value=0)
 
list applicators = [warpy.applicator(spatial_order=sorder,fun=fluid_ic,var=fluid,spatial_scheme='Nodal')]
 
list apps = [warpy.apps.advection(name='advection', variable=fluid,velocity=velocity)]
 
list bc_apps = []
 
warpy writer = warpy.host_actions.writer(name='writer',ReadVars=[fluid])
 
warpy spatial_solver
 
list variable_adjusters = []
 
warpy temporal_solver = warpy.host_actions.erk(name='rk', scheme=torder,spatial_solvers=[spatial_solver],variable_adjusters=variable_adjusters)
 
int dt = 5e-4
 
int t_tot = 1e-2
 
int nframe = 10
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ applicators

list examples.dg.advection.advection3d.applicators = [warpy.applicator(spatial_order=sorder,fun=fluid_ic,var=fluid,spatial_scheme='Nodal')]

◆ apps

list examples.dg.advection.advection3d.apps = [warpy.apps.advection(name='advection', variable=fluid,velocity=velocity)]

◆ bc_apps

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

◆ detect_nonscalar

examples.dg.advection.advection3d.detect_nonscalar

◆ dt

int examples.dg.advection.advection3d.dt = 5e-4

◆ dt_controller

warpy examples.dg.advection.advection3d.dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)

◆ fluid

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

◆ fluid_ic

warpy examples.dg.advection.advection3d.fluid_ic = warpy.functions.bandpass(name='fluid_ic',center=[0.5,0.5,0.5],width=[0.25,0.25,0.25],inside_value=1,outside_value=0)

◆ gen_xdmf

examples.dg.advection.advection3d.gen_xdmf

◆ mesh

warpy examples.dg.advection.advection3d.mesh = warpy.mesh.block(Bounds=[0.0, 1.0, 0.0, 1.0, 0.0, 1.0],NumCells=[20,20,20],NodeSets=['Left', 'Right', 'Bottom', 'Top','Front','Back'],NumLayers=1,PeriodicBoundaries=['Left','Right', 'Bottom', 'Top', 'Front', 'Back'] if periodic_boundary_conditions else None,basis_array_set=sorder)

◆ nframe

int examples.dg.advection.advection3d.nframe = 10

◆ periodic_boundary_conditions

bool examples.dg.advection.advection3d.periodic_boundary_conditions = True

◆ sim

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

◆ sorder

str examples.dg.advection.advection3d.sorder = 'thirdOrder'

◆ spatial_solver

warpy examples.dg.advection.advection3d.spatial_solver
Initial value:
1= warpy.spatial_solvers.dg(name="dg",
2 spatial_order=sorder,
3 applications=apps,
4 on_subdomains=['all'])

◆ t_tot

int examples.dg.advection.advection3d.t_tot = 1e-2

◆ temporal_solver

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

◆ torder

str examples.dg.advection.advection3d.torder = 'SSPRK3'

◆ True

examples.dg.advection.advection3d.True

◆ use_limiters

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

◆ variable_adjusters

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

◆ velocity

list examples.dg.advection.advection3d.velocity = [-1.0,-0.65,0.0]

◆ writer

warpy examples.dg.advection.advection3d.writer = warpy.host_actions.writer(name='writer',ReadVars=[fluid])