#include <SelfSimilarInfallFD4.h>
|
| | SelfSimilarInfallFD4 () |
| void | addDensity (const tarch::la::Vector< Dimensions, double > &volumeCentre, const tarch::la::Vector< Dimensions, double > &volumeH, double density) |
| | Add density of one voxel to global bookkeeping.
|
| void | finishTimeStep () override |
| ::exahype2::RefinementCommand | refinementCriterion (const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &volumeCentre, const tarch::la::Vector< Dimensions, double > &volumeH, double t) override |
| | Refinement criterion.
|
| void | initialCondition (double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &volumeCentre, const tarch::la::Vector< Dimensions, double > &volumeH, bool gridIsConstructed) override |
| virtual void | boundaryConditions (const double *__restrict__ Qinside, double *__restrict__ Qoutside, const tarch::la::Vector< Dimensions, double > &faceCentre, const tarch::la::Vector< Dimensions, double > &volumeH, double t, int normal) override |
| void | sourceTerm (const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &gridCellCentre, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, double *__restrict__ S) override |
| virtual double | maxEigenvalue (const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &faceCentre, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, int normal) override |
| | Determine max eigenvalue over Jacobian in a given point with solution values (states) Q.
|
| virtual void | flux (const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &faceCentre, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, int normal, double *__restrict__ F) override |
|
| ::applications::exahype2::euler::sphericalaccretion::MassAccumulator | _accumulator |
| | Use class from application folders.
|
Definition at line 30 of file SelfSimilarInfallFD4.h.
◆ SelfSimilarInfallFD4()
| benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::SelfSimilarInfallFD4 |
( |
| ) |
|
◆ addDensity()
| void benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::addDensity |
( |
const tarch::la::Vector< Dimensions, double > & | volumeCentre, |
|
|
const tarch::la::Vector< Dimensions, double > & | volumeH, |
|
|
double | density ) |
Add density of one voxel to global bookkeeping.
◆ boundaryConditions()
| virtual void benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::boundaryConditions |
( |
const double *__restrict__ | Qinside, |
|
|
double *__restrict__ | Qoutside, |
|
|
const tarch::la::Vector< Dimensions, double > & | faceCentre, |
|
|
const tarch::la::Vector< Dimensions, double > & | volumeH, |
|
|
double | t, |
|
|
int | normal ) |
|
overridevirtual |
◆ finishTimeStep()
| void benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::finishTimeStep |
( |
| ) |
|
|
override |
◆ flux()
| virtual void benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::flux |
( |
const double *__restrict__ | Q, |
|
|
const tarch::la::Vector< Dimensions, double > & | faceCentre, |
|
|
const tarch::la::Vector< Dimensions, double > & | gridCellH, |
|
|
double | t, |
|
|
double | dt, |
|
|
int | normal, |
|
|
double *__restrict__ | F ) |
|
overridevirtual |
◆ initialCondition()
| void benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::initialCondition |
( |
double *__restrict__ | Q, |
|
|
const tarch::la::Vector< Dimensions, double > & | volumeCentre, |
|
|
const tarch::la::Vector< Dimensions, double > & | volumeH, |
|
|
bool | gridIsConstructed ) |
|
override |
◆ maxEigenvalue()
| virtual double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::maxEigenvalue |
( |
const double *__restrict__ | Q, |
|
|
const tarch::la::Vector< Dimensions, double > & | faceCentre, |
|
|
const tarch::la::Vector< Dimensions, double > & | gridCellH, |
|
|
double | t, |
|
|
double | dt, |
|
|
int | normal ) |
|
overridevirtual |
Determine max eigenvalue over Jacobian in a given point with solution values (states) Q.
All parameters are in.
- Returns
- Max eigenvalue. Result has to be positive, so we are actually speaking about the maximum absolute eigenvalue.
◆ refinementCriterion()
Refinement criterion.
ExaHypE2 is guided by a maximum and minimum mesh (patch) size. All (dynamic) AMR is constrained by these values, i.e. if your mesh is coarser than the maximum mesh size, ExaHyPE 2 will automatically refine. If you try to refine further than the minimum mesh size, ExaHyPE 2 will ignore any refinement.
Consequently, you are fine if you work with a regular mesh: You set the maximum mesh size, and you leave everything else to Peano 4/ExaHyPE 2. If you want to have an adaptive mesh, use this routine to implement the refinement pattern.
- Parameters
-
| Q | This is the (current) solution. The data is not set to a valid value throughout grid construction. That is: If t equals 0.0, you cannot assume that Q is properly initialised. Therefore, Q usually is only evaluated by dynamic AMR codes which make the solution follow |
◆ sourceTerm()
| void benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::sourceTerm |
( |
const double *__restrict__ | Q, |
|
|
const tarch::la::Vector< Dimensions, double > & | gridCellCentre, |
|
|
const tarch::la::Vector< Dimensions, double > & | gridCellH, |
|
|
double | t, |
|
|
double | dt, |
|
|
double *__restrict__ | S ) |
|
override |
◆ _accumulator
| ::applications::exahype2::euler::sphericalaccretion::MassAccumulator benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::_accumulator |
|
private |
◆ _log
| tarch::logging::Log benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::_log |
|
staticprivate |
◆ AdditionalMass
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::AdditionalMass = 0.15 |
|
staticconstexpr |
◆ aInitial
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::aInitial = 0.001 |
|
staticconstexpr |
◆ BaseDensity
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::BaseDensity = 0.1 |
|
staticconstexpr |
◆ Gamma
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::Gamma = 5.0/3.0 |
|
staticconstexpr |
◆ InitialTopHatRadius
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::InitialTopHatRadius = 0.05 |
|
staticconstexpr |
◆ pInitial
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::pInitial = 1e-6 |
|
staticconstexpr |
◆ TotalMassInPreviousTimeStep
| double benchmarks::exahype2::euler::sphericalaccretionupscaling::SelfSimilarInfallFD4::TotalMassInPreviousTimeStep |
|
staticprivate |
After each time step, we backup the total mass in this static variable.
It has to be static, as we want to use it in stateless terms later on.
Definition at line 43 of file SelfSimilarInfallFD4.h.
The documentation for this class was generated from the following file: