Peano
Loading...
Searching...
No Matches
PMLDynamicRuptureElastic.py
Go to the documentation of this file.
2 return """
3//This term is not present in the Zenodo repository at https://zenodo.org/records/6386282
4//however it is present in Leo's "phd" tag at https://gitlab.lrz.de/ExaHyPE-Seismic/ExaSeis/-/blob/leo/phd/Applications/DynamicRupture/PMLSlipWeakening/PMLSlipWeakening.cpp?ref_type=tags#L468
5// We are working on the assumption that it should be in there.
6
7 S[9] = -Q[0];
8 S[10] = -Q[1];
9 S[11] = -Q[2];
10"""
11
12
14 return """
15#define _CUSTOM_COORDINATES
16#define ASAGI_NOMPI
17#define _TOP 1
18
19#include "../ExaSeis_core/Curvilinear/ContextDynamicRupture.h"
20#include "../ExaSeis_core/Numerics/riemannsolverPMLDynamicRupture.h"
21
22#include "peano4/datamanagement/CellMarker.h"
23"""
24
25
27 return """
28public:
29 double QuadraturePoints1d[Order+1];
30
31 tarch::la::Vector<DIMENSIONS,double> invertProjection(const tarch::la::Vector<DIMENSIONS,double> coordinates);
32
33 static ContextDynamicRupture<VariableShortcutsElasticSolver, Order + 1, NumberOfUnknowns, NumberOfAuxiliaryVariables, {{SOLUTION_STORAGE_PRECISION}}>* context;
34
35protected:
36 static constexpr int pml_cell_width = 1;
37 static constexpr double pml_alpha_const = 1.5;
38 static constexpr double pml_alpha_scalar = 0.0;
39 static constexpr double pml_rel_error = 0.001;
40 static constexpr int pml_power = 1;
41"""