Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples
Example models to test base classes
Information
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
![]() |
Model that tests a basic segment that is used to build a borehole |
![]() |
Model that tests a basic segment that is used to build a borehole |
![]() |
Test problem for the function that exchanges values |
![]() |
Test the function factorial |
![]() |
Model that tests the basic element that is used to built borehole models |
![]() |
Test model the temperature boundary condition of a single U tube heat exchanger |
![]() |
Model that tests the resistances in the borehole |
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.BoreholeSegment
Model that tests a basic segment that is used to build a borehole
Information
This example illustrates modeling a segment of a borehole heat exchanger. It simulates the behavior of the borehole on a single horizontal section including the ground and the boundary condition.Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Bentonite | bento | Borehole filling material |
Modelica definition
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.ConvectionResistance
Model that tests a basic segment that is used to build a borehole
Information
This example tests the function for the convective thermal resistance inside the pipe.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
SpecificHeatCapacity | cpMed | Medium.specificHeatCapacityC... | Specific heat capacity of the fluid [J/(kg.K)] |
ThermalConductivity | kMed | Medium.thermalConductivity(M... | Thermal conductivity of the fluid [W/(m.K)] |
DynamicViscosity | mueMed | Medium.dynamicViscosity(Medi... | Dynamic viscosity of the fluid [Pa.s] |
MassFlowRate | m_flow_nominal | 3000/10/4200 | Nominal mass flow rate [kg/s] |
Modelica definition
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.ExchangeValues
Test problem for the function that exchanges values
Information
This example tests the function Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.exchangeValues by assigning and reading different elements of the array. The assert statements check whether the returned values is correct.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | x | 3 |
Modelica definition
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.Factorial
Test the function factorial
Information
This example tests the function Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.factorial.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | x[:] | {1,2,3,4,5} |
Modelica definition
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.HexInternalElement
Model that tests the basic element that is used to built borehole models
Information
This example illustrates modeling the internal part of a borehole heat exchanger. The borehole is constitued with two pipes that are symetricaly spaced in the borehole.Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition
Test model the temperature boundary condition of a single U tube heat exchanger
Information
This example tests the temperature boundary condition at the external part of a cylinder.Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
HeatFlowRate | Q_flow | -50 | Heat flow rate extracted at center of cylinder [W] |
Modelica definition
Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.SingleUTubeResistances
Model that tests the resistances in the borehole
Information
This example tests the thermal resistances in the borehole.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Height | hSeg | 1 | Height of the element [m] |
Radius | rBor | 0.2 | Radius of the borehole [m] |
ThermalResistance | Rgb | Thermal resistance between grout zone and borehole wall [K/W] | |
ThermalResistance | Rgg | Thermal resistance between the two grout zones [K/W] | |
ThermalResistance | RCondGro | Thermal resistance of the pipe wall [K/W] | |
Real | x | Capacity location | |
Soil | |||
Granite | matSoi | redeclare parameter Building... | Thermal properties of soil |
Filling material | |||
Bentonite | matFil | redeclare parameter Building... | Thermal properties of the filling material |
Tubes | |||
Radius | rTub | 0.02 | Radius of the tubes [m] |
ThermalConductivity | kTub | 0.5 | Thermal conductivity of the tube [W/(m.K)] |
Length | eTub | 0.002 | Thickness of a tube [m] |
Borehole | |||
Length | xC | 0.05 | Shank spacing, defined as the distance between the center of a pipe and the center of the borehole [m] |