Skip to content

Commit 74b6a2a

Browse files
authored
Merge pull request #2052 from ibpsa/issue2051_FiniteLineSource_Integrand_Length
Changed value of small number
2 parents 3e965fc + eb20b82 commit 74b6a2a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Validation/FiniteLineSource_Integrand_Length.mo

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ model FiniteLineSource_Integrand_Length
33
"Test case for finite line source integrand function"
44
extends Modelica.Icons.Example;
55

6+
constant Real small = 1E-60 "Small number used to bound calculation of log10";
67
parameter Real dis_over_len = 0.0005 "Radial distance between borehole axes";
78
parameter Modelica.Units.SI.Height len150=150.0 "Length of emitting borehole";
89
parameter Modelica.Units.SI.Height len75=75.0 "Length of emitting borehole";
@@ -17,42 +18,41 @@ model FiniteLineSource_Integrand_Length
1718
Real logy25 "Logarithm of finite line source integrand";
1819
Real logy5 "Logarithm of finite line source integrand";
1920
Real logy1 "Logarithm of finite line source integrand";
20-
2121
equation
2222
u = time;
23-
logy150 = log10(max(Modelica.Constants.small,
23+
logy150 = log10(max(small,
2424
IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.finiteLineSource_Integrand(
2525
u=u,
2626
dis=dis_over_len*len150,
2727
len1=len150,
2828
burDep1=burDep,
2929
len2=len150,
3030
burDep2=burDep)));
31-
logy75 = log10(max(Modelica.Constants.small,
31+
logy75 = log10(max(small,
3232
IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.finiteLineSource_Integrand(
3333
u=u,
3434
dis=dis_over_len*len75,
3535
len1=len75,
3636
burDep1=burDep,
3737
len2=len75,
3838
burDep2=burDep)));
39-
logy25 = log10(max(Modelica.Constants.small,
39+
logy25 = log10(max(small,
4040
IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.finiteLineSource_Integrand(
4141
u=u,
4242
dis=dis_over_len*len25,
4343
len1=len25,
4444
burDep1=burDep,
4545
len2=len25,
4646
burDep2=burDep)));
47-
logy5 = log10(max(Modelica.Constants.small,
47+
logy5 = log10(max(small,
4848
IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.finiteLineSource_Integrand(
4949
u=u,
5050
dis=dis_over_len*len5,
5151
len1=len5,
5252
burDep1=burDep,
5353
len2=len5,
5454
burDep2=burDep)));
55-
logy1 = log10(max(Modelica.Constants.small,
55+
logy1 = log10(max(small,
5656
IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.finiteLineSource_Integrand(
5757
u=u,
5858
dis=dis_over_len*len1,
@@ -74,6 +74,12 @@ finite line source integrand function.
7474
</html>", revisions="<html>
7575
<ul>
7676
<li>
77+
September 15, 2025, by Michael Wetter:<br/>
78+
Changed value of small number that bounds log10.<br/>
79+
This is for
80+
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/2051\">IBPSA, #2051</a>.
81+
</li>
82+
<li>
7783
March 15, 2019, by Massimo Cimmino:<br/>
7884
First implementation.
7985
</li>

0 commit comments

Comments
 (0)