39 throw IndexError(
"Transport::checkSpeciesIndex",
"species", k,
m_nsp-1);
55 out[
"transport"] = name;
68 if (newNum != oldNum) {
70 "base object cannot be changed after "
71 "the transport manager has been constructed because num species isn't the same.");
73 for (
size_t i = 0; i < newNum; i++) {
76 if (newNum != oldNum) {
78 "base object cannot be changed after "
79 "the transport manager has been constructed because species names are not the same");
97 "finalize has already been called.");
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
Header file defining class TransportFactory (see TransportFactory)
A map of string keys to values whose type can vary at runtime.
Base class for exceptions thrown by Cantera classes.
std::string canonicalize(const std::string &name)
Get the canonical name registered for a type.
An array index is out of range.
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.
static TransportFactory * factory()
Return a pointer to a TransportFactory instance.
virtual void setThermo(ThermoPhase &thermo)
Specifies the ThermoPhase object.
ThermoPhase * m_thermo
pointer to the object representing the phase
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.
virtual void setRoot(std::shared_ptr< Solution > root)
Set root Solution holding all phase information.
AnyMap parameters() const
Return the parameters for a phase definition which are needed to reconstruct an identical object usin...
virtual std::string transportType() const
Identifies the Transport object type.
std::weak_ptr< Solution > m_root
reference to Solution
Transport(ThermoPhase *thermo=0, size_t ndim=1)
Constructor.
size_t m_nsp
Number of species.
void checkSpeciesArraySize(size_t kk) const
Check that an array size is at least nSpecies().
const VelocityBasis VB_MASSAVG
Namespace for the Cantera kernel.