|
Nektar++
|
#include <TestHelmholtz.hpp>
Public Member Functions | |
| TestHelmholtz ()=default | |
| void | SetTestCase (const bool varDiffCoeff=false) |
| void | RunTestCase () |
| void | ExpectedSolution () |
| void | HomogeneousTrans (const std::shared_ptr< MultiRegions::ExpListHomogeneous1D > &homoExpList, const size_t ncoeffs, Array< OneD, TData > &coeffs, const bool forwards) |
Transform coeffs between physical z and wave space, one component at a time; Homogeneous1DTrans works in NekDouble whatever TData is. | |
Public Member Functions inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff > | |
| 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 | |
| VariableDiffusion< TData > | m_varDiffHelper |
| TData | m_lambda |
| std::vector< TData > | m_diffCoeff |
Protected Attributes inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff > | |
| 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 > | |
| 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 49 of file TestHelmholtz.hpp.
|
default |
|
inline |
Definition at line 173 of file TestHelmholtz.hpp.
References Nektar::LibUtilities::beta, Nektar::StdRegions::eFactorCoeffD00, Nektar::StdRegions::eFactorCoeffD01, Nektar::StdRegions::eFactorCoeffD02, Nektar::StdRegions::eFactorCoeffD11, Nektar::StdRegions::eFactorCoeffD12, Nektar::StdRegions::eFactorCoeffD22, Nektar::StdRegions::eFactorLambda, Nektar::StdRegions::eHelmholtz, el, TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_expected, TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), TestHelmholtz< TData >::HomogeneousTrans(), TestHelmholtz< TData >::m_diffCoeff, TestHelmholtz< TData >::m_lambda, TestHelmholtz< TData >::m_varDiffHelper, and Nektar::LibUtilities::Field< TData, TState >::ToArray().
Referenced by TestHelmholtz< TData >::SetTestCase().
|
inline |
Transform coeffs between physical z and wave space, one component at a time; Homogeneous1DTrans works in NekDouble whatever TData is.
Definition at line 286 of file TestHelmholtz.hpp.
References TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes().
Referenced by TestHelmholtz< TData >::ExpectedSolution().
|
inline |
Definition at line 155 of file TestHelmholtz.hpp.
References Nektar::MultiRegions::HelmholtzOp< TData >::Create(), TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_in, TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_out, TestHelmholtz< TData >::m_diffCoeff, TestHelmholtz< TData >::m_lambda, TestHelmholtz< TData >::m_varDiffHelper, and TestOp< TData, FieldState::Coeff, FieldState::Coeff >::session.
|
inline |
Definition at line 54 of file TestHelmholtz.hpp.
References el, TestHelmholtz< TData >::ExpectedSolution(), TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), TestHelmholtz< TData >::m_diffCoeff, TestHelmholtz< TData >::m_lambda, TestHelmholtz< TData >::m_varDiffHelper, and TestOp< TData, FieldState::Coeff, FieldState::Coeff >::session.
|
protected |
Definition at line 317 of file TestHelmholtz.hpp.
Referenced by TestHelmholtz< TData >::ExpectedSolution(), TestHelmholtz< TData >::RunTestCase(), and TestHelmholtz< TData >::SetTestCase().
|
protected |
Definition at line 316 of file TestHelmholtz.hpp.
Referenced by TestHelmholtz< TData >::ExpectedSolution(), TestHelmholtz< TData >::RunTestCase(), and TestHelmholtz< TData >::SetTestCase().
|
protected |
Definition at line 315 of file TestHelmholtz.hpp.
Referenced by TestHelmholtz< TData >::ExpectedSolution(), TestHelmholtz< TData >::RunTestCase(), and TestHelmholtz< TData >::SetTestCase().