Peano
Loading...
Searching...
No Matches
exagrype::ccz4::tests::FlatSpacetimeTest Class Reference

Sanity checks of the CCZ4 kernels against flat (Minkowski) spacetime. More...

#include <FlatSpacetimeTest.h>

Inheritance diagram for exagrype::ccz4::tests::FlatSpacetimeTest:
Collaboration diagram for exagrype::ccz4::tests::FlatSpacetimeTest:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ FlatSpacetimeTest()

exagrype::ccz4::tests::FlatSpacetimeTest::FlatSpacetimeTest ( )

Member Function Documentation

◆ run()

virtual void exagrype::ccz4::tests::FlatSpacetimeTest::run ( )
overridevirtual

This routine is triggered by the TestCaseCollection.

Implements tarch::tests::TestCase.

◆ testCentralDifferenceReconstructionIsExactForQuadratics()

void exagrype::ccz4::tests::FlatSpacetimeTest::testCentralDifferenceReconstructionIsExactForQuadratics ( )
private

◆ testConstraintEnforcementOfEvolvedVariablesMatchesFullEnforcement()

void exagrype::ccz4::tests::FlatSpacetimeTest::testConstraintEnforcementOfEvolvedVariablesMatchesFullEnforcement ( )
private

◆ testFirstDerivativeReconstructionIsExactForCubics()

void exagrype::ccz4::tests::FlatSpacetimeTest::testFirstDerivativeReconstructionIsExactForCubics ( )
private

◆ testGaugeWaveLapse()

void exagrype::ccz4::tests::FlatSpacetimeTest::testGaugeWaveLapse ( )
private

◆ testMaxEigenvalueOfFlatSpacetime()

void exagrype::ccz4::tests::FlatSpacetimeTest::testMaxEigenvalueOfFlatSpacetime ( )
private

◆ testNonconservativeProductVanishes()

void exagrype::ccz4::tests::FlatSpacetimeTest::testNonconservativeProductVanishes ( )
private

◆ testSecondaryEntriesInSeparateMemory()

void exagrype::ccz4::tests::FlatSpacetimeTest::testSecondaryEntriesInSeparateMemory ( )
private

◆ testSourceVanishes()

void exagrype::ccz4::tests::FlatSpacetimeTest::testSourceVanishes ( )
private

The documentation for this class was generated from the following file: