modelTank
Open tank with free surface
Extends from Icons.Water.Tank.
Information
This model describes a simple free-surface cylindrical water tank. The model is based on mass and energy balances, assuming that no heat transfer takes place except through the inlet and outlet flows.
The pressure at the inlet and outlet ports is the ambient pressure plus the static head due to the level, while the pressure at the inletTop port is the ambient pressure.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Area | A | Cross-sectional area | |
| SI.Volume | V0 | 0 | Volume at zero level |
| SI.Height | y0 | 0 | Height of zero level over inlet and outlet flanges |
| Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction |
| SI.Acceleration | g | Modelica.Constants.g_n | |
| Initialisation | |||
| SI.Length | ystart | Start level | |
| Medium.SpecificEnthalpy | hstart | 1e5 | |
| Choices.Init.Options | initOpt | system.initOpt | Initialisation option |
| Boolean | noInitialPressure | false | Remove initial equation on pressure |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FlangeA | inlet | ||
| FlangeA | inletTop | ||
| FlangeB | outlet |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.ThermodynamicState | liquidState | Thermodynamic state of the liquid | |
| ThermoPower.System | system | System wide properties | |
| SI.Length | y | Level | |
| SI.Volume | V | Liquid volume | |
| SI.Mass | M | Liquid mass | |
| SI.Enthalpy | H | Liquid (total) enthalpy | |
| Medium.SpecificEnthalpy | h | Liquid specific enthalpy | |
| Medium.SpecificEnthalpy | hin | Inlet specific enthalpy | |
| Medium.SpecificEnthalpy | htop | Top inlet specific enthalpy | |
| Medium.SpecificEnthalpy | hout | Outlet specific enthalpy | |
| Medium.AbsolutePressure | p | Bottom pressure |
Contents
| Name | Description |
|---|---|
Revisions
- 29 Jul 2017 by Francesco Casella:
Added inletTop port. - 30 May 2005 by Francesco Casella:
Initialisation support added. - 16 Dec 2004 by Francesco Casella:
Standard medium definition added. - 22 Jun 2004 by Francesco Casella:
Improved equations and adapted to Modelica.Media. - 1 Oct 2003 by Francesco Casella:
First release.