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

Variables

str torder = 'Dormand45'
 
str sorder = 'thirdOrder'
 
list velocity = [1.0, 0.0, 0.0]
 
bool periodic_boundary_conditions = True
 
bool use_limiters = False
 
warpy mesh
 
warpy fluid = warpy.variable(name='fluid', components=['rho'], basis_array_set=sorder)
 
warpy fluid_ic
 
warpy ic_va
 
warpy ic_ha = warpy.host_actions.va_runner(name='ic_ha', variable_adjusters=[ic_va])
 
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 integrator
 
warpy diag_writer
 
int dt = 1e-4
 
float dt_final = 2.0
 
warpy dt_controller
 
 else :
 
int write_steps = 100
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ apps

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

◆ bc_apps

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

◆ detect_nonscalar

examples.dg.advection.advection.detect_nonscalar

◆ diag_writer

warpy examples.dg.advection.advection.diag_writer
Initial value:
2 name='diagnostics',
3 write_interval=1e-3,
4 diagnostics={integrator: ['integral_rho']},
5 output_file='diagnostics.csv')

◆ dt

int examples.dg.advection.advection.dt = 1e-4

◆ dt_controller

warpy examples.dg.advection.advection.dt_controller
Initial value:
1= temporal_solver.create_integrating_controller(
4 init_dt=dt,
5 max_dt=1e-2,
6 max_growth=10,
7 error_tol=1e-10,
8 max_error=1e-1,
9 stability_limit=False)
computes the max value
Definition: integrate.py:44
dg_max_integrator This integrator ignores element geometry and simply finds the max
Definition: integrators.py:53

◆ dt_final

float examples.dg.advection.advection.dt_final = 2.0

◆ else

examples.dg.advection.advection.else :

◆ fluid

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

◆ fluid_ic

warpy examples.dg.advection.advection.fluid_ic
Initial value:
2 name='fluid_ic', sine_amplitudes=[1], sine_frequencies=[2 * np.pi], variable=fluid)
Fourier series.
Definition: arbitrary.py:187

◆ gen_xdmf

examples.dg.advection.advection.gen_xdmf

◆ ic_ha

warpy examples.dg.advection.advection.ic_ha = warpy.host_actions.va_runner(name='ic_ha', variable_adjusters=[ic_va])

◆ ic_va

warpy examples.dg.advection.advection.ic_va
Initial value:
2 name='ic_va',
3 priority=0,
4 spatial_order=sorder,
5 on_subdomains=['all'],
6 applications=[fluid_ic])
function evaluator
Definition: function_evaluation.py:4

◆ integrator

warpy examples.dg.advection.advection.integrator
Initial value:
2 name='mass_integrator',
3 time_integrator=temporal_solver,
4 patch_process_integrators=[
6 name='integrator',
7 spatial_order=sorder,
8 applications=[
10 name='int_q_dv',
11 variables=fluid,
12 stage=0,
13 variables_components=['rho'])
14 ])
15 ])
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.advection.mesh
Initial value:
2 Bounds=[-0.5, 0.5],
3 NumCells=[128],
4 NodeSets=['Left', 'Right'],
5 NumLayers=1,
6 PeriodicBoundaries=['Left', 'Right'] if periodic_boundary_conditions else None,
7 basis_array_set=sorder)
block mesh generator
Definition: mesh.py:87

◆ periodic_boundary_conditions

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

◆ sim

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

◆ sorder

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

◆ spatial_solver

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

◆ temporal_solver

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

◆ torder

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

◆ True

examples.dg.advection.advection.True

◆ use_limiters

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

◆ variable_adjusters

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

◆ velocity

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

◆ write_steps

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

◆ writer

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