modelGFunction_1borehole_5meters

g-Function calculation for a field of 1 borehole

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example checks the implementation of functions that evaluate the g-function of a borefield of 100 boreholes in a 1 configuration.

Parameters

TypeNameDefaultDescription
IntegernBor1Number of boreholes
Modelica.Units.SI.Position[nBor,2]cooBor{{5.*mod(i - 1, 3), 5.*floor((i - 1)/3)} for i in 1:nBor}Coordinates of boreholes
Modelica.Units.SI.HeighthBor5Borehole length
Modelica.Units.SI.HeightdBor1Borehole buried depth
Modelica.Units.SI.RadiusrBor0.075Borehole radius
Modelica.Units.SI.ThermalDiffusivityaSoi1e-6Ground thermal diffusivity used in g-function evaluation
IntegernSeg12Number of line source segments per borehole
IntegernTimSho26Number of time steps in short time region
IntegernTimLon50Number of time steps in long time region
RealttsMaxexp(5)Maximum non-dimensional time for g-function calculation
IntegernTimTotnTimSho + nTimLon
RealgFun
Reallntts
Modelica.Units.SI.TimetGFun
Realdspline
IntegernClu1Number of clusters to be generated
Integer[nBor]labelsCluster label associated with each data point
Integer[nClu]cluSizSize of the clusters
Modelica.Units.SI.TimetshBor^2/(9*aSoi)Bore field characteristic time

Components

TypeNameDefaultDescription
RealgFun_intInterpolated value of g-function
Reallntts_intNon-dimensional logarithmic time for interpolation
IntegerkCurrent interpolation interval
Modelica.Units.SI.Timet1Previous value of time for interpolation
Modelica.Units.SI.Timet2Next value of time for interpolation
RealgFun1Previous g-function value for interpolation
RealgFun2Next 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).
  • March 15, 2019, by Massimo Cimmino:
    First implementation.