20 Transport::Transport(
thermo_t* thermo,
size_t ndim) :
39 Transport& Transport::operator=(
const Transport& right)
57 Transport::~Transport()
86 const doublereal*
const p)
99 if (newNum != oldNum) {
101 "base object cannot be changed after "
102 "the transport manager has been constructed because num species isn't the same.");
104 for (
int i = 0; i < newNum; i++) {
107 if (newNum != oldNum) {
109 "base object cannot be changed after "
110 "the transport manager has been constructed because species names are not the same");
121 "\n\n\n**** Method "+ msg +
" not implemented in model "
123 "(Did you forget to specify a transport model?)\n\n\n");
134 "finalize has already been called.");
138 size_t ldx,
const doublereal*
const grad_X,
139 size_t ldf, doublereal*
const fluxes)
141 err(
"getSpeciesFluxes");
std::string int2str(const int n, const std::string &fmt)
Convert an int to a string using a format converter.
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.
virtual int model() const
Transport model.
Various templated functions that carry out common vector operations (see Templated Utility Functions)...
size_t m_nDim
Number of dimensions used in flux expressions.
thermo_t * m_thermo
pointer to the object representing the phase
Base class for transport property managers.
Header file defining class TransportFactory (see TransportFactory)
void finalize()
Enable the transport object for use.
Base class for a phase with thermodynamic properties.
Header file defining class LiquidTransportParams.
doublereal err(const std::string &msg) const
Error routine.
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
Header file defining class LiquidTransport.
Contains declarations for string manipulation functions within Cantera.
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.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).
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.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...