Flow Correction is the primary operating algorithm of the flowing tank farm. It is activated at simulation startup and whenever stable operating conditions must be restored. It provides active flow control by continuously regulating the outlet flow to maintain the target inventory level and stabilize downstream operation.
Two outlet flow control strategies are supported. The appropriate
control strategy is selected according to the refinery configuration.
1 Automatic Flow Control. The algorithm continuously adjusts the outlet flow to maintain the tank inventory close to the target level while smoothing fluctuations in the incoming flow. Depending on the
refinery configuration, the outlet flow may be controlled directly or automatically recalculated within the operating limits of the pumping system [
Vmin; Vmax]. During operation, the outlet flow is periodically updated to compensate for inventory deviations while respecting pump capacity and flow ramp-rate limits (±
∆V). This allows the tank farm to respond to changing process conditions without introducing abrupt flow variations. The resulting automatic flow control improves process stability while minimizing unnecessary control actions. This adaptive behavior improves overall
process control by maintaining stable operating conditions despite fluctuations in upstream production.
Once the inlet and outlet flows are balanced and the tank inventory remains within the allowable tolerance around the target level, the control system automatically switches to the
Steady Flow algorithm, where frequent recalculations are no longer required.
2. External Flow Control. The desired outlet flow is determined by external control algorithms, while the flowing tank farm continues to smooth flow fluctuations and maintain the target inventory level. This strategy is commonly applied when the tank farm is located at the refinery inlet, where pipeline constraints are absent and the allowable outlet flow is primarily determined by the operating limits of downstream process units rather than by pipeline hydraulics.