Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation
Example models for ThermalResponseFactors
Information
This package contains examples for the use of functions that can be found in Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
ClusterBoreholes_100boreholes | Clustering of a field of 100 boreholes |
CylindricalHeatSource | Test case for cylindrical heat source |
CylindricalHeatSource_Integrand | Test case for cylindrical heat source integrand function |
FiniteLineSource | Test case for finite line source |
FiniteLineSource_Equivalent | Test case for finite line source for equivalent boreholes |
FiniteLineSource_Erfint | Test case for the evaluation of the integral of the error function |
FiniteLineSource_Integrand | Test case for finite line source integrand function |
FiniteLineSource_Integrand_Equivalent | Test case for finite line source integrand function for equivalent boreholes |
FiniteLineSource_Integrand_Length | Test case for finite line source integrand function |
FiniteLineSource_SteadyState | Test case for steady-state solution of the finite line source |
GFunction_100boreholes | g-Function calculation for a field of 10 by 10 boreholes |
GFunction_1borehole_5meters | g-Function calculation for a field of 1 borehole |
GFunction_SmallScaleValidation | g-Function calculation for the small scale validation case |
InfiniteLineSource | Test case for infinite line source |
ShaGFunction | Verifies the SHA-1 encryption of a single borehole |
TimeGeometric | Test case for geometric expansion of time vector |
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ClusterBoreholes_100boreholes
Clustering of a field of 100 boreholes
Information
This example uses a rectangular field of 10 by 10 boreholes to test the identification borehole clusters.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | nBor | 100 | Number of boreholes |
Position | cooBor[nBor, 2] | {{7.5*mod(i - 1, 10),7.5*flo... | Coordinates of boreholes [m] |
Height | hBor | 150 | Borehole length [m] |
Height | dBor | 4 | Borehole buried depth [m] |
Radius | rBor | 0.075 | Borehole radius [m] |
Integer | k | 4 | Number of clusters to be generated |
Integer | labels[nBor] | Cluster label associated with each data point | |
Integer | cluSiz[k] | Size of the clusters | |
Integer | labelsExp[nBor] | {3,3,3,4,4,4,4,3,3,3,3,4,4,2... | Expected cluster labels |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.CylindricalHeatSource
Test case for cylindrical heat source
Information
This example demonstrates the use of the function for the evaluation of the cylindrical heat source solution.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
ThermalDiffusivity | aSoi | 1.0e-6 | Ground thermal diffusivity [m2/s] |
Radius | rSource | 0.075 | Radius of cylinder source [m] |
Radius | r[5] | {rSource,2*rSource,5*rSource... | Radial position of evaluation of the solution [m] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.CylindricalHeatSource_Integrand
Test case for cylindrical heat source integrand function
Information
This example demonstrates the evaluation of the cylindrical heat source integrand function.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | Fo | 1.0 | Fourier time |
Real | p[4] | {1,2,5,10} | Ratio of distance over borehole radius |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource
Test case for finite line source
Information
This example demonstrates the use of the function for the evaluation of the finite line source solution. The solution is evaluated at different positions and averaged over different lengths around line heat sources.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
ThermalDiffusivity | aSoi | 1.0e-6 | Ground thermal diffusivity [m2/s] |
Distance | r[2] | {0.075,7.0} | Radial position of evaluation of the solution [m] |
Height | len1 | 12.5 | Length of emitting source [m] |
Height | burDep1 | 29.0 | Buried depth of emitting source [m] |
Height | len2[7] | {12.5,8.0,15.0,14.0,6.0,20.0... | Length of receiving line [m] |
Height | burDep2[7] | {29.0,25.0,34.0,2.0,32.0,27.... | Buried depth of receiving line [m] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource_Equivalent
Test case for finite line source for equivalent boreholes
Information
This example demonstrates the use of the function for the evaluation of the finite line source solution for equivalent boreholes. The solution is evaluated for the interactions between 3 interacting boreholes on a right triangle pattern with coordinates (x,y) = {(0,0), (0,7), (7,0)}.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
ThermalDiffusivity | aSoi | 1.0e-6 | Ground thermal diffusivity [m2/s] |
Distance | dis[2] | {7.0,7.0*sqrt(2)} | Radial distance between borehole axes [m] |
Integer | wDis[2] | {4,2} | Number of occurences of each distance |
Height | len1 | 150.0 | Length of emitting sources [m] |
Height | burDep1 | 4.0 | Buried depth of emitting sources [m] |
Height | len2 | 150.0 | Length of receiving lines [m] |
Height | burDep2 | 4.0 | Buried depth of receiving lines [m] |
Integer | nBor2 | 3 | Number of receiving lines |
Integer | n_dis | 2 | Number of unique distances |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource_Erfint
Test case for the evaluation of the integral of the error function
Information
This example demonstrates the evaluation of the integral of the error function.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource_Integrand
Test case for finite line source integrand function
Information
This example demonstrates the evaluation of the finite line source integrand function.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Distance | dis | 0.075 | Radial distance between borehole axes [m] |
Height | len1 | 150.0 | Length of emitting borehole [m] |
Height | burDep1 | 4.0 | Buried depth of emitting borehole [m] |
Height | len2 | 150.0 | Length of receiving borehole [m] |
Height | burDep2 | 4.0 | Buried depth of receiving borehole [m] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource_Integrand_Equivalent
Test case for finite line source integrand function for equivalent boreholes
Information
This example demonstrates the use of the function for the evaluation of the finite line source integrand for equivalent boreholes. The solution is evaluated for the interactions between 3 interacting boreholes on a right triangle pattern with coordinates (x,y) = {(0,0), (0,7), (7,0)}.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
ThermalDiffusivity | aSoi | 1.0e-6 | Ground thermal diffusivity [m2/s] |
Distance | dis[2] | {7.0,7.0*sqrt(2)} | Radial distance between borehole axes [m] |
Integer | wDis[2] | {4,2} | Number of occurences of each distance |
Height | len1 | 150.0 | Length of emitting sources [m] |
Height | burDep1 | 4.0 | Buried depth of emitting sources [m] |
Height | len2 | 150.0 | Length of receiving lines [m] |
Height | burDep2 | 4.0 | Buried depth of receiving lines [m] |
Integer | nBor2 | 3 | Number of receiving lines |
Integer | n_dis | 2 | Number of unique distances |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource_Integrand_Length
Test case for finite line source integrand function
Information
This example demonstrates the evaluation of the finite line source integrand function.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | dis_over_len | 0.0005 | Radial distance between borehole axes |
Height | len150 | 150.0 | Length of emitting borehole [m] |
Height | len75 | 75.0 | Length of emitting borehole [m] |
Height | len25 | 25.0 | Length of emitting borehole [m] |
Height | len5 | 5.0 | Length of emitting borehole [m] |
Height | len1 | 1.0 | Length of emitting borehole [m] |
Height | burDep | 4. | Buried depth of emitting borehole [m] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.FiniteLineSource_SteadyState
Test case for steady-state solution of the finite line source
Information
This example demonstrates the use of the function for the evaluation of the steady-state finite line source solution. The solution is evaluated at different distances between the emitting and receiving boreholes.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Height | len1 | 150.0 | Length of emitting source [m] |
Height | burDep1 | 4.0 | Buried depth of emitting source [m] |
Height | len2 | 125.0 | Length of receiving line [m] |
Height | burDep2 | 3.5 | Buried depth of receiving line [m] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes
g-Function calculation for a field of 10 by 10 boreholes
Information
This example checks the implementation of functions that evaluate the g-function of a borefield of 100 boreholes in a 10 by 10 configuration.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | nBor | 100 | Number of boreholes |
Position | cooBor[nBor, 2] | {{7.5*mod(i - 1, 10),7.5*flo... | Coordinates of boreholes [m] |
Height | hBor | 150 | Borehole length [m] |
Height | dBor | 4 | Borehole buried depth [m] |
Radius | rBor | 0.075 | Borehole radius [m] |
ThermalDiffusivity | aSoi | 1e-6 | Ground thermal diffusivity used in g-function evaluation [m2/s] |
Integer | nSeg | 12 | Number of line source segments per borehole |
Integer | nTimSho | 26 | Number of time steps in short time region |
Integer | nTimLon | 50 | Number of time steps in long time region |
Real | ttsMax | exp(5) | Maximum non-dimensional time for g-function calculation |
Integer | nClu | 5 | Number of clusters to be generated |
Integer | labels[nBor] | Cluster label associated with each data point | |
Integer | cluSiz[nClu] | Size of the clusters | |
Time | ts | hBor^2/(9*aSoi) | Bore field characteristic time [s] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters
g-Function calculation for a field of 1 borehole
Information
This example checks the implementation of functions that evaluate the g-function of a borefield of 100 boreholes in a 1 configuration.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | nBor | 1 | Number of boreholes |
Position | cooBor[nBor, 2] | {{5.*mod(i - 1, 3),5.*floor(... | Coordinates of boreholes [m] |
Height | hBor | 5 | Borehole length [m] |
Height | dBor | 1 | Borehole buried depth [m] |
Radius | rBor | 0.075 | Borehole radius [m] |
ThermalDiffusivity | aSoi | 1e-6 | Ground thermal diffusivity used in g-function evaluation [m2/s] |
Integer | nSeg | 12 | Number of line source segments per borehole |
Integer | nTimSho | 26 | Number of time steps in short time region |
Integer | nTimLon | 50 | Number of time steps in long time region |
Real | ttsMax | exp(5) | Maximum non-dimensional time for g-function calculation |
Integer | nClu | 1 | Number of clusters to be generated |
Integer | labels[nBor] | Cluster label associated with each data point | |
Integer | cluSiz[nClu] | Size of the clusters | |
Time | ts | hBor^2/(9*aSoi) | Bore field characteristic time [s] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation
g-Function calculation for the small scale validation case
Information
This example checks the implementation of functions that evaluate the g-function of the borehole used in the small-scale experiment of Cimmino and Bernier (2015).
References
Cimmino, M. and Bernier, M. 2015. Experimental determination of the g-functions of a small-scale geothermal borehole. Geothermics 56: 60-71.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
SmallScale_Borefield | borFieDat | Record of borehole configuration data | |
Integer | nBor | borFieDat.conDat.nBor | Number of boreholes |
Position | cooBor[nBor, 2] | borFieDat.conDat.cooBor | Coordinates of boreholes [m] |
Height | hBor | borFieDat.conDat.hBor | Borehole length [m] |
Height | dBor | borFieDat.conDat.dBor | Borehole buried depth [m] |
Radius | rBor | borFieDat.conDat.rBor | Borehole radius [m] |
ThermalDiffusivity | aSoi | borFieDat.soiDat.kSoi/(borFi... | Ground thermal diffusivity used in g-function evaluation [m2/s] |
Integer | nSeg | 12 | Number of line source segments per borehole |
Integer | nTimSho | 26 | Number of time steps in short time region |
Integer | nTimLon | 50 | Number of time steps in long time region |
Real | ttsMax | exp(5) | Maximum non-dimensional time for g-function calculation |
Integer | nClu | 1 | Number of clusters to be generated |
Integer | labels[nBor] | Cluster label associated with each data point | |
Integer | cluSiz[nClu] | Size of the clusters | |
Time | ts | hBor^2/(9*aSoi) | Bore field characteristic time [s] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.InfiniteLineSource
Test case for infinite line source
Information
This example demonstrates the use of the function for the evaluation of the infinite line source solution.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
ThermalDiffusivity | aSoi | 1.0e-6 | Ground thermal diffusivity [m2/s] |
Radius | rSource | 0.075 | Minimum radius [m] |
Radius | r[5] | {rSource,2*rSource,5*rSource... | Radial position of evaluation of the solution [m] |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction
Verifies the SHA-1 encryption of a single borehole
Information
This example uses a typical single borehole to test the SHA1-encryption of the arguments required to determine the borehole's thermal response factor.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
String | strIn | Buildings.Fluid.Geothermal.B... | SHA1-encrypted g-function inputs |
String | strEx | "6dc3c2b9dfa5807ce25f7d34dc9... | Expected string output |
Modelica definition
Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.TimeGeometric
Test case for geometric expansion of time vector
Information
This example demonstrates the construction of vector of geometrically expanding time values.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Duration | dt | 2.0 | Minimum time step [s] |
Time | t_max | 20.0 | Maximum value of time [s] |
Integer | nTim | 5 | Number of time values |