modelGFunction_100boreholes

g-Function calculation for a field of 10 by 10 boreholes

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 10 by 10 configuration.

Parameters

TypeNameDefaultDescription
IntegernBor100Number of boreholes
Modelica.Units.SI.Position[nBor,2]cooBor{{7.5*mod(i - 1, 10), 7.5*floor((i - 1)/10)} for i in 1:nBor}Coordinates of boreholes
Modelica.Units.SI.HeighthBor150Borehole length
Modelica.Units.SI.HeightdBor4Borehole 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
IntegernClu5Number 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 20, 2018, by Massimo Cimmino:
    First implementation.