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

TypeNameDefaultDescription
IntegernBorNumber of boreholes
Modelica.Units.SI.Position[nBor,2]cooBorCoordinates of boreholes
Modelica.Units.SI.HeighthBorBorehole length
Modelica.Units.SI.HeightdBorBorehole buried depth
Modelica.Units.SI.RadiusrBorBorehole radius
Modelica.Units.SI.ThermalDiffusivityaSoiGround thermal diffusivity used in g-function evaluation
Modelica.Units.SI.ThermalConductivitykSoiThermal conductivity of soil
IntegernSegNumber of line source segments per borehole
IntegernZonTotal number of independent bore field zones
IntegeriZonIndex of the zone corresponding to each borehole
IntegernBorPerZonNumber of boreholes per borefield zone
Modelica.Units.SI.Time[nTim]nuTime vector for the calculation of thermal response factors
IntegernTimLength of the time vector
RealrelTolRelative tolerance on distance between boreholes

Outputs

TypeNameDefaultDescription
StringshaSHA1 encryption of the g-function arguments

Revisions