WOLFRAM SYSTEM MODELER

DoubleTankSystem

Example circuit with two tanks connected in series

Diagram

Wolfram Language

In[1]:=
SystemModel["Hydraulic.Examples.Accumulators.DoubleTankSystem"]
Out[1]:=

Information

This is an example of a double tank system. The pump can be manually or automatically controlled. The fluid level from one of the tanks can be used as input to the PID-controller.

Fig. 1 shows the fluid level of the lower tank and the desired level. Fig. 2 shows the pump speed.

doubleTankSystemPlot1
Fig. 1 Reference fluid level and lower tank fluid level

doubleTankSystemPlot2
Fig. 2 Pump speed

Reference

Lab on a double tank system from a control systems course at Linköping University.

Parameters (6)

medium

Value: Hydraulic.Media.Water20()

Type: Medium

Description: Medium in the component

referenceValue

Value: 0.11

Type: Height (m)

Description: Desired fluid level

useUpperTank

Value: false

Type: Boolean

Description: Use the upper tank fluid level as target

manualPumpSpeed

Value: 5

Type: AngularVelocity (rad/s)

Description: Manual pump speed

tank1_h0

Value: 0.1

Type: Length (m)

Description: Tank height (tank1.h.start)

tank2_h0

Value: 0.1

Type: Length (m)

Description: Tank height (tank2.h.start)

Components (14)

medium

Type: Medium

Description: Medium in the component

tank1

Type: TankWithOutlet

tank2

Type: TankWithOutlet

tank

Type: Tank

pump

Type: Pump

speed

Type: Speed

referenceHeight

Type: Constant

switch1

Type: Switch

useTopTankHeight

Type: BooleanConstant

manualPumpCmd

Type: Constant

gain

Type: Gain

PID

Type: LimPID

enableController

Type: BooleanConstantVariability

switch2

Type: Switch