Go to the documentation of this file.
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())));
void setName(const std::string &name)
Set the name of this Solution object.
void setTransport(shared_ptr< Transport > transport)
Set the Transport object.
unique_ptr< Kinetics > newKinetics(vector< ThermoPhase * > &phases, const AnyMap &phaseNode, const AnyMap &rootNode)
std::string name() const
Return the name of this Solution object.
shared_ptr< Transport > m_transport
Transport manager.
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.
static shared_ptr< Solution > create()
Create an empty Solution object.
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< Kinetics > kinetics()
Accessor for the Kinetics pointer.
shared_ptr< ThermoPhase > thermo()
Accessor for the ThermoPhase pointer.
void setThermo(shared_ptr< ThermoPhase > thermo)
Set the ThermoPhase object.
shared_ptr< ThermoPhase > m_thermo
ThermoPhase manager.
void setKinetics(shared_ptr< Kinetics > kinetics)
Set the Kinetics object.
shared_ptr< Kinetics > m_kinetics
Kinetics manager.
shared_ptr< Transport > transport()
Accessor for the Transport pointer.
Base class for exceptions thrown by Cantera classes.
Transport * newDefaultTransportMgr(thermo_t *thermo, int loglevel)
Create a new transport manager instance.
Namespace for the Cantera kernel.