Abstract
In this work, we show that the modified ghost fluid method might suffer overheating and leads to inaccurate numerical results when directly applied to a moving rigid boundary with acceleration. We discover the insightful reasons and then develop a new technique to take into account the effect of boundary acceleration on the definition of ghost fluid states based on a generalized Piston–Riemann problem. Theoretical analysis and numerical results show that the modified ghost fluid method with acceleration correction can overcome such difficulty effectively.
Similar content being viewed by others
References
Larrouturou, B.: How to preserve the mass fractions positivity when computing compressible multicomponent flows. J. Comput. Phys. 95, 59–84 (1991)
Karni, S.: Multicomponent flow calculations by a consistent primitive algorithm. J. Comput. Phys. 112, 31–43 (1994)
Karni, S.: Hybrid multifluid algorithms. SIAM J. Sci. Comput. 17, 1019–1039 (1996)
Abgrall, R.: How to prevent oscillations in multicomponent flow calculations: a quasi conservative approach. J. Comput. Phys. 125, 150–160 (1996)
Jenny, P., Muller, B., Thomann, H.: Correction of conservative Euler solvers for gas mixtures. J. Comput. Phys. 132, 91–107 (1997)
Abgrall, R., Karni, S.: Computations of compressible multifluids. J. Comput. Phys. 169, 594–623 (2001)
van Brummelen, E.H., Koren, B.: A pressure-invariant conservative Godunov-type method for barotropic two-fluid flows. J. Comput. Phys. 185, 289–308 (2003)
Nourgaliev, R.R., Dinh, T.N., Theofanous, T.G.: Adaptive characteristics-based matching for compressible multifluid dynamics. J. Comput. Phys. 213, 500–529 (2006)
Johnsen, E., Colonius, T.: Implementation of WENO schemes in compressible multicomponent flow problems. J. Comput. Phys. 219, 715–732 (2006)
Hirt, C., Nichols, B.: Volume of fluid (VOF) method for the dynamics of free boundaries. J. Comput. Phys. 39, 201–225 (1981)
Sussman, M., Smereka, P., Osher, S.: A level set approach for computing solutions to incompressible two-phase flow. J. Comput. Phys. 114, 146–159 (1994)
Unverdi, S.O., Tryggvason, G.: A front-tracking method for viscous incompressible multi-fluid flows. J. Comput. Phys. 100, 25–37 (1992)
Glimm, J., Marchesin, D., McBryan, O.: Subgrid resolution of fluid discontinuities, II. J. Comput. Phys. 37, 336–354 (1980)
Glimm, J., Marchesin, D., McBryan, O.: A numerical method for two phase flow with an unstable interface. J. Comput. Phys. 39, 179–200 (1981)
Fedkiw, R.P., Aslam, T., Merriman, B., Osher, S.: A non-oscillatory Eulerian approach to interfaces in multimaterial flows (the ghost fluid method). J. Comput. Phys. 152, 457–492 (1999)
Fedkiw, R.P.: Coupling an Eulerian fluid calculation to a Lagrangian solid calculation with the ghost fluid method. J. Comput. Phys. 175, 200–224 (2002)
Liu, T.G., Khoo, B.C., Yeo, K.S.: Ghost fluid method for strong shock impacting on material interface. J. Comput. Phys. 190, 651–681 (2003)
Hu, X.Y., Khoo, B.C.: An interface interaction method for compressible multifluids. J. Comput. Phys. 198, 35–64 (2004)
Wang, C.W., Liu, T.G., Khoo, B.C.: A real-ghost fluid method for the simulation of multimedium compressible flow. SIAM J. Sci. Comput. 28, 278–302 (2006)
Liu, T.G., Khoo, B.C., Wang, C.W.: The ghost fluid method for compressible gas–water simulation. J. Comput. Phys. 204, 193–221 (2005)
Hao, Y., Prosperetti, A.: A numerical method for three-dimensional gas–liquid flow computations. J. Comput. Phys. 196, 126–144 (2004)
Farhat, C., Rallu, A., Shankaran, S.: A higher-order generalized ghost fluid method for the poor for the three-dimensional two-phase flow computation of underwater implosions. J. Comput. Phys. 227, 7674–7700 (2008)
Terashima, H., Tryggvason, G.: A front-tracking/ghost-fluid method for fluid interfaces in compressible flows. J. Comput. Phys. 228, 4012–4037 (2009)
Xu, L., Feng, C.L., Liu, T.G.: Practical techniques in ghost fluid method for compressible multi-medium flows. Commun. Comput. Phys. 20, 619–659 (2016)
Qiu, J.X., Liu, T.G., Khoo, B.C.: Simulations of compressible two-medium flow by Runge–Kutta discontinuous Galerkin methods with the ghost fluid method. Commun. Comput. Phys. 3, 479–504 (2008)
Liu, T.G., Xie, W.F., Khoo, B.C.: The modified ghost fluid method for coupling of fluid and structure constituted with hydro-elasto-plastic equation of state. SIAM J. Sci. Comput. 30, 1105–1130 (2008)
Liu, T.G., Khoo, B.C., Xie, W.F.: The modified ghost fluid method as applied to extreme fluid–structure interaction in the presence of cavitation. Commun. Comput. Phys. 1, 898–919 (2006)
Sambasivan, S., UdayKumar, H.S.: Ghost fluid method for strong shock interactions. Part 1: fluid–fluid interfaces. AIAA J. 47, 2907–2922 (2009)
Barton, P.T., Drikakis, D.: An Eulerian method for multi-component problems in non-linear elasticity with sliding interfaces. J. Comput. Phys. 229, 5518–5540 (2010)
Xu, L., Liu, T.G.: Modified ghost fluid method as applied to fluid–plate interaction. Adv. Appl. Math. Mech. 6(1), 24–48 (2014)
Gao, S., Liu, T.G.: 1D Exact elastic-perfectly plastic solid Riemann solver and its multi-material application. Adv. Appl. Math. Mech. 9(3), 621–650 (2017)
Gao, S., Liu, T.G., Yao, C.B.: A complete list of exact solution for one-dimensional elastic-perfectly plastic solid Riemann problem without vacuum. Commun. Nonlinear Sci. Numer. Simul. 63, 205–227 (2018)
Xu, L., Liu, T.G.: Optimal error estimation of the modified ghost fluid method. Commun. Comput. Phys. 8, 403–426 (2010)
Xu, L., Liu, T.G.: Accuracies and conservation errors of various ghost fluid methods for multimedium Riemann problem. J. Comput. Phys. 230, 4975–4990 (2011)
Ben-Artzi, M., Li, J.Q., Warnecke, G.: A direct Eulerian GRP scheme for compressible fluid flows. J. Comput. Phys. 218(1), 19–43 (2006)
Liu, T.G., Khoo, B.C., Yeo, K.S.: The simulation of compressible multi-medium flow. Part I: a new methodology with test applications to 1D gas–gas and gas–water cases. Comput. Fluids 30, 291–314 (2001)
Leer, B.V.: Towards the ultimate conservative difference scheme. V—a second-order sequel to Godunov’s method. J. Comput. Phys. 32(1), 101–136 (1979)
Courant, R., Friedrichs, K.O.: Supersonic Flows and Shock Waves, p. 424. Interscience Publishers, New York (1948)
Toro, E.F.: Riemann Solvers and Numerical Methods for Fluid Dynamics. Springer, Berlin (1999)
Li, J.Q., Liu, T.G., Sun, Z.F.: Implementation of the GRP scheme for computing radially symmetric compressible fluid flows. J. Comput. Phys. 228(16), 5867–5887 (2009)
Acknowledgements
The research was supported in part by the Science Challenge Project (No. JCKY2016212A502) and National Natural Science Foundation of China (Nos. 11601013 and 91530325).
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix A: Basic Differential Relations and the Rankine–Hugoniot Relations for Fluid Flow
To solve the Riemann problem and the generalized Riemann problem, we need to use the concept of Riemann invariants and provide some differential relations among different variables. For more details, we can refer to [35, 39, 40].
For this purpose, we write the system of Euler equations (2.1) in the following form:
where \( D/Dt=\partial /\partial t+u\cdot \partial /\partial x \) is the material derivative, and the entropy S is related to the other variables through the second law of thermodynamics
and T is the temperature. Regarding P as a function of \( \rho \) and S, \( P=P(\rho ,S)\), then the local sound speed c is defined as
Thus, the third equation of (A.1) can be replaced equivalently by
We observe that the entropy S is constant along a streamline. By the hyperbolic quasilinear analysis for equations (A.1), three eigenvalues of the system are obtained.
We recall [35], and here introduce the important Riemann invariants \( \phi \) and \(\psi \) for \( \lambda _{-},\lambda _{+} \)
We carry out the total differential for (A.6)
where
Along the characteristic \( {{C}_{+}}{:}\,dx/dt=u+c\), we have
and along the characteristic \( {{C}_{-}}:dx/dt=u-c\), we have
In particular, when the fluid is polytropic gases, we have
and the sound speed c,
The isentropic relation can be written as
In this case, we can get the Riemann invariants as
Taking the partial derivative of S for (A.13),
Then (A.9) turns to
Bringing (A.18) into (A.7) and (A.8)
and the second thermodynamics law can be written as
Then we have
Taking (A.1) to the Riemann invariants and entropy form
(A.25) still works across the rarefaction wave which is a smooth wave.
If there is a shock (or contact discontinuity) trajectory \( r=r(t) \) with speed \( \sigma =dr/dt\), assuming \( {{U}_{a}},{{U}_{b}} \) are the states on the wave ahead and behind the wave back. Then across the shock, \( {{U}_{a}},{{U}_{b}} \) satisfy the Rankine–Hugoniot relations,
- (a)
When \( {{u}_{a}}={{u}_{b}} \) and \( {{\rho }_{a}}\ne {{\rho }_{b}}\), the simple wave is a contact discontinuity, \( {{U}_{a}},{{U}_{b}} \) satisfy \( {{P}_{a}}={{P}_{b}}\), and \( \sigma ={{u}_{a}}\pm {{c}_{a}}={{u}_{b}}\pm {{c}_{a}} \)
- (b)
When \( {{u}_{a}}\ne {{u}_{b}}\), the simple wave is a shock wave, from (A.26), we can get
$$\begin{aligned} \left\{ {\begin{array}{*{20}{l}} {\sigma = \frac{{{u_a}{\rho _a} - {u_b}{\rho _b}}}{{{\rho _a} - {\rho _b}}}}\\ {{{({u_a} - {u_b})}^2} = ({P_a} - {P_b})\left( \frac{1}{{{\rho _b}}} - \frac{1}{{{\rho _a}}}\right) }\\ {{e_a} - {e_b} = \frac{{{\rho _a} - {\rho _b}}}{{2{\rho _a}{\rho _b}}}({P_a} + {P_b})}. \end{array}} \right. \end{aligned}$$(A.27)
By the combination of EOS function \( e=e(\rho ,P) \) and (A.27), we can get the following relation form
here, when the shock is related to \( {{\lambda }_{+}}=u+c\), the sign is (+), else should be (−) which is related to \( {{\lambda }_{-}}=u-c \).
The partial derivatives are noted as following forms.
In particular, when the EOS function is (A.12), taking \( {{\mu }^{2}}=(\gamma -1)/(\gamma +1)\), we have
Appendix B: Wave Pattern and Interface Solution of Riemann Problem
Considering the following Riemann problem with the EOS of gas (A.12),
As shown in Fig. 15, it is known that the wave pattern is three-waves structure [39], which are a left simple wave \( W_L \) related to \( {{\lambda }_{-}}=u-c\), a contact discontinuity related to \( {{\lambda }_{0}}=u\), and a right simple wave \( W_R \) related to \( {{\lambda }_{+}}=u+c \). The regions between these waves are two constant fluid states \( U_{1*}\), \( U_{2*} \).
Across the three waves, as shown in Table 1, these states satisfy conditions for Riemann invariants to be equal or satisfy the Rankine–Hugoniot relations.
Wave Pattern and Interface Solution of Riemann Problem Obtained by RBC
From the right side state definition (2.6) by RBC, the initial state distributions of Riemann problem (B.1) satisfy
Then, we can get the solution of this problem as following form.
- a.
When \( u_{I}^{0}<{{u}_{L}}\), as shown in Fig. 16, the three-waves structure is composed of two shock wave \( W_L, W_R \) and one contact discontinuity, and the states \( U_{1*},U_{2*} \) satisfy
$$\begin{aligned}&\begin{array}{*{20}{l}} {{u_{1*}} = {u_L} - H({P_{1*}};{P_L},{\rho _L})}\\ {{\rho _{1*}} = G({P_{1*}};{P_L},{\rho _L})}, \end{array}\end{aligned}$$(B.3)$$\begin{aligned}&\begin{array}{*{20}{l}} {{u_{2*}} = {u_R} + H({P_{2*}};{P_R},{\rho _R})}\\ {{\rho _{2*}} = G({P_{2*}};{P_R},{\rho _R})}, \end{array}\end{aligned}$$(B.4)$$\begin{aligned}&\begin{array}{*{20}{l}} {{u_{1*}} = {u_{2*}}}\\ {{P_{1*}} = {P_{2*}}}. \end{array} \end{aligned}$$(B.5)
By the combination of (B.5), (B.3) and (B.6), we can get the following relation form
Here, we note the state on the piston interface as \( (u_{ shock }^{*},P_{ shock }^{*},\rho _{ shock }^{*}):=(u_{1*},P_{1*},\rho _{1*}) \), then they should satisfy
- b.
When \( u_{I}^{0}\ge {{u}_{L}}\), as shown in Fig. 17, the three-waves structure is composed of two centered rarefaction wave \( W_L, W_R \) and one contact discontinuity, and the states \( U_{1*},U_{2*} \) satisfy
$$\begin{aligned}&\begin{array}{*{20}{l}} {\int \limits _{{U_L}}^{{U_{1*}}} {d\psi } = {u_{1*}} - {u_L} + \int \limits _{{P_L}}^{{P_{1*}}} {\frac{1}{{\rho c}}dP} = 0}\\ {S({\rho _{1*}},{P_{1*}}) = S({\rho _L},{P_L})}, \end{array}\end{aligned}$$(B.9)$$\begin{aligned}&\begin{array}{*{20}{l}} {\int \limits _{{U_R}}^{{U_{2*}}} {d\phi } = {u_{2*}} - {u_R} - \int \limits _{{P_R}}^{{P_{2*}}} {\frac{1}{{\rho c}}dP} = 0}\\ {S({\rho _{2*}},{P_{2*}}) = S({\rho _R},{P_R})}, \end{array}\end{aligned}$$(B.10)$$\begin{aligned}&\begin{array}{*{20}{l}} {{u_{1*}} = {u_{2*}}}\\ {{P_{1*}} = {P_{2*}}}. \end{array} \end{aligned}$$(B.11)
By the combination of (B.9), (B.11) and (B.12), we can get the following relation form
Here, we note the state on the piston interface as \( (u_{ rare }^{*},P_{ rare }^{*},\rho _{ rare }^{*}):=({{u}_{1*}},{{P}_{1*}},{{\rho }_{1*}})\), then they should satisfy
Appendix C: Wave Pattern and Interface Solution of Generalized Riemann Problem
Considering the following generalized Riemann problem,
As shown in Fig. 18, The solution is piecewise smooth in a small-time range.
Note \( {{U}_{1*}}={\mathop {\lim }\nolimits _{t\rightarrow 0+}}\,{{U}_{1}}({{x}_{I}}-,t) \) and \( {{U}_{2*}}={\mathop {\lim }\nolimits _{t\rightarrow 0+}}\,{{U}_{2}}({{x}_{I}}+,t)\), referring to [35], it is known that \( (U_{1*}^{{}},U_{2*}^{{}}) \) are the solutions on both side of the contact discontinuity for Riemann problem (B.1). With time \( t\rightarrow 0+ \) and \( x\rightarrow {{x}_{I}}-\), the limiting material derivatives \( (Du/Dt)_{1*}\), \( {{(DP/Dt)}_{1*}} \) behind the left wave \( W_L \) satisfy
with
Here, \( H_{i}^{L}={{H}_{i}}({{P}_{*}};{{P}_{L}},{{\rho }_{L}}),i=1,2,3 \) are given in (A.30) and (A.33).
Here, \( {{T}_{L}}{{{S}'}_{L}}\), \( {{{\psi }'}_{L}} \) are given in (A.22) and (A.23).
Particularly, when \( {{u}_{*}}={{u}_{L}}\), (C.7) becomes
The limiting material derivatives \( {{(Du/Dt)}_{2*}}\), \( {{(DP/Dt)}_{2*}} \) behind the right wave \( {{W}_{R}} \) satisfy
with
Here, \( H_{i}^{R}={{H}_{i}}({{P}_{*}};{{P}_{R}},{{\rho }_{R}}),i=1,2,3\), are given in (A.30) and (A.33).
Here, \( {{T}_{R}}{{{S}'}_{R}}\), \( {{{\phi }'}_{R}} \) are given in (A.22) and (A.24).
Particularly, when \( {{u}_{*}}={{u}_{R}}\), (C.14) turns to
Thus, turning the material derivatives to spatial derivatives, we have the limiting spatial derivatives \( {{(\partial u/\partial x)}_{1*}}\), \( {{(\partial \rho /\partial x)}_{1*}}\), \( {{(\partial P/\partial x)}_{1*}} \) behind the left wave \( W_L \) satisfy
Here, \( \frac{\partial \rho _{ shock }^{1*}}{\partial x} \) and \( \frac{\partial \rho _{ rare }^{1*}}{\partial x} \) satisfy
with
where \( {{G}_{i}}\), \( i = 1,2,3 \) are given in (A.35);
The limiting spatial derivatives \( {{(\partial u/\partial x)}_{2*}} \), \( {{(\partial \rho /\partial x)}_{2*}}\), \( {{(\partial P/\partial x)}_{2*}} \) behind the right wave \( {{W}_{R}} \) satisfy
Here, \( \frac{\partial \rho _{ shock }^{2*}}{\partial x} \) and \( \frac{\partial \rho _{ rare }^{2*}}{\partial x} \) satisfy
with
Here \( {{G}_{i}}\), \( i = 1,2,3 \) are given in (A.35).
Wave Pattern and Interface Solution of Generalized Riemann Problem Obtained by RBC
From the right side state definition (2.6) by RBC, the initial state distributions of generalized Riemann problem (C.1) satisfy
Then, as shown in Fig. 19, we can get the solution of this problem as following form.
- a.
When \( u_{I}^{0}<{{u}_{L}}\), the three-waves structure is composed of two shock wave \( W_L, W_R \) and one contact discontinuity, the limiting states \( {{U}_{1*}}\), \( {{U}_{2*}} \) and their material derivatives \( {{(Du/Dt)}_{1*}}\), \( {{(DP/Dt)}_{1*}}\), \( {{(Du/Dt)}_{2*}}\), \( {{(DP/Dt)}_{2*}} \) behind the wave \( W_L, W_R \) satisfy
$$\begin{aligned}&{U_{1*}} = {U_{2*}},\end{aligned}$$(C.25)$$\begin{aligned}&A_L^{ shock }\left( {\frac{{Du}}{{Dt}}} \right) _{1*}^ - + B_L^{ shock }\left( {\frac{{DP}}{{Dt}}} \right) _{1*}^ - = D_L^{ shock },\end{aligned}$$(C.26)$$\begin{aligned}&A_R^{ shock }\left( {\frac{{Du}}{{Dt}}} \right) _{2*}^ + + B_R^{ shock }\left( {\frac{{DP}}{{Dt}}} \right) _{2*}^ + = D_R^{ shock },\end{aligned}$$(C.27)$$\begin{aligned}&\begin{array}{*{20}{l}} {\left( {\frac{{Du}}{{Dt}}} \right) _{1*}^ - = \left( {\frac{{Du}}{{Dt}}} \right) _{2*}^ + },\\ {\left( {\frac{{DP}}{{Dt}}} \right) _{1*}^ - = \left( {\frac{{DP}}{{Dt}}} \right) _{2*}^ + }. \end{array} \end{aligned}$$(C.28)
Here, \( {{U}_{1*}}\), \( {{U}_{2*}} \) are given in (B.8).
Bringing (C.24), (C.25) into (C.4) and (C.11), we can get
Then, (C.27) becomes
From (C.28), (C.26) and (C.30), we have
- b.
When \( u_{I}^{0}\ge {{u}_{L}}\), the three-waves structure is composed of two rarefaction wave \( W_L, W_R \) and one contact discontinuity, the limiting states \( {{U}_{1*}}\), \( {{U}_{2*}} \) and their material derivatives \( {{(Du/Dt)}_{1*}}\), \( {{(DP/Dt)}_{1*}}\), \( {{(Du/Dt)}_{2*}}\), \( {{(DP/Dt)}_{2*}} \) behind the wave \( W_L, W_R \) satisfy
$$\begin{aligned}&{U_{1*}} = {U_{2*}},\end{aligned}$$(C.32)$$\begin{aligned}&A_L^{ rare }\left( {\frac{{Du}}{{Dt}}} \right) _{1*}^ - + B_L^{ rare }\left( {\frac{{DP}}{{Dt}}} \right) _{1*}^ - = D_L^{ rare },\end{aligned}$$(C.33)$$\begin{aligned}&A_R^{ rare }\left( {\frac{{Du}}{{Dt}}} \right) _{2*}^ + + B_R^{ rare }\left( {\frac{{DP}}{{Dt}}} \right) _{2*}^ + = D_R^{ rare },\end{aligned}$$(C.34)$$\begin{aligned}&\begin{array}{*{20}{l}} {\left( {\frac{{Du}}{{Dt}}} \right) _{1*}^ - = \left( {\frac{{Du}}{{Dt}}} \right) _{2*}^ + },\\ {\left( {\frac{{DP}}{{Dt}}} \right) _{1*}^ - = \left( {\frac{{DP}}{{Dt}}} \right) _{2*}^ + }. \end{array} \end{aligned}$$(C.35)
Here, \( {{U}_{1*}}\), \( {{U}_{2*}} \) are given in (B.14).
Bringing (C.24), (C.32) into (C.6) and (C.13), we can get
Then, (C.34) becomes
From (C.33), (C.37) and (C.35), we have
Appendix D: Codes for PRP-Solver and GPRP-Solver
Rights and permissions
About this article
Cite this article
Liu, T., Feng, C. & Xu, L. Modified Ghost Fluid Method with Acceleration Correction (MGFM/AC). J Sci Comput 81, 1906–1944 (2019). https://doi.org/10.1007/s10915-019-01079-x
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10915-019-01079-x