Nektar++
Public Member Functions | Private Attributes | List of all members
Nektar::SolverUtils::HomoRSScalar Class Reference

Wrapper class for Riemann solver scalars. More...

#include <HomogeneousRSScalar.hpp>

Public Member Functions

 HomoRSScalar (RSScalarFuncType func, int nPlanes)
 
const Array< OneD, const NekDouble > & Exec ()
 

Private Attributes

RSScalarFuncType m_func
 
int m_planeNumber
 
int m_numPlanes
 
Array< OneD, const NekDoublem_tmp
 
Array< OneD, const NekDoublem_tmp2
 

Detailed Description

Wrapper class for Riemann solver scalars.

Definition at line 43 of file HomogeneousRSScalar.hpp.

Constructor & Destructor Documentation

◆ HomoRSScalar()

Nektar::SolverUtils::HomoRSScalar::HomoRSScalar ( RSScalarFuncType  func,
int  nPlanes 
)
inline

Member Function Documentation

◆ Exec()

const Array< OneD, const NekDouble > & Nektar::SolverUtils::HomoRSScalar::Exec ( )
inline

Definition at line 51 of file HomogeneousRSScalar.hpp.

52 {
53 if (m_planeNumber == 0)
54 {
55 m_tmp = m_func();
56 }
57
58 const int nPts = m_tmp.size() / m_numPlanes;
59 const int offset = m_planeNumber * nPts;
60
61 m_tmp2 = Array<OneD, NekDouble>(nPts, m_tmp + offset);
63
64 return m_tmp2;
65 }
Array< OneD, const NekDouble > m_tmp2

References m_func, m_numPlanes, m_planeNumber, m_tmp, and m_tmp2.

Referenced by Nektar::SolverUtils::Advection3DHomogeneous1D::v_InitObject().

Member Data Documentation

◆ m_func

RSScalarFuncType Nektar::SolverUtils::HomoRSScalar::m_func
private

Definition at line 68 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_numPlanes

int Nektar::SolverUtils::HomoRSScalar::m_numPlanes
private

Definition at line 70 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_planeNumber

int Nektar::SolverUtils::HomoRSScalar::m_planeNumber
private

Definition at line 69 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_tmp

Array<OneD, const NekDouble> Nektar::SolverUtils::HomoRSScalar::m_tmp
private

Definition at line 71 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_tmp2

Array<OneD, const NekDouble> Nektar::SolverUtils::HomoRSScalar::m_tmp2
private

Definition at line 72 of file HomogeneousRSScalar.hpp.

Referenced by Exec().