From 6b397a5a2fef1b22024f7d1c1c591c0737f07a43 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Sun, 13 Aug 2023 07:48:00 -0500 Subject: [PATCH] [oneD] Rename usesLambda to isStrained --- include/cantera/oneD/StFlow.h | 2 +- src/oneD/Boundary1D.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cantera/oneD/StFlow.h b/include/cantera/oneD/StFlow.h index 76e93bb0e..f2430d085 100644 --- a/include/cantera/oneD/StFlow.h +++ b/include/cantera/oneD/StFlow.h @@ -312,7 +312,7 @@ public: * @f$ V(z) = 0 @f$ by definition. * @since New in %Cantera 3.0 */ - bool usesLambda() const { + bool isStrained() const { return m_usesLambda; } diff --git a/src/oneD/Boundary1D.cpp b/src/oneD/Boundary1D.cpp index 942a98320..919ae93c1 100644 --- a/src/oneD/Boundary1D.cpp +++ b/src/oneD/Boundary1D.cpp @@ -148,7 +148,7 @@ void Inlet1D::init() // Note that an inlet object can only be a terminal object - it cannot have // flows on both the left and right if (m_flow_left && !m_flow_right) { - if (!m_flow_left->usesLambda()) { + if (!m_flow_left->isStrained()) { throw CanteraError("Inlet1D::init", "Right inlets with right-to-left flow are only supported for " "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. m_mdot = m_flow->density(0) * xb[c_offset_U]; 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 // flow rate rb[c_offset_L] += m_mdot;