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

Method updateMassFlowRate

src/zeroD/flowControllers.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void MassFlowController::updateMassFlowRate(double time)
22{
23 if (!ready()) {
24 throw CanteraError("MassFlowController::updateMassFlowRate",
25 "Device is not ready; some parameters have not been set.");
26 }
27 double mdot = m_coeff;
28 if (m_tfunc) {
29 mdot *= m_tfunc->eval(time);
30 }
31 m_mdot = std::max(mdot, 0.0);
32}
33
34void PressureController::updateMassFlowRate(double time)
35{

Callers 2

TESTFunction · 0.45
updateConnectedMethod · 0.45

Calls 4

CanteraErrorClass · 0.85
massFlowRateMethod · 0.80
evalMethod · 0.45
pressureMethod · 0.45

Tested by 1

TESTFunction · 0.36