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

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

#include <fvcartesiansyseqndetchem.h>

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

Public Member Functions

 ConservativeVariables (const MInt noSpecies)
 Construct a new FvSysEqnDetChem<nDim>::ConservativeVariables::ConservativeVariables object. More...
 
 ~ConservativeVariables ()
 Destroy the FvSysEqnDetChem<nDim>::ConservativeVariables::ConservativeVariables object. More...
 

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 FvSysEqnDetChem< nDim >::ConservativeVariables

Definition at line 199 of file fvcartesiansyseqndetchem.h.

Constructor & Destructor Documentation

◆ ConservativeVariables()

template<MInt nDim>
FvSysEqnDetChem< nDim >::ConservativeVariables::ConservativeVariables ( const MInt  noSpecies)
Template Parameters
nDimNumber of dimensions
Parameters
noSpeciesNumber of species

Definition at line 49 of file fvcartesiansyseqndetchem.cpp.

50 : m_noSpecies(noSpecies), noVariables(nDim + 2 + noSpecies) {
51 if(m_noSpecies > 0) {
52 mAlloc(RHO_Y, m_noSpecies, "FvSysEqnNS::ConservativeVariables::RHO_Y", AT_);
53 for(MUint i = 0; i < m_noSpecies; ++i) {
54 RHO_Y[i] = RHO_C + i;
55 }
56 }
57}
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>
FvSysEqnDetChem< nDim >::ConservativeVariables::~ConservativeVariables
Template Parameters
nDimNumber of dimensions

Definition at line 74 of file fvcartesiansyseqndetchem.cpp.

74 {
76}
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 FvSysEqnDetChem< nDim >::ConservativeVariables::m_noSpecies

Definition at line 211 of file fvcartesiansyseqndetchem.h.

◆ noVariables

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

Definition at line 212 of file fvcartesiansyseqndetchem.h.

◆ RHO

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

Definition at line 207 of file fvcartesiansyseqndetchem.h.

◆ RHO_C

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

Definition at line 209 of file fvcartesiansyseqndetchem.h.

◆ RHO_E

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

Definition at line 206 of file fvcartesiansyseqndetchem.h.

◆ RHO_U

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

Definition at line 202 of file fvcartesiansyseqndetchem.h.

◆ RHO_V

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

Definition at line 203 of file fvcartesiansyseqndetchem.h.

◆ RHO_VV

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

Definition at line 205 of file fvcartesiansyseqndetchem.h.

◆ RHO_W

template<MInt nDim>
constexpr MInt FvSysEqnDetChem< nDim >::ConservativeVariables::RHO_W = (nDim == 3) ? 2 : Segfault
staticconstexpr

Definition at line 204 of file fvcartesiansyseqndetchem.h.

◆ RHO_Y

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

Definition at line 214 of file fvcartesiansyseqndetchem.h.

◆ Segfault

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

Definition at line 200 of file fvcartesiansyseqndetchem.h.


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