Buildings.DHC.Examples.Combined.BaseClasses
Package with base classes that are used by multiple models
Information
This package contains base classes that are used to construct the classes in Buildings.DHC.Examples.Combined.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
Borefield | Geothermal borefield model |
PartialSeries | Partial model for series network |
DesignDataSeries | Record with design data for series network |
Zurich | Zurich |
Buildings.DHC.Examples.Combined.BaseClasses.Borefield
Geothermal borefield model
Information
This model represents a borefield composed of 350 boreholes, with the following main assumptions.
- The soil is made of sandstone.
- The boreholes are filled with a bentonite grout.
- The boreholes have a height of 300 m and a diameter of 190 mm. They are discretized vertically in five segments.
- A distance of 10 m between each borehole is considered.
- HDPE pipes with a diameter of 40 mm are considered, in a double U-tube parallel configuration.
Extends from Buildings.Fluid.Geothermal.Borefields.TwoUTubes (Borefield model containing double U-tube boreholes).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Integer | nCel | 5 | Number of cells per aggregation level |
Integer | nSeg | 5 | Number of segments to use in vertical discretization of the boreholes |
Integer | nBor | borFieDat.conDat.nBor | Number of boreholes |
Real | dxyBor | 10 | Distance between boreholes |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | true | = true, if actual temperature at port is computed |
g-function | |||
Boolean | forceGFunCalc | false | Set to true to force the thermal response to be calculated at the start instead of checking whether this has been pre-computed |
Integer | nSegGFun | 12 | Number of segments to use in the calculation of the g-function |
Integer | nClu | 5 | Number of borehole clusters to use in the calculation of the g-function |
Flow resistance | |||
Boolean | from_dp | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
Boolean | linearizeFlowResistance | false | = true, use linear relation between m_flow and dp for any flow rate |
Real | deltaM | 0.1 | Fraction of nominal flow rate where flow transitions to laminar |
Dynamics | |||
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Boolean | dynFil | true | Set to false to remove the dynamics of the filling material. |
Initialization | |||
AbsolutePressure | p_start | Medium.p_default | Start value of pressure [Pa] |
Temperature | TFlu_start[nSeg] | TGro_start | Start value of fluid temperature [K] |
Soil | |||
Temperature | TExt0_start | 282.55 | Initial far field temperature [K] |
Temperature | TExt_start[nSeg] | {if z[i] >= z0 then TExt0_st... | Temperature of the undisturbed ground [K] |
Filling material | |||
Temperature | TGro_start[nSeg] | TExt_start | Start value of grout temperature [K] |
Temperature profile | |||
Height | z0 | 10 | Depth below which the temperature gradient starts [m] |
Real | dT_dz | 0.02 | Vertical temperature gradient of the undisturbed soil for h below z0 [K/m] |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | TBorAve | Average borehole wall temperature in the borefield [K] |
output RealOutput | Q_flow | Rate at which heat is extracted from soil [W] |
Modelica definition
Buildings.DHC.Examples.Combined.BaseClasses.PartialSeries
Partial model for series network
Information
Partial model that is used by the reservoir network models. The reservoir network models extend this model, add controls, and configure some component sizes.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | dpDis_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate - Distribution line [Pa/m] |
Real | dpCon_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate - Connection line [Pa/m] |
Length | dhSto | Hydraulic diameter of the distribution pipe before each connection [m] | |
Length | dhPla | Hydraulic diameter of the distribution pipe before each connection [m] | |
Integer | nBui | datDes.nBui | Number of buildings connected to DHC system |
DesignDataSeries | datDes | datDes(final mCon_flow_nomin... | Design data |
PartialBuildingWithETS | bui[nBui] | redeclare Buildings.DHC.Load... | Building and ETS |
Assumptions | |||
Boolean | allowFlowReversalSer | true | Set to true to allow flow reversal in the service lines |
Boolean | allowFlowReversalBui | false | Set to true to allow flow reversal for in-building systems |
Modelica definition
Buildings.DHC.Examples.Combined.BaseClasses.DesignDataSeries
Record with design data for series network
Information
This record contains parameter declarations used in example models of DHC systems.
Extends from Modelica.Icons.Record (Icon for records).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | nBui | 3 | Number of served buildings |
MassFlowRate | mPumDis_flow_nominal | 95 | Nominal mass flow rate of main distribution pump [kg/s] |
MassFlowRate | mPipDis_flow_nominal | mPumDis_flow_nominal | Nominal mass flow rate for main pipe sizing [kg/s] |
MassFlowRate | mCon_flow_nominal[nBui] | Nominal mass flow rate in each connection line [kg/s] | |
MassFlowRate | mPla_flow_nominal | 11.45 | Plant HX nominal mass flow rate (primary = secondary) [kg/s] |
MassFlowRate | mSto_flow_nominal | 105 | Storage nominal mass flow rate [kg/s] |
PressureDifference | dpPla_nominal | 50000 | Plant HX pressure drop at nomninal flow rate (primary = secondary) [Pa] |
Real | epsPla | 0.935 | Plant HX effectiveness (constant) |
Temperature | TLooMin | 273.15 + 6 | Minimum loop temperature [K] |
Temperature | TLooMax | 273.15 + 17 | Maximum loop temperature [K] |
Real | dp_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate [Pa/m] |
Length | lDis[nBui] | fill(100, nBui) | Length of the distribution pipe before each connection [m] |
Length | lCon[nBui] | fill(10, nBui) | Length of each connection pipe (supply only, not counting return line) [m] |
Length | lEnd | sum(lDis) | Length of the end of the distribution line (after last connection) [m] |
Modelica definition
Buildings.DHC.Examples.Combined.BaseClasses.Zurich
Zurich
Parameters
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSurMea | 282.98 | Mean annual surface temperature [K] |
TemperatureDifference | TSurAmp | 9.03 | Surface temperature amplitude [K] |
Duration | sinPha | 9132480 | Phase lag of soil surface temperature [s] |