|
Nektar++
|
#include <TestNeumann.hpp>
Public Member Functions | |
| TestNeumann ()=default | |
| void | SetTestCase (const double time=0.0) |
| void | RunTestCase (const double time=0.0) |
| void | ExpectedSolution (const double time=0.0) |
| bool | CompareSurfaceIntegral (const double tol) |
Public Member Functions inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField > | |
| TestOp ()=default | |
| virtual | ~TestOp () |
| void | Configure (void) |
| void | Configure3DH1 (const unsigned int nhomo=1) |
| void | Configure3DH2 (const unsigned int nhomoY=1, const unsigned int nhomoZ=1) |
| void | SetSession (void) |
| void | SetExpList (void) |
| void | SetExpList3DH1 (const unsigned int nhomo=1) |
| void | SetExpList3DH2 (const unsigned int nhomoY=1, const unsigned int nhomoZ=1) |
| virtual void | SetFixture (const unsigned int nhomo) |
| virtual bool | Compare (TData tol) |
| Compare this field to another field, with absolute tolerance tol. The two must have the same blocks and components; their interleave widths may differ. | |
Protected Attributes | |
| std::vector< TData > | surfaceIntegral |
| std::vector< double > | expectedSurfaceIntegral |
| std::string | excludedUserDefinedType = "" |
| bool | isExcludedAfterUse = false |
Protected Attributes inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField > | |
| std::string | meshName |
| Field< TData, stateIn > * | fixt_in |
| Field< TData, stateOut > * | fixt_out |
| Field< TData, stateIn > * | fixt_out_2 |
| Field< TData, stateOut > * | fixt_expected |
| std::shared_ptr< MultiRegions::ExpList > | fixt_explist |
| LibUtilities::SessionReaderSharedPtr | session |
Additional Inherited Members | |
Static Public Member Functions inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField > | |
| static void | MixInterleaveWidths (TField &field) |
Put the blocks of field at alternating interleave widths, the execution space's vector width on even blocks and 1 on odd ones, reshaping the data in place: a field whose blocks differ in width, for an operator that must read any mix, such as the trace flux, which addresses each trace at the width of the element block it lies in. On Serial every width is 1 and nothing changes. | |
Definition at line 48 of file TestNeumann.hpp.
|
default |
|
inline |
Definition at line 167 of file TestNeumann.hpp.
References TestNeumann< TData >::expectedSurfaceIntegral, and TestNeumann< TData >::surfaceIntegral.
|
inline |
Definition at line 98 of file TestNeumann.hpp.
References ASSERTL0, Nektar::SpatialDomains::eNeumann, Nektar::Collections::eNoCollection, Nektar::MultiRegions::ExpList::EvaluateBoundaryConditions(), TestNeumann< TData >::excludedUserDefinedType, TestNeumann< TData >::expectedSurfaceIntegral, TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::fixt_expected, TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::fixt_in, Nektar::MultiRegions::ExpList::GetBndCondExpansions(), Nektar::MultiRegions::ExpList::GetBndConditions(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::StringUtils::IEquals(), Nektar::MultiRegions::ExpList::ImposeNeumannConditions(), Vmath::Vsum(), and Vmath::Zero().
Referenced by TestNeumann< TData >::SetTestCase().
|
inline |
Definition at line 63 of file TestNeumann.hpp.
References Nektar::MultiRegions::NeuBndCondOp< TData >::Create(), Nektar::eHostPinned, TestNeumann< TData >::excludedUserDefinedType, TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::fixt_out, Nektar::MultiRegions::Operator< TData >::GetOpExecSpace(), TestNeumann< TData >::isExcludedAfterUse, TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::session, Nektar::LibUtilities::Field< TData, TState >::SetInterleaveWidth(), and TestNeumann< TData >::surfaceIntegral.
|
inline |
Definition at line 54 of file TestNeumann.hpp.
References TestNeumann< TData >::ExpectedSolution(), and TestOp< TData, FieldState::Coeff, FieldState::Coeff, MultiRegions::ContField >::fixt_out.
|
protected |
Definition at line 197 of file TestNeumann.hpp.
Referenced by TestNeumann< TData >::ExpectedSolution(), and TestNeumann< TData >::RunTestCase().
|
protected |
Definition at line 195 of file TestNeumann.hpp.
Referenced by TestNeumann< TData >::CompareSurfaceIntegral(), and TestNeumann< TData >::ExpectedSolution().
|
protected |
Definition at line 199 of file TestNeumann.hpp.
Referenced by TestNeumann< TData >::RunTestCase().
|
protected |
Definition at line 194 of file TestNeumann.hpp.
Referenced by TestNeumann< TData >::CompareSurfaceIntegral(), and TestNeumann< TData >::RunTestCase().