| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimHydraulics |
| Contents | Index |
| Learn more about SimHydraulics |
Low-Pressure Blocks

The Variable Head Tank block represents a pressurized hydraulic reservoir, in which fluid is stored under a specified pressure. The pressurization remains constant regardless of volume change. The block accounts for the fluid level change caused by the volume variation, as well as for pressure loss in the connecting pipe that can be caused by a filter, fittings, or some other local resistance. The loss is specified with the pressure loss coefficient. The block computes the volume of fluid in the tank and exports it outside through the physical signal port V.
The pressure at the tank inlet is computed with the following equations:
![]()
![]()
![]()
![]()

![]()
where
| p | Pressure at the tank inlet |
| pelev | Pressure due to fluid level |
| ploss | Pressure loss in the connecting pipe |
| ppr | Pressurization |
| ρ | Fluid density |
| g | Acceleration of gravity |
| H | Fluid level with respect to the bottom of the tank |
| K | Pressure loss coefficient |
| Ap | Connecting pipe area |
| d | Connecting pipe diameter |
| q | Flow rate |
| V | Instantaneous fluid volume |
| V0 | Initial fluid volume |
| A | Tank cross-sectional area |
| t | Simulation time |
For a tank with a variable cross-sectional area, the relationship between fluid level and volume is specified with the table lookup
![]()
You have a choice of three interpolation methods and two extrapolation methods.
Connection T is a hydraulic conserving port associated with the tank inlet. Connection V is a physical signal port. The flow rate is considered positive if it flows out of the tank.
Warning If fluid level becomes so low that the tank inlet gets exposed, no warnings will be issued. The simulation will continue and pressure at the inlet will be set to the pressurization pressure. If this is not acceptable, The MathWorks recommends that you employ the necessary control measures to guard against this situation in your models. |


The initial volume of fluid in the tank. This parameter must be greater than zero. The default value is 20 l.
Gage pressure acting on the surface of the fluid in the tank. It can be created by a gas cushion, membrane, bladder, or piston, as in bootstrap reservoirs. This parameter must be greater than or equal to zero. The default value is 0, which corresponds to a tank connected to atmosphere.
Select one of the following block parameterization options:
Linear — Provide a value for the tank cross-sectional area. The level is assumed to be linearly dependent on the fluid volume. This is the default method.
Table-specified — Provide tabulated data of fluid volumes and fluid levels. The level is determined by one-dimensional table lookup. You have a choice of three interpolation methods and two extrapolation methods.
The cross-sectional area of the tank. This parameter must be greater than zero. The default value is 0.8 m^2. This parameter is used if Level/Volume relationship is set to Linear.
Specify the vector of input values for fluid volume as a tabulated 1-by-m array. The input values vector must be strictly monotonically increasing. The values can be nonuniformly spaced. You must provide at least three values. The default values, in m^3, are [0 0.0028 0.0065 0.0114 0.0176 0.0252 0.0344 0.0436 0.0512 0.0574 0.0623 0.066 0.0688 0.0707 0.072 0.0727]. This parameter is used if Level/Volume relationship is set to Table-specified.
Specify the vector of output values for the fluid level as a tabulated 1-by-m array. The pump displacements vector must be the same size as the control member positions vector. The default values, in meters, are [0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 0.22 0.24 0.26 0.28 0.3]. This parameter is used if Level/Volume relationship is set to Table-specified.
The diameter of the connecting pipe. This parameter must be greater than zero. The default value is 0.02 m.
The value of the pressure loss coefficient, to account for pressure loss in the connecting pipe. This parameter must be greater than zero. The default value is 1.2.
For reasons of computational robustness, the loss is computed with the equation similar to that used in the Fixed Orifice block:
![]()
The Critical Reynolds number is set to 15.
Select one of the following interpolation methods for approximating the output value when the input value is between two consecutive grid points:
Linear — Uses a linear interpolation function.
Cubic — Uses the Piecewise Cubic Hermite Interpolation Polinomial (PCHIP).
Spline — Uses the cubic spline interpolation algorithm.
For more information on interpolation algorithms, see the PS Lookup Table (1D) block reference page. This parameter is used if Level/Volume relationship is set to Table-specified.
Select one of the following extrapolation methods for determining the output value when the input value is outside the range specified in the argument list:
From last 2 points — Extrapolates using the linear method (regardless of the interpolation method specified), based on the last two output values at the appropriate end of the range. That is, the block uses the first and second specified output values if the input value is below the specified range, and the two last specified output values if the input value is above the specified range.
From last point — Uses the last specified output value at the appropriate end of the range. That is, the block uses the last specified output value for all input values greater than the last specified input argument, and the first specified output value for all input values less than the first specified input argument.
For more information on extrapolation algorithms, see the PS Lookup Table (1D) block reference page. This parameter is used if Level/Volume relationship is set to Table-specified.
The block has the following ports:
Hydraulic conserving port associated with the tank inlet.
Physical signal port that outputs the volume of fluid in the tank.
![]() | Valve Hydraulic Force | Variable Head Three-Arm Tank | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |