35const int CK_Mode = 10;
200 size_t ldx,
const double*
const grad_X,
201 size_t ldf,
double*
const fluxes) {
218 const double*
const state2,
const double delta,
219 double*
const cfluxes) {
236 const double* state2,
double delta,
344 double* astar_coeffs,
345 double* bstar_coeffs,
346 double* cstar_coeffs)
const{
371 double* astar_coeffs,
372 double* bstar_coeffs,
373 double* cstar_coeffs,
bool flag){
A map of string keys to values whose type can vary at runtime.
An error indicating that an unimplemented function has been called.
Base class for a phase with thermodynamic properties.
Base class for transport property managers.
ThermoPhase * m_thermo
pointer to the object representing the phase
virtual void init(ThermoPhase *thermo, int mode=0)
Initialize a transport manager.
virtual void getBinDiffusivityPolynomial(size_t i, size_t j, double *coeffs) const
Return the polynomial fits to the binary diffusivity of species pair (i, j)
virtual void setCollisionIntegralPolynomial(size_t i, size_t j, double *astar_coeffs, double *bstar_coeffs, double *cstar_coeffs, bool flag)
Modify the polynomial fits to the collision integral of species pair (i, j)
void checkSpeciesIndex(size_t k) const
Check that the specified species index is in range.
virtual double bulkViscosity()
The bulk viscosity [Pa·s].
virtual double electricalConductivity()
Get the electrical conductivity [siemens/m].
Transport()=default
Constructor.
virtual void getSpeciesFluxes(size_t ndim, const double *const grad_T, size_t ldx, const double *const grad_X, size_t ldf, double *const fluxes)
Get the species diffusive mass fluxes [kg/m²/s] with respect to the specified solution averaged veloc...
virtual void getViscosityPolynomial(size_t i, double *coeffs) const
Return the polynomial fits to the viscosity of species i.
virtual void getThermalDiffCoeffs(double *const dt)
Return a vector of thermal diffusion coefficients [kg/m/s].
virtual void getMixDiffCoeffsMole(double *const d)
Returns a vector of mixture averaged diffusion coefficients [m²/s].
virtual void getMolarFluxes(const double *const state1, const double *const state2, const double delta, double *const cfluxes)
Get the molar fluxes [kmol/m²/s], given the thermodynamic state at two nearby points.
virtual void getConductivityPolynomial(size_t i, double *coeffs) const
Return the temperature fits of the heat conductivity of species i.
virtual string transportModel() const
Identifies the model represented by this Transport object.
AnyMap parameters() const
Return the parameters for a phase definition which are needed to reconstruct an identical object usin...
virtual void getMobilities(double *const mobil_e)
Get the electrical mobilities [m²/V/s].
virtual void setViscosityPolynomial(size_t i, double *coeffs)
Modify the polynomial fits to the viscosity of species i
virtual void getMixDiffCoeffs(double *const d)
Return a vector of mixture averaged diffusion coefficients [m²/s].
virtual void getSpeciesViscosities(double *const visc)
Get the pure species viscosities [Pa·s].
virtual void getMassFluxes(const double *state1, const double *state2, double delta, double *mfluxes)
Get the mass fluxes [kg/m²/s], given the thermodynamic state at two nearby points.
virtual void setConductivityPolynomial(size_t i, double *coeffs)
Modify the temperature fits of the heat conductivity of species i
virtual void getBinaryDiffCoeffs(const size_t ld, double *const d)
Returns the matrix of binary diffusion coefficients [m²/s].
virtual double thermalConductivity()
Get the mixture thermal conductivity [W/m/K].
virtual bool CKMode() const
Boolean indicating the form of the transport properties polynomial fits.
AnyMap fittingErrors() const
Get error metrics about any functional fits calculated for pure species transport properties.
size_t m_nsp
Number of species in the phase.
virtual void getMixDiffCoeffsMass(double *const d)
Returns a vector of mixture averaged diffusion coefficients [m²/s].
ThermoPhase & thermo()
Phase object.
AnyMap m_fittingErrors
Maximum errors associated with fitting pure species transport properties.
void checkSpeciesArraySize(size_t kk) const
Check that an array size is at least m_nsp.
virtual void invalidateCache()
Invalidate any cached values which are normally updated only when a change in state is detected.
virtual double viscosity()
Get the dynamic viscosity [Pa·s].
virtual void getMultiDiffCoeffs(const size_t ld, double *const d)
Return the multicomponent diffusion coefficients [m²/s].
virtual void setBinDiffusivityPolynomial(size_t i, size_t j, double *coeffs)
Modify the polynomial fits to the binary diffusivity of species pair (i, j)
virtual void getCollisionIntegralPolynomial(size_t i, size_t j, double *astar_coeffs, double *bstar_coeffs, double *cstar_coeffs) const
Return the polynomial fits to the collision integral of species pair (i, j)
This file contains definitions of constants, types and terms that are used in internal routines and a...
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.