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

Method syncState

src/zeroD/ReactorBase.cpp:155–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void ReactorBase::syncState()
156{
157 m_thermo->saveState(m_state);
158 m_enthalpy = m_thermo->enthalpy_mass();
159 try {
160 m_intEnergy = m_thermo->intEnergy_mass();
161 } catch (NotImplementedError&) {
162 m_intEnergy = NAN;
163 }
164 m_pressure = m_thermo->pressure();
165 m_mass = m_thermo->density() * m_vol;
166 if (m_net) {
167 m_net->setNeedsReinit();
168 }
169}
170
171ReactorNet& ReactorBase::network()
172{

Callers 10

pfr.pyFile · 0.45
surf_pfr_chain.pyFile · 0.45
runFunction · 0.45
test_reinitializeMethod · 0.45
test_reservoir_syncMethod · 0.45
test_reinitializationMethod · 0.45
test_miscMethod · 0.45
evalSurfacesMethod · 0.45
evalSurfacesMethod · 0.45
addSurfaceJacobianMethod · 0.45

Calls 6

saveStateMethod · 0.80
setNeedsReinitMethod · 0.80
enthalpy_massMethod · 0.45
intEnergy_massMethod · 0.45
pressureMethod · 0.45
densityMethod · 0.45

Tested by 4

test_reinitializeMethod · 0.36
test_reservoir_syncMethod · 0.36
test_reinitializationMethod · 0.36
test_miscMethod · 0.36