WOLFRAM SYSTEM MODELER

TankWithHeight

Model of a tank with fluid height as output

Wolfram Language

In[1]:=
SystemModel["Hydraulic.LiquidContainers.Internal.TankWithHeight"]
Out[1]:=

Information

This is a model of a tank with environment pressure at inlet and hydrostatic pressure at the bottom. The pressure at the bottom depends on the fluid height:



where
p:Pressure at the tank bottom
:Fluid density
g:Standard acceleration of gravity on Earth
h:Height of the fluid

Limitations

This model does not prevent negative height and there are no orifices at the inlet or outlet ports.

Reference

K. Gieck and R. Gieck, Engineering Formulas, 7th ed., Germering, Germany: Gieck Publishing, 1997 p. N1.

Parameters (4)

medium

Value: Oil()

Type: Medium

Description: Medium in the component

A

Value: 1

Type: Area (m²)

Description: Bottom area of tank

pEnv

Value: 100000.0

Type: Pressure (Pa)

Description: Environment pressure

hMaxAnimation

Value: 1

Type: Height (m)

Description: Max height for animation

Connectors (3)

port_a

Type: Port_a

Description: Port for hydraulic fluid (filled icon)

port_b

Type: Port_b

Description: Port for hydraulic fluid (unfilled icon)

h

Type: RealOutput

Description: Fluid height

Components (1)

medium

Type: Medium

Description: Medium in the component

Used in Components (1)

TankWithOutlet

Hydraulic.LiquidContainers

Model of a tank with environment pressure at inlet, hydrostatic pressure at the bottom, and an outlet orifice