20 Solution::Solution() {}
27 "Requires associated 'ThermoPhase'");
36 "Requires associated 'ThermoPhase'");
43 m_thermo->setRoot(shared_from_this());
62 const std::string& name,
63 const std::string& transport,
64 const std::vector<shared_ptr<Solution>>& adjacent) {
70 sol->setThermo(shared_ptr<ThermoPhase>(
newPhase(infile, name)));
73 std::vector<ThermoPhase*> phases;
74 phases.push_back(sol->thermo().get());
75 for (
auto& adj : adjacent) {
76 phases.push_back(adj->thermo().get());
78 sol->setKinetics(
newKinetics(phases, infile, name));
81 if (transport ==
"") {
83 }
else if (transport !=
"None") {
84 sol->setTransport(shared_ptr<Transport>(
newTransportMgr(transport, sol->thermo().get())));
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
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)
Base class for exceptions thrown by Cantera classes.
shared_ptr< ThermoPhase > thermo()
Accessor for the ThermoPhase pointer.
std::string name() const
Return the name of this Solution object.
shared_ptr< Kinetics > kinetics()
Accessor for the Kinetics pointer.
shared_ptr< Transport > transport()
Accessor for the Transport pointer.
shared_ptr< Kinetics > m_kinetics
Kinetics manager.
void setThermo(shared_ptr< ThermoPhase > thermo)
Set the ThermoPhase object.
shared_ptr< ThermoPhase > m_thermo
ThermoPhase manager.
void setName(const std::string &name)
Set the name of this Solution object.
void setTransport(shared_ptr< Transport > transport)
Set the Transport object.
static shared_ptr< Solution > create()
Create an empty Solution object.
shared_ptr< Transport > m_transport
Transport manager.
void setKinetics(shared_ptr< Kinetics > kinetics)
Set the Kinetics object.
Transport * newDefaultTransportMgr(thermo_t *thermo, int loglevel)
Create a new transport manager instance.
Namespace for the Cantera kernel.
Transport * newTransportMgr(const std::string &transportModel, thermo_t *thermo, int loglevel, int ndim)
Build a new transport manager using a transport manager that may not be the same as in the phase desc...
shared_ptr< Solution > newSolution(const std::string &infile, const std::string &name, const std::string &transport, const std::vector< shared_ptr< Solution >> &adjacent)
Create and initialize a new Solution manager from an input file.
unique_ptr< Kinetics > newKinetics(vector< ThermoPhase * > &phases, const AnyMap &phaseNode, const AnyMap &rootNode)