Mixer Flow Analysis and Statistics in Process Simulation

What Is Mixer Flow Analysis

       Mixer flow analysis involves monitoring material entering a Mixer through multiple input streams and analyzing the resulting mixed flow during process simulation. This type of material flow analysis helps evaluate how individual streams contribute to the combined output. In refinery modeling, a Mixer represents a process unit that combines material from several streams into a single output stream, supporting product mixing and blending operations. Unlike MixerLight, which supports only two input streams, Mixer can work with N input streams, allowing multiple material flows to be combined into a single output stream. To learn more about this process, see Separating and Mixing in Petroleum Refining.
       In Petroleum Refining Library, an AnyLogic-based library for petroleum refining simulation, the MixerStatistics class provides access to key parameters for analyzing Mixer operation. It allows you to monitor input and output flows, identify active input streams, and evaluate the contribution of individual flows to the resulting mixed stream. These capabilities support process modeling, process monitoring, model validation, mixing performance analysis, and process optimization in refinery simulation and other oil and gas process models. For a broader overview of material flows and process units in refinery models, see Petroleum Refining Simulation Fundamentals.

Input Statistics Methods

       The Input section provides methods for monitoring material flows entering the Mixer. These methods can be used to identify active input products, retrieve individual flow values, analyze total incoming flow and mass flow rate, and evaluate the contribution of each stream before the streams are combined. It should be noted that when the objective is to mix products while accounting for their composition and properties, the ProductMixer should be used instead. MixerStatistics.Input extends AbstractInputFlowsProvider. Use its public formatted report to inspect individual input values and shares.

Output Statistics Methods

       The Output section provides methods for monitoring the flow leaving the Mixer after the input streams have been combined. These methods provide access to the measured output flow, whether its mass-flow rate is positive, the outlet valve state, and a formatted maximum output speed when it differs from the default.

Applications

       MixerStatistics can be used in process simulation and refinery modeling to monitor material flows, analyze mixing performance, validate simulation results, and evaluate different operating conditions.

Conclusion

       The MixerStatistics class provides a practical interface for mixer flow analysis in process simulation within the AnyLogic-based Petroleum Refining Library. It provides access to key input and output statistics required to monitor Mixer operation and analyze material flows. Using the Input and Output sections, you can monitor total flow, identify active input products, retrieve individual input flows, analyze flow ratios and mix factors, and review the resulting output flow and valve state. These capabilities make it easier to understand how multiple material streams are combined during simulation and how individual inputs contribute to the total mixed flow. Mixer statistics can therefore support process monitoring, mixing analysis, model validation, and process optimization in refinery modeling, refinery simulation, petroleum refining, and other oil and gas process simulation models.

FAQ

1. What is mixer flow analysis in process simulation?
Mixer flow analysis involves monitoring material entering a Mixer through multiple input streams and analyzing the resulting mixed output flow.

2. What statistics does the MixerStatistics class provide?
MixerStatistics provides statistics for Mixer input and output flows, including total flow, individual input flows, product IDs, flow ratios, mix factors, output flow, maximum output flow, and outlet valve state.

3. How can I check whether an input product is flowing?
Use statistics.input.hasProduct(productId) to check assignment and statistics.input.hasProductFlow(productId) to check for positive flow on an assigned inlet. Numeric lookup by product ID is package-private.

4. Where can I view the flow of a specific Mixer input?
Use statistics.input.getFormattedFlows(measType) to view individual inlet values. Numeric lookup by index is protected.

5. How can I analyze the contribution of an input stream?
The public statistics.input.getFormattedFlows(measType) report includes each inlet’s share of the total. The numeric getRatioByIndex method is protected.

6. How can I check whether the Mixer has an output flow?
Use hasFlow(). The method returns true when the Mixer has a positive output flow.

7. Can I view the Mixer mix factors?
Yes. getFormattedFactors() formats the configured factors, and getFormattedRatios() formats the factors normalized by their sum.

8. How can I get the total Mixer flow?
Use getFlow(MeasurementType measType) to retrieve the total incoming flow or getFlow(MeasurementType measType) from the Output section to retrieve the mixed output flow.