From 4397f4f44ca1b3d6b7c75312742f025d5c9328a8 Mon Sep 17 00:00:00 2001
From: AntoineGautier
+When called with dp_der=der(dp)
and dp_der2=der(dp_der)
,
+this function returns the second order derivative of m_flow
+with respect to time.
When called with dp_der=1
and dp_der2=0
,
this function returns the second order derivative of m_flow
with respect to dp
.
diff --git a/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der.mo b/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der.mo
index cdd5d92e99..8d1b291616 100644
--- a/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der.mo
+++ b/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der.mo
@@ -9,7 +9,7 @@ function basicFlowFunction_m_flow_der
"Flow coefficient, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2)";
input Modelica.Units.SI.MassFlowRate m_flow_turbulent(min=0)
"Mass flow rate where transition to turbulent flow occurs";
- input Real m_flow_der(unit="kg/s2")
+ input Real m_flow_der
"Derivative of mass flow rate in design flow direction";
output Real dp_der
"Derivative of pressure difference between port_a and port_b (= port_a.p - port_b.p)";
diff --git a/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der2.mo b/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der2.mo
index 533b42e215..a5010fea2a 100644
--- a/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der2.mo
+++ b/IBPSA/Fluid/BaseClasses/FlowModels/basicFlowFunction_m_flow_der2.mo
@@ -9,9 +9,9 @@ function basicFlowFunction_m_flow_der2
"Flow coefficient, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2)";
input Modelica.Units.SI.MassFlowRate m_flow_turbulent(min=0)
"Mass flow rate where transition to turbulent flow occurs";
- input Real m_flow_der(unit="kg/s2")
+ input Real m_flow_der
"1st derivative of mass flow rate in design flow direction";
- input Real m_flow_der2(unit="kg/s3")
+ input Real m_flow_der2
"2nd derivative of mass flow rate in design flow direction";
output Real dp_der2
"2nd derivative of pressure difference between port_a and port_b (= port_a.p - port_b.p)";
@@ -39,6 +39,9 @@ IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow,
assuming a constant flow coefficient.
+When called with m_flow_der=der(m_flow)
and m_flow_der2=der(m_flow_der)
,
+this function returns the second order derivative of dp
+with respect to time.
When called with m_flow_der=1
and m_flow_der2=0
,
this function returns the second order derivative of dp
with respect to m_flow
.