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