Peano 4
Loading...
Searching...
No Matches
acoustic-wave Namespace Reference

Variables

int dimensions = 2
 
int patch_size = 16
 
float volume_size = 0.1
 
int end_time = 1
 
list size = [10.0, 10.0, 10.0]
 
list offset = [0.0, 0.0, 0.0]
 
bool use_make = True
 
bool visualise = False
 
int time_in_between_two_snapshots = end_time / 100
 
 compile_mode = peano4.output.CompileMode.Release
 
 my_project
 
 my_solver
 
 my_pde
 
 p = my_pde.name_Q_entry(0, "p")
 
 v = my_pde.name_Q_entries(1, dimensions, "v")
 
 rho = sympy.symbols("rho")
 
 c = sympy.symbols("c")
 
 K0 = rho * c * c
 
 sigma = sympy.symbols("sigma")
 
 t0 = sympy.symbols("t0")
 
 M0 = sympy.symbols("M0")
 
 t = sympy.symbols("t")
 
 max_h = sympy.symbols("MaxAdmissibleVolumeH")
 
 force = M0 * sympy.exp(-((t - t0) * (t - t0)) / (2.0 * sigma * sigma))
 
 point_source = sympy.sqrt((5 - my_pde.x[0]) ** 2 + (5 - my_pde.x[1]) ** 2)
 
 initial_conditions
 
 boundary_conditions
 
 flux
 
 eigenvalues
 
 source_term
 
 plot_description
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 time_in_between_plots
 
 periodic_BC = [True, True, True]
 
str output_patch_file = "solution/solution-AcousticWaveSolver.peano-patch-file"
 
 mode
 
 make
 
 make_clean_first
 
 True
 
 throw_away_data_after_build
 
float cell_size = 0.1
 
int amr_levels = 2
 
int rk_order = 2
 
int dg_order = 1
 
float plot_interval = end_time / 100
 
float wave_speed = 6.0
 
list scenarios
 
str scenario = "PointExplosion"
 
dict fv_rusanov_solvers
 
dict rkdg_rusanov_solvers
 
dict aderdg_rusanov_solvers
 
dict solvers = {}
 
str solver = "ADERDGRusanovGlobalAdaptive"
 
dict build_modes
 
str build_mode = "Release"
 
dict storage_types
 
str storage_type = "CallStack"
 
 parser
 
 dest
 
 choices
 
 default
 
 help
 
 type
 
 action
 
 int
 
 args = parser.parse_args()
 
 executable_name = args.executable
 
str solver_name = "AcousticWave_ADERDG"
 
dict unknowns = {"p": 1, "v": args.dim}
 
 cell_data_storage
 
 face_data_storage
 
float min_h = args.max_cell_size * 3.0 ** (-args.amr_levels)
 
float admissible_time_step_size = min_h / patch_size * 0.5
 
 is_linear
 
 use_kernel_generator
 
 architecture
 
 refinement_criterion
 
 ncp
 
str solution_dir = str(args.output_path) + "-" + str(executable_name)
 
 no_make
 

Variable Documentation

◆ action

acoustic-wave.action

Definition at line 151 of file acoustic-wave.py.

◆ aderdg_rusanov_solvers

◆ admissible_time_step_size

float acoustic-wave.admissible_time_step_size = min_h / patch_size * 0.5

Definition at line 357 of file acoustic-wave.py.

◆ amr_levels

int acoustic-wave.amr_levels = 2

Definition at line 13 of file acoustic-wave.py.

◆ architecture

acoustic-wave.architecture

Definition at line 423 of file acoustic-wave.py.

◆ args

acoustic-wave.args = parser.parse_args()

Definition at line 255 of file acoustic-wave.py.

◆ boundary_conditions

acoustic-wave.boundary_conditions

Definition at line 207 of file acoustic-wave.py.

◆ build_mode

str acoustic-wave.build_mode = "Release"

Definition at line 60 of file acoustic-wave.py.

◆ build_modes

dict acoustic-wave.build_modes
Initial value:
1= {
2 "Release": peano4.output.CompileMode.Release,
3 "Trace": peano4.output.CompileMode.Trace,
4 "Assert": peano4.output.CompileMode.Asserts,
5 "Stats": peano4.output.CompileMode.Stats,
6 "Debug": peano4.output.CompileMode.Debug,
7}

Definition at line 53 of file acoustic-wave.py.

◆ c

acoustic-wave.c = sympy.symbols("c")

Definition at line 104 of file acoustic-wave.py.

◆ cell_data_storage

acoustic-wave.cell_data_storage

Definition at line 342 of file acoustic-wave.py.

◆ cell_size

float acoustic-wave.cell_size = 0.1

Definition at line 12 of file acoustic-wave.py.

◆ choices

acoustic-wave.choices

Definition at line 77 of file acoustic-wave.py.

◆ compile_mode

acoustic-wave.compile_mode = peano4.output.CompileMode.Release

Definition at line 63 of file acoustic-wave.py.

◆ default

acoustic-wave.default

Definition at line 78 of file acoustic-wave.py.

◆ dest

acoustic-wave.dest

Definition at line 76 of file acoustic-wave.py.

◆ dg_order

int acoustic-wave.dg_order = 1

Definition at line 16 of file acoustic-wave.py.

◆ dimensions

int acoustic-wave.dimensions = 2

Definition at line 21 of file acoustic-wave.py.

◆ eigenvalues

acoustic-wave.eigenvalues

Definition at line 209 of file acoustic-wave.py.

◆ end_time

float acoustic-wave.end_time = 1

Definition at line 36 of file acoustic-wave.py.

◆ executable_name

tuple acoustic-wave.executable_name = args.executable

Definition at line 298 of file acoustic-wave.py.

◆ face_data_storage

acoustic-wave.face_data_storage

Definition at line 343 of file acoustic-wave.py.

◆ first_plot_time_stamp

acoustic-wave.first_plot_time_stamp

Definition at line 233 of file acoustic-wave.py.

◆ flux

acoustic-wave.flux

Definition at line 208 of file acoustic-wave.py.

◆ force

acoustic-wave.force = M0 * sympy.exp(-((t - t0) * (t - t0)) / (2.0 * sigma * sigma))

Definition at line 178 of file acoustic-wave.py.

◆ fv_rusanov_solvers

◆ help

acoustic-wave.help

Definition at line 79 of file acoustic-wave.py.

◆ initial_conditions

acoustic-wave.initial_conditions

Definition at line 206 of file acoustic-wave.py.

◆ int

acoustic-wave.int

Definition at line 230 of file acoustic-wave.py.

◆ is_linear

acoustic-wave.is_linear

Definition at line 423 of file acoustic-wave.py.

◆ K0

acoustic-wave.K0 = rho * c * c

Definition at line 105 of file acoustic-wave.py.

◆ M0

acoustic-wave.M0 = sympy.symbols("M0")

Definition at line 174 of file acoustic-wave.py.

◆ make

acoustic-wave.make

Definition at line 295 of file acoustic-wave.py.

◆ make_clean_first

acoustic-wave.make_clean_first

Definition at line 295 of file acoustic-wave.py.

◆ max_end_time

acoustic-wave.max_end_time

Definition at line 232 of file acoustic-wave.py.

◆ max_h

acoustic-wave.max_h = sympy.symbols("MaxAdmissibleVolumeH")

Definition at line 177 of file acoustic-wave.py.

◆ min_end_time

acoustic-wave.min_end_time

Definition at line 231 of file acoustic-wave.py.

◆ min_h

float acoustic-wave.min_h = args.max_cell_size * 3.0 ** (-args.amr_levels)

Definition at line 356 of file acoustic-wave.py.

◆ mode

acoustic-wave.mode

Definition at line 275 of file acoustic-wave.py.

◆ my_pde

acoustic-wave.my_pde
Initial value:
2 unknowns=dimensions + 1, auxiliary_variables=0, dimensions=dimensions
3)
Helper class to model a hyperbolic PDE in first-order conservative formulation.

Definition at line 97 of file acoustic-wave.py.

◆ my_project

acoustic-wave.my_project
Initial value:
2 namespace=["tutorials", "exahype2", "acousticwave"],
3 project_name="AcousticWaveTutorial",
4 directory=".",
5 executable="acoustic-wave-" + str(dimensions) + "d",
6)
ExaHyPE 2 project.
Definition Project.py:18

Definition at line 70 of file acoustic-wave.py.

◆ my_solver

dict acoustic-wave.my_solver
Initial value:
2 name="AcousticWaveSolver",
3 patch_size=patch_size,
4 unknowns=dimensions + 1, # [p, u, v, (w)]
5 auxiliary_variables=0,
6 min_volume_h=volume_size,
7 max_volume_h=volume_size,
8 time_step_relaxation=0.5,
9)

Definition at line 83 of file acoustic-wave.py.

◆ ncp

acoustic-wave.ncp

Definition at line 446 of file acoustic-wave.py.

◆ no_make

acoustic-wave.no_make

Definition at line 537 of file acoustic-wave.py.

◆ offset

acoustic-wave.offset = [0.0, 0.0, 0.0]

Definition at line 42 of file acoustic-wave.py.

◆ output_patch_file

tuple acoustic-wave.output_patch_file = "solution/solution-AcousticWaveSolver.peano-patch-file"

Definition at line 247 of file acoustic-wave.py.

◆ p

acoustic-wave.p = my_pde.name_Q_entry(0, "p")

Definition at line 100 of file acoustic-wave.py.

◆ parser

acoustic-wave.parser
Initial value:
1= argparse.ArgumentParser(
2 description="ExaHyPE 2 - Acoustic Wave Application Script"
3)

Definition at line 69 of file acoustic-wave.py.

◆ patch_size

int acoustic-wave.patch_size = 16

Definition at line 26 of file acoustic-wave.py.

◆ periodic_BC

list acoustic-wave.periodic_BC = [True, True, True]

Definition at line 235 of file acoustic-wave.py.

◆ plot_description

acoustic-wave.plot_description

Definition at line 217 of file acoustic-wave.py.

◆ plot_interval

float acoustic-wave.plot_interval = end_time / 100

Definition at line 18 of file acoustic-wave.py.

◆ point_source

acoustic-wave.point_source = sympy.sqrt((5 - my_pde.x[0]) ** 2 + (5 - my_pde.x[1]) ** 2)

Definition at line 181 of file acoustic-wave.py.

◆ refinement_criterion

acoustic-wave.refinement_criterion

Definition at line 444 of file acoustic-wave.py.

◆ rho

float acoustic-wave.rho = sympy.symbols("rho")

Definition at line 103 of file acoustic-wave.py.

◆ rk_order

int acoustic-wave.rk_order = 2

Definition at line 15 of file acoustic-wave.py.

◆ rkdg_rusanov_solvers

◆ scenario

str acoustic-wave.scenario = "PointExplosion"

Definition at line 27 of file acoustic-wave.py.

◆ scenarios

list acoustic-wave.scenarios
Initial value:
1= [
2 "PointExplosion",
3]

Definition at line 24 of file acoustic-wave.py.

◆ sigma

float acoustic-wave.sigma = sympy.symbols("sigma")

Definition at line 172 of file acoustic-wave.py.

◆ size

acoustic-wave.size = [10.0, 10.0, 10.0]

Definition at line 41 of file acoustic-wave.py.

◆ solution_dir

str acoustic-wave.solution_dir = str(args.output_path) + "-" + str(executable_name)

Definition at line 478 of file acoustic-wave.py.

◆ solver

str acoustic-wave.solver = "ADERDGRusanovGlobalAdaptive"

Definition at line 51 of file acoustic-wave.py.

◆ solver_name

str acoustic-wave.solver_name = "AcousticWave_ADERDG"

Definition at line 320 of file acoustic-wave.py.

◆ solvers

dict acoustic-wave.solvers = {}

Definition at line 47 of file acoustic-wave.py.

◆ source_term

acoustic-wave.source_term

Definition at line 210 of file acoustic-wave.py.

◆ storage_type

str acoustic-wave.storage_type = "CallStack"

Definition at line 67 of file acoustic-wave.py.

◆ storage_types

dict acoustic-wave.storage_types
Initial value:
1= {
2 "CallStack": exahype2.solvers.fv.Storage.CallStack,
3 "Heap": exahype2.solvers.fv.Storage.Heap,
4 "SmartPointers": exahype2.solvers.fv.Storage.SmartPointers,
5}

Definition at line 62 of file acoustic-wave.py.

◆ t

acoustic-wave.t = sympy.symbols("t")

Definition at line 175 of file acoustic-wave.py.

◆ t0

acoustic-wave.t0 = sympy.symbols("t0")

Definition at line 173 of file acoustic-wave.py.

◆ throw_away_data_after_build

acoustic-wave.throw_away_data_after_build

Definition at line 295 of file acoustic-wave.py.

◆ time_in_between_plots

acoustic-wave.time_in_between_plots

Definition at line 234 of file acoustic-wave.py.

◆ time_in_between_two_snapshots

int acoustic-wave.time_in_between_two_snapshots = end_time / 100

Definition at line 57 of file acoustic-wave.py.

◆ True

acoustic-wave.True

Definition at line 295 of file acoustic-wave.py.

◆ type

acoustic-wave.type

Definition at line 85 of file acoustic-wave.py.

◆ unknowns

dict acoustic-wave.unknowns = {"p": 1, "v": args.dim}

Definition at line 326 of file acoustic-wave.py.

◆ use_kernel_generator

acoustic-wave.use_kernel_generator

Definition at line 423 of file acoustic-wave.py.

◆ use_make

acoustic-wave.use_make = True

Definition at line 47 of file acoustic-wave.py.

◆ v

acoustic-wave.v = my_pde.name_Q_entries(1, dimensions, "v")

Definition at line 101 of file acoustic-wave.py.

◆ visualise

bool acoustic-wave.visualise = False

Definition at line 52 of file acoustic-wave.py.

◆ volume_size

float acoustic-wave.volume_size = 0.1

Definition at line 31 of file acoustic-wave.py.

◆ wave_speed

float acoustic-wave.wave_speed = 6.0

Definition at line 21 of file acoustic-wave.py.