Skip to content

Commit 146e172

Browse files
committed
Corrected unit propagation error
For #2100
1 parent b8f1e02 commit 146e172

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

IBPSA/Fluid/Actuators/BaseClasses/PartialTwoWayValve.mo

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ partial model PartialTwoWayValve "Partial model for a two way valve"
2222
parameter Real kFixed(unit="", min=0) = if dpFixed_nominal > Modelica.Constants.eps
2323
then m_flow_nominal / sqrt(dpFixed_nominal) else 0
2424
"Flow coefficient of fixed resistance that may be in series with valve, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2).";
25-
Real kVal(unit="1", min=Modelica.Constants.small)
25+
Real kVal(unit="", min=Modelica.Constants.small)
2626
"Flow coefficient of valve, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2).";
2727
Real k(unit="", min=Modelica.Constants.small)
2828
"Flow coefficient of valve and pipe in series, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2).";
@@ -97,6 +97,11 @@ each valve opening characteristics has different parameters.
9797
revisions="<html>
9898
<ul>
9999
<li>
100+
March 31, 2026, by Michael Wetter:<br/>
101+
Corrected unit propagation error that causes Dymola 2026x to not show certain units.<br/>
102+
See <a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/2100\">#2100</a>.
103+
</li>
104+
<li>
100105
January 19, 2026, by Jelger Jansen:<br/>
101106
Added unit 1 to parameter <code>kVal</code> to avoid FMU unit errors.<br/>
102107
This is for <a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/2074\">#2074</a>.

0 commit comments

Comments
 (0)