35const int CK_Mode = 10;
95 shared_ptr<Transport>
clone(shared_ptr<ThermoPhase>
thermo)
const;
206 size_t ldx, span<const double> grad_X,
207 size_t ldf, span<double> fluxes) {
223 virtual void getMolarFluxes(span<const double> state1, span<const double> state2,
224 const double delta, span<double> cfluxes) {
240 virtual void getMassFluxes(span<const double> state1, span<const double> state2,
241 double delta, span<double> mfluxes) {
348 span<double> astar_coeffs, span<double> bstar_coeffs,
349 span<double> cstar_coeffs)
const
375 span<double> astar_coeffs, span<double> bstar_coeffs,
376 span<double> cstar_coeffs,
bool flag)
414 virtual void init(shared_ptr<ThermoPhase>
thermo,
int mode=0) {}
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.
virtual void getThermalDiffCoeffs(span< double > dt)
Return a vector of thermal diffusion coefficients [kg/m/s].
virtual void setConductivityPolynomial(size_t i, span< double > coeffs)
Modify the temperature fits of the heat conductivity of species i
virtual void getBinaryDiffCoeffs(const size_t ld, span< double > d)
Returns the matrix of binary diffusion coefficients [m²/s].
virtual double bulkViscosity()
The bulk viscosity [Pa·s].
virtual double electricalConductivity()
Get the electrical conductivity [siemens/m].
virtual void getMassFluxes(span< const double > state1, span< const double > state2, double delta, span< double > mfluxes)
Get the mass fluxes [kg/m²/s], given the thermodynamic state at two nearby points.
Transport()=default
Constructor.
virtual void init(shared_ptr< ThermoPhase > thermo, int mode=0)
Initialize a transport manager.
virtual void getMobilities(span< double > mobil_e)
Get the electrical mobilities [m²/V/s].
virtual void setBinDiffusivityPolynomial(size_t i, size_t j, span< double > coeffs)
Modify the polynomial fits to the binary diffusivity of species pair (i, j)
virtual void getConductivityPolynomial(size_t i, span< 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...
shared_ptr< ThermoPhase > m_thermo
pointer to the object representing the phase
virtual void getSpeciesFluxes(size_t ndim, span< const double > grad_T, size_t ldx, span< const double > grad_X, size_t ldf, span< double > fluxes)
Get the species diffusive mass fluxes [kg/m²/s] with respect to the specified solution averaged veloc...
virtual void getViscosityPolynomial(size_t i, span< double > coeffs) const
Return the polynomial fits to the viscosity of species i.
virtual void setCollisionIntegralPolynomial(size_t i, size_t j, span< double > astar_coeffs, span< double > bstar_coeffs, span< double > cstar_coeffs, bool flag)
Modify the polynomial fits to the collision integral of species pair (i, j)
virtual void getCollisionIntegralPolynomial(size_t i, size_t j, span< double > astar_coeffs, span< double > bstar_coeffs, span< double > cstar_coeffs) const
Return the polynomial fits to the collision integral of species pair (i, j)
virtual void getMixDiffCoeffsMole(span< double > d)
Returns a vector of mixture averaged 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 getSpeciesViscosities(span< double > visc)
Get the pure species viscosities [Pa·s].
shared_ptr< Transport > clone(shared_ptr< ThermoPhase > thermo) const
Create a new Transport object using the same transport model and species transport properties as this...
virtual void getBinDiffusivityPolynomial(size_t i, size_t j, span< double > coeffs) const
Return the polynomial fits to the binary diffusivity of species pair (i, j)
ThermoPhase & thermo()
Phase object.
AnyMap m_fittingErrors
Maximum errors associated with fitting pure species transport properties.
virtual void invalidateCache()
Invalidate any cached values which are normally updated only when a change in state is detected.
size_t checkSpeciesIndex(size_t k) const
Check that the specified species index is in range.
virtual double viscosity()
Get the dynamic viscosity [Pa·s].
virtual void getMixDiffCoeffsMass(span< double > d)
Returns a vector of mixture averaged diffusion coefficients [m²/s].
virtual void getMixDiffCoeffs(span< double > d)
Return a vector of mixture averaged diffusion coefficients [m²/s].
virtual void setViscosityPolynomial(size_t i, span< double > coeffs)
Modify the polynomial fits to the viscosity of species i
virtual void getMultiDiffCoeffs(const size_t ld, span< double > d)
Return the multicomponent diffusion coefficients [m²/s].
virtual void getMolarFluxes(span< const double > state1, span< const double > state2, const double delta, span< double > cfluxes)
Get the molar fluxes [kmol/m²/s], given the thermodynamic state at two nearby points.
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.