BuildingSystems.Fluid.Storage.StratifiedEnhanced

# .BuildingSystems.Fluid.Storage.StratifiedEnhanced

Stratified tank model with enhanced discretization

## Information

This is a model of a stratified storage tank for thermal energy storage.

See the BuildingSystems.Fluid.Storage.UsersGuide for more information.

#### Limitations

The model requires at least 4 fluid segments. Hence, set `nSeg` to 4 or higher.

## Revisions

- March 7, 2022, by Michael Wetter:
  Set `final massDynamics=energyDynamics`.
  This is for #1542.
- June 7, 2018 by Filip Jorissen:
  Copied model from Buildings and update the model accordingly. This is for #314.
- June 1, 2018, by Michael Wetter:
  Refactored model to allow a fluid port in the tank that do not have the enhanced stratification model.
  This is for issue 1182.
- March 29, 2012 by Wangda Zuo:
  Revised the implementation to reduce the temperature overshoot.
- June 23, 2010 by Michael Wetter and Wangda Zuo:
  Changed model that is used to correct the numerical diffusion. The previous version used the model from Stefan Wischhusen, An Enhanced Discretization Method for Storage Tank Models within Energy Systems, Modelica Conference, Vienna, Austria, September 2006. However, for situations where there is a strong stratification, this model can lead to a large overshoot in tank temperatures, leading to a violation of the second law. In this revision, the model that computes the volume outlet temperatures has been changed to a third order upwind scheme, which is implemented in BuildingSystems.Fluid.Storage.BaseClasses.ThirdOrderStratifier.
- October 23, 2008 by Michael Wetter:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos