Refinery operating conditions can change during simulation, requiring feedstock flow rates 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.
The PRL 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 flow rates with zero atomic delay, allowing downstream logic to respond immediately without periodic polling.
This creates a simple operational control cycle:
Operating condition → flow limit → Source speed change → downstream response
Runtime Source Control is therefore useful for refinery flow control, production planning, and digital twin scenarios where feedstock conditions may change during model execution.