A multiphase flow solver with mesh motion is typically used for simulations of liquid sloshing in containers, such as those in spacecraft, aircraft, and ships. The mode of the mesh motion should be predefined by functions, which is difficult for a sustained and arbitrary motion. In the present work, a general solver without mesh motion for liquid sloshing in tanks is proposed, based on the interFoam solver in OpenFOAM, by tracking the free surface using the volume of fluid method. An arbitrary excitation loading algorithm is implemented for automatically loading the three-dimensional arbitrary acceleration data. Moreover, the energy equation with phase change is also newly implemented in this solver so that the heat and mass transfer can be evaluated for cryogenic fuels during sloshing. In this way, arbitrary external excitations can be directly imported for any arbitrary sloshing case, and the characteristics of liquid sloshing and oscillation forces can be directly simulated without mesh motion. The solver is validated using different cases, and the influence of sloshing on the mass transfer rate and the effect of the baffle on the liquid sloshing characteristics are investigated. The results indicate that the solver can be easily applied to engineering problems involving liquid sloshing.

Liquid sloshing in containers occurs in different fields, such as spacecraft, aircraft, ships, and tank cars. The liquid contained in huge tanks usually sloshes and poses great risks to the equipment. For example, liquid sloshing has significant effects on the management and stability of spacecraft because sloshing forces and torques can interact with the control system through a feedback loop.1 In addition, to meet the requirement of a higher transportation capacity, the tank volume of large civil aircraft is gradually increasing. Large sloshing caused by braking, rolling, or other situations may result in structural failure and safety problems.2 Therefore, a number of studies have been conducted on the characteristics and suppression of liquid sloshing under different conditions.2–4 

Efforts to explore the dynamic behaviors of liquid sloshing can be classified into three aspects: theoretical studies,5,6 experiments,7 and numerical simulations.8,9 Abramson5 published an analysis of the dynamic behavior of liquids in moving containers, with applications to propellants in space vehicle fuel tanks. Hasheminejad and Soleimani10 developed theoretical formulations based on linearized potential theory and confirmed that the length and fill depth of a container could strongly affect the sloshing frequency. In experimental studies, Akyıldız et al.11 investigated the liquid sloshing characteristics in a cylindrical tank with various fill levels and ring baffles under the excitation of roll motion. Xue et al.12 experimentally investigated the effectiveness of four types of baffles in suppressing pressure under a wide range of forcing frequencies. Kim et al.13 compared the statistical analysis results of the extremal probability and exceedance probability distributions and found the effectiveness of baffles linked to a spring system in reducing the sloshing magnitude. Liu et al.14 conducted a series of experiments on the sloshing characteristics of three immiscible liquids in a rectangular tank. The results showed some unique characteristics of three-layer liquid sloshing. The requirement of a complex testing system and high-precision sensors in experimental investigations makes this inefficient. Nevertheless, theoretical and experimental studies have provided feasible methods for analyzing the dynamic behavior of liquid sloshing in containers. For severe sloshing behaviors under arbitrary accelerations, it is difficult for theoretical and experimental methods to sort out due to the high nonlinearity.

With the development of Computational Fluid Dynamics (CFD) technology, simulations using CFD methods have provided a strong impetus for research on liquid sloshing. For free surface flow simulation, the Volume of Fluid (VOF),15 level-set,16,17 and front-tracking18 are regular methods, among which the VOF method can guarantee mass conservation. Liu and Lin19 used the second-order accurate VOF method to track the distorted and broken free surface under arbitrary six DOF (Degree of Freedom) external excitations. Goudarzi and Sabbagh-Yazdi20 investigated nonlinear sloshing under both harmonic and earthquake induced excitations using the VOF method. They discussed the practical limitations of the linear solution for evaluating the response of seismically excited liquids. Cao et al.21 utilized the VOF method to demonstrate the sloshing dynamics of a two-layer liquid under horizontal sinusoidal excitation. It was observed that the interface displacement was mainly influenced by the lower liquid depth, whereas the free-surface displacement primarily depends on the total liquid depth. Kang et al.22 evaluated the nonlinear hydrodynamic pressures on the inner wall of rigid cylindrical tanks resulting from liquid sloshing because of the simultaneous action of two horizontal and one vertical ground motion component. The moving mesh technique was used, and a transport equation considering the deformation control volumes was employed. Wang et al.23 used the open-source code OpenFOAM to study the interaction between the sloshing flow and random porous structure, and a harmonic roll excitation was considered. For cryogenic liquids, Chung et al.24 performed a multiphase sloshing simulation using the VOF method for liquefied hydrogen in a type C cargo tank, focusing on the impact pressure without considering the thermal effect. Li et al.25 simulated the thermal dynamic behavior of liquid hydrogen in a storage tank for trailers using the VOF method incorporated with a phase-change model to describe the evaporation phenomenon of hydrogen. Nevertheless, the simulations were mostly conducted under regular sloshing conditions, and long-term arbitrary sloshing conditions were rarely considered.

In addition to the traditional CFD method, some new simulation approaches have potential application values in the study of tank sloshing. Gándara et al.26 analyzed the two-dimensional sloshing of water in a partially filled stepped-based tank using an Arbitrary Lagrangian–Eulerian (ALE) method. Jiao et al.27 used the Smoothed Particle Hydrodynamics (SPH) method to simulate the motion of two side-by-side LNG (Liquefied Natural Gas) ships coupled with tank sloshing in regular waves because of the advantage of SPH in dealing with free surface and fluid-structure coupling problems. Cai et al.28 compared the traditional CFD, SPH, and ALE methods for the evaluation of rigid body force in liquid sloshing problems and showed that all the numerical approaches failed to accurately predict the maximum absolute rigid body force while the wave was sharply separated from the main domain owing to the limited resolution. Considering the interface breakup and limitations of the interface-tracking method relying on the mesh resolution, a coupled VOF and Lagrangian particle tracking solver was developed by Heinrich and Schwarze29 to capture drops at small scales, which is an appropriate way to reveal more detailed interface structures of liquid sloshing in tanks.

Previous studies focusing on liquid sloshing were usually solved under regular excitations described by functions or simplified excitation changes, which are not applicable for long-term arbitrary accelerations. For arbitrary accelerations induced by waves, a simulation with fluid-structure coupling can be adopted; however, it is not applicable to spacecraft or aircraft. As for the mesh motion approach, the moving velocity should be derived; additional velocity correction is required in the computation, and it is difficult to track an arbitrarily moving object in post-processing. Consequently, the present study aims to propose a general solver that can directly load arbitrary acceleration data for the simulation of severe liquid sloshing under various conditions.

In the present study, a solver in OpenFOAM is implemented for liquid sloshing to remedy the inconvenience of existing solvers. This solver is based on the interFoam solver and uses the VOF method to capture the free surface. Without mesh motion, an interface is developed to read the data of arbitrary accelerations set in the sheet. In this way, any external excitation, including gravitational acceleration and translational and rotational inertia forces, can be considered. Moreover, this solver is also implemented with algorithms for solving the energy equation and phase change for cryogenic liquids, such as liquid oxygen and LNG in tanks.

The free surface is tracked using the VOF method. The following are the basic equations for the VOF model proposed by Hirt and Nichols.15 An additional scalar α is used to indicate whether one phase exists in the cell, described as
(1)
where α is the volume fraction of phase. The transport equation for α is solved simultaneously using a single set of continuity and momentum equations15 throughout the computational domain,
(2)
(3)
where ρ and μ are the density and viscosity of the mixture, respectively, calculated by
(4)
(5)
The surface tension f is also important for liquid sloshing, as mentioned by Meziani and Ourrad,30 which is calculated as31 
(6)
where σ refers to the surface tension coefficient.

The present solver directly solves liquid sloshing by using a time-varying gravity gt in 3D in the momentum equation and implements an algorithm for reading the acceleration data input from users. In this solver, the PIMPLE loop is used for pressure-velocity coupling. Before the PIMPLE loop, an algorithm to refresh the gravity field for every time step is incorporated so that an arbitrary external excitation can be included. The interpolation algorithms are listed in Table I.

TABLE I.

Algorithm of arbitrary acceleration data interpolation.

Algorithm 1 arbitrary excitation loading algorithm 
Reading Runtime() 
If Runtime() found in refColumn then import acceleration data from corresponding columns 
else 
Interpolate the acceleration data as 
(at, bt, ct) = (at0, bt0, ct0) + [(at1, bt1, ct1) − (at0, bt0, ct0)]/(t1t0) (tt0
Import the interpolated acceleration data 
end if 
Refresh the gravity field 
PIMPLE loop 
Algorithm 1 arbitrary excitation loading algorithm 
Reading Runtime() 
If Runtime() found in refColumn then import acceleration data from corresponding columns 
else 
Interpolate the acceleration data as 
(at, bt, ct) = (at0, bt0, ct0) + [(at1, bt1, ct1) − (at0, bt0, ct0)]/(t1t0) (tt0
Import the interpolated acceleration data 
end if 
Refresh the gravity field 
PIMPLE loop 
Liquid fuels in spacecraft and LNG in ships are stored at cryogenic temperatures. Considering the heat transfer between the liquid and the container walls, a phase change may occur. The present work further implemented the heat and mass transfer in the solver so that the solver could simulate the sloshing dynamics and determine the effect of sloshing on heat and mass transfer. The energy equation considering the phase change can be expressed by introducing the energy source term, SE,32 
(7)
where E is the enthalpy expressed as33,34
(8)
The thermal conductivity λ is given by
(9)
where λ denotes the thermal conductivity of the mixture. Considering the condensation and evaporation of liquids such as liquid oxygen and LNG, the equation of α should be rewritten as32 
(10)
where R is the mass transfer rate calculated according to the Lee model for evaporation and condensation, which is expressed as35 
(11)
where Tsat is the saturation temperature and Cc and Ce are the condensation and evaporation coefficients, respectively. The energy source term SE in the energy equation can be calculated using SE = R hl, where hl is the latent heat.

The new solver is named tankInterFoam, which is specific to arbitrary liquid sloshing in tanks. A flow chart of the solver is shown in Fig. 1, including the three main parts. The extra code in the green and yellow frames is developed for loading the equivalent external excitation by reading the imported acceleration data and for coupling with the heat and mass transfer at each time step. Compared with the mesh motion method, the algorithm should move the mesh before the iteration in every time step and calculate the relative velocity throughout the entire computational domain in each iteration, thereby consuming additional computational resources. Second, the mesh motion method needs to input the velocity of the object at every time step, but the velocity is usually unknown in actual processes and the acceleration can be easily measured. Therefore, the mesh motion method is insufficient for conditions in which the acceleration is arbitrary and the unknown object velocity needs to be integrated. Conversely, the acceleration values can be directly applied to the present solver, and only the recalculation of the body force is required at every time step, making the simulation more effective and suitable for arbitrary sloshing conditions.

FIG. 1.

Flow chart of tankInterFoam solver in OpenFOAM.

FIG. 1.

Flow chart of tankInterFoam solver in OpenFOAM.

Close modal
To validate the developed solver, liquid sloshing in a rectangular tank under sinusoidal excitation is simulated, and the results are compared with the experimental data from Xue et al.12 Two key metrics are examined: free surface shape and probe pressure measurements. The simulated tank matches the rectangular container geometry with dimensions of 0.57 × 0.31 × 0.5 m3, which is subjected to a horizontal harmonic motion excitation: x(t) = −a cos(ωt), where a and ω are amplitude and external excitation frequency. To translate the external excitation into acceleration, the acceleration is calculated by taking the second derivative of the equation
(12)

The present simulation sets the excitation amplitude and frequency to 0.01 m and 0.94 ω1, respectively, based on the experimental configuration, where ω1 is the first-mode natural frequency equal to 6.403 rad/s. Three probes are located at distances of 65, 105, and 185 mm above the bottom of the tank to monitor the time series of the dynamic impact pressure. A schematic of the simulated tank and mesh configuration is shown in Fig. 2.

FIG. 2.

Schematic diagram of (a) rectangular tank and (b) mesh in simulation.

FIG. 2.

Schematic diagram of (a) rectangular tank and (b) mesh in simulation.

Close modal

As shown in Fig. 2, a rectangular tank with dimensions of 570 × 310 × 570 mm3 is constructed. The boundary conditions for all six faces of the tank are set as no-slip walls. The entire computational domain is uniformly divided into 50 × 25 × 50 square cells, and the total number of cells is 62 500. The water is initially set at the bottom of the tank, and the depth is 180 mm. Other numerical configurations and physical attributes are listed in Table II. For the turbulence model, the simulation is conducted using the laminar model, the accuracy of which is validated by Cai et al.28 for similar sloshing cases as it obtains the minimum impulse overprediction among the investigated turbulence models using a relatively coarse mesh and requires considerably less calculation time.28 

TABLE II.

Simulation parameters and physical properties for simulation of linear sloshing.

ParametersValues
Liquid density (kg/m31000 
Liquid viscosity (Pa s) 0.001 
Air density (kg/m31.29 
Air viscosity (Pa s) 0.000 017 3 
Time step (s) 0.0001 
ParametersValues
Liquid density (kg/m31000 
Liquid viscosity (Pa s) 0.001 
Air density (kg/m31.29 
Air viscosity (Pa s) 0.000 017 3 
Time step (s) 0.0001 

Figure 3 compares the free surface structures captured at the same instants in the experiment and simulation, showing good consistency. The slosh wave breaking process occurs close to the tank wall, and lots of bubbles around the impact zone are trapped when the sloshing wave impacts on the tank wall. The results show that the time-varying gravity field can replace the tank motion and capture the liquid sloshing characteristics well under external excitation.

FIG. 3.

Comparison of liquid sloshing behavior when excitation frequency and amplitude is 0.94ω1 and 0.01 m between (a) experiment12 and (b) simulation.

FIG. 3.

Comparison of liquid sloshing behavior when excitation frequency and amplitude is 0.94ω1 and 0.01 m between (a) experiment12 and (b) simulation.

Close modal

The time series of the dynamic impact pressures detected by the three probes are shown in Fig. 4. Two peaks can be found in the hump. According to Jiang et al.,36 the first peak is caused by the initial impact of the sloshing liquid on the wall, and the second peak is mainly produced by the following water in the case of gravity after the previous impact. The comparison also shows good consistency, although differences are found in the amplitude.

FIG. 4.

Comparison of monitored dynamic impact pressure between (a) experiment and (b) simulation.

FIG. 4.

Comparison of monitored dynamic impact pressure between (a) experiment and (b) simulation.

Close modal

The evaporation and condensation of cryogenic liquids in the container is important. In this section, the effect of sloshing on the evaporation and condensation of the liquid is investigated. To test the effectiveness of the phase-change component of the tankInterFoam solver, two imaginary simulations with different excitation amplitudes are conducted. The frequency is 0.94ω1, and the amplitudes are set to 0.005 and 0.001 m for large and small sloshing, respectively. The saturation temperature of LNG is set to 111 K. The initial temperature of LNG is set to 90 K, and the wall temperature is set to 115 K. In this case, the LNG evaporates owing to the heat transfer between the liquid and the wall. The simulation parameters and physical properties for this case are listed in Table III. The computational domain and mesh configuration are the same as those shown in Fig. 2. The walls are also set as no-slip walls, and the laminar model is employed.

TABLE III.

Simulation parameters and physical properties for simulation of phase changing sloshing.

ParametersValues
Liquid density ρl (kg/m3422 
Liquid viscosity (Pa s) 0.000 18 
Liquid thermal conductivity λl [W/(m K)] 0.1 
Latent heat of evaporation hl (kJ/kg) 511 
Gas density ρg (kg/m30.72 
Gas viscosity (Pa s) 0.000 011 
Gas thermal conductivity λg [W/(m K)] 0.03 
Condensation coefficient Cc 0.1 
Evaporation coefficient Ce 0.1 
Saturation temperature Tsat (K) 111 
Time step (s) 0.0001 
ParametersValues
Liquid density ρl (kg/m3422 
Liquid viscosity (Pa s) 0.000 18 
Liquid thermal conductivity λl [W/(m K)] 0.1 
Latent heat of evaporation hl (kJ/kg) 511 
Gas density ρg (kg/m30.72 
Gas viscosity (Pa s) 0.000 011 
Gas thermal conductivity λg [W/(m K)] 0.03 
Condensation coefficient Cc 0.1 
Evaporation coefficient Ce 0.1 
Saturation temperature Tsat (K) 111 
Time step (s) 0.0001 

The time series of the volume-averaged evaporation rates under different sloshing conditions is shown in Fig. 5. At the beginning, the evaporation rate under low-amplitude sloshing is larger than that under high-amplitude sloshing. However, the evaporation rate under higher-amplitude sloshing increases faster, and at ∼80 s, the evaporation rate under high amplitude sloshing becomes larger than that under low amplitude sloshing. The reason for this phenomenon is discussed in Sec. III C, which shows the evolution of the temperature field.

FIG. 5.

Time series of volume-averaged evaporation rate under different sloshing conditions.

FIG. 5.

Time series of volume-averaged evaporation rate under different sloshing conditions.

Close modal

Figure 6 shows the evolution of the temperature field under different sloshing conditions. We chose two instants at ∼30 and 80 s for comparison. The temperature first increases on the wall and free surface, and then the high temperature enters the liquid. As shown, the heat transfer under low-amplitude sloshing is slower than that under high-amplitude sloshing, so the heat concentrates around the interface, and it is found that the temperature around the center of the interface under low-amplitude sloshing is higher. In this situation, some of the parts may reach the saturated temperature and start evaporating under low-amplitude sloshing, whereas the temperature under high-amplitude sloshing reaches the saturated temperature later. At ∼80 s, the temperature in most regions is higher under larger sloshing and reaches the saturated temperature so that the evaporation rate is higher under higher-amplitude sloshing after 80 s, as seen in the curves in Fig. 5.

FIG. 6.

Comparison of temperature fields under different excitations (a) low amplitude excitation (0.001 m) and (b) high amplitude excitation (0.005 m).

FIG. 6.

Comparison of temperature fields under different excitations (a) low amplitude excitation (0.001 m) and (b) high amplitude excitation (0.005 m).

Close modal

In engineering, baffles are typically used to inhibit liquid sloshing in containers. In this section, a regular cylindrical tank with a baffle set in the middle is utilized to investigate the characteristics of liquid sloshing in a tank with a baffle. The width of the baffle W is 50 mm, and the thickness of the baffle h is 10 mm. In this section, the developed solver is used in a mild sloshing situation to investigate the effects of the baffle on liquid sloshing. A cylindrical tank with a diameter D = 916 mm and a height H = 2000 mm is taken into consideration, and the structure of the tank with a baffle is shown in Fig. 7(a). The computational domain is divided into hexahedral cells as shown in Fig. 7(b). The cell size is ∼10 mm in the entire domain, and the total cell number is ∼1 400 000. Because the main focus is on the change in the liquid surface near the baffle during sloshing, the computational mesh is refined above and below the baffle. Other numerical configurations and physical attributes are listed in Table IV.

FIG. 7.

(a) The structure of the tank with baffle and (b) the mesh configuration of the computational domain.

FIG. 7.

(a) The structure of the tank with baffle and (b) the mesh configuration of the computational domain.

Close modal
TABLE IV.

Simulation parameters and physical properties for simulation of sloshing with baffle and following cases.

ParametersValues
Liquid density ρl (kg/m3422 
Liquid viscosity (Pa s) 0.000 18 
Gas density ρg (kg/m30.72 
Gas viscosity (Pa s) 0.000 011 
Time step (s) Adaptive 
Courant number <0.75 
ParametersValues
Liquid density ρl (kg/m3422 
Liquid viscosity (Pa s) 0.000 18 
Gas density ρg (kg/m30.72 
Gas viscosity (Pa s) 0.000 011 
Time step (s) Adaptive 
Courant number <0.75 

Five conditions with different liquid heights are taken into account, with different distances from the free surface to the center of the baffle (ds). Liquid sloshing is conducted with an initial condition in which the free surface is settled under a 0.1g acceleration in the X direction and a −1.0g acceleration in the Z direction. Sloshing is simulated under a −1.0g acceleration in the Z direction. The dimensionless distances from the free surface to the center of the baffle (ds/R0) in the present work are 0, 0.05, 0.1, 0.15, and 0.2, where R0 is the radius of the tank.

The force evolution in the X direction monitored during the simulation is shown in Fig. 8(a). It can be observed that the sloshing cycle decreases slightly and the attenuation rate increases with decreasing the distance ds. The damping ratio γ can be calculated using the following equation:
(13)
where A is the sloshing amplitude and n is the number of cycles considered.
FIG. 8.

(a) The evolution of sloshing forces in X direction during the simulation and (b) comparison of damping ratios among experimental, empirical, and simulation results.

FIG. 8.

(a) The evolution of sloshing forces in X direction during the simulation and (b) comparison of damping ratios among experimental, empirical, and simulation results.

Close modal
According to the sloshing curves, beginning from the second peak and taking five cycles into account, the evolution of the damping ratio with different liquid heights is shown in Fig. 8(b). The simulated damping ratios are compared with the experimental data obtained from Washizu and Ikegawa,37 and the theoretical equation is given by Miles,38 which describes the damping ratio of liquid in a circular tank with an annular ring. The damping ratio at a depth of ds below the free surface is
(14)
where W denotes the width of the baffle, Aη is the maximum sloshing amplitude, and according to the empirical formula, Aη/R0 is equal to 0.15.

From the comparison of the damping ratios among the experiment, simulation, and empirical formula in Fig. 8(b), it can be observed that the simulated results confirm well with the experimental results for different conditions. The empirical results show a different trend when ds/R0 ≤ 0.1, as they fail to consider the overall factors. From the experimental results, it can be found that the damping ratio around ds/R0 = 0.075 reaches a maximum value. The damping ratios obtained by the present simulation are slightly larger than the experimental results when ds/R0 ≤ 0.1, which may be due to the idealization in the simulation and the error in calculating the damping ratio. It is interesting that the damping ratio reaches a maximum value not when the height of liquid is equal to the height of the baffle but when the free surface is slightly higher than the baffle.

To analyze the reason for the above-mentioned deviation, the free surface evolutions simulated for ds/R0 = 0.0 and ds/R0 = 0.1 in the present work are shown in Fig. 9. In the figure, the motion of the free surface is marked by arrows, where the red arrows indicate that free surface movement is restricted by the baffle. When ds/R0 = 0.0, it can be found that the free surface on the right-hand side is moving up freely without the effect of the baffle, while the free surface on the left-hand side is affected by the baffle from 20 to 21 s. When the baffle is immersed in the liquid when ds/R0 = 0.1, as shown in Fig. 9(b), the effect of the baffle always acts during the entire sloshing cycle. Therefore, it can be inferred that when the baffle is slightly immersed in the liquid and is within the intense effect region of the baffle, the damping ratio is the maximum. As the liquid height further increases and the effect of the baffle weakens, the damping ratio decreases. Therefore, the maximum damping ratio occurs when the baffle is slightly immersed in the liquid, which rectifies the empirical result that the maximum damping ratio occurs when the liquid height is equal to the baffle height.

FIG. 9.

Free surface evolution when (a) ds/R0 = 0.0 and (b) ds/R0 = 0.1.

FIG. 9.

Free surface evolution when (a) ds/R0 = 0.0 and (b) ds/R0 = 0.1.

Close modal

The liquid sloshing frequencies under different conditions after FFT spectrum analysis are shown in Fig. 10. It can be observed that when ds/R0 > 0.1, the frequencies are ∼0.305 Hz and change slightly. By decreasing the distance from the free surface to the baffle, the frequency increases, and it is ∼0.3389 Hz when ds/R0 = 0.0. For ds/R0 = 0.05, although the damping ratio is larger, the frequency is smaller compared with that of ds/R0 = 0.0. For ds/R0 > 0.05, the sloshing is mainly controlled by the resistance of the baffle, and with a decrease in the resistance of the baffle, the frequency decreases with decreasing the damping ratio. For ds/R0 = 0.0, the effect of the baffle is slightly different from that of the other conditions, and the free surface is mainly controlled by the inner circle of the baffle. Therefore, the frequency of ds/R0 = 0.0 is larger than that of ds/R0 = 0.05, although the damping ratio is smaller than that of ds/R0 = 0.05.

FIG. 10.

(a) Spectrum diagram of sloshing forces and (b) dominant frequencies under conditions with different distances from free surface to baffle.

FIG. 10.

(a) Spectrum diagram of sloshing forces and (b) dominant frequencies under conditions with different distances from free surface to baffle.

Close modal

The impact of baffle thickness h is further investigated in the present work. Five different baffle thicknesses are selected and simulated considering ds/R0 = 0. The evolutions of the sloshing forces in the X direction are shown in Fig. 11(a), and the damping ratios are shown in Fig. 11(b). According to the simulation results, as the baffle thickness increases, the baffle damping ratio decreases in an approximately linear manner. The damping ratio for a baffle thickness of 5 mm is ∼0.044, which is 4.7% higher than that for a thickness of 10 mm. The damping ratio for a baffle thickness of 15 mm is about 0.039, which is 7.7% lower than that for a baffle thickness of 10 mm. Therefore, it can be concluded that the baffle thickness is inversely related to the damping ratio, suggesting that the baffle thickness can be designed to be as thin as possible while meeting the strength requirement.

FIG. 11.

(a) Liquid sloshing forces in X direction and (b) damping ratios with different baffle thicknesses when ds/R0 = 0.0.

FIG. 11.

(a) Liquid sloshing forces in X direction and (b) damping ratios with different baffle thicknesses when ds/R0 = 0.0.

Close modal

In spacecraft or during the voyage of ships, the fuel in the container may slosh violently, which cannot be described by theoretical analysis. Using the tankInterFoam solver, arbitrary input data, including mutational overloads, can be easily input by users. In this section, a regular cylindrical container containing LNG is used for the simulation. The diameter and height of the container are 0.916 and 2.0 m, and the initial fill rate is 50%. This simulation imagines a scenario that is similar to the situation of rocket launching and separation. The time series of accelerations in three directions are shown in Fig. 12.

FIG. 12.

Accelerations loaded in simulation of arbitrary and violent sloshing.

FIG. 12.

Accelerations loaded in simulation of arbitrary and violent sloshing.

Close modal

From 0 to 20 s, the increase in acceleration in the Z direction corresponds to the process of axial acceleration, such as launching. At 20 s, the acceleration in the Z direction suddenly disappears, indicating the proximity of the main thruster. Subsequently, the acceleration in the Z direction changes direction, and the acceleration in the X direction becomes the main external force owing to the change in attitude. In this process, the liquid in the tank should violently roll and cause highly nonlinear sloshing forces, which should be simulated.

With the tankInterFoam solver, these complicated accelerations can be easily imported without functions. Figure 13 shows the simulated structures of the free surface under drastically changing acceleration. In the simulation, the liquid in the tank is assumed to be LNG with a density of 0.422 kg/m3 and a temperature of 111 K. As the acceleration in the Z direction is released and the acceleration in the X direction increases, the liquid rolls upward along the left-hand side wall. Then, the liquid concentrates in the upper left corner of the tank after several cycles of large-amplitude sloshing. At 23 s, we can find that the free surface is greatly fragmentated owing to the impact on the wall, and at 26 s, the free surface is also fragmented owing to the restoration of liquid after the first excessive sloshing.

FIG. 13.

(a) Free-surface evolution during the arbitrary acceleration change and (b) the temperature distribution in the free surface during the arbitrary acceleration change.

FIG. 13.

(a) Free-surface evolution during the arbitrary acceleration change and (b) the temperature distribution in the free surface during the arbitrary acceleration change.

Close modal

Figure 13(b) shows the temperature distribution on the free surface. At the first moment of ∼20 s, the liquid over the walls has a higher temperature because mild sloshing causes the liquid around the wall to have a more adequate heat exchange. When fierce motion occurs, the free surface sinks into the liquid and breaks up. The liquid carrying a high temperature cools quickly, and the free surface shows a relatively consistent heat distribution. At the end of the violent sloshing, the free surface tends to stabilize, and the liquid near the wall rises again.

Figure 14 shows the free-surface evolution at different instants to determine the influence of the baffle on violent sloshing. At t = 21 and 22 s, a significant delay in the free surface change can be observed with the effect of the baffle. At t = 27 s, the free surface is also relatively leveled off because the baffle can also restrain sloshing in the Z direction.

FIG. 14.

Comparison of free surface evolution in container (a) without baffle and (b) with baffle at different times.

FIG. 14.

Comparison of free surface evolution in container (a) without baffle and (b) with baffle at different times.

Close modal

Figure 15 shows the evolution of the forces on the container wall monitored during violent sloshing in containers with and without a baffle. The trend of force evolution conforms to the change in acceleration because the force mainly acts in the same direction as the acceleration. As the acceleration mainly changes in the Z direction, the fluctuation in the Z-direction force is relatively violent. The force values also coincide with the theoretical values according to Newton’s second law. Generally, as seen in the time-domain diagram from t = 0 s to t = 20 s, the relatively steady loads cause liquid sloshing regularly in all directions in the tank without the baffle. Conversely, regular sloshing is suppressed in the tank with the baffle owing to its relatively high damping ratio. After 20 s, violent sloshing in the Z direction is found slightly delayed in the tank with a baffle. Because the Y direction sloshing is suppressed from t = 0 s to t = 20 s, the sloshing in the Y direction after 20 s is also disappeared in the tank with a baffle as it is induced from the regular sloshing from 0 to 20 s.

FIG. 15.

Time-domain diagram of forces on the container wall with and without baffle.

FIG. 15.

Time-domain diagram of forces on the container wall with and without baffle.

Close modal

To figure out the influence of the baffle on liquid sloshing in the container, a comparison of the force evolution in tanks with and without a baffle is shown in Fig. 16. The curves are enlarged to show the detailed force evolution during the regular and violent sloshing stages. From 0 to 20 s, due to the slight change in the overload direction, the liquid in the tank without baffle sloshes regularly and the amplitude gradually increases, which may cause equipment oscillation. When the baffle is set at the position of the free surface, liquid sloshing is effectively suppressed.

FIG. 16.

Comparison of force evolution in tanks with and without baffle in detail: (a) 0–20 s, (b) and (b) 19–35 s.

FIG. 16.

Comparison of force evolution in tanks with and without baffle in detail: (a) 0–20 s, (b) and (b) 19–35 s.

Close modal

As seen from the force evolution curves from 19 to 35 s, the red dashed box indicates that the sloshing in the Y direction, which continues from the regular sloshing, is weakened. For sloshing in the X and Z directions, it can be found that the forces in the X and Z directions are enlarged first as the baffle’s interaction with the liquid and the sloshing is delayed by the baffle, but the inhibition effect is negligible when the free surface is nearly perpendicular to the baffle.

In the present work, a solver for solving liquid sloshing problems in tanks is developed within the open source CFD library OpenFOAM v2206. The developed solver tankInterFoam is modified from the interFoam solver by implementing an interpolating algorithm for arbitrary external excitations and a heat and mass transfer algorithm for cryogenic liquids. The developed solver provides an easy method to simulate liquid sloshing in tanks and can be widely applied to reveal the characteristics of liquid sloshing in tanks under arbitrary excitations. Simulations under different conditions have been conducted based on the solver, and some conclusions can be drawn as follows:

  • The characteristics of the liquid in the tank under sinusoidal excitation are used to verify the morphological characteristics of the free surface. The amplitude and frequency characteristics of the forces on the wall are compared with the experimental results, showing remarkable consistency of the solver.

  • The energy equation with phase change is incorporated into the solver, and the liquid evaporation and condensation in the LNG storage tank are simulated under two sloshing conditions with different amplitudes, showing that the evaporation rate is lower at the beginning and increases much faster in the later stage under higher amplitude sloshing.

  • From the simulations with different distances between the interface and the baffle, the damping ratio is found to reach a maximum value when the baffle is slightly immersed in the liquid at ds/R0 = 0.075 in the present work and then decreases with increasing the distance. Through the simulation of violent sloshing under arbitrary acceleration, it is found that the baffle delays the peak force and allows sloshing to subside more quickly.

  • From the simulations with different baffle thicknesses from 5 to 15 mm, the damping ratio is found to decrease with increasing the baffle thickness approximately linearly. In this study, the damping ratio for a baffle thickness of 5 mm is 4.7% higher than that for a thickness of 10 mm. The damping ratio for a baffle thickness of 15 mm is ∼7.7% lower than that for a baffle thickness of 10 mm.

The supplementary material encompasses the solver code for liquid sloshing in tanks supporting arbitrary excitations developed using OpenFOAM.

This research was funded by the National Natural Science Foundation of China (Grant Nos. 52372366 and U23A20669) and the Key Research and Development Program of Zhejiang Province (Grant No. 2024C01168).

The authors have no conflicts to disclose.

Linmin Li: Investigation (equal); Methodology (equal); Software (equal); Writing – original draft (equal). Bohan Shen: Formal analysis (equal); Visualization (equal). Zuchao Zhu: Funding acquisition (equal); Project administration (equal). Qile Ren: Funding acquisition (equal); Project administration (equal). Junhao Zhang: Funding acquisition (equal); Project administration (equal).

The data that support the findings of this study are available from the corresponding author upon reasonable request.

1.
D. L.
Cui
,
S. Z.
Yan
,
X. S.
Guo
, and
R. X.
Gao
, “
Parametric resonance of liquid sloshing in partially filled spacecraft tanks during the powered-flight phase of rocket
,”
Aerosp. Sci. Technol.
35
,
93
105
(
2014
).
2.
C. L.
Xu
and
F.
Xu
, “
Fluid-structure interaction dynamic analysis of large civil aircraft tank sloshing
,”
J. Phys.: Conf. Ser.
2756
,
012038
(
2024
).
3.
P. F.
Guo
,
Z. A.
Wang
,
R.
Shi
,
Y.
Yang
,
H. F.
Huo
, and
C. X.
Zhang
, “
Liquid propellant sloshing characteristics and suppression in new-generation space vehicle
,”
Aerosp. Syst.
7
,
1
9
(
2024
).
4.
C.
Hou
,
Y.
Yu
,
X.
Liu
,
J.
Ding
, and
Z.
Cui
, “
Effects of longitudinal excitation on liquid hydrogen sloshing in spacecraft storage tanks under microgravity conditions
,”
Int. J. Hydrogen Energy
51
,
765
780
(
2024
).
5.
H. N.
Abramson
, “
The dynamic behavior of liquids in moving containers, with applications to space vehicle technology
,”
NASA SP-106
,
1966
.
6.
J.
Wang
,
J.
Gao
, and
Y.
Sun
, “
Semi-analytical method for liquid sloshing in the rigid super-elliptical tank with the ring baffle
,”
Ocean Eng.
281
,
114718
(
2023
).
7.
J. F.
Igbadumhe
,
O.
Sallam
,
M.
Furth
, and
R.
Feng
, “
Experimental determination of non-linear roll damping of an FPSO pure roll coupled with liquid sloshing in two-row tanks
,”
J. Mar. Sci. Eng.
8
(
8
),
582
(
2020
).
8.
Z.
Zhang
,
F.
Chen
, and
T.
Shi
, “
Numerical simulation of fuel supply of multi-tandem fuel tanks in flight vehicle
,”
AIP Adv.
13
(
7
),
075314
(
2023
).
9.
P.
Huang
, “
A comprehensive investigation on liquid sloshing of rectangular water tank with vertical baffles
,”
Ocean Eng.
288
,
116126
(
2023
).
10.
S. M.
Hasheminejad
and
H.
Soleimani
, “
An analytical solution for free liquid sloshing in a finite-length horizontal cylindrical container filled to an arbitrary depth
,”
Appl. Math. Modell.
48
,
338
352
(
2017
).
11.
H.
Akyıldız
,
N.
Erdem Ünal
, and
H.
Aksoy
, “
An experimental investigation of the effects of the ring baffles on liquid sloshing in a rigid cylindrical tank
,”
Ocean Eng.
59
,
190
197
(
2013
).
12.
M. A.
Xue
,
J.
Zheng
,
P.
Lin
, and
X.
Yuan
, “
Experimental study on vertical baffles of different configurations in suppressing sloshing pressure
,”
Ocean Eng.
136
,
178
189
(
2017
).
13.
S. P.
Kim
,
S. M.
Chung
,
W. J.
Shin
,
D. S.
Cho
, and
J. C.
Park
, “
Experimental study on sloshing reduction effects of baffles linked to a spring system
,”
Ocean Eng.
170
,
136
147
(
2018
).
14.
D. X.
Liu
,
T. Z.
Lu
,
W. J.
Cai
, and
L. J.
Lei
, “
Experimental study on the sloshing of a three-layer liquid system with a free surface
,”
Ocean Eng.
279
,
114422
(
2023
).
15.
C. W.
Hirt
and
B. D.
Nichols
, “
Volume of fluid (VOF) method for the dynamics of free boundaries
,”
J. Comput. Phys.
39
(
1
),
201
225
(
1981
).
16.
M.
Sussmann
,
P.
Smereka
, and
S.
Osher
, “
A level set approach for computing solutions to incompressible two-phase flow
,”
J. Comput. Phys.
114
(
1
),
146
159
(
1994
).
17.
O.
Desjardins
,
V.
Moureau
, and
H.
Pitsch
, “
An accurate conservative level set/ghost fluid method for simulating turbulent atomization
,”
J. Comput. Phys.
227
(
18
),
8395
8416
(
2008
).
18.
G.
Tryggvason
,
B.
Bunner
,
A.
Esmaeeli
,
D.
Juric
,
N.
Al-Rawahi
,
W.
Tauber
,
J.
Han
,
S.
Nas
, and
Y. J.
Jan
, “
A front-tracking method for the computations of multiphase flow
,”
J. Comput. Phys.
169
(
2
),
708
759
(
2001
).
19.
D.
Liu
and
P.
Lin
, “
A numerical study of three-dimensional liquid sloshing in tanks
,”
J. Comput. Phys.
227
(
8
),
3921
3939
(
2008
).
20.
M. A.
Goudarzi
and
S. R.
Sabbagh-Yazdi
, “
Investigation of nonlinear sloshing effects in seismically excited tanks
,”
Soil Dyn. Earthquake Eng.
43
,
355
365
(
2012
).
21.
W.
Cao
,
X.
Li
,
Y.
Gao
,
X.
Li
, and
Z.
Liu
, “
A numerical analysis of sloshing dynamics of two-layer liquid with a free surface
,”
Ocean Eng.
268
,
113295
(
2023
).
22.
T. W.
Kang
,
H. I.
Yang
, and
J. S.
Jeon
, “
Earthquake-induced sloshing effects on the hydrodynamic pressure response of rigid cylindrical liquid storage tanks using CFD simulation
,”
Eng. Struct.
197
,
109376
(
2019
).
23.
S.
Wang
,
T. J.
Xu
,
G. H.
Dong
,
T. Y.
Wang
, and
L. Y.
Chen
, “
Numerical simulation of anti-sloshing performance in a 2D rectangular tank with random porous layer
,”
Ocean Eng.
265
,
112660
(
2022
).
24.
S. M.
Chung
,
G. M.
Jeon
, and
J. C.
Park
, “
Numerical approach to analyze fluid flow in a type C tank for liquefied hydrogen carrier (part 1: Sloshing flow)
,”
Int. J. Hydrogen Energy
47
(
8
),
5609
5626
(
2022
).
25.
S.
Li
,
Y.
Yan
,
W.
Wei
,
Z.
Wang
, and
Z.
Ni
, “
Numerical simulation on the thermal dynamic behavior of liquid hydrogen in a storage tank for trailers
,”
Case Stud. Therm. Eng.
40
,
102520
(
2022
).
26.
T.
Gándara
,
E. C.
Barrio
,
M.
Cruchaga
, and
J.
Baiges
, “
Experimental and numerical modeling of a sloshing problem in a stepped based rectangular tank
,”
Phys. Fluids
33
(
3
),
033111
(
2021
).
27.
J.
Jiao
,
M.
Zhao
,
G.
Jia
, and
S.
Ding
, “
SPH simulation of two side-by-side LNG ships’ motions coupled with tank sloshing in regular waves
,”
Ocean Eng.
48
,
103809
(
2020
).
28.
Z.
Cai
,
A.
Topa
,
L. P.
Djukic
,
M. T.
Herath
, and
G. M. K.
Pearce
, “
Evaluation of rigid body force in liquid sloshing problems of a partially filled tank: Traditional CFD/SPH/ALE comparative study
,”
Ocean Eng.
236
,
109556
(
2021
).
29.
M.
Heinrich
and
R.
Schwarze
, “
3D-coupling of Volume-of-Fluid and Lagrangian particle tracking for spray atomization simulation in OpenFOAM
,”
SoftwareX
11
,
100483
(
2020
).
30.
B.
Meziani
and
O.
Ourrad
, “
Capillary effect on the sloshing of a fluid in a rectangular tank submitted to sinusoidal vertical dynamical excitation
,”
J. Hydrodyn.
26
(
2
),
326
338
(
2014
).
31.
J. U.
Brackbill
,
D. B.
Kothe
, and
C.
Zemach
, “
A continuum method for modeling surface tension
,”
J. Comput. Phys.
100
(
2
),
335
354
(
1992
).
32.
Y.
Wang
,
L.
Yang
,
X.
Wang
,
H.
Chen
,
H.
Fan
,
R. A.
Taylor
, and
Y.
Zhu
, “
CFD simulation of an intermediate temperature, two-phase loop thermosiphon for use as a linear solar receiver
,”
Appl. Energy
207
,
36
44
(
2017
).
33.
H.
Yao
,
C.
Yue
,
Y.
Wang
,
H.
Chen
, and
Y.
Zhu
, “
Numerical investigation of the heat and mass transfer performance of a two-phase closed thermosiphon based on a modified CFD model
,”
Case Stud. Therm. Eng.
26
,
101155
(
2021
).
34.
Z.
Tian
and
W.
Zheng
, “
Analysis of LNG flow and enhanced heat transfer characteristics within tubes with structural enhancements
,”
Int. J. Fluid Eng.
1
,
033901
(
2024
).
35.
S. C. K.
De Schepper
,
G. J.
Heynderickx
, and
G. B.
Marin
, “
Modeling the evaporation of a hydrocarbon feedstock in the convection section of a steam cracker
,”
Comput. Chem. Eng.
33
,
122
132
(
2009
).
36.
M.
Jiang
,
B.
Ren
, and
G.
Wang
, “
Laboratory study on the hydrodynamic and structural characteristic of violent sloshing in elastic tanks
,”
Ships Offshore Struct.
10
(
5
),
533
544
(
2015
).
37.
K.
Washizu
and
M.
Ikegawa
, “
Some applications of the finite element method to fluid mechanics
,”
Theor. Appl. Mech.
22
,
143
154
(
1974
).
38.
J.
Miles
, “
Ring damping of free surface oscillations in a circular tank
,”
J. Appl. Mech.
25
(
2
),
274
276
(
1958
).