MiravoMiravo

Storage Tank

Model a liquid storage tank with fill state, level control surfaces, runtime health, fault behavior, and nameplate geometry.

Storage tank model illustration

What it is

A cylindrical liquid storage tank with fill and drain dynamics, a high-level switch, an outlet valve and a level sensor that can drift. Volume, height and diameter are parameters, so the tank behaves in real units rather than only percentages.

Used in

  • water-treatment: raw-water holding, clarifier basin and clear well
  • backup-power: the bulk fuel tank and the day tank
  • district-heating: the heat plant accumulator
  • pharma-cleanroom: the chilled-water buffer tank

What it tracks

MemberDescription
fill_command / outlet_valve_positionControl inputs that drive inflow and outflow.
level_percentTank level in percent. Subject to the level_sensor_drift fault.
inflow_rate / outflow_rate / net_flowLive flow rates in L/s.
level_switch_highHigh-level switch, active above level_high_pct.
inlet_pump_runningWhether the inlet pump is running.
liquid_temperatureLiquid temperature.

Methods

  • StartFill: open the inlet and begin filling.
  • StopFill: close the inlet.
  • SetOutletValvePosition: set the outlet valve position, which sets outflow.
  • ResetFault: clear an active fault.

OPC UA clients can call these from the session they use to read the tank.

Fault modes

  • level_sensor_drift: the reported level reads 4 points high for 1000 s.
  • inlet_valve_stuck: inflow drops to 20 % for 300 s.
  • outlet_leak: outflow rises 1.8 L/s for 600 s, so the level falls without an outflow command.
  • overflow: needs a level above 95 %. Inflow rises and outflow falls ×0.9 for 180 s.
  • temperature_transmitter_failure: open-circuit RTD: liquid temperature collapses to the range minimum for 900 s with quality bad.

Key parameters

ParameterDefaultUnit
nameplate_volume_l10000L
nameplate_height_m3m
nameplate_diameter_m2m
max_inflow_lps5L/s
max_outflow_lps3L/s
level_high_pct85%
level_low_pct15%

Use cases

  • Process flow balance across treatment stages.
  • Fuel inventory for backup plants.
  • Level-sensor fault detection: drift versus mechanical faults.

Customize

miravo models add storage-tank --from storage-tank
miravo models inspect storage-tank

Was this page useful?

Last updated on