WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.dg.advection.advection2d 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],NumCells=[40,40],NodeSets=['Left', 'Right', 'Bottom', 'Top'],NumLayers=1,PeriodicBoundaries=['Left','Right', 'Bottom', 'Top'] 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],width=[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 = 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
 
int write_steps = 100
 
warpy dt_controller = warpy.dt_calc.stability_dt(dt)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ applicators

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

◆ apps

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

◆ bc_apps

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

◆ detect_nonscalar

examples.dg.advection.advection2d.detect_nonscalar

◆ dt

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

◆ dt_controller

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

◆ fluid

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

◆ fluid_ic

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

◆ gen_xdmf

examples.dg.advection.advection2d.gen_xdmf

◆ mesh

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

◆ periodic_boundary_conditions

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

◆ sim

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

◆ sorder

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

◆ spatial_solver

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

◆ temporal_solver

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

◆ torder

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

◆ True

examples.dg.advection.advection2d.True

◆ use_limiters

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

◆ variable_adjusters

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

◆ velocity

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

◆ write_steps

int examples.dg.advection.advection2d.write_steps = 100

◆ writer

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