BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.partialInternalResistances

# .BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.partialInternalResistances

Partial model for borehole resistance calculation

## Information

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

#### Interface

>     partial function partialInternalResistances
>       extends Modelica.Icons.Function;
>       input Boolean use_Rb = false "True if the value Rb should be used instead of calculated";
>       input Real Rb(unit = "(m.K)/W") "Borehole thermal resistance";
>       input Modelica.Units.SI.Height hSeg "Height of the element";
>       input Modelica.Units.SI.Radius rBor "Radius of the borehole";
>       input Modelica.Units.SI.Radius rTub "Radius of the tube";
>       input Modelica.Units.SI.Length eTub "Thickness of the tubes";
>       input Modelica.Units.SI.Length sha "Shank spacing, defined as the distance between the center of a pipe and the center of the borehole";
>       input Modelica.Units.SI.ThermalConductivity kFil "Thermal conductivity of the grout";
>       input Modelica.Units.SI.ThermalConductivity kSoi "Thermal conductivity of the soi";
>       input Modelica.Units.SI.ThermalConductivity kTub "Thermal conductivity of the tube";
>       input Modelica.Units.SI.ThermalConductivity kMed "Thermal conductivity of the fluid";
>       input Modelica.Units.SI.DynamicViscosity muMed "Dynamic viscosity of the fluid";
>       input Modelica.Units.SI.SpecificHeatCapacity cpMed "Specific heat capacity of the fluid";
>       input Modelica.Units.SI.MassFlowRate m_flow_nominal "Nominal mass flow rate";
>       output Real x "Capacity location";
>     end partialInternalResistances;

## Revisions

- 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.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos