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

Static indices for accessing surface coefficients. More...

#include <fvcartesiansyseqndetchem.h>

Public Member Functions

 SurfaceCoefficients (const MInt noSpecies, const MInt noDiffusionCoefficients, const MInt noThermalDiffusionCoefficients)
 Construct a new FvSysEqnDetChem<nDim>::SurfaceCoefficients::SurfaceCoefficients object. More...
 
 ~SurfaceCoefficients ()
 Destroy the FvSysEqnDetChem<nDim>::SurfaceCoefficients::SurfaceCoefficients object. More...
 

Public Attributes

const MInt m_noDiffusionCoefficients
 
const MInt m_noThermalDiffusionCoefficients
 
const MInt m_noSurfaceCoefficients
 
MIntD = nullptr
 
MIntDT = nullptr
 

Static Public Attributes

static const MInt Segfault = std::numeric_limits<MInt>::min()
 
static constexpr MInt MU = 0
 
static constexpr MInt LAMBDA = 1
 
static constexpr MInt CP = 2
 
static constexpr MInt W_MEAN = 3
 
static constexpr MInt D0 = 4
 

Detailed Description

template<MInt nDim>
struct FvSysEqnDetChem< nDim >::SurfaceCoefficients
Template Parameters
nDimNumber of dimensions

Definition at line 339 of file fvcartesiansyseqndetchem.h.

Constructor & Destructor Documentation

◆ SurfaceCoefficients()

template<MInt nDim>
FvSysEqnDetChem< nDim >::SurfaceCoefficients::SurfaceCoefficients ( const MInt  noSpecies,
const MInt  noDiffusionCoefficients,
const MInt  noThermalDiffusionCoefficients 
)
Template Parameters
nDimNumber of dimensions
Parameters
noSpeciesNumber of species
noDiffusionCoefficientsNumber of species diffusion coefficients. Equals N^2 for multicomponent model and N for the mixture-averaged model, which is allocated in FvSysEqnDetChem<nDim>::allocateNoDiffusionCoefficients
noThermalDiffusionCoefficientsNumber of thermal diffusion coefficients, also allocated in FvSysEqnDetChem<nDim>::allocateNoDiffusionCoefficients

Definition at line 441 of file fvcartesiansyseqndetchem.cpp.

444 : m_noDiffusionCoefficients(noDiffusionCoefficients),
445 m_noThermalDiffusionCoefficients(noThermalDiffusionCoefficients),
446 m_noSurfaceCoefficients(4 + noDiffusionCoefficients + noThermalDiffusionCoefficients) {
447 if(noSpecies > 0) {
448 mAlloc(D, m_noDiffusionCoefficients, "FvSysEqnNS::SurfaceCoefficients::D", AT_);
449 mAlloc(DT, m_noThermalDiffusionCoefficients, "FvSysEqnNS::SurfaceCoefficients::DT", AT_);
450 for(MInt i = 0; i < m_noDiffusionCoefficients; ++i) {
451 D[i] = D0 + i;
452 }
453 for(MInt i = 0; i < m_noThermalDiffusionCoefficients; ++i) {
455 }
456 }
457}
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
int32_t MInt
Definition: maiatypes.h:62

◆ ~SurfaceCoefficients()

template<MInt nDim>
FvSysEqnDetChem< nDim >::SurfaceCoefficients::~SurfaceCoefficients
Template Parameters
nDimNumber of dimensions

Definition at line 465 of file fvcartesiansyseqndetchem.cpp.

465 {
466 mDeallocate(D);
468}
MBool mDeallocate(T *&a)
deallocates the memory previously allocated for element 'a'
Definition: alloc.h:544

Member Data Documentation

◆ CP

template<MInt nDim>
static constexpr MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::CP = 2
staticconstexpr

Definition at line 348 of file fvcartesiansyseqndetchem.h.

◆ D

template<MInt nDim>
MInt * FvSysEqnDetChem< nDim >::SurfaceCoefficients::D = nullptr

Definition at line 352 of file fvcartesiansyseqndetchem.h.

◆ D0

template<MInt nDim>
static constexpr MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::D0 = 4
staticconstexpr

Definition at line 350 of file fvcartesiansyseqndetchem.h.

◆ DT

template<MInt nDim>
MInt * FvSysEqnDetChem< nDim >::SurfaceCoefficients::DT = nullptr

Definition at line 353 of file fvcartesiansyseqndetchem.h.

◆ LAMBDA

template<MInt nDim>
static constexpr MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::LAMBDA = 1
staticconstexpr

Definition at line 347 of file fvcartesiansyseqndetchem.h.

◆ m_noDiffusionCoefficients

template<MInt nDim>
const MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::m_noDiffusionCoefficients

Definition at line 342 of file fvcartesiansyseqndetchem.h.

◆ m_noSurfaceCoefficients

template<MInt nDim>
const MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::m_noSurfaceCoefficients

Definition at line 344 of file fvcartesiansyseqndetchem.h.

◆ m_noThermalDiffusionCoefficients

template<MInt nDim>
const MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::m_noThermalDiffusionCoefficients

Definition at line 343 of file fvcartesiansyseqndetchem.h.

◆ MU

template<MInt nDim>
static constexpr MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::MU = 0
staticconstexpr

Definition at line 346 of file fvcartesiansyseqndetchem.h.

◆ Segfault

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

Definition at line 340 of file fvcartesiansyseqndetchem.h.

◆ W_MEAN

template<MInt nDim>
static constexpr MInt FvSysEqnDetChem< nDim >::SurfaceCoefficients::W_MEAN = 3
staticconstexpr

Definition at line 349 of file fvcartesiansyseqndetchem.h.


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