19 MixTransport::MixTransport() :
41 MixTransport& MixTransport::operator=(
const MixTransport& right)
46 GasTransport::operator=(right);
90 for (
size_t k = 0; k <
m_nsp; k++) {
104 doublereal sum1 = 0.0, sum2 = 0.0;
105 for (
size_t k = 0; k <
m_nsp; k++) {
117 for (
size_t k = 0; k <
m_nsp; k++) {
123 size_t ldx,
const doublereal*
const grad_X,
124 size_t ldf, doublereal*
const fluxes)
136 for (
size_t n = 0; n < ndim; n++) {
137 for (
size_t k = 0; k <
m_nsp; k++) {
138 fluxes[n*ldf + k] = -rhon * mw[k] *
m_spwork[k] * grad_X[n*ldx + k];
139 sum[n] += fluxes[n*ldf + k];
143 for (
size_t n = 0; n < ndim; n++) {
144 for (
size_t k = 0; k <
m_nsp; k++) {
145 fluxes[n*ldf + k] -= y[k]*sum[n];
158 "negative temperature "+
fp2str(t));
160 GasTransport::update_T();
179 for (
size_t k = 0; k <
m_nsp; k++) {
187 for (
size_t k = 0; k <
m_nsp; k++) {
191 for (
size_t k = 0; k <
m_nsp; k++) {
std::vector< vector_fp > m_condcoeffs
Polynomial fits to the thermal conductivity of each species.
This structure holds transport model parameters relevant to transport in ideal gases with a kinetic t...
vector_fp m_cond
vector of species thermal conductivities (W/m /K)
vector_fp alpha
Polarizability of each species in the phase.
bool m_visc_ok
Update boolean for mixture rule for the mixture viscosity.
Various templated functions that carry out common vector operations (see Templated Utility Functions)...
doublereal dot4(const V &x, const V &y)
Templated Inner product of two vectors of length 4.
bool m_condmix_ok
Update boolean for the mixture rule for the mixture thermal conductivity.
virtual void update_C()
Update the internal parameters whenever the concentrations have changed.
bool m_bindiff_ok
Update boolean for the binary diffusivities at unit pressure.
thermo_t * m_thermo
pointer to the object representing the phase
Base class for transport property managers.
virtual void getSpeciesFluxes(size_t ndim, const doublereal *const grad_T, size_t ldx, const doublereal *const grad_X, size_t ldf, doublereal *const fluxes)
Get the species diffusive mass fluxes wrt to the mass averaged velocity, given the gradients in mole ...
vector_fp sigma
Lennard-Jones diameter of the species in the current phase.
doublereal molarDensity() const
Molar density (kmol/m^3).
void getMoleFractions(doublereal *const x) const
Get the species mole fraction vector.
doublereal m_temp
Current value of the temperature at which the properties in this object are calculated (Kelvin)...
bool m_spcond_ok
Update boolean for the species thermal conductivities.
Header file defining class TransportFactory (see TransportFactory)
virtual void getMobilities(doublereal *const mobil)
Get the Electrical mobilities (m^2/V/s).
int m_mode
Type of the polynomial fits to temperature.
virtual void update_T()
Update the internal parameters whenever the temperature has changed.
vector_fp zrot
Rotational relaxation number for the species in the current phase.
vector_fp eps
Lennard-Jones well-depth of the species in the current phase.
void updateCond_T()
Update the temperature dependent parts of the species thermal conductivities.
virtual bool initGas(GasTransportParams &tr)
Initialize the transport object.
vector_fp m_spwork
work space length = m_kk
std::string fp2str(const double x, const std::string &fmt)
Convert a double into a c++ string.
const doublereal * massFractions() const
Return a const pointer to the mass fraction array.
virtual void getMixDiffCoeffs(doublereal *const d)
Returns the Mixture-averaged diffusion coefficients [m^2/s].
Base class for exceptions thrown by Cantera classes.
vector_fp m_polytempvec
Powers of the ln temperature, up to fourth order.
vector_fp crot
Dimensionless rotational heat capacity of the species in the current phase.
MixTransport()
Default constructor.
virtual bool initGas(GasTransportParams &tr)
Called by TransportFactory to set parameters.
const vector_fp & molecularWeights() const
Return a const reference to the internal vector of molecular weights.
doublereal m_lambda
Internal storage for the calculated mixture thermal conductivity.
doublereal temperature() const
Temperature (K).
bool m_debug
Debug flag - turns on more printing.
doublereal dot5(const V &x, const V &y)
Templated Inner product of two vectors of length 5.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
DenseMatrix dipole
The effective dipole moment for (i,j) collisions.
doublereal m_sqrt_t
current value of temperature to 1/2 power
const doublereal Tiny
Small number to compare differences of mole fractions against.
virtual Transport * duplMyselfAsTransport() const
Duplication routine for objects which inherit from Transport.
std::vector< vector_fp > condcoeffs
temperature-fits of the heat conduction
Contains declarations for string manipulation functions within Cantera.
#define DATA_PTR(vec)
Creates a pointer to the start of the raw data for a vector.
size_t m_nsp
Number of species.
virtual void getThermalDiffCoeffs(doublereal *const dt)
Return the thermal diffusion coefficients.
Class MixTransport implements mixture-averaged transport properties for ideal gas mixtures...
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).
virtual doublereal thermalConductivity()
Returns the mixture thermal conductivity (W/m /K)
Headers for the MixTransport object, which models transport properties in ideal gas solutions using a...
Class that holds the data that is read in from the xml file, and which is used for processing of the ...
const doublereal Boltzmann
Boltzmann's constant [J/K].
vector_fp m_molefracs
Vector of species mole fractions.
Class GasTransport implements some functions and properties that are shared by the MixTransport and M...