|
Nektar++
|
#include <LibUtilities/BasicUtils/VmathArray.hpp>#include <MultiRegions/DisContField.h>#include <SpatialDomains/MeshGraphIO.h>#include <LibUtilities/BasicUtils/Field/Field.hpp>#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>#include <CompressibleFlowSolverRedesign/AdvTraceFluxCFE/AdvTraceFluxCFEOp.hpp>#include <SolverCore/TraceFlux/TraceFluxOp.hpp>#include <UnitTests/TestBoostSetup.hpp>#include <UnitTests/TestGlobalConfiguration.hpp>#include <UnitTests/TestBoostTeardown.hpp>Go to the source code of this file.
Classes | |
| struct | PrimState |
| struct | Case |
Macros | |
| #define | BOOST_TEST_MODULE TestRiemann |
Functions | |
| NEKTAR_TEST_GLOBAL_CONFIGURATION (Nektar::UnitTests::TestArgs::None) | |
| template<typename TData > | |
| static Array< OneD, TData > | FlattenCompMajor (const Array< OneD, Array< OneD, TData > > &a, unsigned int ncomp, size_t npts) |
| template<typename TData > | |
| static void | UnflattenCompMajor (const Array< OneD, TData > &flat, Array< OneD, Array< OneD, TData > > &a, unsigned int ncomp, size_t npts) |
| static void | PrimToCons (const PrimState &W, unsigned int spaceDim, Array< OneD, double > &U, double gamma) |
| static double | ConsToPressure (const Array< OneD, const double > &U, unsigned int spaceDim, double gamma) |
| static void | PhysicalFluxDotN (const Array< OneD, const double > &U, const Array< OneD, const double > &n, unsigned int spaceDim, double gamma, Array< OneD, double > &fluxDotN) |
| static void | FillTraceFromPrimStates (unsigned int spaceDim, size_t npts, const PrimState &WL, const PrimState &WR, Array< OneD, Array< OneD, double > > &fwd, Array< OneD, Array< OneD, double > > &bwd, double gamma) |
| static void | FillTraceNormals (unsigned int spaceDim, size_t npts, const Array< OneD, const double > &n, Array< OneD, Array< OneD, double > > &normals) |
| static double | SoundSpeedFromRhoP (double rho, double p, double gamma) |
| static PrimState | MakeStateFromMach (double rho, double p, double M, double cRef) |
| static Array< OneD, double > | PhysicalFlux (const PrimState &W, unsigned int spaceDim, double gamma) |
| static void | CheckCloseRel (const Array< OneD, const double > &a, const Array< OneD, const double > &b, double tol) |
| static void | CheckFinite (const Array< OneD, const double > &f) |
| static LibUtilities::SessionReaderSharedPtr | SetSession (const std::string &xml, const std::string &exec="Serial") |
| static MultiRegions::DisContFieldSharedPtr | SetExpList (const LibUtilities::SessionReaderSharedPtr &session) |
| template<typename TData > | |
| static void | ApplyRiemannOperator (const LibUtilities::SessionReaderSharedPtr &session, const std::string &method, const std::string &execStr, const MultiRegions::DisContFieldSharedPtr &dg, unsigned int spaceDim, size_t npts, unsigned int nFields, const Array< OneD, Array< OneD, TData > > &normals, const Array< OneD, Array< OneD, TData > > &fwd, const Array< OneD, Array< OneD, TData > > &bwd, Array< OneD, Array< OneD, TData > > &flx) |
| static void | FillConstStateAndReferenceFlux (unsigned int spaceDim, size_t npts, const Array< OneD, Array< OneD, double > > &normals, Array< OneD, Array< OneD, double > > &fwd, Array< OneD, Array< OneD, double > > &bwd, Array< OneD, Array< OneD, double > > &fluxRef, double gamma) |
| static void | RunConstStateRiemannTest (const std::string &xml, const std::string &method, const std::string &execStr, unsigned int normalDir, double gamma=1.4) |
| static void | RunOneRiemannCase (const std::string &xml, const std::string &method, const std::string &execStr, const PrimState &WL, const PrimState &WR, const Array< OneD, const double > &n, Array< OneD, double > &flux, double gamma=1.4) |
| static void | CheckNormalFlipAntisymmetry (const std::string &xml, const std::string &method, const std::string &execStr, const PrimState &WL, const PrimState &WR, unsigned int spaceDim, double gamma, double tol) |
| static void | RunMachTest (const std::string &xml, const std::vector< std::string > &ops, const std::string &execStr, double gamma=1.4) |
| static void | RunCasesForOp (const std::string &method, const std::string &execStr, const std::vector< Case > &cases) |
| #define BOOST_TEST_MODULE TestRiemann |
Definition at line 35 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
|
static |
Definition at line 318 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References Nektar::AdvTraceFluxCFEOp< TData >::Create(), FlattenCompMajor(), session, Nektar::LibUtilities::Field< TData, TState >::ToArray(), and UnflattenCompMajor().
|
static |
Definition at line 266 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by CheckNormalFlipAntisymmetry(), and RunMachTest().
Definition at line 277 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by RunMachTest().
|
static |
Definition at line 530 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References CheckCloseRel(), RunOneRiemannCase(), and sum.
Referenced by RunMachTest().
|
inlinestatic |
Definition at line 129 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by PhysicalFluxDotN().
|
static |
Definition at line 358 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by RunConstStateRiemannTest().
|
static |
Definition at line 201 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References PrimToCons().
Referenced by RunOneRiemannCase().
|
static |
Definition at line 223 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References Vmath::Fill().
Referenced by RunOneRiemannCase().
|
static |
Definition at line 66 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by ApplyRiemannOperator().
|
inlinestatic |
Definition at line 239 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by RunMachTest().
| NEKTAR_TEST_GLOBAL_CONFIGURATION | ( | Nektar::UnitTests::TestArgs::None | ) |
|
inlinestatic |
Definition at line 252 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References PhysicalFluxDotN(), and PrimToCons().
Referenced by RunMachTest().
|
inlinestatic |
Definition at line 157 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References ASSERTL0, and ConsToPressure().
Referenced by PhysicalFlux().
|
inlinestatic |
Definition at line 109 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References ASSERTL0.
Referenced by FillTraceFromPrimStates(), and PhysicalFlux().
|
static |
Definition at line 788 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References RunConstStateRiemannTest().
|
static |
Definition at line 422 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References FillConstStateAndReferenceFlux(), session, SetExpList(), and SetSession().
Referenced by RunCasesForOp().
|
static |
Definition at line 562 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References CheckCloseRel(), CheckFinite(), CheckNormalFlipAntisymmetry(), MakeStateFromMach(), PhysicalFlux(), RunOneRiemannCase(), session, SetExpList(), SetSession(), and SoundSpeedFromRhoP().
|
static |
Definition at line 482 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References ASSERTL0, FillTraceFromPrimStates(), FillTraceNormals(), session, SetExpList(), and SetSession().
Referenced by CheckNormalFlipAntisymmetry(), and RunMachTest().
|
static |
Definition at line 308 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::Collections::eNoCollection, graph, Nektar::SpatialDomains::MeshGraphIO::Read(), and session.
Referenced by RunConstStateRiemannTest(), RunMachTest(), and RunOneRiemannCase().
|
static |
Definition at line 286 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
References Nektar::LibUtilities::SessionReader::CreateInstance(), and session.
Referenced by RunConstStateRiemannTest(), RunMachTest(), and RunOneRiemannCase().
|
inlinestatic |
Definition at line 233 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by RunMachTest().
|
static |
Definition at line 81 of file edesign/RiemannSolvers/UnitTests/TestRiemann.cpp.
Referenced by ApplyRiemannOperator().