Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Nektar::AdvTraceFluxCFEOp< TData > Class Template Referenceabstract

The compressible Euler equations' inviscid trace flux. More...

#include <AdvTraceFluxCFEOp.hpp>

Inheritance diagram for Nektar::AdvTraceFluxCFEOp< TData >:
[legend]

Public Member Functions

void ApplyUnitTest (LibUtilities::Field< TData, FieldState::Phys > &normals, LibUtilities::Field< TData, FieldState::Phys > &fwd, LibUtilities::Field< TData, FieldState::Phys > &bwd, LibUtilities::Field< TData, FieldState::Phys > &flux)
 Apply the Riemann solve to trace states given directly; for the unit tests.
 

Static Public Member Functions

static std::shared_ptr< AdvTraceFluxCFEOp< TData > > Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &solverType="", const std::string &execStr="")
 Create the implementation registered for solverType.
 

Static Public Attributes

static const std::string name = "AdvTraceFluxCFE"
 

Protected Member Functions

 AdvTraceFluxCFEOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
 
 ~AdvTraceFluxCFEOp () override=default
 
virtual void v_ApplyUnitTest (LibUtilities::Field< TData, FieldState::Phys > &normals, LibUtilities::Field< TData, FieldState::Phys > &fwd, LibUtilities::Field< TData, FieldState::Phys > &bwd, LibUtilities::Field< TData, FieldState::Phys > &flux)=0
 

Detailed Description

template<typename TData>
class Nektar::AdvTraceFluxCFEOp< TData >

The compressible Euler equations' inviscid trace flux.

Holds the operator's registration name, which the generated factory declarations build their key from, the Create() a solver calls to ask for the implementation of a given Riemann solver and equation of state, and the single-shot evaluation below.

Definition at line 53 of file AdvTraceFluxCFEOp.hpp.

Constructor & Destructor Documentation

◆ AdvTraceFluxCFEOp()

template<typename TData >
Nektar::AdvTraceFluxCFEOp< TData >::AdvTraceFluxCFEOp ( const MultiRegions::ExpListSharedPtr &  expansionList,
const std::vector< std::string > &  components 
)
inlineprotected

Definition at line 103 of file AdvTraceFluxCFEOp.hpp.

105 : SolverCore::TraceFluxOp<TData>(expansionList, components)
106 {
107 }

◆ ~AdvTraceFluxCFEOp()

template<typename TData >
Nektar::AdvTraceFluxCFEOp< TData >::~AdvTraceFluxCFEOp ( )
overrideprotecteddefault

Member Function Documentation

◆ ApplyUnitTest()

template<typename TData >
void Nektar::AdvTraceFluxCFEOp< TData >::ApplyUnitTest ( LibUtilities::Field< TData, FieldState::Phys > &  normals,
LibUtilities::Field< TData, FieldState::Phys > &  fwd,
LibUtilities::Field< TData, FieldState::Phys > &  bwd,
LibUtilities::Field< TData, FieldState::Phys > &  flux 
)
inline

Apply the Riemann solve to trace states given directly; for the unit tests.

Runs the Riemann solve through the normals normals on fwd and bwd as supplied, writing flux. Unlike Apply() it neither gathers the states off the field nor scatters the result back, and it takes the normals it is given rather than the mesh's, which is what the Riemann unit tests need: a flux for a pair of states and a normal they chose. The name says who it is for; a solver applies the operator through Apply().

Parameters
normalsNormals on the trace, one component per coordinate.
fwdForward-side conserved states on the trace.
bwdBackward-side conserved states on the trace.
fluxFlux on the trace, in Cartesian components.

Definition at line 92 of file AdvTraceFluxCFEOp.hpp.

96 {
97 v_ApplyUnitTest(normals, fwd, bwd, flux);
98 }
virtual void v_ApplyUnitTest(LibUtilities::Field< TData, FieldState::Phys > &normals, LibUtilities::Field< TData, FieldState::Phys > &fwd, LibUtilities::Field< TData, FieldState::Phys > &bwd, LibUtilities::Field< TData, FieldState::Phys > &flux)=0

References Nektar::AdvTraceFluxCFEOp< TData >::v_ApplyUnitTest().

◆ Create()

template<typename TData >
static std::shared_ptr< AdvTraceFluxCFEOp< TData > > Nektar::AdvTraceFluxCFEOp< TData >::Create ( const MultiRegions::ExpListSharedPtr &  expansionList,
const std::vector< std::string > &  components,
const std::string &  solverType = "",
const std::string &  execStr = "" 
)
inlinestatic

Create the implementation registered for solverType.

Parameters
expansionListExpansion list the operator acts on.
componentsNames of the field components.
solverTypeRiemann solver and equation of state to use, as the generated registration spells them.
execStrExecution space; empty takes the session's.

Definition at line 65 of file AdvTraceFluxCFEOp.hpp.

69 {
70 return std::dynamic_pointer_cast<AdvTraceFluxCFEOp<TData>>(
71 SolverCore::TraceFluxOp<TData>::Create(expansionList, components,
72 name + solverType, execStr));
73 }
static const std::string name

References Nektar::AdvTraceFluxCFEOp< TData >::name.

Referenced by ApplyRiemannOperator(), and LaunchProfiler().

◆ v_ApplyUnitTest()

template<typename TData >
virtual void Nektar::AdvTraceFluxCFEOp< TData >::v_ApplyUnitTest ( LibUtilities::Field< TData, FieldState::Phys > &  normals,
LibUtilities::Field< TData, FieldState::Phys > &  fwd,
LibUtilities::Field< TData, FieldState::Phys > &  bwd,
LibUtilities::Field< TData, FieldState::Phys > &  flux 
)
protectedpure virtual

Member Data Documentation

◆ name

template<typename TData >
const std::string Nektar::AdvTraceFluxCFEOp< TData >::name = "AdvTraceFluxCFE"
inlinestatic

Definition at line 100 of file AdvTraceFluxCFEOp.hpp.

Referenced by Nektar::AdvTraceFluxCFEOp< TData >::Create().