Skip to content

Commit b9854fc

Browse files
committed
Merge branch 'maint_11.x' into maint_11.x_IBPSASync_issue1966_windTurbineCutOut
2 parents 982f781 + bbd7906 commit b9854fc

2 files changed

Lines changed: 24 additions & 7 deletions

File tree

Buildings/HeatTransfer/Conduction/BaseClasses/der_temperature_u.mo

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ function der_temperature_u
2020
each unit="kg.K2/J")
2121
"Derivatives dT/du at the support points";
2222
protected
23-
parameter Real scale=0.999 "Used to place points on the phase transition";
24-
Modelica.Units.SI.Temperature Tm1=TSol + (1 - scale)*(TLiq - TSol)
23+
constant Real scale=0.999 "Used to place points on the phase transition";
24+
Modelica.Units.SI.Temperature Tm1
2525
"Support point";
26-
Modelica.Units.SI.Temperature Tm2=TSol + scale*(TLiq - TSol)
26+
Modelica.Units.SI.Temperature Tm2
2727
"Support point";
2828
algorithm
2929
assert(Buildings.HeatTransfer.Conduction.nSupPCM == 6,
3030
"The material must have exactly 6 support points for the u(T) relation.");
3131
assert(TLiq > TSol, "TLiq has to be larger than TSol.");
32+
Tm1:=TSol + (1 - scale)*(TLiq - TSol);
33+
Tm2:=TSol + scale*(TLiq - TSol);
3234
// Get the derivative values at the support points
3335
ud:={c*scale*TSol,
3436
c*TSol,
@@ -61,6 +63,12 @@ to compute for a given specific internal energy the temperature.
6163
revisions="<html>
6264
<ul>
6365
<li>
66+
May 1, 2025, by Michael Wetter:<br/>
67+
Reformulated model to avoid warning about binding equation not being a parameter expression.<br/>
68+
This is for
69+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4215\">#4215</a>.
70+
</li>
71+
<li>
6472
August 30, 2024, by Michael Wetter:<br/>
6573
Removed wrong <code>parameter</code> declaration on a protected variable which causes an error in
6674
Dymola 2025x beta1.<br/>

Buildings/UsersGuide/ReleaseNotes/Version_11_1_1.mo

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ have been <b style=\"color:blue\">improved</b> in a
4040
<b style=\"color:blue\">backward compatible</b> way:
4141
</p>
4242
<table class=\"releaseTable\" summary=\"summary\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" style=\"border-collapse:collapse;\">
43-
<tr><td colspan=\"2\"><b>Buildings.Fluid.Geothermal</b><br/>
44-
Buildings.Utilities.Clustering
45-
</td>
46-
</tr>
4743
<tr><td colspan=\"2\"><b>Buildings.Electrical</b>
4844
</td>
4945
</tr>
@@ -54,13 +50,26 @@ have been <b style=\"color:blue\">improved</b> in a
5450
This is for <a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1996\">IBPSA, #1996</a>.
5551
</td>
5652
</tr>
53+
<tr><td colspan=\"2\"><b>Buildings.Fluid.Geothermal</b><br/>
54+
Buildings.Utilities.Clustering
5755
<tr><td valign=\"top\">Buildings.Utilities.Clustering.KMeans
5856
</td>
5957
<td valign=\"top\">Improved code to avoid an error during initialization of certain borefield geometries.<br/>
6058
This is for <a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1985\">IBPSA, #1985</a> and
6159
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1976\">IBPSA, #1976</a>.
6260
</td>
6361
</tr>
62+
<tr><td colspan=\"2\"><b>Buildings.HeatTransfer</b>
63+
</td>
64+
</tr>
65+
<tr><td valign=\"top\">Buildings.HeatTransfer.Conduction.BaseClasses.der_temperature_u
66+
</td>
67+
<td valign=\"top\">Reformulated model to avoid warning about binding equation not being a parameter expression.<br/>
68+
This is for
69+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4215\">#4215</a>.
70+
</td>
71+
</tr>
72+
6473
<tr><td colspan=\"2\"><b>xxx</b>
6574
</td>
6675
</tr>

0 commit comments

Comments
 (0)