20 warn_deprecated(
"Transport::Transport",
"Specifying the ThermoPhase object "
21 "in the Transport constructor is deprecated and will be removed after "
25 warn_deprecated(
"Transport::Transport",
"The 'ndim' argument to the Transport "
26 "constructor is deprecated and will be removed after Cantera 3.0");
40 warn_deprecated(
"Transport::setNDim",
"To be removed after Cantera 3.0");
47 throw IndexError(
"Transport::checkSpeciesIndex",
"species", k,
m_nsp-1);
63 out[
"transport"] = name;
70 warn_deprecated(
"Transport::setThermo",
"To be removed after Cantera 3.0");
77 if (newNum != oldNum) {
79 "base object cannot be changed after "
80 "the transport manager has been constructed because num species isn't the same.");
82 for (
size_t i = 0; i < newNum; i++) {
85 if (newNum != oldNum) {
87 "base object cannot be changed after "
88 "the transport manager has been constructed because species names are not the same");
97 warn_deprecated(
"Transport::setRoot",
"To be removed after Cantera 3.0");
103 warn_deprecated(
"Transport::finalize",
"To be removed after Cantera 3.0");
108 "finalize has already been called.");
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
Header file defining class TransportFactory (see TransportFactory)
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
A map of string keys to values whose type can vary at runtime.
Base class for exceptions thrown by Cantera classes.
string canonicalize(const 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.
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 string transportModel() const
Identifies the model represented by this Transport object.
AnyMap parameters() const
Return the parameters for a phase definition which are needed to reconstruct an identical object usin...
std::weak_ptr< Solution > m_root
reference to Solution
virtual void setRoot(shared_ptr< Solution > root)
Set root Solution holding all phase information.
size_t m_nsp
Number of species.
ThermoPhase & thermo()
Phase object.
void checkSpeciesArraySize(size_t kk) const
Check that an array size is at least nSpecies().
bool ready()
Returns true if the transport manager is ready for use.
Transport(ThermoPhase *thermo=0, size_t ndim=npos)
Constructor.
Namespace for the Cantera kernel.
const size_t npos
index returned by functions to indicate "no position"
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.