MCPcopy Create free account
hub / github.com/Cantera/cantera / setTransportModel

Method setTransportModel

src/base/Solution.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void Solution::setTransportModel(const string& model) {
84 if (!m_thermo) {
85 throw CanteraError("Solution::setTransportModel",
86 "Unable to set Transport model without valid ThermoPhase object.");
87 }
88 if (m_transport && transportModel() == model) {
89 return;
90 }
91 setTransport(newTransport(m_thermo, model));
92}
93
94void Solution::addAdjacent(shared_ptr<Solution> adjacent) {
95 if (m_adjacentByName.count(adjacent->name())) {

Callers 2

readEntryMethod · 0.45
newSolutionFunction · 0.45

Calls 2

CanteraErrorClass · 0.85
newTransportFunction · 0.85

Tested by

no test coverage detected