[oneD] Rename usesLambda to isStrained

This commit is contained in:
Ingmar Schoegl 2023-08-13 07:48:00 -05:00 committed by Ray Speth
parent 349316b19f
commit 6b397a5a2f
2 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@ public:
* @f$ V(z) = 0 @f$ by definition. * @f$ V(z) = 0 @f$ by definition.
* @since New in %Cantera 3.0 * @since New in %Cantera 3.0
*/ */
bool usesLambda() const { bool isStrained() const {
return m_usesLambda; return m_usesLambda;
} }

View File

@ -148,7 +148,7 @@ void Inlet1D::init()
// Note that an inlet object can only be a terminal object - it cannot have // Note that an inlet object can only be a terminal object - it cannot have
// flows on both the left and right // flows on both the left and right
if (m_flow_left && !m_flow_right) { if (m_flow_left && !m_flow_right) {
if (!m_flow_left->usesLambda()) { if (!m_flow_left->isStrained()) {
throw CanteraError("Inlet1D::init", throw CanteraError("Inlet1D::init",
"Right inlets with right-to-left flow are only supported for " "Right inlets with right-to-left flow are only supported for "
"strained flow configurations."); "strained flow configurations.");
@ -201,7 +201,7 @@ void Inlet1D::eval(size_t jg, double* xg, double* rg,
// Set mdot equal to rho*u, and also set lambda to zero. // Set mdot equal to rho*u, and also set lambda to zero.
m_mdot = m_flow->density(0) * xb[c_offset_U]; m_mdot = m_flow->density(0) * xb[c_offset_U];
rb[c_offset_L] = xb[c_offset_L]; rb[c_offset_L] = xb[c_offset_L];
} else if (m_flow->usesLambda()) { } else if (m_flow->isStrained()) {
// The flow domain sets this to -rho*u. Add mdot to specify the mass // The flow domain sets this to -rho*u. Add mdot to specify the mass
// flow rate // flow rate
rb[c_offset_L] += m_mdot; rb[c_offset_L] += m_mdot;