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

Device side of the mixture gas model, captured by value in kernels. More...

#include <mixture.h>

Public Member Functions

KOKKOS_INLINE_FUNCTION void cell_state (const rtype *U, const CellSpecies &rhoY, const rtype T_guess, rtype *W, rtype &gamma, rtype &e0, rtype &T) const
 State of a cell from its conservatives U and contiguous partial densities rhoY: W = [rho, u, p], gamma, e0 and the temperature, found by Newton from T_guess.
 

Public Attributes

chemistry::ThermoTable thermo
 
chemistry::TransportTable transport
 
uint32_t n_species = 0
 
bool viscous = false
 

Detailed Description

Device side of the mixture gas model, captured by value in kernels.

Besides W = [rho, u, p], each cell's thermodynamics enter the flux through two surrogates, the frozen ratio of specific heats gamma = cp / cv and the energy offset e0 = e - cv T, with which rho E = p / (gamma - 1) + rho e0 + rho |u|^2 / 2 holds exactly at the cell (e0 = 0 for a calorically perfect gas).

Member Function Documentation

◆ cell_state()

KOKKOS_INLINE_FUNCTION void Mixture::cell_state ( const rtype *  U,
const CellSpecies &  rhoY,
const rtype  T_guess,
rtype *  W,
rtype &  gamma,
rtype &  e0,
rtype &  T 
) const
inline

State of a cell from its conservatives U and contiguous partial densities rhoY: W = [rho, u, p], gamma, e0 and the temperature, found by Newton from T_guess.

Member Data Documentation

◆ n_species

uint32_t Mixture::n_species = 0

◆ thermo

chemistry::ThermoTable Mixture::thermo

◆ transport

chemistry::TransportTable Mixture::transport

◆ viscous

bool Mixture::viscous = false

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