11 Transport::Transport(
thermo_t* thermo,
size_t ndim) :
30 Transport& Transport::operator=(
const Transport& right)
73 const doublereal*
const p)
86 if (newNum != oldNum) {
88 "base object cannot be changed after "
89 "the transport manager has been constructed because num species isn't the same.");
91 for (
size_t i = 0; i < newNum; i++) {
94 if (newNum != oldNum) {
96 "base object cannot be changed after "
97 "the transport manager has been constructed because species names are not the same");
110 "finalize has already been called.");
114 size_t ldx,
const doublereal*
const grad_X,
115 size_t ldf, doublereal*
const fluxes)
void checkSpeciesIndex(size_t k) const
Check that the specified species index is in range Throws an exception if k is greater than nSpecies(...
Transport(thermo_t *thermo=0, size_t ndim=1)
Constructor.
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 finalize()
Enable the transport object for use.
Base class for a phase with thermodynamic properties.
void checkSpeciesArraySize(size_t kk) const
Check that an array size is at least nSpecies() Throws an exception if kk is less than nSpecies()...
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.
size_t nSpecies() const
Returns the number of species in the phase.
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.
virtual Transport * duplMyselfAsTransport() const
Duplication routine for objects which inherit from Transport.
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.
std::string speciesName(size_t k) const
Name of the species with index k.