|
Nektar++
|
#include <TestAdvectionWeakDG.hpp>
Public Member Functions | |
| TestAdvectionWeakDG ()=default | |
| void | SetTestCase () |
| void | RunTestCase () |
| void | ExpectedSolution () |
| const Array< OneD, TData > & | GetNormalVel () |
| void | GetFluxVector (const Array< OneD, Array< OneD, TData > > &physfield, Array< OneD, Array< OneD, Array< OneD, TData > > > &flux) |
Public Member Functions inherited from TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField > | |
| 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. | |
Public Attributes | |
| LibUtilities::Field< TData, FieldState::Phys > * | fixt_advectVel = nullptr |
| LibUtilities::Field< TData, FieldState::Phys > * | fixt_traceAdvVel = nullptr |
| Array< OneD, TData > | m_traceAdvVel |
| Array< OneD, TData > | m_normalVel |
| Array< OneD, Array< OneD, TData > > | m_advectVel |
Additional Inherited Members | |
Static Public Member Functions inherited from TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField > | |
| 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::Phys, FieldState::Phys, MultiRegions::DisContField > | |
| 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 51 of file TestAdvectionWeakDG.hpp.
|
default |
|
inline |
Definition at line 222 of file TestAdvectionWeakDG.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::LibUtilities::NekFactoryBase< tKey, tBase, tBasePtr, tParam >::CreateInstance(), Nektar::Collections::eNoCollection, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_expected, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_in, Nektar::SolverUtils::GetAdvectionFactory(), TestAdvectionWeakDG< TData >::GetFluxVector(), TestAdvectionWeakDG< TData >::GetNormalVel(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::SolverUtils::GetRiemannSolverFactory(), graph, TestAdvectionWeakDG< TData >::m_advectVel, Nektar::SpatialDomains::MeshGraphIO::Read(), TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::session, and Nektar::LibUtilities::Field< TData, TState >::ToArray().
Referenced by TestAdvectionWeakDG< TData >::SetTestCase().
|
inline |
Definition at line 326 of file TestAdvectionWeakDG.hpp.
References ASSERTL1, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_explist, and TestAdvectionWeakDG< TData >::m_advectVel.
Referenced by TestAdvectionWeakDG< TData >::ExpectedSolution().
|
inline |
Definition at line 295 of file TestAdvectionWeakDG.hpp.
References TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_explist, TestAdvectionWeakDG< TData >::m_normalVel, and TestAdvectionWeakDG< TData >::m_traceAdvVel.
Referenced by TestAdvectionWeakDG< TData >::ExpectedSolution().
|
inline |
Definition at line 180 of file TestAdvectionWeakDG.hpp.
References Nektar::LinearAdvVolumeFluxOp< TData >::Create(), Nektar::MultiRegions::PhysTraceExtractOp< TData >::Create(), TestAdvectionWeakDG< TData >::fixt_advectVel, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_in, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_out, Nektar::LibUtilities::Field< TData, TState >::GetComponentNames(), Nektar::MultiRegions::GetLocTraceBlockAttributes< double, FieldState::Phys >(), and TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::session.
|
inline |
Definition at line 58 of file TestAdvectionWeakDG.hpp.
References el, TestAdvectionWeakDG< TData >::ExpectedSolution(), TestAdvectionWeakDG< TData >::fixt_advectVel, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys, MultiRegions::DisContField >::fixt_in, TestAdvectionWeakDG< TData >::fixt_traceAdvVel, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), TestAdvectionWeakDG< TData >::m_advectVel, TestAdvectionWeakDG< TData >::m_traceAdvVel, and Nektar::LibUtilities::Field< TData, TState >::ToArray().
| LibUtilities::Field<TData, FieldState::Phys>* TestAdvectionWeakDG< TData >::fixt_advectVel = nullptr |
Definition at line 347 of file TestAdvectionWeakDG.hpp.
Referenced by TestAdvectionWeakDG< TData >::RunTestCase(), and TestAdvectionWeakDG< TData >::SetTestCase().
| LibUtilities::Field<TData, FieldState::Phys>* TestAdvectionWeakDG< TData >::fixt_traceAdvVel = nullptr |
Definition at line 348 of file TestAdvectionWeakDG.hpp.
Referenced by TestAdvectionWeakDG< TData >::SetTestCase().
| Array<OneD, Array<OneD, TData> > TestAdvectionWeakDG< TData >::m_advectVel |
Definition at line 351 of file TestAdvectionWeakDG.hpp.
Referenced by TestAdvectionWeakDG< TData >::ExpectedSolution(), TestAdvectionWeakDG< TData >::GetFluxVector(), and TestAdvectionWeakDG< TData >::SetTestCase().
| Array<OneD, TData> TestAdvectionWeakDG< TData >::m_normalVel |
Definition at line 350 of file TestAdvectionWeakDG.hpp.
Referenced by TestAdvectionWeakDG< TData >::GetNormalVel().
| Array<OneD, TData> TestAdvectionWeakDG< TData >::m_traceAdvVel |
Definition at line 349 of file TestAdvectionWeakDG.hpp.
Referenced by TestAdvectionWeakDG< TData >::GetNormalVel(), and TestAdvectionWeakDG< TData >::SetTestCase().