Buildings.Fluid.Storage.BaseClasses.Examples

Examples for BaseClasses models

Information

This package contains examples for models found in Buildings.Fluid.Storage.BaseClasses.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger IndirectTankHeatExchanger Example showing the use of IndirectTankHeatExchanger

Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger

Example showing the use of IndirectTankHeatExchanger

Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger

Information

This model provides an example of how the Buildings.Fluid.Storage.BaseClasses.IndirectTankHeatExchanger model is used. In the model water flows from a flow source through the heat exchanger to a low pressure environment. The stagnant fluid on the outside of the heat exchanger is modeled as a constant temperature.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model IndirectTankHeatExchanger "Example showing the use of IndirectTankHeatExchanger" extends Modelica.Icons.Example; package Medium = Buildings.Media.Water "Buildings library model for water"; Buildings.Fluid.Storage.BaseClasses.IndirectTankHeatExchanger indTanHex( nSeg=3, CHex=50, Q_flow_nominal=3000, m_flow_nominal=3000/20/4200, volHexFlu=0.0004, dExtHex=0.01905, redeclare package MediumTan = Medium, redeclare package MediumHex = Medium, dp_nominal=10000, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, TTan_nominal=293.15, THex_nominal=323.15) "Heat exchanger"; Buildings.Fluid.Sources.Boundary_pT bou1(nPorts=1, redeclare package Medium = Medium); Buildings.Fluid.Sources.MassFlowSource_T bou( m_flow=0.1, nPorts=1, redeclare package Medium = Medium, T=323.15); Buildings.HeatTransfer.Sources.FixedTemperature watTem[3](each T=293.15); equation connect(bou1.ports[1], indTanHex.port_a); connect(bou.ports[1], indTanHex.port_b); connect(watTem.port, indTanHex.port); end IndirectTankHeatExchanger;