15 Transport::Transport(
thermo_t* thermo,
size_t ndim) :
37 throw IndexError(
"Transport::checkSpeciesIndex",
"species", k,
m_nsp-1);
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)
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
Base class for exceptions thrown by Cantera classes.
An array index is out of range.
An error indicating that an unimplemented function has been called.
size_t nSpecies() const
Returns the number of species in the phase.
std::string speciesName(size_t k) const
Name of the species with index k.
Base class for a phase with thermodynamic properties.
void setNDim(const int ndim)
Set the number of dimensions to be expected in flux expressions.
size_t m_nDim
Number of dimensions used in flux expressions.
void checkSpeciesIndex(size_t k) const
Check that the specified species index is in range.
bool m_ready
true if finalize has been called
void finalize()
Enable the transport object for use.
thermo_t * m_thermo
pointer to the object representing the phase
size_t m_nsp
Number of species.
virtual void setParameters(const int type, const int k, const doublereal *const p)
Set model parameters for derived classes.
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,...
void checkSpeciesArraySize(size_t kk) const
Check that an array size is at least nSpecies().
virtual void setThermo(thermo_t &thermo)
Specifies the ThermoPhase object.
Namespace for the Cantera kernel.
const VelocityBasis VB_MASSAVG
Diffusion velocities are based on the mass averaged velocity.