Skip to content

Commit

Permalink
Remove unit attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGautier committed Oct 21, 2024
1 parent f7e0484 commit 4397f4f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function basicFlowFunction_dp_der
"Mass flow rate where transition to turbulent flow occurs";
input Real dp_der
"Derivative of pressure difference between port_a and port_b (= port_a.p - port_b.p)";
output Real m_flow_der(unit="kg/s2")
output Real m_flow_der
"Derivative of mass flow rate in design flow direction";
protected
Modelica.Units.SI.PressureDifference dp_turbulent=(m_flow_turbulent/k)^2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp</a>,
assuming a constant flow coefficient.
</p>
<p>
When called with <code>dp_der=der(dp)</code> and <code>dp_der2=der(dp_der)</code>,
this function returns the second order derivative of <code>m_flow</code>
with respect to time.
When called with <code>dp_der=1</code> and <code>dp_der2=0</code>,
this function returns the second order derivative of <code>m_flow</code>
with respect to <code>dp</code>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down Expand Up @@ -39,6 +39,9 @@ IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow</a>,
assuming a constant flow coefficient.
</p>
<p>
When called with <code>m_flow_der=der(m_flow)</code> and <code>m_flow_der2=der(m_flow_der)</code>,
this function returns the second order derivative of <code>dp</code>
with respect to time.
When called with <code>m_flow_der=1</code> and <code>m_flow_der2=0</code>,
this function returns the second order derivative of <code>dp</code>
with respect to <code>m_flow</code>.
Expand Down

0 comments on commit 4397f4f

Please sign in to comment.