Target Tank Level: 50%
Target Mixture (Fluid A %): 50%
Manual Outlet Valve: 50%
PID Tuning (Level Controller):
Kₚ: 1.0
Kᵢ: 0.0
Kd: 0.0
PID Tuning (Mixture Controller):
Kₚ: 1.0
Kᵢ: 0.1
Kd: 0.0
Inlet Valve (Fluid A, Auto): 0%
Inlet Valve (Fluid B, Auto): 0%
Tank Level: 50%
Current Mixture: 50% Fluid A
This simulation represents a water tank with two fluid inlets (Fluid A and Fluid B) and one manual outlet. Two PID controllers are used:
The net inflow is split as follows:
Tuning the PID parameters (Kₚ, Kᵢ, and Kd) is critical:
Use the sliders on the left panel to adjust the setpoints and PID parameters. The live diagrams show how the setpoints (red lines) compare with the actual measured values (blue lines) over time.
The physical simulation on the right shows the tank with a blended color indicating the mixture (blue for Fluid A and red for Fluid B), valve gauges representing the current valve openings, and a display of the current tank level and total volume in liters.
Experiment with the parameters and observe how the regulators adjust the inlets to maintain the desired level and mixture.
Kjell-Ove Mickelsson LKAB