2. Model Construction and Test Methods
2.1. Development of the Physical Simulation Model
Figure 1 for the pipeline. The pipeline transports refined oil and liquid ammonia, with a 100 m long section serving as the simulation object. Simulate the sequential flow process where the trailing fluid with density ρ
1, viscosity μ
1, and volume fraction V
1 propels the leading fluid with density ρ
0, viscosity μ
0, and volume fraction V
0.
To simplify calculations, the model neglects the mixture formed during fluid displacement. The initial contact interface between the two fluids is defined at the y = 0 m cross-section of the pipeline, serving as the starting point for the simulation. Since the flow at the mixture interface is unsteady, initial conditions must be specified. The pipeline is set to be filled with the leading oil product and in a steady state, with the concentration of the leading oil product at all points within the pipeline being 1. The pipeline outlet boundary condition is set as a pressure outlet, while the inlet boundary condition is set as a velocity inlet. The standard wall function method and no-slip boundary condition are applied to the pipeline wall.
2.2. Physical and Chemical Properties of Liquid Ammonia and Refined Oil
Liquid ammonia has a density of approximately 610 kg/m3, a boiling point of −33.5 °C, and a viscosity of about 1.39 × 10−4 kg/m·s. The density of refined oil typically ranges between 750 and 830 kg/m3, with specific values depending on the liquid type (Such as gasoline, diesel, or heavy oil). Secondly, the viscosity of refined oil varies significantly, generally ranging from 5 × 10−4 to 4 × 10−3 kg/m·s. Temperature changes markedly affect their fluidity, with viscosity increasing at lower temperatures. Additionally, the surface tension of refined oil typically lies between 0.02 and 0.03 N/m. It should be noted that liquid ammonia, as a polar chemical substance, has a relatively low solubility when mixed with non-polar hydrocarbon refined oil. However, it is not completely immiscible. At normal temperature and pressure, liquid ammonia is slightly soluble in refined oil.
2.3. Grid
2.3.1. Mesh Independence
In the verification of grid independence, the liquid mixing length is the most direct and crucial output quantity that characterizes the sequential transportation process. It is also the main basis for subsequent parameter influence analysis and semi-empirical formula modeling. Therefore, it is taken as the core verification indicator for grid convergence. Nine grid schemes were compared in ascending order of grid size, with the number of grid cells set to 65,248, 100,940, 122,576, 136,240, 174,885, 201,085, 239,075, 275,945, 325,933. All other simulation conditions remained consistent: pipeline flow velocity v = 1 m/s, pipeline inclination angle α = 0°, and transport sequence as follows: refined oil moves forward, liquid ammonia moves backward. As can be seen from
Figure 2, as the number of grids increases, the length of the mixed liquid section gradually decreases. When the number of grids is greater than 2 × 10
5, the length of the mixed liquid section remains basically stable and does not change significantly anymore. Therefore, 2 × 10
5 grids are selected as the grid scheme for the subsequent simulation calculations.
2.3.2. Dynamic Mesh Technology
During the numerical simulation of sequential transportation in long-distance pipelines, the phenomenon of fluid mixing mainly occurs in the interface region where the two media come into contact. The longer the pipeline, the more realistic the development of the mixing section. To accurately capture the formation, development and evolution of the mixing section, and to overcome the limitation of fixed calculation domain length in the simulation of long-distance transportation processes, this study introduces the dynamic mesh technology. The implementation of the moving grid is achieved through the ANSYS Fluent platform and combined with user-defined functions (UDF). The core mechanism lies in using the DEFLINE_CG_MOTION macro definition to calculate the domain exit boundary. This causes the grid nodes to translate along the pipeline axis in a rigid body motion form. In this study, the moving speed of the exit boundary is set to be consistent with the mean axial velocity of the fluid inside the pipeline, with zero lateral and vertical velocity components. Thus, the moving grid domain and the fluid domain are synchronously extended axially. The moving grid mechanism can be activated at any time. During this process, the internal grid points adaptively adjust with the boundary movement. This ensures that the grid quality does not decrease and effectively copes with the dynamic deformation and stretching of the computational domain. The key point of this design is to ensure that the liquid mixture front remains at a relatively fixed position relative to the dynamic exit boundary. This is achieved by synchronizing the grid growth with the fluid flow velocity. This ensures that the two-phase liquid mixture interface remains within the computational domain. This not only ensures that the simulation does not break due to the interface moving outside the domain, but also guarantees that the interface area is always in the core simulation area. This area has higher grid resolution and better quality. It provides a reliable numerical basis for long-term and stable capture of key physical processes such as interface morphology evolution, concentration field diffusion, and development of the liquid mixture section.
The accuracy of the calculation results of the moving grid method was verified to ensure that the grid movement would not introduce additional errors. In this paper, the correctness was verified using a 100 m pipe section as an example, with specific calculation parameters adopting the standard data for horizontal pipelines. The simulation results are shown in
Figure 3. The same initial conditions and duration were simulated for the fixed-grid pipeline, and the changes in the mixed liquid length over time were compared. In the core area far from the influence of the boundary, the results of the dynamic grid extension segment were in good agreement with those of the corresponding position of the fixed-grid pipeline. Therefore, the moving grid method does not cause additional numerical errors in the simulation results.
2.4. Solver Settings
The research employed the CFD solver FLUENT [
20] based on the finite volume method. The solver used a split solver and employed the pressure-velocity coupling algorithm. The time step was set at 0.01 s. The momentum equation adopted the QUICK discretization format suitable for hexahedral or quadrilateral grids, and the pressure term was represented using the PRESTO! format to suppress the false flow caused by gravity stratification. The process of mixed liquid transportation in the pipeline is changing over time and belongs to a transient calculation model. PISO has more advantages when performing transient calculations and is suitable for situations with very large grid distortions. Therefore, this study used the PISO algorithm.
2.5. Model Establishment
2.5.1. Basic Control Equation
The amount of liquid mixing in the sequential transportation pipeline is significantly reduced when it operates in a turbulent flow state compared to when it operates in a laminar flow state. Therefore, sequential transportation always adopts the operation in a turbulent flow. The Reynolds time-averaging method is used in the calculation of turbulence. This method represents instantaneous velocity, concentration, etc., as the sum of the time-averaged value and the pulsating value. It substitutes them into the corresponding equations. Then it performs time-averaging operations on the equations [
21]. The time-averaged equations of the basic control equations for sequential liquid mixing are expressed as Equations (1)–(3):
Momentum conservation equation (Navier–Stokes equation):
In the equation, ρ represents the density of the fluid, measured in kg/m3; denotes the fluid velocity, measured in m/s; p indicates the fluid pressure, measured in Pa; μ is the dynamic viscosity coefficient, measured in Pa·s; represents the turbulent viscosity, also measured in Pa·s; g is the gravitational acceleration, measured in m/s2; Fst represents the surface tension source term, measured in N/m3; E is the energy per unit mass, measured in J/kg; λeff is the effective thermal conductivity, where λeff = λ + λt, with λt being the turbulent thermal conductivity, measured in W/(m·℃); Sh is the source term of the energy equation, measured in W/(m·℃).
Laurend and Sparding proposed the standard κ-ε model, which demonstrates excellent numerical stability and computational efficiency when dealing with fully developed turbulent flows. It is suitable for the high Reynolds number flow conditions involved in the sequential pipeline transportation process. When coupled with the VOF multiphase flow model, the standard k-ε model exhibits good convergence performance and can meet the macroscopic characterization requirements for the main flow field and turbulent structure. Compared to models such as RNG k-ε, Realizable k-ε, and k-ε SST, the standard k-ε model has advantages in terms of computational cost and robustness. This study focuses on the macroscopic liquid mixing length and mass transfer behavior rather than the detailed analysis of local fine turbulent structures. Therefore, this model can meet the precision requirements of the research. The k equation is an accurate formula, while the ε equation is derived from experimental results. Therefore, the standard κ-ε model is an equation based on turbulent kinetic energy and diffusivity, and is derived from empirical formulas. The κ-ε transport equation is shown in Equations (4)–(6):
In the formula, κ represents turbulent kinetic energy, measured in m2/s2; ε represents turbulent dissipation rate, measured in m2/s3; σκ and σε are the Prandtl numbers corresponding to the κ equation and the ε equation, respectively; Gκ is the turbulent generation rate, indicating the influence of velocity gradient and viscosity on turbulent kinetic energy, measured in kg/(m∙s3); Gb is the turbulent kinetic energy generated by buoyancy, YM is the fluctuation caused by diffusion in compressible flow, and Sk and Sε are defined by the user.
The values of the empirical constants in the k-ε model are shown in
Table 1:
2.5.2. Semi-Soluble Mass Transfer Model
The VOF model [
22,
23,
24,
25,
26] is a classic method for tracking liquid–liquid interfaces. However, the traditional VOF model is based on the assumption of complete immiscibility and forces the solubility coefficient of the liquid–liquid system to be zero. The VOF method obtains the solution of the interface through the continuity equation. For the phase q, the following equation is shown in Equation (7):
In the equation,
represents the mass transfer from phase p to phase q, and
represents the mass transfer from phase q to phase p. Under these conditions, the characteristic constants for each phase can be determined using either conventional values or custom values. Additionally, the initial term is zero. Equation (8) lays the foundation for the calculation of the volume fraction of the main phase:
However, in the simulation of sequential transportation of refined oil and liquid ammonia, ignoring the actual solubility of liquid ammonia in hydrocarbons will lead to a deviation in the prediction of the length of the mixed transition zone. It directly affects the accuracy of the mixed oil cutting position. According to “GB17930-2016 Vehicle Gasoline” [
27] and “GB/T259 Determination of Water-Soluble Acids and Bases in Petroleum Products” [
28], the mandatory requirement for testing the pH range of ‘water-insoluble acids or bases’ is 5.0 to 9.0. Calculations show that when the ammonia content in the gasoline exceeds 2.8 × 10
−7 mol/mol, the pH value of the gasoline is too high, and the quality of the gasoline does not meet the standards. According to the solubility data series published by the National Institute of Standards and Technology of the United States, at normal temperature and pressure, the solubility of ammonia in refined oil can reach the order of 10
−2 mol/mol [
29], far exceeding the allowable concentration of water-soluble bases in gasoline. This inevitably affects the quality indicators of gasoline. Therefore, the influence of solubility needs to be considered in the simulation.
Based on the Fluent VOF model framework, by combining Fick’s diffusion law with convective mass transfer theory, and integrating volume fraction equations, mixed momentum equations, concentration field control equations, etc., a mass transfer control equation for the interface between refined oil and liquid ammonia was established. Using UDF, the dynamic coupling of interface mass transport and inter-phase mass source terms was realized. A mass transfer model applicable to micro-soluble liquids was proposed. This model can more accurately describe the diffusion and dissolution behaviors of liquid ammonia in the sequential transportation and mixing section of refined oil and liquid ammonia.
The mass transfer rate is essentially determined by both the mass transfer capacity and the driving force. In turbulent flow, the mass transfer rate formula dominated by convective mass transfer is as shown in Equations (9) and (10):
In the equation, NA represents the mass transfer rate, measured in mol/(m2·s); k represents the mass transfer coefficient, measured in m/s; CA,IF is the concentration of the mass transfer source, measured in kg/m3; CA,BP is the concentration of the main fluid, also measured in kg/m3; d is the pipe diameter, measured in m; D is the diffusion coefficient, measured in m2/s; Re is the Reynolds number; Sc is the Schmidt number.
The concentration difference between the interface and the bulk phase (CA,IF − CA,BP) serves as the driving force for mass transfer. The interface concentration is determined by the thermodynamic equilibrium of the two phases and represents the “source” of material transfer, while the bulk phase concentration is determined by the flow and mixing processes and represents the “endpoint” of material transfer. Under the influence of the concentration difference, ammonia molecules will diffuse from the high-concentration interface to the low-concentration bulk phase until equilibrium is reached. Considering the micro-solubility characteristics of ammonia in the refined oil and combining the dilute solution assumption, In this study, the solubility of ammonia in gasoline at normal temperature (25 °C) and normal pressure (1 atm) was set at 2 kg/m3, and the unit conversion was performed. It was calculated that the solubility concentration of ammonia in gasoline was 1.57 × 10−2 mol/mol. Therefore, approximately 0.0157 mol of ammonia is dissolved in every 1 mol of gasoline, which is consistent with the solubility data published by the National Institute of Standards and Technology of the United States.
The concentration field control equation is determined based on the generalized mass transfer equation, and its function is to describe the temporal and spatial evolution process of the dissolved concentration of liquid ammonia in the oil phase. The generalized mass transfer equation is as shown in Equation (11):
In the equation, C represents the concentration of liquid ammonia, measured in kg/m3; t denotes time, measured in seconds; u represents the velocity field of the fluid, measured in m/s; ∇ is the gradient operator; DL is the molecular diffusion coefficient, measured in m2/s; Sm is the inter-phase mass source term, measured in kg/m3·s.
This model can achieve mass transfer between two liquids with a customizable transfer coefficient and saturated solubility concentration, reflecting the solubility concentration of liquid ammonia in the oil. It can calculate the length of the non-compliant refined oil section. This provides a basis for cutting the mixed liquid section and ensures that the gasoline quality meets the standards.
2.6. Model Feasibility Verification
To verify the accuracy, reliability, and wide applicability of the micro-dissolution mass transfer coupling model, a validation scheme consisting of two types of extreme operating conditions was designed. The core idea is that when a coupling model with sound physical mechanisms and correct numerical implementation describes a specific process with parameters pushed to extreme values, it should reasonably degrade to the classical models. Those classical models are widely accepted and verified under these extreme conditions. By quantitatively comparing the results of the custom model under extreme parameters with the predictions of these classical models, the correctness of its numerical implementation and physical logic can be effectively verified.
Based on this, the verification is carried out from two dimensions: first, under the limit of zero solubility, to check whether the model naturally degenerates into an interface tracking problem that does not consider interphase mass exchange, consistent with the classical VOF model; second, under the limit of very high solubility, to check whether the model degenerates into an instantaneous mixing problem of components, consistent with the component transport model. By comparing these two extreme working conditions, the correctness of the coupled model at both boundaries can be systematically verified. This ensures that simulation results within the practical finite solubility parameter range are authentic and reliable. It also guarantees the accuracy of subsequent parameter studies and mechanism analyses.
2.6.1. Verification of Zero Solubility
When the saturated solubility of liquid ammonia in refined oil is set to 0 kg·m−3, according to the mass transfer rate equation, the mass transfer driving force at the interface is always zero, and theoretically, no mass transfer occurs between the two phases. At this time, the governing equations of the coupled mass transfer model only include the continuity equation, momentum equation, and phase volume fraction equation. The mixing process is solely driven by the combined effects of convective shear, interfacial tension, turbulent diffusion, and gravity. In ANSYS Fluent, the built-in standard VOF model is directly invoked, using the same turbulence model and solver settings.
One of the core comparison indicators is the interface morphology, that is, the spatial distribution and geometric shape of the liquid ammonia–oil interface. By observing and comparing the cloud diagram of axial cross-sectional phase volume fraction of the pipe over the same period, one can intuitively judge the degree of agreement in interface evolution. The pipe geometry, mesh, initial conditions, boundary conditions, physical parameters, and solver time step are all set exactly the same. The only variable is: Case A uses the standard VOF model, while Case B uses the coupled mass transfer model developed in this study, with zero solubility set. Post-processing is performed on the calculation results at the same physical time, and the comparison results of phase volume fraction cloud maps are shown in
Figure 4. In terms of interface morphology, under the zero solubility condition, the simulation results of Case A and Case B remain highly consistent, with the phase interface contours and interface fluctuations captured by the coupled mass transfer model being in close agreement with the results of the standard VOF model. Both models clearly reproduce the typical ‘finger-like’ interlacing and stretching patterns of the interface caused by uneven velocity distribution. This high consistency in morphology indicates that the introduction of the custom mass transfer model did not alter or interfere with the underlying flow’s effect on the interface.
The second core comparison metric is the mixing length. This is the length of the region along the pipe’s axial section where the volumetric fraction of liquid ammonia is between 1% and 99%. It is the most direct macroscopic physical quantity for measuring the degree of mixing. Quantitative comparison can be made by comparing the historical curves of mixing length versus time in the two cases. During the entire simulation period, the curves of mixing length increasing over time calculated by the mass transfer model and the classical VOF model almost completely overlap, as shown in
Figure 5. To further quantify the differences, we extracted the mixing length data at multiple key physical time points for statistical analysis, and the results show that the relative error at all comparison time points is less than 1.5%. This error range is entirely within the acceptable range for engineering numerical simulations.
Based on the dual verification of the aforementioned morphological and quantitative data, it can be seen that under the limiting condition of zero saturated solubility, the predictions of the coupled mass transfer model regarding the motion of the two-phase interface and the development of mixing are statistically consistent with those of the standard VOF model. This demonstrates that when the mass transfer effect is artificially disabled, the customized model can accurately degenerate into a standard interface-tracking problem. The newly added mass transfer computation module remains inactive and introduces no numerical interference. This lays a solid foundation of reliability for the model to carry out simulation calculations under actual solubility parameters in subsequent studies.
2.6.2. Verification of Extremely High Solubility
When the saturation concentration of liquid ammonia in refined oil is set high enough, the mass transfer driving force at the interface becomes extremely large, and the mass transfer rate becomes extremely fast. An ideal situation of complete dissolution is simulated, in which the moment the two fluids come into contact, the liquid ammonia dissolves and disperses uniformly into the adjacent oil phase. Under this extreme, the phase interface is difficult to maintain, rapidly blurring and disappearing, and the problem degenerates into the transport of a single phase (oil phase) carrying one dissolved component (liquid ammonia). The component transport model in the ANSYS Fluent 2023 software is directly used. This model treats liquid ammonia as a component dissolved in the oil phase. It describes the mixing process by solving the mass fraction transport equation. The governing equation of this transport equation is formally consistent with the generalized mass transfer equation in this study. In the component transport model, a reasonable axial diffusion coefficient needs to be set according to the flow state and pipeline geometry.
One of the core comparison indicators is the interface morphology. Under conditions of extremely high solubility, the sharp phase interface in the coupled mass transfer model no longer exists and is replaced by a concentration gradient field of dissolved ammonia in the oil phase. Both morphologies exhibit a smooth transition concentration front, and the similarity in their shape and gradient is an important basis for validation. The pipeline geometry, mesh, initial conditions, boundary conditions, physical properties, and time step for solving were all set identically. The only variable is that Case C uses the component transport model, while Case D uses the coupled mass transfer model set to extremely high solubility. Post-processing was performed on the calculation results at the same physical times, and the comparison results of axial cross-sectional cloud maps of the pipeline are shown in
Figure 6. The comparison clearly shows that the overall shape of the dissolved ammonia concentration diffusion front in Case C, the front’s tilt angle, and the axial spreading range in the pipeline are all highly similar to the diffusion front in Case D; both exhibit the typical parabolic front morphology. The high degree of morphological agreement fundamentally demonstrates that the coupled mass transfer model is consistent with the component transport model under strong mass transfer conditions.
The second key comparison metric is the mixing length. In this paper, the mixing length is defined as the region where the ammonia volume fraction ranges from 1% to 99%. This threshold range is a commonly used engineering convention in VOF multiphase flow simulations for defining the mixing zone. It can effectively exclude extremely low concentration trailing areas caused by numerical diffusion. At the same time, it retains the main characteristics of the mixing zone. By comparing the development curves of mixing length over time calculated from the two models, it can be observed that the trends are almost completely consistent. Both show an approximately linear increase over time. In addition, the slopes of the two growth curves are also very close. The similarity of the slopes indicates that the overall mixing rate of substances in the flow direction in the coupled mass transfer model is basically consistent with that in the component transport model, as shown in
Figure 7. Although the inherent differences in the model frameworks may lead to slight deviations in the absolute values of the mixing length, the consistency in the evolution trends is sufficient to demonstrate that the macroscopic mixing physical mechanisms described by both models are equivalent.
In summary, in the theoretical limit where the saturated solubility concentration approaches infinity, the simulation results of the coupled mass transfer model are basically consistent with those of the component transport model in the two key aspects of spatial morphology and mixed liquid length. This indicates that when the dissolution mass transfer process is extremely intensified, the model can reasonably degrade. It shifts from tracking the two-phase interface to describing the mixing and diffusion of components within a single phase. This achieves theoretical consistency under the other extreme conditions. It also ensures the reliability of the simulation results when the model is applied within the actual solubility parameter range.
2.7. Simulation Plan Design
In order to clarify the independent influence mechanisms of factors such as Atwood number, pipe inclination angle, average viscosity, fluid flow rate, pipe diameter, and interfacial tension on the mixing liquid law of sequential liquid ammonia—refined oil transportation, this study employed the method of controlling variables for a series of numerical simulations. This method strictly maintained consistency in other parameters while systematically changing only a single target variable. It aimed to precisely isolate the influence of each factor. Through controlling variables, we can clearly separate the independent influence of each single factor on the length and growth rate of the mixed liquid. This effectively avoids the coupling effect and results in confusion caused by the simultaneous change in multiple factors. In doing so, it establishes a clear causal relationship and quantitatively evaluates the sensitivity ranking of different factors. This lays the foundation for accurately identifying key influencing factors and understanding their intrinsic physical mechanisms in the future.
The determination of the ranges of each parameter is mainly based on the typical operating conditions of the finished oil pipeline transportation in our country. The selected flow rate, pipe diameter, and viscosity parameters are consistent with the operating parameter ranges stipulated in current regulations. These include the Design Specifications for Oil Pipeline Engineering, the Operation Specifications for Finished Oil Pipelines, and the Series of Pipe Dimensions for Petrochemical Industry and other regulations [
30,
31,
32,
33]. This consistency ensures that the research results have certain engineering representativeness and practical application value.
Ultimately, based on the series of simulation results, the relationship curves between each factor and the length of the mixed liquid can be systematically plotted. The influence trends and internal physical mechanisms can be analyzed, and ultimately, a comprehensive comparison and extraction of the rules of multiple factors’ influence can be achieved. This will provide direct theoretical support for the optimization design and operation control of the pipeline system. Ultimately, using this method, pure “factor-response” data can be obtained. A systematic multivariate nonlinear regression analysis will then be conducted, with the growth rate of the mixed liquid length as the dependent variable. This will establish a semi-empirical fitting formula. The control variable simulation plan table is shown in
Table 2.
4. Discussion
This study constructed a mass transfer model that takes into account the micro-dissolution characteristics, and innovatively established the growth rate of the mixed liquid length (dL/dt) as the core dynamic indicator. It systematically revealed the evolution mechanism of the mixed liquid during the sequential transportation process of refined oil and liquid ammonia. The research results were comprehensively explained in the context of the development of multiphase flow theory and the demands of engineering practice. Their scientific connotations and application values were deeply explored. The future exploration paths were also envisioned.
The main theoretical progress of this study lies in the first time that the “micro-dissolution” characteristic between refined oil and liquid ammonia was incorporated into the numerical simulation framework of pipeline sequential transportation. Traditional numerical studies usually simplify the relationship between fluids as complete miscibility or complete immiscibility, which essentially ignores the dynamic mass transfer process at the phase interface caused by limited solubility. The simulation results clearly show that micro-dissolution mass transfer has a significant and non-negligible influence on the mixed liquid pattern. This discovery confirms that at the liquid ammonia-refined oil interface, in addition to the physical mixing caused by fluid shear and convection diffusion, there is also a continuous mass exchange of dissolution and precipitation. This process affects the stability of the interface and the expansion mode of the mixed liquid section. Therefore, the VOF-mass transfer coupled model constructed in this study breaks through the limitations of traditional multiphase flow models in such problems. It provides a more realistic concentration field evolution image that is closer to physical reality. It also offers new theoretical tools for understanding the complex behavior of micro-dissolving fluid systems.
Another important innovation of this study lies in the shift in the research perspective from static results to dynamic processes. Most existing studies focus on the final mixed liquid volume or the mixed liquid length at a specific time, which is a static description. This study creatively takes the growth rate of the mixed liquid length (dL/dt) as the dynamic core indicator. It establishes a high-precision empirical relationship with multiple physical parameters through multivariate nonlinear regression (R2 > 0.99). This transformation has significant methodological and engineering practical significance. Theoretically, focusing on the growth rate enables us to directly understand the dynamic driving mechanism of the mixed liquid process rather than merely evaluating its final state. In engineering applications, this model provides a basis for real-time optimization control of sequential transportation. The empirical formulas obtained establish an efficient bridge between CFD simulations and rapid engineering evaluations, significantly improving the efficiency of technology selection and optimization. It should be noted that although the empirical formula established in this study shows high prediction accuracy on both the training set and the test set, there is still a certain risk of overfitting. This is because the multivariate nonlinear regression model has a flexible function form and a high degree of parameter freedom. In this study, based on a limited number of numerical simulation conditions, the number of independent variables is relatively large. As a result, random fluctuations in the data or specific patterns under certain conditions can easily be incorporated into the model structure. This will weaken the generalization ability for new conditions. Although preliminary verification has been conducted by dividing the training set and the test set, it is still difficult to completely rule out the possibility of overfitting. Future research will further enhance the robustness and generalization ability of the model. This will be achieved by expanding the sample size, introducing cross-validation methods, and combining regularization regression techniques such as ridge regression or LASSO.
The significance of this work goes beyond a specific fluid system and has implications in a broader context. Firstly, it directly responds to the urgent need for the transformation of energy infrastructure towards a low-carbon model. Ammonia, as a hydrogen carrier and zero-carbon fuel, has its storage and transportation as a key link. Utilizing existing refined oil pipelines for sequential transportation is a highly cost-effective solution, and this study provides core theoretical and tool support for the safe and economic operation of this technology. Secondly, the rigorous modeling of the “micro-dissolution” physical state, which is often simplified as “immiscible,” provides a reference research paradigm for other fields where partially miscible fluid processing processes are widespread. Finally, by revealing complex mechanisms and establishing high-precision prediction tools, this study promotes the further “transparency” of multiphase flow processes in pipelines, laying a scientific foundation for the operation decision-making of intelligent pipelines.
In practical engineering applications, the transportation of liquid ammonia involves several important issues, such as corrosion, material compatibility, and transportation safety, which directly affect the safe operation and long-term reliability of the pipeline system. It is necessary to briefly discuss these issues. Firstly, liquid ammonia is corrosive to common pipeline materials such as carbon steel, and it is prone to cause stress corrosion cracking under water-containing conditions. Studies have shown that dissolved oxygen, moisture, and impurities in liquid ammonia can significantly accelerate the corrosion rate, leading to thinning of the pipe wall and local pitting corrosion. Therefore, in the selection of pipeline materials and anti-corrosion design, materials with excellent anti-ammonia corrosion performance (such as low-carbon steel) should be given priority, and the moisture content in liquid ammonia should be strictly controlled. In some cases, coating or cathodic protection measures can be adopted for anti-corrosion. Secondly, Liquid ammonia may cause swelling, aging, or brittleness in commonly used non-metallic materials in the pipeline system. These materials include rubber seals, polytetrafluoroethylene gaskets, and polymer coatings. This affects the sealing performance and long-term stability of the system. When selecting materials, sealing materials that have been tested for ammonia resistance should be given priority, such as EPDM rubber, polyether ether ketone, etc. Regular material aging assessment and replacement should be carried out to ensure the reliability of system sealing. Finally, liquid ammonia is toxic and flammable. According to relevant regulations such as the “Regulations on the Safety Management of Hazardous Chemicals” and the “Law on the Protection of Petroleum and Natural Gas Pipelines”, liquid ammonia pipeline transportation must strictly follow safety norms. Main safety measures include: setting up leakage monitoring and alarm systems, configuring emergency shut-off devices, formulating leakage emergency plans, and delineating safety protection distances. In the sequential transportation process, the presence of the mixing section may increase the risk of leakage. The cutting and switching operations should be optimized based on the characteristics of the mixing to reduce safety risks. In conclusion, issues such as corrosion, material compatibility, and transportation safety are non-negligible operational factors in the sequential transportation of liquid ammonia and refined oil in engineering applications. Although they are not directly reflected in this research model, these factors serve as important boundary conditions for engineering implementation. They will be further considered in subsequent studies in combination with specific working conditions. This will enhance the engineering applicability of the research results.
Based on the current results, several research directions for future exploration are worthy of in-depth investigation. Due to the fact that the research is in its early stage, the toxicity of liquid ammonia is strong, and there are high requirements for safety and process, etc., the system experimental verification has not been completed yet. This paper mainly uses the extreme comparison verification method to preliminarily verify the correctness of the model. It should be noted that this verification is based only on theoretical extreme cases and lacks experimental or on-site data support. The primary task for the future is to conduct experiments to verify the prediction results of the model through empirical methods, adjust the parameters, and conduct strict verification of the model. Secondly, the research can be extended to more realistic engineering conditions, such as variable flow rate transportation, multiple batch alternation, pipeline systems, and scenarios considering the influence of inner wall roughness. Meanwhile, the potential role of surface tension in aspects such as emulsification, droplet separation, and phase distribution may be exerted. The indirect influence of this on mass transfer needs to be further explored in subsequent studies. Thirdly, in the subsequent research, the length of the non-standard product zone was predicted. An ammonia concentration threshold was introduced. The distance from the point of contact between the two phases to the point where the ammonia solubility in the oil phase drops below the maximum allowable concentration was then calculated. This was done to more directly serve the oil cutting and quality control in the sequential pipeline transportation. It laid the foundation for conducting more research with engineering application value in the future. Fourthly, in this study, a fixed solubility (2 kg/m3) was adopted as the model input parameter. However, during actual pipeline transportation, the solubility of liquid ammonia in the refined oil is affected by factors such as temperature and pressure, and may undergo dynamic changes, resulting in complex variations in the actual solubility. Given that these factors may have potential impacts on the mixing behavior, subsequent research will conduct a sensitivity analysis of the solubility parameters. This analysis will systematically evaluate the quantitative effects of solubility changes under temperature and pressure fluctuations on the mixing length and mass transfer process. The goal is to further verify the applicability and reliability of the model in a wider range of operating conditions. Fifthly, the current verification of grid independence is based on a single metric of liquid mixture length. In future research, the grid sensitivity of microscopic physical quantities such as concentration distribution and velocity field can be considered. A systematic analysis of the concentration distribution of the liquid mixture under different solubility conditions should be conducted. On this basis, a more comprehensive grid sensitivity analysis should be carried out. This analysis should be based on multiple physical quantities, such as the concentration field and velocity field. The goal is to further enhance the reliability and persuasiveness of the numerical simulation results. Sixthly, the training data consists of only 16 cases, and more simulations or cross-validation are needed to reduce the risk of overfitting. Meanwhile, in the subsequent research, as the dataset expands, we will attempt to re-express the empirical correlation of the growth rate of the mixed liquid volume using dimensionless numbers. This will enhance the general applicability and theoretical completeness of the model. Finally, by integrating this dynamic prediction model with machine learning algorithms, real-time data collection and monitoring systems (SCADA), and developing an intelligent liquid blending prediction and cutting decision support system, it is the ultimate direction for transforming the theoretical research value into industrial practical effectiveness.