15 Transport::Transport(
thermo_t* thermo,
size_t ndim) :
49 const doublereal*
const p)
62 if (newNum != oldNum) {
64 "base object cannot be changed after " 65 "the transport manager has been constructed because num species isn't the same.");
67 for (
size_t i = 0; i < newNum; i++) {
70 if (newNum != oldNum) {
72 "base object cannot be changed after " 73 "the transport manager has been constructed because species names are not the same");
86 "finalize has already been called.");
91 size_t ldx,
const doublereal*
const grad_X,
92 size_t ldf, doublereal*
const fluxes)
void checkSpeciesArraySize(size_t kk) const
Check that an array size is at least nSpecies().
An error indicating that an unimplemented function has been called.
size_t m_nDim
Number of dimensions used in flux expressions.
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
thermo_t * m_thermo
pointer to the object representing the phase
size_t nSpecies() const
Returns the number of species in the phase.
void finalize()
Enable the transport object for use.
Base class for a phase with thermodynamic properties.
std::string speciesName(size_t k) const
Name of the species with index k.
void checkSpeciesIndex(size_t k) const
Check that the specified species index is in range.
Base class for exceptions thrown by Cantera classes.
virtual void setParameters(const int type, const int k, const doublereal *const p)
Set model parameters for derived classes.
void setNDim(const int ndim)
Set the number of dimensions to be expected in flux expressions.
bool m_ready
true if finalize has been called
size_t m_nsp
Number of species.
const VelocityBasis VB_MASSAVG
Diffusion velocities are based on the mass averaged velocity.
virtual void setThermo(thermo_t &thermo)
Specifies the ThermoPhase object.
An array index is out of range.
Namespace for the Cantera kernel.
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 specified solution averaged velocity, given the gradients in mole fraction and temperature.