For process units, maintenance activities are modeled at the
process line level rather than at the entire unit level. This approach reflects real refinery and oil & gas processing operations, where individual lines within the same process unit may have different capacities, operating modes, product yields, and technical constraints.
When a specific process line is scheduled for maintenance, it automatically enters the
Repair state in the
digital twin and becomes unavailable for production. The maintenance event triggers the inner plant optimization module, which recalculates the production schedule and redistributes available feed streams among the remaining operating lines.
The
optimization algorithm evaluates the current operating conditions of all available lines, including maximum throughput limits, operating modes, product specifications, and process constraints. The objective is to determine the best achievable operating configuration while considering the reduced processing capacity caused by the maintenance activity.
If the remaining operating lines do not have sufficient capacity to process the available feedstock, the excess flow is redirected through a bypass route, if such a route is available in the process configuration. When no bypass option exists, the incoming feed rate must be reduced.
A reduction in feed intake creates a chain effect throughout the production system. The upstream tank farm may experience an increase in residuals due to reduced withdrawal capacity, or upstream process units may need to reduce their operating rates because the downstream unit can no longer accept the planned flow. Thus, a local maintenance event can affect material balances and operating conditions across the entire interconnected production network.
The impact is also transferred downstream. Since one process line is unavailable, the total outlet flow from the unit decreases, and the production rates of individual products change according to the available processing modes and the resulting operating conditions.
Maintenance events can also require changes in the operating strategy of the affected process unit. In many production systems, especially for front-end processing units, the priority is not always to maximize economic margin but to process the maximum possible amount of available feedstock. In such cases, operators may switch the remaining lines to alternative operating modes that provide lower-value product yields but allow higher feed processing rates.
These high-throughput operating modes are typically selected when maintaining production continuity and avoiding feedstock restrictions becomes more important than maximizing product profitability.
By automatically recalculating production allocation after maintenance events, the digital twin provides a realistic representation of equipment downtime consequences, including changes in production rates, product balances, tank farm residuals, upstream constraints, and overall system performance. This enables engineers to evaluate maintenance scenarios, identify bottlenecks, and optimize maintenance schedules before actual execution.
However, the impact of maintenance is not limited to the period when equipment is unavailable. The transition into and out of maintenance can also significantly affect production performance. While long-term planning models often assume that shutdown and restart occur instantaneously, real process units require transient startup and shutdown periods during which operating conditions and product quality may temporarily deviate from normal operation. These transient periods are especially important for products with stringent quality requirements, such as aviation fuels, where startup operations may generate off-spec product before stable production conditions are achieved. To capture these effects, advanced refinery digital twins support configurable transient operating modes that simulate shutdown, startup, and stabilization periods, improving the accuracy of maintenance evaluation and production planning scenarios.