Simulation extends optimization by reproducing how refinery operations evolve over time under realistic operating conditions. While optimization identifies the best operating decisions, simulation evaluates whether those decisions remain physically achievable as material continuously moves through the production network.
A
refinery digital twin models the dynamic behavior of process units, pipelines, tank farms, loading facilities, and transportation systems while continuously maintaining material balance. It captures operational effects that are difficult or impractical to represent in optimization models alone, including changing flow rates, equipment operating modes, maintenance activities, storage constraints, and production schedules.
As the simulation progresses, it reveals bottlenecks, storage limitations, and equipment interactions that may prevent an optimized production plan from being fully implemented. Engineers can
evaluate alternative operating scenarios, modify process parameters, and validate production plans before changes are introduced into the real refinery.
More importantly, production planning is only one of many engineering tasks involved in refinery management. A refinery digital twin also supports the evaluation of process modifications, identification of capacity bottlenecks, balancing of material flows, maintenance planning, coordination of multiple interconnected facilities, shipment forecasting, and assessment of modernization or expansion projects. These problems require reproducing the dynamic behavior of the refinery over time rather than solving a single optimization problem.
By combining optimization with continuous simulation, refinery digital twins become comprehensive decision-support systems rather than simply production planning tools. Optimization provides mathematically optimal operating decisions, while simulation verifies their feasibility and enables engineers to analyze a much broader range of operational and strategic scenarios. Together, they significantly improve production planning, reduce operational risk, and support more informed engineering decisions throughout the refinery lifecycle.
One implementation of this hybrid approach is provided by the Petroleum Refining Library (PRL), where optimization is tightly integrated with continuous simulation.