Source in Refinery Simulation: Complete Guide to Feedstock Planning, Flow Control, and Statistics
Production Plans → Source → Pipelines → Tank Farms → Refinery Units
Source can also adapt feedstock flows during simulation. Runtime control allows engineers to set and restore flow limits for individual Source elements or the combined Source output. Source also provides production performance monitoring. Its SourceStatistics API covers current output, production plans, historical planned and actual values, and source/product identification. Therefore, Source provides a complete interface between feedstock planning and refinery operations:Plan → Flow → Control → Statistics
The following sections explain Source configuration, production planning, flow smoothing, runtime control, statistics, and integration with refinery logistics and Digital Twin models.Production plan → Source → target flow
Plan execution can then be evaluated by comparing actual Source output with the configured plan. Source Statistics provides plan values, completion ratios, and completion statuses for both daily and monthly planning. For monthly plans, Source can additionally apply flow smoothing at the boundaries between planning periods. This prevents artificial flow discontinuities while maintaining the planned delivery volumes. This makes Source suitable for modeling feedstock supply where production planning, production scheduling, and continuous refinery operation must remain synchronized.planned volume → continuous flow
The resulting flow can then interact with the rest of the refinery feedstock supply chain, including pipelines, tank farms, and downstream processing units.monthly plan A → transition → monthly plan B
This is particularly useful in refinery Digital Twin models, where feedstock flows should represent realistic operating behavior.rather than instantaneous changes caused only by a change in planning data. Flow smoothing is therefore an important part of the Source workflow when monthly production planning is used and continuous feedstock behavior is required.Operating condition → Flow limit → Source speed change → Model response.
See details: Source Control in Refinery Simulation: Runtime Flow Management
Source flow change → onSpeedChange() → downstream control logic
Such event-driven integration is useful when changes in feedstock supply must immediately affect pipelines, tank farms, production logic, or other refinery simulation components.Feedstock Sources → Source → Pipelines → Tank Farms → Refinery Units
Within a Digital Twin, this structure allows changes in feedstock supply to be reflected in the simulated refinery system and evaluated together with transportation, storage, and processing constraints.Plan → Generate Flow → Smooth → Connect → Control → Monitor → Analyze
This makes Source a core component for refinery feedstock simulation, crude oil supply chain simulation, refinery production planning, logistics modeling, and AnyLogic-based Digital Twin applications.