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

Variables

str torder = 'SSPRK3'
 
str sorder = 'thirdOrder'
 
list velocity = [1.0, 0.65, 0.0]
 
bool periodic_boundary_conditions = True
 
bool use_bc_flux_diagnostic = False
 
bool use_limiters = False
 
list boundary_names = ['Left', 'Right', 'Bottom', 'Top']
 
warpy mesh
 
warpy fluid = warpy.variable(name='fluid', components=['rho'], basis_array_set=sorder)
 
dict bc_flux_vars = {}
 
 name
 
 bc
 
 components
 
 explodable
 
warpy fluid_ic
 
list applicators
 
list apps = [warpy.apps.advection(name='advection', variable=fluid, velocity=velocity)]
 
list bc_apps = []
 
list variable_adjusters = []
 
warpy spatial_solver
 
warpy temporal_solver
 
dict diagnostics_dict = {}
 
warpy integ_rho
 
warpy diag
 
int diag_writer_interval = 1.e-2
 
warpy diag_writer
 
list write_vars = [fluid]
 
warpy writer = warpy.host_actions.writer(name='writer', ReadVars=write_vars)
 
int dt = 1e-2
 
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_conservation.applicators
Initial value:
1= [
2 warpy.applicator(
3 spatial_order=sorder, fun=fluid_ic, var=fluid, spatial_scheme='Nodal'
4 )
5 ]

◆ apps

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

◆ bc

examples.dg.advection.advection2d_conservation.bc

◆ bc_apps

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

◆ bc_flux_vars

dict examples.dg.advection.advection2d_conservation.bc_flux_vars = {}

◆ boundary_names

list examples.dg.advection.advection2d_conservation.boundary_names = ['Left', 'Right', 'Bottom', 'Top']

◆ components

examples.dg.advection.advection2d_conservation.components

◆ detect_nonscalar

examples.dg.advection.advection2d_conservation.detect_nonscalar

◆ diag

warpy examples.dg.advection.advection2d_conservation.diag
Initial value:
2 f'diagnostic_{bc}',
3 ReadVars=[var],
4 BasisArraySet=sorder,
5 stage=0
6 )
Writes out variables for unique variable at each time point into single file.
Definition: unique_variable_diagnostic.py:4

◆ diag_writer

warpy examples.dg.advection.advection2d_conservation.diag_writer
Initial value:
2 name='diagnostics',
3 write_interval=diag_writer_interval,
4 diagnostics=diagnostics_dict,
5 output_file='diagnostics.csv'
6 )

◆ diag_writer_interval

int examples.dg.advection.advection2d_conservation.diag_writer_interval = 1.e-2

◆ diagnostics_dict

dict examples.dg.advection.advection2d_conservation.diagnostics_dict = {}

◆ dt

int examples.dg.advection.advection2d_conservation.dt = 1e-2

◆ dt_controller

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

◆ explodable

examples.dg.advection.advection2d_conservation.explodable

◆ fluid

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

◆ fluid_ic

warpy examples.dg.advection.advection2d_conservation.fluid_ic
Initial value:
2 name='fluid_ic',
3 center=[0.5, 0.5],
4 width=[0.25, 0.25],
5 inside_value=1,
6 outside_value=0
7 )
Sets a non-axis aligned cuboid region to inside_value and everywhere else to outside_value.
Definition: bandpass.py:4

◆ gen_xdmf

examples.dg.advection.advection2d_conservation.gen_xdmf

◆ integ_rho

warpy examples.dg.advection.advection2d_conservation.integ_rho
Initial value:
2 name='rho_integrator',
3 time_integrator=temporal_solver,
4 patch_process_integrators=[
6 name='integ_rho',
7 spatial_order=sorder,
8 applications=[
10 name='int_rho_dv',
11 variables=fluid,
12 stage=0,
13 variables_components=['rho']
14 )
15 ]
16 )
17 ]
18 )
integrate the variable q over the domain volume
Definition: integrate.py:94
Definition: integrator.py:6
dg_integrator This integrator takes into account element geometry and sums for integrating a function...
Definition: integrators.py:35

◆ mesh

warpy examples.dg.advection.advection2d_conservation.mesh
Initial value:
2 Bounds=[0.0, 1.0, 0.0, 1.0],
3 NumCells=[40, 40],
4 NodeSets=boundary_names,
5 NumLayers=1,
6 PeriodicBoundaries=boundary_names
7 if periodic_boundary_conditions else None,
8 basis_array_set=sorder
9 )
block mesh generator
Definition: mesh.py:87

◆ name

examples.dg.advection.advection2d_conservation.name

◆ periodic_boundary_conditions

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

◆ sim

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

◆ sorder

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

◆ spatial_solver

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

◆ temporal_solver

warpy examples.dg.advection.advection2d_conservation.temporal_solver
Initial value:
2 name='rk',
3 scheme=torder,
4 spatial_solvers=[spatial_solver],
5 variable_adjusters=variable_adjusters
6 )
Explicit Runge-Kutta temporal solver Note: Dormand45 currently will not work correctly with limiters ...
Definition: erk.py:5

◆ torder

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

◆ True

examples.dg.advection.advection2d_conservation.True

◆ use_bc_flux_diagnostic

bool examples.dg.advection.advection2d_conservation.use_bc_flux_diagnostic = False

◆ use_limiters

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

◆ variable_adjusters

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

◆ velocity

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

◆ write_steps

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

◆ write_vars

list examples.dg.advection.advection2d_conservation.write_vars = [fluid]

◆ writer

warpy examples.dg.advection.advection2d_conservation.writer = warpy.host_actions.writer(name='writer', ReadVars=write_vars)