The Reservoir Park Flowing (RpFlowing) component provides provides built-in support for scheduled tank maintenance and repair simulation.
Tank maintenance schedules are stored in the r
p_tanks_repairs database table. Each record specifies the maintenance period (
Date start and
Date end), activation flag, and descriptive information. During simulation, the
Petroleum Refining Library automatically processes these records and initiates the corresponding maintenance events according to the defined schedule.
At the scheduled time, the algorithm verifies that sufficient storage capacity is available for inventory redistribution. If the condition is satisfied, an equivalent tank group is automatically removed from service and its inventory is redistributed among the remaining active groups. After maintenance, the reverse redistribution restores the original storage configuration. Throughout the maintenance process, the inlet and outlet flow control algorithms continue operating without modification. Maintenance therefore models the temporary reduction of available storage capacity, allowing the digital twin to reproduce the operational impact on refinery production planning of scheduled repairs without modifying the existing control algorithms.
The current implementation supports maintenance of only one equivalent tank group at a time, reflecting standard refinery practice where repairs are performed sequentially to preserve available storage capacity and stable operation.