@@ -20,15 +20,17 @@ function der_temperature_u
2020 each unit= "kg.K2/J" )
2121 "Derivatives dT/du at the support points" ;
2222protected
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" ;
2828algorithm
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.
6163revisions="<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>
6472August 30, 2024, by Michael Wetter:<br/>
6573Removed wrong <code>parameter</code> declaration on a protected variable which causes an error in
6674Dymola 2025x beta1.<br/>
0 commit comments