|
Nektar++
|
#include <TestLaplacian.hpp>
Public Member Functions | |
| TestLaplacian ()=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. | |
Private Attributes | |
| VariableDiffusion< TData > | m_varDiffHelper |
| std::vector< TData > | m_diffCoeff |
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. | |
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 |
Definition at line 47 of file TestLaplacian.hpp.
|
default |
|
inline |
Definition at line 153 of file TestLaplacian.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, Nektar::StdRegions::eLaplacian, 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(), TestLaplacian< TData >::HomogeneousTrans(), TestLaplacian< TData >::m_diffCoeff, TestLaplacian< TData >::m_varDiffHelper, and Nektar::LibUtilities::Field< TData, TState >::ToArray().
Referenced by TestLaplacian< 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 265 of file TestLaplacian.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 TestLaplacian< TData >::ExpectedSolution().
|
inline |
Definition at line 136 of file TestLaplacian.hpp.
References Nektar::MultiRegions::LaplacianOp< 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, TestLaplacian< TData >::m_diffCoeff, TestLaplacian< TData >::m_varDiffHelper, and TestOp< TData, FieldState::Coeff, FieldState::Coeff >::session.
|
inline |
Definition at line 52 of file TestLaplacian.hpp.
References el, TestLaplacian< 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(), TestLaplacian< TData >::m_diffCoeff, and TestLaplacian< TData >::m_varDiffHelper.
|
private |
Definition at line 295 of file TestLaplacian.hpp.
Referenced by TestLaplacian< TData >::ExpectedSolution(), TestLaplacian< TData >::RunTestCase(), and TestLaplacian< TData >::SetTestCase().
|
private |
Definition at line 294 of file TestLaplacian.hpp.
Referenced by TestLaplacian< TData >::ExpectedSolution(), TestLaplacian< TData >::RunTestCase(), and TestLaplacian< TData >::SetTestCase().