15 Transport::Transport(
thermo_t* thermo,
size_t ndim) :
27 " Cantera 2.3 for all classes derived from Transport.");
38 " Cantera 2.3 for all classes derived from Transport.");
53 "To be removed after Cantera 2.3.");
82 const doublereal*
const p)
95 if (newNum != oldNum) {
97 "base object cannot be changed after " 98 "the transport manager has been constructed because num species isn't the same.");
100 for (
size_t i = 0; i < newNum; i++) {
103 if (newNum != oldNum) {
105 "base object cannot be changed after " 106 "the transport manager has been constructed because species names are not the same");
119 "finalize has already been called.");
124 size_t ldx,
const doublereal*
const grad_X,
125 size_t ldf, doublereal*
const fluxes)
Transport(thermo_t *thermo=0, size_t ndim=1)
Constructor.
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
Base class for transport property managers.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
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
virtual Transport * duplMyselfAsTransport() const
Duplication routine for objects which inherit from Transport.
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.
int m_velocityBasis
Velocity basis from which diffusion velocities are computed.
Transport & operator=(const Transport &right)