Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BaseClasses

Package with base classes for Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples

Information

This package contains base classes that are used to construct the models in Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

Name Description
Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BaseClasses.PartialBorehole PartialBorehole Partial model for borehole example models

Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BaseClasses.PartialBorehole

Partial model for borehole example models

Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BaseClasses.PartialBorehole

Information

This partial model is used for examples using boreholes models which extend Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BaseClasses.PartialBorehole.

Parameters

TypeNameDefaultDescription
IntegernSeg10Number of segments to use in vertical discretization of the boreholes
TemperatureT_start273.15 + 22Initial soil temperature [K]
ExampleborFieDat Borefield parameters
PartialBoreholeborHolredeclare Buildings.Fluid.Ge...Borehole connected to a discrete ground model

Modelica definition

partial model PartialBorehole "Partial model for borehole example models" package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater; parameter Integer nSeg(min=1) = 10 "Number of segments to use in vertical discretization of the boreholes"; parameter Modelica.SIunits.Temperature T_start = 273.15 + 22 "Initial soil temperature"; parameter Buildings.Fluid.Geothermal.Borefields.Data.Borefield.Example borFieDat "Borefield parameters"; replaceable Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.PartialBorehole borHol constrainedby Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.PartialBorehole( redeclare package Medium = Medium, borFieDat=borFieDat, m_flow_nominal=borFieDat.conDat.mBor_flow_nominal, dp_nominal=borFieDat.conDat.dp_nominal, nSeg=nSeg, TGro_start={T_start for i in 1:nSeg}, TFlu_start={Medium.T_default for i in 1:nSeg}) "Borehole connected to a discrete ground model"; Buildings.Fluid.Sources.MassFlowSource_T sou( redeclare package Medium = Medium, nPorts=1, use_T_in=false, m_flow=borFieDat.conDat.mBor_flow_nominal, T=303.15) "Source"; Buildings.Fluid.Sources.Boundary_pT sin( redeclare package Medium = Medium, use_p_in=false, use_T_in=false, nPorts=1, p=101330, T=283.15) "Sink"; Buildings.Fluid.Sensors.TemperatureTwoPort TBorIn(m_flow_nominal=borFieDat.conDat.mBor_flow_nominal, redeclare package Medium = Medium, tau=0) "Inlet borehole temperature"; Buildings.Fluid.Sensors.TemperatureTwoPort TBorOut(m_flow_nominal=borFieDat.conDat.mBor_flow_nominal, redeclare package Medium = Medium, tau=0) "Outlet borehole temperature"; Buildings.HeatTransfer.Sources.FixedTemperature preTem[nSeg](each T=T_start) "Prescribed temperature"; equation connect(sou.ports[1], TBorIn.port_a); connect(TBorIn.port_b, borHol.port_a); connect(borHol.port_b, TBorOut.port_a); connect(TBorOut.port_b, sin.ports[1]); connect(borHol.port_wall, preTem.port); end PartialBorehole;