MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
FvSysEqnNS< nDim >::ConservativeVariables Struct Reference

Static indices for accessing conservative variables in nDim spatial dimensions. More...

#include <fvcartesiansyseqnns.h>

Inheritance diagram for FvSysEqnNS< nDim >::ConservativeVariables:
[legend]
Collaboration diagram for FvSysEqnNS< nDim >::ConservativeVariables:
[legend]

Public Member Functions

 ConservativeVariables (const MInt noSpecies)
 
 ~ConservativeVariables ()
 

Public Attributes

MUint m_noSpecies
 
const MInt noVariables
 
MIntRHO_Y = nullptr
 

Static Public Attributes

static const MInt Segfault = std::numeric_limits<MInt>::min()
 
static constexpr MInt RHO_U = 0
 
static constexpr MInt RHO_V = 1
 
static constexpr MInt RHO_W = nDim == 3 ? 2 : Segfault
 
static constexpr std::array< MInt, nDim > RHO_VV = getArray012()
 
static constexpr MInt RHO_E = nDim
 
static constexpr MInt RHO = nDim + 1
 
static constexpr MInt RHO_C = nDim + 2
 

Detailed Description

template<MInt nDim>
struct FvSysEqnNS< nDim >::ConservativeVariables

Definition at line 360 of file fvcartesiansyseqnns.h.

Constructor & Destructor Documentation

◆ ConservativeVariables()

template<MInt nDim>
FvSysEqnNS< nDim >::ConservativeVariables::ConservativeVariables ( const MInt  noSpecies)

Definition at line 19 of file fvcartesiansyseqnns.cpp.

20 : m_noSpecies(noSpecies), noVariables(nDim + 2 + noSpecies) {
21 if(m_noSpecies > 0) {
22 mAlloc(RHO_Y, m_noSpecies, "FvSysEqnNS::ConservativeVariables::RHO_Y", AT_);
23 for(MUint i = 0; i < m_noSpecies; ++i) {
24 RHO_Y[i] = RHO_C + i;
25 }
26 }
27}
void mAlloc(T *&a, const MLong N, const MString &objectName, MString function)
allocates memory for one-dimensional array 'a' of size N
Definition: alloc.h:173
uint32_t MUint
Definition: maiatypes.h:63

◆ ~ConservativeVariables()

template<MInt nDim>
FvSysEqnNS< nDim >::ConservativeVariables::~ConservativeVariables

Definition at line 33 of file fvcartesiansyseqnns.cpp.

33 {
35}
MBool mDeallocate(T *&a)
deallocates the memory previously allocated for element 'a'
Definition: alloc.h:544

Member Data Documentation

◆ m_noSpecies

template<MInt nDim>
MUint FvSysEqnNS< nDim >::ConservativeVariables::m_noSpecies

Definition at line 372 of file fvcartesiansyseqnns.h.

◆ noVariables

template<MInt nDim>
const MInt FvSysEqnNS< nDim >::ConservativeVariables::noVariables

Definition at line 373 of file fvcartesiansyseqnns.h.

◆ RHO

template<MInt nDim>
constexpr MInt FvSysEqnNS< nDim >::ConservativeVariables::RHO = nDim + 1
staticconstexpr

Definition at line 368 of file fvcartesiansyseqnns.h.

◆ RHO_C

template<MInt nDim>
constexpr MInt FvSysEqnNS< nDim >::ConservativeVariables::RHO_C = nDim + 2
staticconstexpr

Definition at line 370 of file fvcartesiansyseqnns.h.

◆ RHO_E

template<MInt nDim>
constexpr MInt FvSysEqnNS< nDim >::ConservativeVariables::RHO_E = nDim
staticconstexpr

Definition at line 367 of file fvcartesiansyseqnns.h.

◆ RHO_U

template<MInt nDim>
constexpr MInt FvSysEqnNS< nDim >::ConservativeVariables::RHO_U = 0
staticconstexpr

Definition at line 363 of file fvcartesiansyseqnns.h.

◆ RHO_V

template<MInt nDim>
constexpr MInt FvSysEqnNS< nDim >::ConservativeVariables::RHO_V = 1
staticconstexpr

Definition at line 364 of file fvcartesiansyseqnns.h.

◆ RHO_VV

template<MInt nDim>
constexpr std::array<MInt, nDim> FvSysEqnNS< nDim >::ConservativeVariables::RHO_VV = getArray012()
staticconstexpr

Definition at line 366 of file fvcartesiansyseqnns.h.

◆ RHO_W

template<MInt nDim>
constexpr MInt FvSysEqnNS< nDim >::ConservativeVariables::RHO_W = nDim == 3 ? 2 : Segfault
staticconstexpr

Definition at line 365 of file fvcartesiansyseqnns.h.

◆ RHO_Y

template<MInt nDim>
MInt* FvSysEqnNS< nDim >::ConservativeVariables::RHO_Y = nullptr

Definition at line 375 of file fvcartesiansyseqnns.h.

◆ Segfault

template<MInt nDim>
const MInt FvSysEqnNS< nDim >::ConservativeVariables::Segfault = std::numeric_limits<MInt>::min()
static

Definition at line 361 of file fvcartesiansyseqnns.h.


The documentation for this struct was generated from the following files: