This partial function defines the common inputs to functions that calculate the borehole internal resistances.
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.SIunits.Height hSeg "Height of the element"; input Modelica.SIunits.Radius rBor "Radius of the borehole"; input Modelica.SIunits.Radius rTub "Radius of the tube"; input Modelica.SIunits.Length eTub "Thickness of the tubes"; input Modelica.SIunits.Length sha "Shank spacing, defined as the distance between the center of a pipe and the center of the borehole"; input Modelica.SIunits.ThermalConductivity kFil "Thermal conductivity of the grout"; input Modelica.SIunits.ThermalConductivity kSoi "Thermal conductivity of the soi"; input Modelica.SIunits.ThermalConductivity kTub "Thermal conductivity of the tube"; input Modelica.SIunits.ThermalConductivity kMed "Thermal conductivity of the fluid"; input Modelica.SIunits.DynamicViscosity muMed "Dynamic viscosity of the fluid"; input Modelica.SIunits.SpecificHeatCapacity cpMed "Specific heat capacity of the fluid"; input Modelica.SIunits.MassFlowRate m_flow_nominal "Nominal mass flow rate"; input Boolean printDebug = false "Print resistances values in log for debug purposes."; output Real x "Capacity location"; end partialInternalResistances;