modelGFunction_SmallScaleValidation
g-Function calculation for the small scale validation case
Extends from Modelica.Icons.Example (Icon for runnable examples).
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.Validation.BaseClasses.SmallScale_Borefield | borFieDat | Record of borehole configuration data | |
| Integer | nBor | borFieDat.conDat.nBor | Number of boreholes |
| Modelica.Units.SI.Position[nBor,2] | cooBor | borFieDat.conDat.cooBor | Coordinates of boreholes |
| Modelica.Units.SI.Height | hBor | borFieDat.conDat.hBor | Borehole length |
| Modelica.Units.SI.Height | dBor | borFieDat.conDat.dBor | Borehole buried depth |
| Modelica.Units.SI.Radius | rBor | borFieDat.conDat.rBor | Borehole radius |
| Modelica.Units.SI.ThermalDiffusivity | aSoi | borFieDat.soiDat.kSoi/(borFieDat.soiDat.dSoi*borFieDat.soiDat.cSoi) | Ground thermal diffusivity used in g-function evaluation |
| 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 | nTimTot | nTimSho + nTimLon | |
| Real | gFun | ||
| Real | lntts | ||
| Modelica.Units.SI.Time | tGFun | ||
| Real | dspline | ||
| Integer | nClu | 1 | Number of clusters to be generated |
| Integer[nBor] | labels | Cluster label associated with each data point | |
| Integer[nClu] | cluSiz | Size of the clusters | |
| Modelica.Units.SI.Time | ts | hBor^2/(9*aSoi) | Bore field characteristic time |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | gFun_int | Interpolated value of g-function | |
| Real | lntts_int | Non-dimensional logarithmic time for interpolation | |
| Integer | k | Current interpolation interval | |
| Modelica.Units.SI.Time | t1 | Previous value of time for interpolation | |
| Modelica.Units.SI.Time | t2 | Next value of time for interpolation | |
| Real | gFun1 | Previous g-function value for interpolation | |
| Real | gFun2 | Next g-function value for interpolation |
Revisions
-
June 9, 2022, by Massimo Cimmino:
Added parameters to define the number of clusters for the method of Prieto and Cimmino (2021). -
July 18, 2018, by Massimo Cimmino:
First implementation.