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

Variables

str torder = 'SSPRK3'
 
str sorder = 'secondOrder'
 
float fluid_velocity = 0.0
 
float fluid_density = 1.0
 
float sound_speed = 1.0
 
bool periodic_boundary_conditions = True
 
bool use_limiters = True
 
warpy mesh = warpy.mesh.block(Bounds=[-0.5, 0.5],NumCells=[512],NodeSets=['Left', 'Right'],NumLayers=1,PeriodicBoundaries=['Left','Right'] if periodic_boundary_conditions else None,basis_array_set=sorder)
 
warpy fluid = warpy.variable(name='fluid',components=['p', 'u'],basis_array_set=sorder)
 
warpy fluid_ic = warpy.functions.bandpass(name='fluid_ic', width=[0.25])
 
list applicators = [warpy.applicator(spatial_order=sorder,fun=fluid_ic,var=fluid, components = ['p'],spatial_scheme='Nodal')]
 
list apps = [warpy.apps.linear_acoustics(name='linear_acoustics', variable=fluid,fluid_velocity=fluid_velocity, fluid_density = fluid_density, sound_speed = sound_speed )]
 
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 dt_controller = warpy.dt_calc.fixed_dt(1.e-4);
 
warpy ti = warpy.host_actions.erk(name='rkdg',scheme=torder,spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)
 
warpy sim = warpy.dg_sim(name='linear_acoustics_alpha1000_rossmanith_third_order',meshes=[mesh],initial_conditions=applicators,temporal_solvers=[ti],writers=[writer],time=[0,1.0],dt_controller=dt_controller,write_steps=100,verbosity='info')
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 

Variable Documentation

◆ applicators

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

◆ apps

list examples.dg.advection.linear_acoustics.apps = [warpy.apps.linear_acoustics(name='linear_acoustics', variable=fluid,fluid_velocity=fluid_velocity, fluid_density = fluid_density, sound_speed = sound_speed )]

◆ bc_apps

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

◆ detect_nonscalar

examples.dg.advection.linear_acoustics.detect_nonscalar

◆ dt_controller

warpy examples.dg.advection.linear_acoustics.dt_controller = warpy.dt_calc.fixed_dt(1.e-4);

◆ fluid

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

◆ fluid_density

float examples.dg.advection.linear_acoustics.fluid_density = 1.0

◆ fluid_ic

warpy examples.dg.advection.linear_acoustics.fluid_ic = warpy.functions.bandpass(name='fluid_ic', width=[0.25])

◆ fluid_velocity

float examples.dg.advection.linear_acoustics.fluid_velocity = 0.0

◆ gen_xdmf

examples.dg.advection.linear_acoustics.gen_xdmf

◆ mesh

warpy examples.dg.advection.linear_acoustics.mesh = warpy.mesh.block(Bounds=[-0.5, 0.5],NumCells=[512],NodeSets=['Left', 'Right'],NumLayers=1,PeriodicBoundaries=['Left','Right'] if periodic_boundary_conditions else None,basis_array_set=sorder)

◆ periodic_boundary_conditions

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

◆ sim

warpy examples.dg.advection.linear_acoustics.sim = warpy.dg_sim(name='linear_acoustics_alpha1000_rossmanith_third_order',meshes=[mesh],initial_conditions=applicators,temporal_solvers=[ti],writers=[writer],time=[0,1.0],dt_controller=dt_controller,write_steps=100,verbosity='info')

◆ sorder

str examples.dg.advection.linear_acoustics.sorder = 'secondOrder'

◆ sound_speed

float examples.dg.advection.linear_acoustics.sound_speed = 1.0

◆ spatial_solver

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

◆ ti

warpy examples.dg.advection.linear_acoustics.ti = warpy.host_actions.erk(name='rkdg',scheme=torder,spatial_solvers=[spatial_solver], variable_adjusters=variable_adjusters)

◆ torder

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

◆ True

examples.dg.advection.linear_acoustics.True

◆ use_limiters

bool examples.dg.advection.linear_acoustics.use_limiters = True

◆ variable_adjusters

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

◆ writer

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