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

Variables

str torder = 'IRK1'
 
str sorder = 'secondOrder'
 
list velocity = [1.0,0.0,0.0]
 
bool periodic_boundary_conditions = False
 
bool use_limiters = False
 
warpy mesh
 
warpy fluid = warpy.variable(name='fluid',components=['rho'],basis_array_set=sorder)
 
warpy fluid_ic = warpy.functions.fourier(name='fluid_ic', sine_amplitudes=[1],sine_frequencies=[2*np.pi])
 
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.irk(name='rk', scheme=torder,spatial_solvers=[spatial_solver],variable_adjusters=variable_adjusters)
 
int dt = 1e-3
 
warpy dt_controller = warpy.dt_calc.fixed_dt(dt)
 
int write_steps = 100
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 
 wxm_args
 

Variable Documentation

◆ applicators

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

◆ apps

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

◆ bc_apps

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

◆ detect_nonscalar

examples.dg.advection.implicit_advection.detect_nonscalar

◆ dt

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

◆ dt_controller

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

◆ fluid

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

◆ fluid_ic

warpy examples.dg.advection.implicit_advection.fluid_ic = warpy.functions.fourier(name='fluid_ic', sine_amplitudes=[1],sine_frequencies=[2*np.pi])

◆ gen_xdmf

examples.dg.advection.implicit_advection.gen_xdmf

◆ mesh

warpy examples.dg.advection.implicit_advection.mesh
Initial value:
1= warpy.mesh.block(Bounds=[-0.5, 0.5],
2 NumCells=[100],
3 NodeSets=['Left', 'Right'],
4 NumLayers=1,
5 PeriodicBoundaries=['Left','Right'] if periodic_boundary_conditions else None,
6 basis_array_set=sorder)
block mesh generator
Definition: mesh.py:87

◆ periodic_boundary_conditions

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

◆ sim

warpy examples.dg.advection.implicit_advection.sim
Initial value:
1= warpy.dg_sim(name='implicit_advection',
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.implicit_advection.sorder = 'secondOrder'

◆ spatial_solver

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

◆ temporal_solver

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

◆ torder

str examples.dg.advection.implicit_advection.torder = 'IRK1'

◆ True

examples.dg.advection.implicit_advection.True

◆ use_limiters

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

◆ variable_adjusters

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

◆ velocity

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

◆ write_steps

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

◆ writer

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

◆ wxm_args

examples.dg.advection.implicit_advection.wxm_args