modelStratifiedNonUniformInitial
Test model for stratified tank with non-uniform initial temperature
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This test model validates Buildings.Fluid.Storage.Stratified by specifying a non-uniform initial temperature.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nSeg | 7 | Number of segments in tank |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | 1*1000/3600/4 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.Sources.Boundary_pT | sou_1 | ||
| Buildings.Fluid.Sources.MassFlowSource_T | sin_1 | Mass flow source | |
| Buildings.Fluid.Storage.Stratified | heaTan | Tank that will be heated up | |
| Buildings.Fluid.Sources.MassFlowSource_T | sin_2 | Mass flow source | |
| Buildings.Fluid.Storage.Stratified | cooTan | Tank that will be cooled down | |
| Buildings.Fluid.Sensors.EnthalpyFlowRate | HIn_flow | Enthalpy flow rate | |
| Buildings.Fluid.Sensors.EnthalpyFlowRate | HOut_flow | Enthalpy flow rate | |
| Buildings.Fluid.Sensors.EnthalpyFlowRate | HInEnh_flow | Enthalpy flow rate | |
| Buildings.Fluid.Sensors.EnthalpyFlowRate | HOutEnh_flow | Enthalpy flow rate | |
| Modelica.Blocks.Math.Add | add | Adder for enthalpy difference | |
| Modelica.Blocks.Continuous.Integrator | dHTanEnh | Difference in enthalpy (should be zero at steady-state) | |
| Modelica.Blocks.Math.Add | add1 | Adder for enthalpy difference | |
| Modelica.Blocks.Continuous.Integrator | dHTan | Difference in enthalpy (should be zero at steady-state) |
Contents
| Name | Description |
|---|---|
| Medium model |
Revisions
-
November 13, 2019 by Jianjun Hu:
Changed the uniform initial tank temperature to be non-uniform.
This is for #1246.