Tank farm simulation is a modeling approach used in oil and gas logistics to represent storage behavior in refinery networks and terminals. It supports refinery operations, where hydrocarbons are accumulated, stored, and dispatched under operational constraints. In modern refinery storage systems, simulation captures flow dynamics, pipeline inflows, and production fluctuations. Within a digital twin, tank farm models act as an intermediate layer between production and processing, enabling realistic flow and system interaction modeling. These models are widely used in production planning to ensure stable throughput and efficient coordination of refinery logistics. Tank farm simulation is also a key element in
production planning, enabling coordination between storage capacity, inflow schedules, and downstream demand.
Modern refinery and oil & gas logistics systems rely heavily on accurate
tank farm simulation models to represent storage, buffering, and shipment of hydrocarbon streams. In digital twin environments such as the
Petroleum Refining Library (PRL) implemented in AnyLogic, tank farms are not passive storage units but dynamic process nodes that directly influence material balance, product quality, and refinery logistics performance.
A key limitation of simplified simulation approaches is the assumption that tank farms operate only with incoming and outgoing flows. In real industrial systems, however, hydrocarbon streams are continuously modified by additional physical and operational mechanisms such as losses, flow removals, and additives. These effects significantly impact simulation model accuracy and must be explicitly represented in a
refinery digital twin model.
This article describes how additional flows in
tank farm simulation are modeled, how they influence mass balance, and how they are implemented in PRL components such as
RpAccumulative and RpFlowing. These tank farm types
differ both in their objectives and in their operational logic.This directly impacts production planning in refinery logistics and storage systems. Tank farm simulation supports operational decision-making by providing accurate visibility into storage levels, flow constraints, and dispatch conditions.