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

Characteristic farfield boundary from the Riemann invariants. More...

#include <BndCondRiemannInvariantCFEOp.hpp>

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

Static Public Member Functions

static std::shared_ptr< BndCondRiemannInvariantCFEOp< TData > > Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
 

Static Public Attributes

static const std::string name = "BndCondRiemannInvariantCFEOp"
 

Protected Member Functions

 BndCondRiemannInvariantCFEOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
 
 ~BndCondRiemannInvariantCFEOp () override=default
 

Detailed Description

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

Characteristic farfield boundary from the Riemann invariants.

The classical farfield condition. The two invariants \(R^\pm = u_n \pm 2c/(\gamma-1)\) are each taken from whichever side they are carried from - the interior for a characteristic leaving the domain, the freestream for one entering - and the boundary normal velocity and sound speed follow from the pair,

\[ u_n^{BC} = \tfrac12 (R^+ + R^-), \qquad c^{BC} = \tfrac{\gamma-1}{4} (R^+ - R^-). \]

The remaining thermodynamic freedom is the entropy, and it comes from whichever side is upstream: the freestream on inflow, the interior on outflow. Density and pressure follow from it and the sound speed. The velocity is that side's velocity vector with its normal component corrected to \(u_n^{BC}\), so the tangential components pass through.

Supersonic reduces to the obvious thing without a special case: both invariants come from one side, so the reconstruction returns that side's state unchanged.

Where the freestream comes from

From the session parameters rhoInf, pInf, uInf, vInf, wInf, not from the region's boundary values. That is why this condition does not share the machinery of the entropy Riemann conditions, which take their prescribed state from the boundary values instead. The VALUE on such a region is therefore ignored, which is worth knowing before wondering why editing it changes nothing.

Ideal gas only, for the same reason as the entropy conditions: the entropy relation \(s = p/\rho^\gamma\) is the ideal gas one.

Definition at line 77 of file BndCondRiemannInvariantCFEOp.hpp.

Constructor & Destructor Documentation

◆ BndCondRiemannInvariantCFEOp()

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

Definition at line 92 of file BndCondRiemannInvariantCFEOp.hpp.

95 : SolverCore::BndCondUpdateOp<TData>(expansionList, components)
96 {
97 }

◆ ~BndCondRiemannInvariantCFEOp()

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

Member Function Documentation

◆ Create()

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

Definition at line 80 of file BndCondRiemannInvariantCFEOp.hpp.

84 {
85 return MultiRegions::Operator<TData>::template Create<
86 BndCondRiemannInvariantCFEOp>(expansionList, components, execStr);
87 }
static std::shared_ptr< BndCondRiemannInvariantCFEOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
BndCondRiemannInvariantCFEOp(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)

References Nektar::BndCondRiemannInvariantCFEOp< TData >::Create().

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

Member Data Documentation

◆ name

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

Definition at line 89 of file BndCondRiemannInvariantCFEOp.hpp.