Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
CellSampler Struct Reference

Cell values that statistics and probes sample, by code: 0 is RHO, 1 + i the primitive PRIMITIVE_NAMES[i], 1 + N_PRIMITIVE + k the mass fraction Y_k of species k. The primitives must be current. More...

#include <statistics.h>

Public Member Functions

KOKKOS_INLINE_FUNCTION rtype operator() (const uint32_t c, const int32_t code) const
 

Static Public Member Functions

static int32_t code (const std::string &name, const std::vector< std::string > &species_names, const std::string &key)
 Code of a variable name (RHO, a primitive, Y_<species>); throws InputError naming key.
 

Public Attributes

StateView U
 
SpeciesView rhoY
 
Kokkos::View< rtype *[N_PRIMITIVE]> P
 

Static Public Attributes

static constexpr int32_t RHO = 0
 
static constexpr int32_t FIRST_PRIMITIVE = 1
 
static constexpr int32_t FIRST_SPECIES = 1 + N_PRIMITIVE
 

Detailed Description

Cell values that statistics and probes sample, by code: 0 is RHO, 1 + i the primitive PRIMITIVE_NAMES[i], 1 + N_PRIMITIVE + k the mass fraction Y_k of species k. The primitives must be current.

Member Function Documentation

◆ code()

int32_t CellSampler::code ( const std::string &  name,
const std::vector< std::string > &  species_names,
const std::string &  key 
)
static

Code of a variable name (RHO, a primitive, Y_<species>); throws InputError naming key.

◆ operator()()

KOKKOS_INLINE_FUNCTION rtype CellSampler::operator() ( const uint32_t  c,
const int32_t  code 
) const
inline

Member Data Documentation

◆ FIRST_PRIMITIVE

constexpr int32_t CellSampler::FIRST_PRIMITIVE = 1
staticconstexpr

◆ FIRST_SPECIES

constexpr int32_t CellSampler::FIRST_SPECIES = 1 + N_PRIMITIVE
staticconstexpr

◆ P

Kokkos::View<rtype *[N_PRIMITIVE]> CellSampler::P

◆ RHO

constexpr int32_t CellSampler::RHO = 0
staticconstexpr

◆ rhoY

SpeciesView CellSampler::rhoY

◆ U

StateView CellSampler::U

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