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

Variables

str torder = 'RK2'
 
str sorder = 'thirdOrder'
 
int dt = 1e-3
 
int dt_final = 8
 
warpy dt_controller = warpy.dt_calc.fixed_dt(dt)
 
int write_steps = 100
 
list velocity = [1.0,0.0,0.0]
 
str mesh_file = "meshes/mesh_1D_3subdomain-n501"
 
bool use_limiters = False
 
str variable_name = 'fluid'
 
list fluid_components = ['rho']
 
list interior_subdomains = ['interior']
 
list tran_subdomains = ['transition']
 
list exterior_subdomains = ['exterior']
 
list interior_to_transition_boundary = ['tLeft']
 
list open_boundary = ['tRight']
 
list exterior_boundary = ['Right']
 
list all_tran_boundaries = interior_to_transition_boundary + open_boundary
 
float lacuna_time = 1.0,
 
float reintegration_time = 3.0,
 
warpy mesh
 
warpy q
 
warpy null_function
 
list ic_applicators = []
 
warpy app_flux_q
 
list interior_bc_apps = []
 
list spatial_solvers = []
 
list variable_adjusters = []
 
warpy temporal_solver
 
warpy q_lobc_right
 
warpy ic_applicators_lobc
 
warpy host_action_lobc_mu = q_lobc_right.calc_dmu()
 
 app_flux_w
 
 app_flux_wlacuna
 
warpy temporal_solver_lobc
 
warpy host_actions_lobc_pre_ti = q_lobc_right.create_pre_ti_hostactions()
 
warpy writer
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ all_tran_boundaries

list examples.dg.open_bc.lobc_advection_1D.all_tran_boundaries = interior_to_transition_boundary + open_boundary

◆ app_flux_q

warpy examples.dg.open_bc.lobc_advection_1D.app_flux_q
Initial value:
2 name='app_flux_q',
3 variable = q,
4 velocity = velocity
5)
Advection.
Definition: simple.py:25

◆ app_flux_w

examples.dg.open_bc.lobc_advection_1D.app_flux_w

◆ app_flux_wlacuna

examples.dg.open_bc.lobc_advection_1D.app_flux_wlacuna

◆ detect_nonscalar

examples.dg.open_bc.lobc_advection_1D.detect_nonscalar

◆ dt

int examples.dg.open_bc.lobc_advection_1D.dt = 1e-3

◆ dt_controller

warpy examples.dg.open_bc.lobc_advection_1D.dt_controller = warpy.dt_calc.fixed_dt(dt)

◆ dt_final

int examples.dg.open_bc.lobc_advection_1D.dt_final = 8

◆ exterior_boundary

list examples.dg.open_bc.lobc_advection_1D.exterior_boundary = ['Right']

◆ exterior_subdomains

list examples.dg.open_bc.lobc_advection_1D.exterior_subdomains = ['exterior']

◆ fluid_components

list examples.dg.open_bc.lobc_advection_1D.fluid_components = ['rho']

◆ gen_xdmf

examples.dg.open_bc.lobc_advection_1D.gen_xdmf

◆ host_action_lobc_mu

warpy examples.dg.open_bc.lobc_advection_1D.host_action_lobc_mu = q_lobc_right.calc_dmu()

◆ host_actions_lobc_pre_ti

warpy examples.dg.open_bc.lobc_advection_1D.host_actions_lobc_pre_ti = q_lobc_right.create_pre_ti_hostactions()

◆ ic_applicators

list examples.dg.open_bc.lobc_advection_1D.ic_applicators = []

◆ ic_applicators_lobc

warpy examples.dg.open_bc.lobc_advection_1D.ic_applicators_lobc
Initial value:
1= q_lobc_right.vars_setup(
2 direction = [1, 0, 0],
3 center = [2.5,0.,0.],
4 transitionwidth = .25
5)

◆ interior_bc_apps

list examples.dg.open_bc.lobc_advection_1D.interior_bc_apps = []

◆ interior_subdomains

list examples.dg.open_bc.lobc_advection_1D.interior_subdomains = ['interior']

◆ interior_to_transition_boundary

list examples.dg.open_bc.lobc_advection_1D.interior_to_transition_boundary = ['tLeft']

◆ lacuna_time

float examples.dg.open_bc.lobc_advection_1D.lacuna_time = 1.0,

◆ mesh

warpy examples.dg.open_bc.lobc_advection_1D.mesh
Initial value:
2 MeshFile = str(mesh_file + '.inp'),
3 NumLayers = 1,
4 PeriodicBoundaries= None,
5 basis_array_set =sorder
6 )
general unstructured mesh
Definition: mesh.py:56

◆ mesh_file

str examples.dg.open_bc.lobc_advection_1D.mesh_file = "meshes/mesh_1D_3subdomain-n501"

◆ null_function

warpy examples.dg.open_bc.lobc_advection_1D.null_function
Initial value:
2 name = 'null_func',
3 value = 0.
4)
Function which sets field to a given uniform value.
Definition: set_to.py:4

◆ open_boundary

list examples.dg.open_bc.lobc_advection_1D.open_boundary = ['tRight']

◆ q

warpy examples.dg.open_bc.lobc_advection_1D.q
Initial value:
2 name = variable_name,
3 components = fluid_components,
4 subdomains = interior_subdomains + tran_subdomains,
5 virtual_subdomains = exterior_subdomains,
6 basis_array_set = sorder
7)
Definition: variable.py:4

◆ q_lobc_right

warpy examples.dg.open_bc.lobc_advection_1D.q_lobc_right
Initial value:
2 interior_variable = q,
3 sorder = sorder,
4 lacuna_time = lacuna_time,
5 reintegration_time = reintegration_time,
6 interior_subdomains = interior_subdomains,
7 tran_subdomains = tran_subdomains,
8 exterior_subdomains = exterior_subdomains,
9 interior_to_transition_boundary = interior_to_transition_boundary,
10 open_boundary = open_boundary,
11 exterior_boundary = exterior_boundary,
12 other_tran_subdomain_boundaries = None
13)
A class that automates Lacuna based open boundary (LOBC) setup.
Definition: lobc.py:5

Lacuna-based open boundary condition (LOBC) setup

◆ reintegration_time

float examples.dg.open_bc.lobc_advection_1D.reintegration_time = 3.0,

◆ sim

warpy examples.dg.open_bc.lobc_advection_1D.sim
Initial value:
2 name = 'lobc_advection_1D_3rdOrd_1',
3 meshes = [mesh],
4 initial_conditions = ic_applicators + ic_applicators_lobc,
5 extra_start_host_actions = [host_action_lobc_mu],
6 temporal_solvers = [temporal_solver, temporal_solver_lobc],
7 pre_ti_host_actions = host_actions_lobc_pre_ti,
8 writers = [writer],
9 time = [0, dt_final],
10 dt_controller = dt_controller,
11 flexible_writeout = False,
12 write_steps = write_steps,
13 verbosity = 'info'
14)
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ sorder

str examples.dg.open_bc.lobc_advection_1D.sorder = 'thirdOrder'

◆ spatial_solvers

list examples.dg.open_bc.lobc_advection_1D.spatial_solvers = []

◆ temporal_solver

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

◆ temporal_solver_lobc

warpy examples.dg.open_bc.lobc_advection_1D.temporal_solver_lobc
Initial value:
1= q_lobc_right.create_temporal_solver(
2 torder = torder,
3 apps_flux_interior_var = [app_flux_q],
4 apps_source_interior_var = None,
5 apps_flux_aux_vars = [app_flux_w, app_flux_wlacuna],
6 apps_source_aux_vars = None,
7)

◆ torder

str examples.dg.open_bc.lobc_advection_1D.torder = 'RK2'

◆ tran_subdomains

list examples.dg.open_bc.lobc_advection_1D.tran_subdomains = ['transition']

◆ True

examples.dg.open_bc.lobc_advection_1D.True

◆ use_limiters

bool examples.dg.open_bc.lobc_advection_1D.use_limiters = False

◆ variable_adjusters

list examples.dg.open_bc.lobc_advection_1D.variable_adjusters = []

◆ variable_name

str examples.dg.open_bc.lobc_advection_1D.variable_name = 'fluid'

◆ velocity

examples.dg.open_bc.lobc_advection_1D.velocity = [1.0,0.0,0.0]

◆ write_steps

int examples.dg.open_bc.lobc_advection_1D.write_steps = 100

◆ writer

warpy examples.dg.open_bc.lobc_advection_1D.writer
Initial value:
2 name = 'writer',
3 ReadVars = [q, q_lobc_right.w, q_lobc_right.wlacuna, q_lobc_right.mu, q_lobc_right.dmu]
4)
Writes out a list of variables.
Definition: writer.py:4