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 testMaxEigenvalueOfFlatSpacetime ()
 
void testGaugeWaveLapse ()
 

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.

Definition at line 27 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.

◆ testGaugeWaveLapse()

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

◆ testMaxEigenvalueOfFlatSpacetime()

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

◆ testNonconservativeProductVanishes()

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

◆ testSourceVanishes()

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

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