#03 Tank Farm Placement in Oil Refinery Material Flow Simulation Models

       In this article, we analyze different schemes of tank farm placement and tank farm layout in refinery and gas processing systems within modern refinery simulation models. The study is based on reusable simulation components, including the flowing tank farm (RpFlowing) and accumulative tank farm (RpAccumulative), which are part of the Petroleum Refining Library (PRL). The presented modeling approach is grounded in the development of various refinery and gas processing plant simulation models, as well as in accumulated engineering experience and the operational behavior patterns observed across different industrial configurations and case studies of refinery systems..

       Tank farms, as fundamental simulation components, represent critical elements in both real industrial systems and in industrial process modeling of refinery and gas processing facilities. In terms of tank farm location and configuration, these systems should not be considered static storage assets, but rather dynamic control nodes governing hydrocarbon flows within the global refinery material flow system. Within refinery tank farm layout design and simulation, tank farm models are widely applied as buffering and regulation units, ensuring synchronization between non-uniform inflows and constrained downstream processing units. They also support accumulation, product certification, and dispatch operations, particularly in accumulative configurations.

       From the perspective of digital twin modeling and AnyLogic-based refinery simulation model development, tank farms act as key decision-making elements that define flow distribution, storage strategies, and system-level constraints. In this context, tank farms can be positioned at inlet, intermediate, and outlet sections of industrial facilities. Each zone requires a specific tank farm arrangement and tank farm configuration, depending on its functional role within the overall flow network topology of the production system.

I Inlet schemes (tank farm placement at inlet sections)

Scheme 1: Inflow → Flowing Tank Farm → Plants

       In typical tank farm placement and tank farm layout configurations, process (head) units are located downstream of flowing tank farms within refinery and gas processing systems, as incoming feedstock streams often exhibit significant flow rate fluctuations. The flowing tank farm acts as a buffer, absorbing these variations and smoothing the flow before supplying a more stable feed to the downstream process units.
       Within simulation models, this configuration requires solving the problem of optimal distribution of outgoing flow from the tank farm among multiple plants, as well as evaluating the maximum achievable throughput under tank farm and plants constraints.
       During flow simulation, the control logic focuses on determining an optimal withdrawal intensity from the Flowing tank farm that maintains the tank farm residual level within admissible bounds (i.e., above minimum and below maximum thresholds), while preventing overflow conditions or inflow rejection caused by downstream capacity saturation. The outflow rate from the tank farm is determined by the current residual level and the aggregated maximum intake capacity of connected downstream process units, reflecting core principles of capacity constraint modeling within the overall refinery material flow system.
Simulation logic and operating rules
       Within the tank farm simulation model implemented in the AnyLogic-based oil and gas logistics simulation framework, the flow control is defined by the following rules:
       Inflow rate is not constrained by the tank farm and is determined by the upstream node rate (e.g., pipeline or upstream process unit production rate).
       Target residual level is set to the mid-range storage level of the tank farm.
       Outflow rate is constrained by both the pumping system capacity installed in the tank farm and the maximum allowable intake capacity of downstream process units.

Scheme 2: Inflow → Plants (no tank farm scenario)

       In specific cases of tank farm placement and tank farm layout within refinery and gas processing systems, inlet sections may operate without intermediate tank farm infrastructure. In such configurations, incoming streams are directly routed to process (head) units, which significantly alters the structure and behavior of the overall refinery simulation model.
       Within this configuration, flow simulation is focused on solving the problem of optimal allocation of incoming feedstock streams among multiple process units, with the objective of minimizing unaccepted or rejected flow due to capacity constraints.
        In both configurations (scheme 1 and scheme 2), the evaluation of permissible outgoing flow rates must account not only for the maximum processing capacity of receiving units, but also for a broader set of operational factors, including minimum and maximum operating levels, flow prioritization rules, real-time system load, seasonal variability, feedstock composition, and additional technological constraints within the overall refinery material flow system.

II Internal production schemes

       Within industrial systems, tank farm configuration in downstream sections of refinery operations may be implemented as either flowing or accumulative systems.
       Flowing tank farms are primarily used for damping internal flow fluctuations and ensuring temporary operational autonomy of process units during upstream disruptions or unit shutdowns.
       Accumulative tank farms serve a complementary function, providing temporary buffering of intermediate or finished products prior to their transfer to product storage tanks or subsequent processing stages, within the broader framework of oil and gas logistics simulation and industrial system modeling.

Scheme 1: Plant→ Flowing Tank Farm → Plant

       This configuration is used to smooth flow variations between interconnected process units within refinery and gas processing systems, representing a typical pattern of tank farm placement and tank farm layout in modern refinery simulation models. This scheme enables effective decoupling of upstream and downstream unit dynamics through intermediate buffering elements. In most implementations, a bypass line is introduced to divert excess flow from the tank farm into a common collection header when the receiving unit is unable to process the full incoming stream.
       Within this structure, the control strategy of the flowing tank farm is defined by determining an optimal withdrawal intensity that ensures stable operation of the downstream unit while maintaining the tank farm residual within admissible operating limits.
Simulation logic and operating rules
       Within the tank farm simulation model (RpFlowing) implemented in an AnyLogic-based material flow simulation environment, the control rules are defined as follows:
       Inflow rate is not constrained by the tank farm and is determined by the production rate of the upstream process unit.
       Residual level is set to the mid-range storage level of the tank farm.
       Outflow rate is constrained by both the pumping system capacity installed in the tank farm and the maximum allowable intake capacity of the downstream.

Scheme 2: Plant → Flowing Tank Farm → Accumulative Tank Farm

       This configuration is used to smooth flow variations originating from upstream (head) process units and directed toward downstream receiving units, with subsequent accumulation of intermediate products. It represents a specific pattern of tank farm placement and tank farm layout within modern refinery simulation models, combining both flowing and accumulative buffering functions in a single configuration.
       The flowing tank farm acts as a primary damping element that reduces short-term flow oscillations, while the accumulative tank farm provides additional buffering capacity and supports stream preparation for further distribution or long-term storage within the system. Together, these elements form a multi-stage buffering structure within the overall material flow simulation framework.
Simulation logic and operating rules
       Within the tank farm simulation modelиimplemented in an AnyLogic-based material flow simulation environment, the control rules are defined as follows:
       Inflow rate is not constrained by the tank farm and is determined by the production rate of the upstream process unit.
       Residual level is set to the mid-range storage level of the tank farm to ensure stable buffering behavior and system stability.
       Outflow rate is constrained by the capacity of the installed pumping system, defined as the average achievable throughput rate.

Scheme 3: Plant → Accumulative Tank Farm → Plant

       This configuration is applied to smooth flow variations between upstream (head) process units and downstream receiving units within refinery and gas processing systems. It represents a specific pattern of tank farm placement and tank farm layout in modern refinery simulation models, where the accumulative tank farm functions as a primary buffering element between process stages.
       In typical implementations, bypass lines are used to divert excess flow into a common collection header when the receiving unit is unable to process the full incoming stream. In addition, recirculation lines may be introduced when complete intake of the flow by the downstream unit is not feasible. The operating level of the accumulative tank farm, together with inflow intensity, must ensure stable and continuous loading of the receiving process unit.
       Within this configuration, control of the accumulative tank farm is based on determining an optimal withdrawal intensity that satisfies downstream capacity requirements while maintaining the tank residual within admissible operational limits.
Simulation logic and operating rules
       Within the tank farm simulation model (RpAccumulative) implemented in an AnyLogic-based material flow simulation environment, the control rules are defined as follows:
       Inflow rate is not constrained by the tank farm and is determined by the production rate of the upstream process unit.
       Residual level is maintained at a high (near-full) operating state to ensure sufficient buffering capacity and supply continuity within the refinery material flow system.
       Outflow rate is constrained by the pumping system capacity and the maximum allowable intake capacity of the downstream process unit.

Scheme 4: Plant → Accumulative Tank Farm → Product Accumulative Tank Farm

       This configuration is used when an accumulative tank farm is introduced as an additional buffering stage for intermediate storage of finished products prior to their transfer to the main product storage tank farm. From a functional perspective, this element is closely related to a product accumulative tank farm; however, in practical implementations, the presence of an intermediate buffering stage may reduce the filling rate of the main product storage system due to delayed flow propagation effects.
       Within real industrial systems, this configuration is often simplified by switching to a direct-flow mode, bypassing intermediate accumulation stages when operational conditions permit. In such cases, the intermediate accumulative tank farm operates as a strategic buffer, enabling the formation of additional product reserves when there is a risk of overflow in the main product storage system.
Simulation logic and operating rules
       Within the tank farm simulation model (RpAccumulative) implemented in an AnyLogic-based material flow simulation environment, the control rules are defined as follows:
       Inflow rate is not constrained by the tank farm and is determined by upstream source nodes (process units).
       Residual level may operate either in full storage mode or minimum buffer mode, depending on production planning constraints and target fulfillment strategies.
       Outflow rate is constrained by the capacity of the installed pumping system, defined as the average achievable throughput rate.

III Outflow Schemes (Downstream Tank Farm Systems)

       Downstream (outlet) tank farm systems in refinery and gas processing facilities include both flowing and accumulative configurations. These systems represent an important aspect of tank farm placement and tank farm layout within refinery simulation models, where they function as intermediate and final control nodes for outgoing product streams.
       Flowing tank farms are primarily used to smooth irregularities in outgoing flows from process units before transfer into the main pipeline system. In particular, they help mitigate flow fluctuations and reduce the risk of hydraulic shocks during pipeline feeding, contributing to stable operation of the downstream transportation infrastructure.
       Accumulative tank farms, in turn, are responsible for product accumulation, certification, and batch-based dispatch of finished goods prior to delivery to end consumers. Within material flow simulation, they act as final buffering and logistics control nodes, ensuring correct formation of shipment batches and compliance with operational and quality constraints within the overall refinery material flow system.

Scheme 1: Flowing Tank Farm → Outlet

       This configuration is used as a buffering stage prior to product transfer into pipeline transport systems. It represents a typical pattern of tank farm placement and tank farm layout within modern refinery simulation models, where the flowing tank farm acts as a flow-smoothing node between multiple upstream process units and downstream transport infrastructure.

       In most operational scenarios, the tank farm receives incoming streams from several process units simultaneously. As a result, it performs the function of damping inflow fluctuations and stabilizing the outgoing flow rate, which is essential for preventing hydraulic shocks in downstream pipeline systems and ensuring stable operation of reservoir “breathing” dynamics under dynamic loading conditions.

       In certain operational modes, the system may operate in a quasi-direct flow regime with minimal accumulation, depending on production conditions and downstream demand profiles.
Simulation logic and operating rules
       Within the tank farm simulation model (RpFlowing) implemented in an AnyLogic-based material flow simulation environment, the control rules are defined as follows:
       Inflow rate is not constrained by the tank farm and is determined by upstream source nodes (process units).
       Residual level is regulated around a mid-range operating point to ensure stable buffering behavior and system stability.
       Outflow rate is constrained by the capacity of the installed pumping system, defined by minimum and maximum allowable flow rates (t/h), as well as permissible rate-of-change limits per simulation step (typically 50–100 t/h).

Scheme 2: Accumulative Tank Farm → Outlet

       This configuration is used for product accumulation, certification (quality control), and dispatch of finished goods to transportation systems, including truck loading stations, rail loading racks, and pipeline export systems. It represents a typical pattern of tank farm placement and tank farm layout within modern refinery simulation models, where the accumulative tank farm functions as a final logistics buffering and distribution node in the production chain.
       The accumulative tank farm enables the formation of shipment batches, supports product quality control procedures, and ensures coordinated product release in accordance with production planning requirements and downstream distribution constraints.
Simulation logic and operating rules
       Within the tank farm simulation model (RpAccumulative) implemented in an AnyLogic-based material flow simulation environment, the control rules are defined as follows:
       Inflow rate is not constrained by the tank farm and is determined by upstream source nodes (process units).
       Residual level may operate either in full storage mode or minimum buffer mode, depending on production planning and shipment scheduling requirements.
       Outflow rate is unconstrained when loading rack systems are used; however, it is limited by average discharge capacity when direct pipeline or non-rack export modes are applied.

Conclusion

       Thus, this article presents the tank farm simulation model (tank farm simulation model) as a reusable digital twin component for logistics systems in oil refineries and the broader oil and gas industry. The model is implemented within the AnyLogic environment as part of the PRL library and is formalized as a simulation component. The analysis focuses on its functional positioning across different stages of the production chain — including inlet, intermediate, and outlet sections of processing facilities.
       This approach enables consistent and scalable material flow simulation in complex industrial networks, while explicitly accounting for the role of tank farms as buffering and regulating nodes within the overall structure of the refinery material flow system and its associated flow network topology.

Last updated on 25.06.2026