|
Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website |
Host side of the mixture gas model: the mechanism, a host copy of the thermodynamics for setup, and the device model. More...
#include <mixture.h>
Public Member Functions | |
| const chemistry::Mechanism & | mechanism () const |
| const Mixture & | device () const |
| bool | viscous () const |
| uint32_t | n_species () const |
| std::vector< std::string > | species_names () const |
| std::vector< double > | mass_fractions (const toml::value &table, const std::string &where) const |
| Mass fractions from a table of the input holding X (mole fractions) or Y, by species name; normalized, unlisted species zero. | |
| std::vector< double > | mass_fractions_from_mole (const std::vector< double > &X) const |
| Mass fractions from mole fractions. | |
| std::vector< double > | mole_fractions (const std::vector< double > &Y) const |
| Mole fractions from mass fractions. | |
| double | gas_constant (const std::vector< double > &Y) const |
| Gas constant of a composition [J/(kg K)]. | |
| double | energy (double T, const std::vector< double > &Y) const |
| Internal energy per unit mass at T [J/kg]. | |
| void | surrogates (double T, const std::vector< double > &Y, double &gamma, double &e0) const |
| Frozen gamma and energy offset e0 = e - cv T at T. | |
| void | conservatives (double p, double T, const rtype *u, const std::vector< double > &Y, rtype *U, rtype *rhoY) const |
| Conservatives and partial densities at pressure p, temperature T, velocity u and mass fractions Y. | |
| logging::Items | summary () const |
| Display lines for the run log. | |
Static Public Member Functions | |
| static MixtureModel | from_input (const toml::value &input) |
| From the [physics] table: mechanism and optional phase; for type = "navier_stokes" the transport model ("mixture_averaged", "unity_lewis" or "constant_lewis" with lewis = { species = Le }), and soret = true for thermal diffusion (mixture_averaged). | |
| static bool | composition_varies (const toml::value &table) |
| Whether the X or Y of a table varies in space: some value is an expression (a string) or a balance species is named. | |
Host side of the mixture gas model: the mechanism, a host copy of the thermodynamics for setup, and the device model.
Whether the X or Y of a table varies in space: some value is an expression (a string) or a balance species is named.
| void MixtureModel::conservatives | ( | double | p, |
| double | T, | ||
| const rtype * | u, | ||
| const std::vector< double > & | Y, | ||
| rtype * | U, | ||
| rtype * | rhoY | ||
| ) | const |
Conservatives and partial densities at pressure p, temperature T, velocity u and mass fractions Y.
Internal energy per unit mass at T [J/kg].
|
static |
From the [physics] table: mechanism and optional phase; for type = "navier_stokes" the transport model ("mixture_averaged", "unity_lewis" or "constant_lewis" with lewis = { species = Le }), and soret = true for thermal diffusion (mixture_averaged).
Gas constant of a composition [J/(kg K)].
| std::vector< double > MixtureModel::mass_fractions | ( | const toml::value & | table, |
| const std::string & | where | ||
| ) | const |
Mass fractions from a table of the input holding X (mole fractions) or Y, by species name; normalized, unlisted species zero.
| table | Table holding X or Y. |
| where | Name of the table for error messages. |
| std::vector< double > MixtureModel::mass_fractions_from_mole | ( | const std::vector< double > & | X | ) | const |
Mass fractions from mole fractions.
|
inline |
Mole fractions from mass fractions.
|
inline |
|
inline |
| logging::Items MixtureModel::summary | ( | ) | const |
Display lines for the run log.
| void MixtureModel::surrogates | ( | double | T, |
| const std::vector< double > & | Y, | ||
| double & | gamma, | ||
| double & | e0 | ||
| ) | const |
Frozen gamma and energy offset e0 = e - cv T at T.
|
inline |