1. What is TankFarmContainer in Petroleum Refining Library?A TankFarm represents an individual storage system with its own tanks, configuration, and operational logic. A TankFarmContainer groups multiple independent TankFarm agents into a single facility-level representation and provides aggregated statistics. It does not replace or control the individual tank farms.
2. Does TankFarmContainer control or coordinate the operation of tank farms?No. Each TankFarm operates independently and retains its own configuration, operating rules, and lifecycle. The container only provides unified visualization and statistics aggregation.
3. Can one TankFarmContainer include multiple tank farms storing different products?Yes. A TankFarmContainer can include any number of independent tank farms. Different TankFarm agents can be configured to store different product grades, preserving product segregation and independent storage operations. The container aggregates their statistics but does not manage product allocation or enforce product separation.
4. Can a container include both accumulative and flow-through tank farms?Yes. Both types can technically be included in the same container, although real facilities typically group tank farms of the same type.
5. What statistics does TankFarmContainer provide?TankFarmContainerStatistics provides five groups of aggregated statistics:
- Input – incoming product flows, including accepted, residual, and removable flows.
- Output – outgoing product flows and material losses.
- UnacceptedFlows – incoming flows that could not be accepted.
- TankLevels – tank loads, active tank counts, fill levels, and available storage.
- Capacity – total configured capacity of all linked tank farms.
6. Can I retrieve flow statistics for a specific product?Yes. Flow providers support queries by product ID and AnyLogic FluidBlock. They also allow checking product connectivity and whether a product currently has a positive flow.
7. How is the overall tank farm fill level calculated?The overall fill level is calculated as the ratio of combined tank loads to their corresponding capacities. It is not the arithmetic average of individual tank farm fill percentages.
8. Are Direct Flow tank farms included in storage statistics?Tank farms operating in Direct Flow mode are excluded from TankLevels aggregation because they do not represent conventional tank storage. However, their configured capacity is included in the total capacity returned by Capacity.getTotalCapacity(). Therefore, total configured capacity and available storage are calculated using different inclusion criteria.
9. Does TankFarmContainer require synchronization with its tank farms?No separate synchronization or aggregation mechanism is required. Each statistics query reads the current collection of tank farms linked to the container. Therefore, aggregated values reflect changes in the container composition when statistics are requested.
10. When should I use TankFarmContainer in an AnyLogic refinery simulation?Use it when several independent tank farms represent one physical storage facility and you need unified visualization and facility-level statistics without combining their operational logic.