Refinery operating conditions can change during simulation, requiring feedstock refinery flow control to be adjusted without modifying the model structure. Runtime Source Control provides this capability by allowing engineers to impose and remove flow limits while the simulation is running. Runtime Source Control is particularly useful in
crude oil supply chain simulation, where variable production rates, transportation constraints, and changing feedstock conditions must be represented dynamically.
The Petroleum Refining Library Source API supports two control levels: individual Source elements and the combined Source output. This allows a specific feedstock stream to be restricted independently or a common limit to be applied to the total output.
Runtime control also supports event-driven model response. When a Source element changes speed, onSpeedChange() provides the updated
speeds with zero atomic delay, allowing downstream logic to respond immediately without periodic polling.
This creates a simple operational control cycle:
Operating condition → flow limit → actual Source speed change → onSpeedChange()
Runtime Source Control is therefore useful for refinery flow control, production planning, and digital twin scenarios where feedstock conditions may change during model execution.