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

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

#include <fvcartesiansyseqneegas.h>

Collaboration diagram for FvSysEqnEEGas< nDim >::PrimitiveVariables:
[legend]

Public Member Functions

void getPrimitiveVariableNames (MString *names)
 

Public Attributes

const std::array< MString, nDim+3 > varNames
 

Static Public Attributes

static const MInt Segfault = std::numeric_limits<MInt>::min()
 
static constexpr MUint m_noSpecies = 1
 
static constexpr MInt noVariables = nDim + 3
 
static constexpr MInt U = 0
 
static constexpr MInt V = 1
 
static constexpr MInt W = nDim == 3 ? 2 : Segfault
 
static constexpr std::array< MInt, nDim > VV = getArray012()
 
static constexpr MInt RHO = nDim
 
static constexpr MInt P = nDim + 1
 
static constexpr MInt A = nDim + 2
 
static constexpr MInt Y [1] = {A}
 

Detailed Description

template<MInt nDim>
struct FvSysEqnEEGas< nDim >::PrimitiveVariables

Definition at line 168 of file fvcartesiansyseqneegas.h.

Member Function Documentation

◆ getPrimitiveVariableNames()

template<MInt nDim>
void FvSysEqnEEGas< nDim >::PrimitiveVariables::getPrimitiveVariableNames ( MString names)
inline

Definition at line 194 of file fvcartesiansyseqneegas.h.

194 {
195 for(MInt i = 0; i < noVariables; i++) {
196 names[i] = varNames[i];
197 }
198 };
int32_t MInt
Definition: maiatypes.h:62
const std::array< MString, nDim+3 > varNames

Member Data Documentation

◆ A

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::A = nDim + 2
staticconstexpr

Definition at line 181 of file fvcartesiansyseqneegas.h.

◆ m_noSpecies

template<MInt nDim>
constexpr MUint FvSysEqnEEGas< nDim >::PrimitiveVariables::m_noSpecies = 1
staticconstexpr

Definition at line 170 of file fvcartesiansyseqneegas.h.

◆ noVariables

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::noVariables = nDim + 3
staticconstexpr

Definition at line 171 of file fvcartesiansyseqneegas.h.

◆ P

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::P = nDim + 1
staticconstexpr

Definition at line 178 of file fvcartesiansyseqneegas.h.

◆ RHO

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::RHO = nDim
staticconstexpr

Definition at line 177 of file fvcartesiansyseqneegas.h.

◆ Segfault

template<MInt nDim>
const MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::Segfault = std::numeric_limits<MInt>::min()
static

Definition at line 169 of file fvcartesiansyseqneegas.h.

◆ U

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::U = 0
staticconstexpr

Definition at line 173 of file fvcartesiansyseqneegas.h.

◆ V

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::V = 1
staticconstexpr

Definition at line 174 of file fvcartesiansyseqneegas.h.

◆ varNames

template<MInt nDim>
const std::array<MString, nDim + 3> FvSysEqnEEGas< nDim >::PrimitiveVariables::varNames
Initial value:
= [] {
IF_CONSTEXPR(nDim == 2) {
std::array<MString, nDim + 3> a = {"u", "v", "rho", "p", "alpha"};
return a;
}
else {
std::array<MString, nDim + 3> a = {"u", "v", "w", "rho", "p", "alpha"};
return a;
}
}()
Definition: contexttypes.h:19

Definition at line 184 of file fvcartesiansyseqneegas.h.

◆ VV

template<MInt nDim>
constexpr std::array<MInt, nDim> FvSysEqnEEGas< nDim >::PrimitiveVariables::VV = getArray012()
staticconstexpr

Definition at line 176 of file fvcartesiansyseqneegas.h.

◆ W

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::W = nDim == 3 ? 2 : Segfault
staticconstexpr

Definition at line 175 of file fvcartesiansyseqneegas.h.

◆ Y

template<MInt nDim>
constexpr MInt FvSysEqnEEGas< nDim >::PrimitiveVariables::Y[1] = {A}
staticconstexpr

Definition at line 182 of file fvcartesiansyseqneegas.h.


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