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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_Rb | false | True if the value Rb should be used instead of calculated |
| Real | Rb | Borehole thermal resistance | |
| Modelica.Units.SI.Height | hSeg | Height of the element | |
| Modelica.Units.SI.Radius | rBor | Radius of the borehole | |
| Modelica.Units.SI.Radius | rTub | Radius of the tube | |
| Modelica.Units.SI.Length | eTub | Thickness of the tubes | |
| Modelica.Units.SI.Length | sha | Shank spacing, defined as the distance between the center of a pipe and the center of the borehole | |
| Modelica.Units.SI.ThermalConductivity | kFil | Thermal conductivity of the grout | |
| Modelica.Units.SI.ThermalConductivity | kSoi | Thermal conductivity of the soi | |
| Modelica.Units.SI.ThermalConductivity | kTub | Thermal conductivity of the tube | |
| Modelica.Units.SI.ThermalConductivity | kMed | Thermal conductivity of the fluid | |
| Modelica.Units.SI.DynamicViscosity | muMed | Dynamic viscosity of the fluid | |
| Modelica.Units.SI.SpecificHeatCapacity | cpMed | Specific heat capacity of the fluid | |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | Nominal mass flow rate | |
| String | instanceName | "undeclared caller" | Instance name of the model or block that calls this function |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Capacity location |
Revisions
-
November 22, 2023, by Michael Wetter:
Corrected use ofgetInstanceName()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 bepure.
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.