Light Separator Simulation in Petroleum Refining

       A Light Separator is a simulation element used in refinery simulation to distribute an incoming material flow between two outputs. The resulting flows can be routed to downstream process units, pipelines, storage, or other elements of a petroleum refining model. Light separator simulation helps represent controlled flow distribution within refinery process models and can be used as part of larger refinery simulation and digital twin systems. The Light Separator is part of the broader group of separation and mixing simulation elements. Unlike SeparatorLight, the Separator can divide a single incoming flow into any number of output flows.
SeparatorLight can select one of its two outlets by closing the other. The selected outlet carries the flow permitted by the network.
       The priority mechanism in the standard AnyLogic FluidSplit and FluidMerge components does not guarantee that a higher-priority flow will be accepted or transferred in full. Although these components support neutral, proportional, and priority-based allocation algorithms, the priority mode represents a preference rather than a strict allocation rule.
       The configured priority coefficients are incorporated into the objective function of the underlying linear programming (LP) flow-network model as penalty or benefit factors. As a result, in complex networks, the LP solver may allocate flow from a lower-priority connection if this produces a more advantageous overall solution.
       SeparatorLight selects a route by closing the other outlet. The selected route carries the flow that the upstream and downstream network can support.

Controlling Separator Simulation in Petroleum Refining

       In a refinery simulation, the Light Separator provides several methods for controlling how the incoming flow is distributed between two outputs.

       Setting the Flow Split
       The setSplit() method sets the flow values assigned to the first and second outputs. The values do not need to be normalized.The separator uses proportional split mode when both factors meet the minimum threshold. An outlet whose factor falls below the threshold is closed. The binary splitter uses neutral mode when either outlet is closed. A manual split replaces the current automatic split, while the fixed-limit setting can remain enabled.The split can be specified as two individual values or as a two-element array: [firstOutput, secondOutput].

       Limiting the Second Output
       The deprecated setFixedSplit2(double secondarySpeedLimit) method enables fixed-limit split mode. The calculation targets the smaller of the measured inlet flow and output2FlowLimit for outlet 2 and assigns the remaining target flow to outlet 1. Actual throughput remains subject to downstream capacity. Fixed-limit split mode is controlled by flowLimitSplitEnabled, while output2FlowLimit defines the maximum flow assigned to output 2. Both settings are deprecated and can be loaded from an external INI file.

       Other Flow Controls
       Call selectOutput1(true) to select outlet 1 or selectOutput1(false) to select outlet 2. The other outlet is closed. The setSpeedLimit() method limits the maximum input flow rate, while getSpeedLimit() and resetSpeedLimit() allow the current limit to be read or reset. The resetState() method removes active flow split restrictions, restores the maximum input flow limit, and returns the separator to neutral flow mode. The input valve can be controlled with setClosed() and checked with isClosed(). getSepFactors() returns the configured factors. getSepRatios() accounts for the current split mode and outlet valve states. It returns an empty array when both outlets are open in neutral mode or both are closed.The isFirstOnly() method checks the configured factors: the first factor must be positive and the second exactly zero.

       Properties and Events
       The inputProductId property identifies the product associated with the input flow, while useIniSettings enables loading configuration for the simulation model from an external INI file. The onAfterInitialize() event is triggered after initialization. The onSpeedChange(double newSpeed) callback reports the measured inlet rate in tons per hour when it changes by more than the configured threshold or switches between zero and a positive rate.

Light Separator Statistics

       The Light Separator provides statistics for monitoring incoming and outgoing material flows, separation ratios, and active flow limitations. The Separator provides the same comprehensive statistics for monitoring and analyzing its operation, including input and output flow data and flow distribution between product streams. Access to SeparatorLightStatistics is provided through the SeparatorLight agent’s public statistics field.

       Input Statistics
       The input statistics object provides access to the current inlet flow and checks whether the input has a positive mass flow. It also provides a formatted maximum-speed value when the speed limit has changed. SeparatorLightStatistics.Input extends AbstractSingleFlowProvider.
       Output Statistics
       The output statistics object provides methods for monitoring individual and total output flows, output-to-input ratios, flow limitations, and formatted summaries. SeparatorLightStatistics.Output extends AbstractOutputFlowsProvider.

Conclusion

       Light Separator simulation provides configurable flow distribution between two outputs in refinery simulation and digital twin models. The incoming material flow can be split proportionally, limited at the second output, or routed entirely to one output within a petroleum refining simulation. Built-in statistics support monitoring of flows, separation ratios, and active flow limitations.

FAQ

1. What is a Light Separator in refinery simulation?
A Light Separator is a simulation element that distributes an incoming material flow between two outputs.

2. How does a Light Separator distribute flow?
The incoming flow can be distributed proportionally, routed entirely to one output, or limited at the second output.

3. Can the flow to the second output be limited?
The deprecated fixed-limit mode calculates a target for the second outlet from the inlet flow and the configured limit. It assigns the remaining target to the first outlet. The network determines the actual delivered rates.

4. Can the total input flow be limited?
Yes. The maximum allowed input flow can be configured using the separator speed limit.

5. Can all flow be routed to a single output?
Yes. selectOutput1(boolean) closes the other outlet. Throughput remains subject to the selected route’s capacity.

6. What statistics are available?
The statistics interface provides incoming flow, individual and total output flows, separation ratios, flow limitation indicators, and formatted summaries.