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 45 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 53 of file HomogeneousRSScalar.hpp.

54 {
55 if (m_planeNumber == 0)
56 {
57 m_tmp = m_func();
58 }
59
60 const int nPts = m_tmp.size() / m_numPlanes;
61 const int offset = m_planeNumber * nPts;
62
63 m_tmp2 = Array<OneD, NekDouble>(nPts, m_tmp + offset);
65
66 return m_tmp2;
67 }
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 70 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_numPlanes

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

Definition at line 72 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_planeNumber

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

Definition at line 71 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_tmp

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

Definition at line 73 of file HomogeneousRSScalar.hpp.

Referenced by Exec().

◆ m_tmp2

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

Definition at line 74 of file HomogeneousRSScalar.hpp.

Referenced by Exec().