functionpartialInternalResistances

Partial model for borehole resistance calculation

Extends from Modelica.Icons.Function (Icon for functions).

Information

This partial function defines the common inputs to functions that calculate the borehole internal resistances.

Inputs

TypeNameDefaultDescription
Booleanuse_RbfalseTrue if the value Rb should be used instead of calculated
RealRbBorehole thermal resistance
Modelica.Units.SI.HeighthSegHeight of the element
Modelica.Units.SI.RadiusrBorRadius of the borehole
Modelica.Units.SI.RadiusrTubRadius of the tube
Modelica.Units.SI.LengtheTubThickness of the tubes
Modelica.Units.SI.LengthshaShank spacing, defined as the distance between the center of a pipe and the center of the borehole
Modelica.Units.SI.ThermalConductivitykFilThermal conductivity of the grout
Modelica.Units.SI.ThermalConductivitykSoiThermal conductivity of the soi
Modelica.Units.SI.ThermalConductivitykTubThermal conductivity of the tube
Modelica.Units.SI.ThermalConductivitykMedThermal conductivity of the fluid
Modelica.Units.SI.DynamicViscositymuMedDynamic viscosity of the fluid
Modelica.Units.SI.SpecificHeatCapacitycpMedSpecific heat capacity of the fluid
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate
StringinstanceName"undeclared caller"Instance name of the model or block that calls this function

Outputs

TypeNameDefaultDescription
RealxCapacity location

Revisions

  • November 22, 2023, by Michael Wetter:
    Corrected use of getInstanceName() which was called inside a function which is not allowed.
    This is for IBPSA, #1814.
  • June 4, 2023, by Michael Wetter:
    Corrected variability.
    This is for IBPSA, #1762.
  • February 28, 2022, by Massimo Cimmino:
    Changed function to be pure.
    This is for IBPSA, #1582.
  • July 18, 2018 by Massimo Cimmino:
    Implemented multipole method.
  • February 14, 2014 by Michael Wetter:
    Added an assert statement to test for non-physical values.
  • February 12, 2014, by Damien Picard:
    Remove the flow dependency of the resistances, as this function calculates the conduction resistances only.
  • January 24, 2014, by Michael Wetter:
    Revised implementation.
  • January 23, 2014, by Damien Picard:
    First implementation.