|
Peano
|
Sanity checks of the CCZ4 kernels against flat (Minkowski) spacetime. More...
#include <FlatSpacetimeTest.h>


Public Member Functions | |
| FlatSpacetimeTest () | |
| virtual void | run () override |
| This routine is triggered by the TestCaseCollection. | |
| Public Member Functions inherited from tarch::tests::TestCase | |
| TestCase (const std::string &testCaseName) | |
| Constructor. | |
| virtual | ~TestCase () |
| Destructor. | |
| int | getNumberOfErrors () const |
| std::string | getTestCaseName () const |
Private Member Functions | |
| void | testNonconservativeProductVanishes () |
| void | testSourceVanishes () |
| void | testSecondaryEntriesInSeparateMemory () |
| void | testMaxEigenvalueOfFlatSpacetime () |
| void | testGaugeWaveLapse () |
| void | testFirstDerivativeReconstructionIsExactForCubics () |
| void | testCentralDifferenceReconstructionIsExactForQuadratics () |
| void | testConstraintEnforcementOfEvolvedVariablesMatchesFullEnforcement () |
Additional Inherited Members | |
| Protected Member Functions inherited from tarch::tests::TestCase | |
| TestCase ()=delete | |
| Protected Attributes inherited from tarch::tests::TestCase | |
| const std::string | _testCaseName |
| Name of the test case. | |
| int | _errors |
| Error counter. | |
| bool | _error |
| Indicate within macro if one specific validation failed. | |
Sanity checks of the CCZ4 kernels against flat (Minkowski) spacetime.
Flat spacetime with a unit lapse and zero shift is a stationary solution of the CCZ4 equations. If we take exagrype::initialvalues::flat() and set all gradients to zero, both the non-conservative product and the source therefore have to vanish. The test furthermore checks the maximum eigenvalue estimate for flat spacetime, and that the gauge wave initial data yields the analytically known lapse.
We also test two helpers of the second-order formulation here, as they do not warrant a test case of their own: that reconstructFirstDerivativesFD4() differentiates cubic polynomials exactly (for a halo of three and four), that reconstructFirstDerivativesCentralDifferences() does the same for quadratic polynomials (halo of one and two), and that enforceCCZ4constraintsOfEvolvedVariables() does the same to the first 25 entries as enforceCCZ4constraints().
Definition at line 36 of file FlatSpacetimeTest.h.
| exagrype::ccz4::tests::FlatSpacetimeTest::FlatSpacetimeTest | ( | ) |
|
overridevirtual |
This routine is triggered by the TestCaseCollection.
Implements tarch::tests::TestCase.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |