functionshaKappa
Returns a SHA1 encryption of the formatted arguments for the thermal response factor generation
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function returns the SHA1 encryption of its arguments.
Implementation
Each argument is formatted in exponential notation
with four significant digits, for example 1.234e+001, with no spaces or
other separating characters between each argument value.
To prevent too long strings that can cause buffer overflows,
the sha encoding of each argument is computed and added to the next string that
is parsed.
The SHA1 encryption is computed using Buildings.Utilities.Cryptographics.sha.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nBor | Number of boreholes | |
| Modelica.Units.SI.Position[nBor,2] | cooBor | Coordinates of boreholes | |
| Modelica.Units.SI.Height | hBor | Borehole length | |
| Modelica.Units.SI.Height | dBor | Borehole buried depth | |
| Modelica.Units.SI.Radius | rBor | Borehole radius | |
| Modelica.Units.SI.ThermalDiffusivity | aSoi | Ground thermal diffusivity used in g-function evaluation | |
| Modelica.Units.SI.ThermalConductivity | kSoi | Thermal conductivity of soil | |
| Integer | nSeg | Number of line source segments per borehole | |
| Integer | nZon | Total number of independent bore field zones | |
| Integer | iZon | Index of the zone corresponding to each borehole | |
| Integer | nBorPerZon | Number of boreholes per borefield zone | |
| Modelica.Units.SI.Time[nTim] | nu | Time vector for the calculation of thermal response factors | |
| Integer | nTim | Length of the time vector | |
| Real | relTol | Relative tolerance on distance between boreholes |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | sha | SHA1 encryption of the g-function arguments |
Revisions
-
May 30, 2024, by Michael Wetter:
First implementation based on Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.shaGFunction.