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

Variables

int dimensions = 2
 
int patch_size = 16
 
float volume_size = 0.1
 
int end_time = 1
 
list size = [20.0, 20.0, 20.0]
 
list offset = [-5.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
 
 v = my_pde.name_Q_entries(0, dimensions, "v")
 
 sigma = my_pde.name_Q_entries(dimensions, 3, "sigma")
 
 rho = sympy.symbols("rho")
 
 cp = sympy.symbols("cp")
 
 cs = sympy.symbols("cs")
 
 mu = rho * cs * cs
 
float lamb = rho * cp * cp - 2.0 * mu
 
 t0 = sympy.symbols("t0")
 
 M0 = sympy.symbols("M0")
 
 t = sympy.symbols("t")
 
 force = M0 * t / (t0 * t0) * (sympy.exp(-t / t0))
 
 max_h = sympy.symbols("MaxAdmissibleVolumeH")
 
 point_source = sympy.sqrt((10 - my_pde.x[0]) ** 2 + (10 - 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-ElasticWaveSolver.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 p_wave_speed = 6.0
 
float s_wave_speed = 3.464
 
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 = "ElasticWave_ADERDG"
 
dict unknowns = {"v": args.dim, "sigma": 3}
 
 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

elastic-wave.action

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

◆ aderdg_rusanov_solvers

◆ admissible_time_step_size

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

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

◆ amr_levels

int elastic-wave.amr_levels = 2

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

◆ architecture

elastic-wave.architecture

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

◆ args

elastic-wave.args = parser.parse_args()

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

◆ boundary_conditions

elastic-wave.boundary_conditions

Definition at line 187 of file elastic-wave.py.

◆ build_mode

str elastic-wave.build_mode = "Release"

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

◆ build_modes

dict elastic-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 elastic-wave.py.

◆ cell_data_storage

elastic-wave.cell_data_storage

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

◆ cell_size

float elastic-wave.cell_size = 0.1

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

◆ choices

elastic-wave.choices

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

◆ compile_mode

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

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

◆ cp

elastic-wave.cp = sympy.symbols("cp")

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

◆ cs

elastic-wave.cs = sympy.symbols("cs")

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

◆ default

elastic-wave.default

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

◆ dest

elastic-wave.dest

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

◆ dg_order

int elastic-wave.dg_order = 1

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

◆ dimensions

int elastic-wave.dimensions = 2

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

◆ eigenvalues

elastic-wave.eigenvalues

Definition at line 189 of file elastic-wave.py.

◆ end_time

float elastic-wave.end_time = 1

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

◆ executable_name

tuple elastic-wave.executable_name = args.executable

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

◆ face_data_storage

elastic-wave.face_data_storage

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

◆ first_plot_time_stamp

elastic-wave.first_plot_time_stamp

Definition at line 213 of file elastic-wave.py.

◆ flux

elastic-wave.flux

Definition at line 188 of file elastic-wave.py.

◆ force

elastic-wave.force = M0 * t / (t0 * t0) * (sympy.exp(-t / t0))

Definition at line 163 of file elastic-wave.py.

◆ fv_rusanov_solvers

◆ help

elastic-wave.help

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

◆ initial_conditions

elastic-wave.initial_conditions

Definition at line 186 of file elastic-wave.py.

◆ int

elastic-wave.int

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

◆ is_linear

elastic-wave.is_linear

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

◆ lamb

float elastic-wave.lamb = rho * cp * cp - 2.0 * mu

Definition at line 109 of file elastic-wave.py.

◆ M0

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

Definition at line 161 of file elastic-wave.py.

◆ make

elastic-wave.make

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

◆ make_clean_first

elastic-wave.make_clean_first

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

◆ max_end_time

elastic-wave.max_end_time

Definition at line 212 of file elastic-wave.py.

◆ max_h

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

Definition at line 165 of file elastic-wave.py.

◆ min_end_time

elastic-wave.min_end_time

Definition at line 211 of file elastic-wave.py.

◆ min_h

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

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

◆ mode

elastic-wave.mode

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

◆ mu

elastic-wave.mu = rho * cs * cs

Definition at line 108 of file elastic-wave.py.

◆ my_pde

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

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

◆ my_project

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

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

◆ my_solver

dict elastic-wave.my_solver
Initial value:
2 name="ElasticWaveSolver",
3 patch_size=patch_size,
4 unknowns=dimensions + 3, # [u, v, sxx, syy, sxy]
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 elastic-wave.py.

◆ ncp

elastic-wave.ncp

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

◆ no_make

elastic-wave.no_make

Definition at line 533 of file elastic-wave.py.

◆ offset

elastic-wave.offset = [-5.0, 0.0, 0.0]

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

◆ output_patch_file

tuple elastic-wave.output_patch_file = "solution/solution-ElasticWaveSolver.peano-patch-file"

Definition at line 227 of file elastic-wave.py.

◆ p_wave_speed

float elastic-wave.p_wave_speed = 6.0

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

◆ parser

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

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

◆ patch_size

int elastic-wave.patch_size = 16

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

◆ periodic_BC

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

Definition at line 215 of file elastic-wave.py.

◆ plot_description

elastic-wave.plot_description

Definition at line 197 of file elastic-wave.py.

◆ plot_interval

float elastic-wave.plot_interval = end_time / 100

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

◆ point_source

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

Definition at line 166 of file elastic-wave.py.

◆ refinement_criterion

elastic-wave.refinement_criterion

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

◆ rho

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

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

◆ rk_order

int elastic-wave.rk_order = 2

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

◆ rkdg_rusanov_solvers

◆ s_wave_speed

float elastic-wave.s_wave_speed = 3.464

Definition at line 22 of file elastic-wave.py.

◆ scenario

str elastic-wave.scenario = "PointExplosion"

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

◆ scenarios

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

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

◆ sigma

elastic-wave.sigma = my_pde.name_Q_entries(dimensions, 3, "sigma")

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

◆ size

elastic-wave.size = [20.0, 20.0, 20.0]

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

◆ solution_dir

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

Definition at line 475 of file elastic-wave.py.

◆ solver

str elastic-wave.solver = "ADERDGRusanovGlobalAdaptive"

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

◆ solver_name

str elastic-wave.solver_name = "ElasticWave_ADERDG"

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

◆ solvers

dict elastic-wave.solvers = {}

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

◆ source_term

elastic-wave.source_term

Definition at line 190 of file elastic-wave.py.

◆ storage_type

str elastic-wave.storage_type = "CallStack"

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

◆ storage_types

dict elastic-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 elastic-wave.py.

◆ t

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

Definition at line 162 of file elastic-wave.py.

◆ t0

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

Definition at line 160 of file elastic-wave.py.

◆ throw_away_data_after_build

elastic-wave.throw_away_data_after_build

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

◆ time_in_between_plots

elastic-wave.time_in_between_plots

Definition at line 214 of file elastic-wave.py.

◆ time_in_between_two_snapshots

int elastic-wave.time_in_between_two_snapshots = end_time / 100

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

◆ True

elastic-wave.True

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

◆ type

elastic-wave.type

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

◆ unknowns

dict elastic-wave.unknowns = {"v": args.dim, "sigma": 3}

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

◆ use_kernel_generator

elastic-wave.use_kernel_generator

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

◆ use_make

elastic-wave.use_make = True

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

◆ v

elastic-wave.v = my_pde.name_Q_entries(0, dimensions, "v")

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

◆ visualise

bool elastic-wave.visualise = False

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

◆ volume_size

float elastic-wave.volume_size = 0.1

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