Introduction
Thin film flows have been extensively investigated within the framework of hyperbolic balance laws, particularly for gravity-driven films, inclined-plane flows, and surfactant-mediated dynamics; see, e.g., [1 , 2 , 3 , 4 , 5 , 6 ] . These models arise in numerous industrial and environmental applications, including coating technologies, thin-film photovoltaics, and biomedical surfactant therapies.
Mathematically, thin film equations are typically formulated as fourth-order degenerate hyperbolic–parabolic systems, with degeneracy occurring as the film height vanishes. In appropriate asymptotic regimes, however, the large-scale lubrication dynamics can be reduced to a first-order hyperbolic subsystem; see, e.g., [3 , 6 , 7 ] . For hyperbolic systems, an important additional physical structure is provided by an entropy inequality. In particular, for scalar conservation laws and for one-dimensional systems, entropy conditions play a crucial role in selecting the physically relevant weak solution and establishing well-posedness [8 , 9 ] . This is particularly important for the hyperbolic thin-film subsystem considered here, where discontinuities and shock-like structures may develop even from smooth initial data. The entropy inequality therefore provides a natural criterion for identifying the physically admissible solution among the potentially many weak solutions of the hyperbolic system. Only after establishing this entropy structure, it is meaningful to ask how it should be preserved at the discrete level. Therefore, the entropy structure of this hyperbolic subsystem is a key ingredient in the design of stable and physically consistent numerical discretizations of the full model.
The development of entropy-dissipative schemes has attracted considerable research interest in recent years, spanning a wide range of discretization frameworks, from finite-difference methods to finite-element-type approaches; see, e.g., [10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 ] and references therein. Most of these developments build upon the seminal works of Tadmor [19 , 20 ] , who established the fundamental framework for entropy-conservative numerical approximations and the construction of entropy-conservative two-point fluxes. Entropy-dissipative fluxes can subsequently be obtained by adding suitable dissipative terms to these entropy-conservative fluxes. In the context of thin-film flows, provably positivity-preserving and entropy-stable numerical methods based on an explicit entropy structure have been successfully developed for scalar, single-layer equations; see, e.g., [21 , 22 ] and the references therein. However, extending these approaches to coupled single- and multi-layer systems remains largely open.
In this article, we take a step in this direction by constructing entropy-dissipative high-order numerical schemes for a system of conservation laws describing the leading-order dynamics of two-layer thin-film flows of immiscible fluids under the influence of anti-surfactants. A key ingredient in the construction of entropy-stable schemes is the development of suitable entropy-conservative two-point fluxes in the sense of Tadmor. In particular, we derive and investigate two different sets of entropy-conservative two-point fluxes and use them as building blocks for the construction of high-order entropy-stable schemes. The first is based on a commonly used approximate evaluation of the entropy-conservative flux, while the second employs an exact evaluation. The approximate construction is considerably simpler and follows an approach that is also frequently used for other hyperbolic systems, including the compressible Euler equations [23 , 24 ] . In contrast, the exact construction requires a more involved derivation, but preserves an additional symmetry structure in flux evaluation. This structure has important consequences for the resulting discretization and leads to improved properties when solving the linear system arising at each time step, which has to be solved for both constructions. Thus, the choice of entropy-conservative flux directly affects not only the complexity of the flux construction but also the computational cost, robustness, and stability of the resulting solver. We incorporate both flux formulations into an entropy-dissipative finite-difference (FD) framework [25 , 26 , 27 , 28 ] , as well as into an entropy-dissipative discontinuous Galerkin spectral element method (DGSEM) [12 , 17 ] . By considering these two distinct spatial discretizations, we can assess the influence of the flux construction independently of the underlying discretization and compare the resulting schemes in terms of computational efficiency and robustness. We incorporate both flux formulations into an entropy-dissipative finite-difference (FD) framework [25 , 26 ] , as well as into an entropy-dissipative discontinuous Galerkin spectral element method (DGSEM) [12 , 17 ] . By considering these two distinct spatial discretizations, we can assess the influence of the flux construction independently of the underlying discretization and compare the resulting schemes in terms of computational efficiency and robustness.
The rest of the article is organized as follows: In § 2 , we introduce the thin-film model and the underlying structural properties. Afterward, in § 3 , we introduce the entropy-dissipative FD method and DGSEM and describe how entropy-conservative two-point fluxes can be constructed for the thin-film model. In § 4 , we assess the proposed fluxes through numerical experiments for one- and two-dimensional problems, comparing their accuracy, robustness, and computational efficiency independent of the underlying discretization. A summary and outlook are then given. In the appendix, we provide additional calculations that are omitted from the main text for better readability.
Model
The thin-film model considered in this work is described in detail in [7 ] . It is given by the following one-dimensional hyperbolic system1 :
∂ f ∂ t + 1 2 ∂ ∂ x ( f 2 b ) = 0 , ∂ b ∂ t + 1 2 ∂ ∂ x ( f b 2 ) = 0 , ∂ g ∂ t + ∂ ∂ x ( g 2 q 2 + f g b ) = 0 , ∂ q ∂ t + ∂ ∂ x ( g q 2 2 + f b q ) = 0. (1) \begin{aligned}
\frac{\partial f}{\partial t}+\frac{1}{2}\frac{\partial}{\partial x}\left(f^2b\right)&=0,\\
\frac{\partial b}{\partial t}+\frac{1}{2}\frac{\partial}{\partial x}\left(fb^2\right)&=0,\\
\frac{\partial g}{\partial t}+\frac{\partial}{\partial x}\left(\frac{g^2q}{2}+fgb\right)&=0,\\
\frac{\partial q}{\partial t}+\frac{\partial}{\partial x}\left(\frac{gq^2}{2}+fbq\right)&=0. \tag*{(1)}
\end{aligned} ∂ t ∂ f + 2 1 ∂ x ∂ ( f 2 b ) ∂ t ∂ b + 2 1 ∂ x ∂ ( f b 2 ) ∂ t ∂ g + ∂ x ∂ ( 2 g 2 q + f g b ) ∂ t ∂ q + ∂ x ∂ ( 2 g q 2 + f b q ) = 0 , = 0 , = 0 , = 0. (1)
In (1) , f f f and g g g denote the positive film thicknesses in the two layers and the quantities b b b and q q q denote the spatial derivatives of the concentrations of the solute in each layer.
The first-order system (1) can be written in the compact conservative form
U t + ( F ( U ) ) x = 0 , (2) \mathbf{U}_t+\left(F(\mathbf{U})\right)_x=0, \tag*{(2)} U t + ( F ( U ) ) x = 0 , (2)
where U = ( f , b , g , q ) T \mathbf{U}=(f,b,g,q)^{\mathsf{T}} U = ( f , b , g , q ) T denotes the vector of conservative variables and
F ( U ) = ( 1 2 f 2 b , 1 2 f b 2 , 1 2 g 2 q + f b g , 1 2 g q 2 + f b q ) T (3) F(\mathbf{U})=\left(\frac{1}{2}f^2b,\frac{1}{2}fb^2,\frac{1}{2}g^2q+fbg,\frac{1}{2}gq^2+fbq\right)^{\mathsf{T}} \tag*{(3)} F ( U ) = ( 2 1 f 2 b , 2 1 f b 2 , 2 1 g 2 q + f b g , 2 1 g q 2 + f b q ) T (3)
is the flux vector.
Moreover, we consider the state space
U = { ( f , b , g , q ) ∈ R 4 : f , g , q > 0 , b ≠ 0 , g q > f b , 2 f b + g q > 0 } . (4) \mathcal{U}=\left\{(f,b,g,q)\in\mathbb{R}^{4}:f,g,q>0,\ b\ne0,\ gq>fb,\ 2fb+gq>0\right\}. \tag*{(4)} U = { ( f , b , g , q ) ∈ R 4 : f , g , q > 0 , b = 0 , g q > f b , 2 f b + g q > 0 } . (4)
Note that we take a more generalized state space in this article than the one used in [7 ] . This is motivated by the fact that the articles [7 ] and [29 ] only consider a single signed condition on b b b and thus consider only unidirectional dynamics of the solution behavior. We relax this condition in this article and consider the state space (4) , which automatically reduces to the state space considered in [7 ] and [29 ] for b > 0 b>0 b > 0 and b < 0 b<0 b < 0 , respectively.
Based on the sign of b b b , the eigenstructure of the system (1) satisfies the following ordering relations. For b > 0 b>0 b > 0 ,
λ 1 ( U ) = f b 2 < λ 2 ( U ) = 3 f b 2 < λ 3 ( U ) = f b + g q 2 < λ 4 ( U ) = f b + 3 g q 2 . (5) \lambda_1(\mathbf{U})=\frac{fb}{2}<\lambda_2(\mathbf{U})=\frac{3fb}{2}<\lambda_3(\mathbf{U})=fb+\frac{gq}{2}<\lambda_4(\mathbf{U})=fb+\frac{3gq}{2}. \tag*{(5)} λ 1 ( U ) = 2 f b < λ 2 ( U ) = 2 3 f b < λ 3 ( U ) = f b + 2 g q < λ 4 ( U ) = f b + 2 3 g q . (5)
and for b < 0 b<0 b < 0
λ 1 ( U ) = 3 f b 2 < λ 2 ( U ) = f b 2 < λ 3 ( U ) = f b + g q 2 < λ 4 ( U ) = f b + 3 g q 2 . (6) \lambda_1(\mathbf{U})=\frac{3fb}{2}<\lambda_2(\mathbf{U})=\frac{fb}{2}<\lambda_3(\mathbf{U})=fb+\frac{gq}{2}<\lambda_4(\mathbf{U})=fb+\frac{3gq}{2}. \tag*{(6)} λ 1 ( U ) = 2 3 f b < λ 2 ( U ) = 2 f b < λ 3 ( U ) = f b + 2 g q < λ 4 ( U ) = f b + 2 3 g q . (6)
Moreover, the (right) eigenvectors r k = r k ( U ) \mathbf{r}_k=\mathbf{r}_k(\mathbf{U}) r k = r k ( U ) for b > 0 b>0 b > 0 are
r 1 ( U ) = ( − f b , 1 , 0 , 0 ) T , r 2 ( U ) = ( f b − 3 g q 4 q b , f b − 3 g q 4 q f , g q , 1 ) T , r 3 ( U ) = ( 0 , 0 , − g q , 1 ) T , r 4 ( U ) = ( 0 , 0 , g q , 1 ) T . (7) \begin{aligned}
\mathbf{r}_1(\mathbf{U})&=\left(-\frac{f}{b},1,0,0\right)^{\mathsf{T}},&
\mathbf{r}_2(\mathbf{U})&=\left(\frac{fb-3gq}{4qb},\frac{fb-3gq}{4qf},\frac{g}{q},1\right)^{\mathsf{T}},\\
\mathbf{r}_3(\mathbf{U})&=\left(0,0,-\frac{g}{q},1\right)^{\mathsf{T}},&
\mathbf{r}_4(\mathbf{U})&=\left(0,0,\frac{g}{q},1\right)^{\mathsf{T}}. \tag*{(7)}
\end{aligned} r 1 ( U ) r 3 ( U ) = ( − b f , 1 , 0 , 0 ) T , = ( 0 , 0 , − q g , 1 ) T , r 2 ( U ) r 4 ( U ) = ( 4 q b f b − 3 g q , 4 q f f b − 3 g q , q g , 1 ) T , = ( 0 , 0 , q g , 1 ) T . (7)
The eigenvectors are linearly independent in U \mathcal{U} U . This implies the strong hyperbolicity of the reduced system (1) in $\mathcal{U}`.
Entropy/entropy pairs of the hyperbolic system (1)
In this section, we first obtain a strictly convex entropy for the system (1) independent of the sign of b b b , which generalizes (while simplifying) the convex entropy obtained in [7 ] . We first recall the general class of entropies obtained in [7 ] .
Theorem 2.1 (Entropy/entropy-flux pairs). Let ρ \rho ρ , μ \mu μ and ν \nu ν be arbitrary functions in C 1 ( 0 , ∞ ) C^{1}(0,\infty) C 1 ( 0 , ∞ ) . For the system (1) , there exists a class of entropy/entropy-flux pairs ( η , F ) (\eta,\mathcal{F}) ( η , F ) which is given by
η [ f , b , g , q ] = ρ ( f b ) + f b μ ( b f b ) + g q ν ( q g q ) + 1 f b + g q , \eta[f,b,g,q]=\rho(fb)+\sqrt{fb}\mu\left(\frac{b}{\sqrt{fb}}\right)+\sqrt{gq}\nu\left(\frac{q}{\sqrt{gq}}\right)+\frac{1}{fb+gq}, η [ f , b , g , q ] = ρ ( f b ) + f b μ ( f b b ) + g q ν ( g q q ) + f b + g q 1 , F [ f , b , g , q ] = ψ ( f b ) + ( f b ) 3 / 2 μ ( b f b ) + ( g q ) ν ( q g q ) ( f b + g q ) − ln ( ( f b + g q ) 3 / 2 ) − f b 2 ( f b + g q ) . (8) \mathcal{F}[f,b,g,q]=\psi(fb)+(fb)^{3/2}\mu\left(\frac{b}{\sqrt{fb}}\right)+(\sqrt{gq})\nu\left(\frac{q}{\sqrt{gq}}\right)(fb+gq)
-\ln\left((fb+gq)^{3/2}\right)-\frac{fb}{2(fb+gq)}. \tag*{(8)} F [ f , b , g , q ] = ψ ( f b ) + ( f b ) 3/2 μ ( f b b ) + ( g q ) ν ( g q q ) ( f b + g q ) − ln ( ( f b + g q ) 3/2 ) − 2 ( f b + g q ) f b . (8) The function ψ \psi ψ is determined from ψ ′ ( w ) = 3 2 w ρ ′ ( w ) \psi'(w)=\frac{3}{2}w\rho'(w) ψ ′ ( w ) = 2 3 w ρ ′ ( w ) .
First, we recall that the system (1) is equipped with a full set of Riemann invariants [7 ] and thus the convexity condition of an entropy η ∈ E \eta\in\mathcal{E} η ∈ E gets simpler. It is sufficient to check that the Hessian H η H_{\eta} H η of η \eta η satisfies the conditions (see Chapter 7.4 of [9 ] )
r k ( U ) T H η ( U ) r k ( U ) > 0 for all k ∈ { 1 , … , 4 } and all U ∈ U . (9) \mathbf{r}_{k}(\mathbf{U})^{\mathsf{T}}H_{\eta}(\mathbf{U})\mathbf{r}_{k}(\mathbf{U})>0\quad\text{for all }k\in\{1,\ldots,4\}\text{ and all }\mathbf{U}\in\mathcal{U}. \tag*{(9)} r k ( U ) T H η ( U ) r k ( U ) > 0 for all k ∈ { 1 , … , 4 } and all U ∈ U . (9)
We derive the following entropy-entropy flux pair for the system (1) in the following lemma.
Lemma 2.2. For any U ∈ U \mathbf{U}\in\mathcal{U} U ∈ U , the following pair of functions form an entropy-entropy pair:
η = 1 ∣ f b ∣ + 1 f b + g q , F = − 1 2 ( f b f b + g q + 3 ln ( ∣ f b ∣ σ ( b ) ) + 3 ln ( f b + g q ) ) , (10) \eta=\frac{1}{\lvert fb\rvert}+\frac{1}{fb+gq},\qquad
\mathcal{F}=-\frac{1}{2}\left(\frac{fb}{fb+gq}+3\ln(\lvert fb\rvert^{\sigma(b)})+3\ln(fb+gq)\right), \tag*{(10)} η = ∣ f b ∣ 1 + f b + g q 1 , F = − 2 1 ( f b + g q f b + 3 ln (∣ f b ∣ σ ( b ) ) + 3 ln ( f b + g q ) ) , (10) where σ ( b ) \sigma(b) σ ( b ) is the sign of b b b and η \eta η is a strictly convex function for U ∈ U \mathbf{U}\in\mathcal{U} U ∈ U . In particular, for smooth solutions of the hyperbolic system (1) , we have
∂ ∂ t η + ∂ ∂ x F = 0. (11) \frac{\partial}{\partial t}\eta+\frac{\partial}{\partial x}\mathcal{F}=0. \tag*{(11)} ∂ t ∂ η + ∂ x ∂ F = 0. (11)
Proof. By choosing ρ ( u ) = 1 / ∣ u ∣ \rho(u)=1/\lvert u\rvert ρ ( u ) = 1/ ∣ u ∣ , μ = 0 \mu=0 μ = 0 , ν = 0 \nu=0 ν = 0 , it is easy to see that the function η \eta η belongs to the general class of entropies of the system (1) along with the associated flux F \mathcal{F} F as defined in (8) . Therefore, we directly proceed to prove that the entropy η \eta η is strictly convex for all U ∈ U \mathbf{U}\in\mathcal{U} U ∈ U . We separate the proof of convexity for η \eta η into two different cases depending upon the sign of b b b .
Case 1. b > 0 b>0 b > 0
For this case, we directly compute the Hessian matrix of η \eta η , which gives
H η = ( 2 ( b 2 ( b f + g q ) 3 + 1 f 3 b ) b f − g q ( b f + g q ) 3 + 1 b 2 f 2 2 b q ( b f + g q ) 3 2 b g ( b f + g q ) 3 b f − g q ( b f + g q ) 3 + 1 b 2 f 2 2 ( 1 ( b f + g q ) 3 + 1 f b 3 ) 2 f q ( b f + g q ) 3 2 f g ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 f q ( b f + g q ) 3 2 q 2 ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 b g ( b f + g q ) 3 2 f g ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 g 2 ( b f + g q ) 3 ) . H_{\eta}=
\begin{pmatrix}
2\left(\frac{b^{2}}{(bf+gq)^{3}}+\frac{1}{f^{3}b}\right) &
\frac{bf-gq}{(bf+gq)^{3}}+\frac{1}{b^{2}f^{2}} &
\frac{2bq}{(bf+gq)^{3}} &
\frac{2bg}{(bf+gq)^{3}} \\
\frac{bf-gq}{(bf+gq)^{3}}+\frac{1}{b^{2}f^{2}} &
2\left(\frac{1}{(bf+gq)^{3}}+\frac{1}{fb^{3}}\right) &
\frac{2fq}{(bf+gq)^{3}} &
\frac{2fg}{(bf+gq)^{3}} \\
\frac{2bq}{(bf+gq)^{3}} &
\frac{2fq}{(bf+gq)^{3}} &
\frac{2q^{2}}{(bf+gq)^{3}} &
\frac{gq-bf}{(bf+gq)^{3}} \\
\frac{2bg}{(bf+gq)^{3}} &
\frac{2fg}{(bf+gq)^{3}} &
\frac{gq-bf}{(bf+gq)^{3}} &
\frac{2g^{2}}{(bf+gq)^{3}}
\end{pmatrix}. H η = 2 ( ( b f + g q ) 3 b 2 + f 3 b 1 ) ( b f + g q ) 3 b f − g q + b 2 f 2 1 ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 b g ( b f + g q ) 3 b f − g q + b 2 f 2 1 2 ( ( b f + g q ) 3 1 + f b 3 1 ) ( b f + g q ) 3 2 f q ( b f + g q ) 3 2 f g ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 f q ( b f + g q ) 3 2 q 2 ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 b g ( b f + g q ) 3 2 f g ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 g 2 .
Thus we have
r 1 T H η r 1 = 2 f b ( b f + g q ) 2 + 2 b 3 f , \mathbf{r}_1^{\mathsf{T}} H_\eta\mathbf{r}_1 = \frac{2f}{b(bf+gq)^2}+\frac{2}{b^3f}, r 1 T H η r 1 = b ( b f + g q ) 2 2 f + b 3 f 2 ,
r 2 T H η r 2 = 3 ( 3 g q − b f ) ( 3 g 2 q 2 + 2 b f ( g q − f b ) ) 8 b 3 f 3 q 2 ( b f + g q ) , \mathbf{r}_2^{\mathsf{T}} H_\eta\mathbf{r}_2 = \frac{3(3gq-bf)\left(3g^2q^2+2bf(gq-fb)\right)}{8b^3f^3q^2(bf+gq)}, r 2 T H η r 2 = 8 b 3 f 3 q 2 ( b f + g q ) 3 ( 3 g q − b f ) ( 3 g 2 q 2 + 2 b f ( g q − f b ) ) ,
r 3 T H η r 3 = 2 g q ( b f + g q ) 2 , \mathbf{r}_3^{\mathsf{T}} H_\eta\mathbf{r}_3 = \frac{2g}{q(bf+gq)^2}, r 3 T H η r 3 = q ( b f + g q ) 2 2 g ,
r 4 T H η r 4 = 2 g ( 3 g q − b f ) q ( b f + g q ) 3 , \mathbf{r}_4^{\mathsf{T}} H_\eta\mathbf{r}_4 = \frac{2g(3gq-bf)}{q(bf+gq)^3}, r 4 T H η r 4 = q ( b f + g q ) 3 2 g ( 3 g q − b f ) ,
which are all positive for U ∈ U \mathbf{U}\in\mathcal{U} U ∈ U .
Case 2. b < 0 b<0 b < 0
For this case, we directly compute the Hessian matrix of η \eta η , which gives
( 2 b 2 ( b f + g q ) 3 − 2 b f 3 b f − g q ( b f + g q ) 3 − 1 b 2 f 2 2 b q ( b f + g q ) 3 2 b q ( b f + g q ) 3 b f − g q ( b f + g q ) 3 − 1 b 2 f 2 2 f ( b f + g q ) 3 − 2 b 3 f 2 f q ( b f + g q ) 3 2 f g ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 f q ( b f + g q ) 3 2 q 2 ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 f g ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 g 2 ( b f + g q ) 3 ) , \begin{pmatrix}
\frac{2b^2}{(bf+gq)^3}-\frac{2}{bf^3} & \frac{bf-gq}{(bf+gq)^3}-\frac{1}{b^2f^2} & \frac{2bq}{(bf+gq)^3} & \frac{2bq}{(bf+gq)^3}\\
\frac{bf-gq}{(bf+gq)^3}-\frac{1}{b^2f^2} & \frac{2f}{(bf+gq)^3}-\frac{2}{b^3f} & \frac{2fq}{(bf+gq)^3} & \frac{2fg}{(bf+gq)^3}\\
\frac{2bq}{(bf+gq)^3} & \frac{2fq}{(bf+gq)^3} & \frac{2q^2}{(bf+gq)^3} & \frac{gq-bf}{(bf+gq)^3}\\
\frac{2bq}{(bf+gq)^3} & \frac{2fg}{(bf+gq)^3} & \frac{gq-bf}{(bf+gq)^3} & \frac{2g^2}{(bf+gq)^3}
\end{pmatrix}, ( b f + g q ) 3 2 b 2 − b f 3 2 ( b f + g q ) 3 b f − g q − b 2 f 2 1 ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 b q ( b f + g q ) 3 b f − g q − b 2 f 2 1 ( b f + g q ) 3 2 f − b 3 f 2 ( b f + g q ) 3 2 f q ( b f + g q ) 3 2 f g ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 f q ( b f + g q ) 3 2 q 2 ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 b q ( b f + g q ) 3 2 f g ( b f + g q ) 3 g q − b f ( b f + g q ) 3 2 g 2 ,
Thus we have
r 1 T H η r 1 = − 2 g q ( 2 f b + g q ) b f ( b f + g q ) 2 , \mathbf{r}_1^{\mathsf{T}} H_\eta\mathbf{r}_1 = -\frac{2gq(2fb+gq)}{bf(bf+gq)^2}, r 1 T H η r 1 = − b f ( b f + g q ) 2 2 g q ( 2 f b + g q ) ,
r 2 T H η r 2 = − 3 g ( 3 g q − b f ) ( 2 b f + 3 g q ) 8 b 3 f 3 q ( b f + g q ) , \mathbf{r}_2^{\mathsf{T}} H_\eta\mathbf{r}_2 = -\frac{3g(3gq-bf)(2bf+3gq)}{8b^3f^3q(bf+gq)}, r 2 T H η r 2 = − 8 b 3 f 3 q ( b f + g q ) 3 g ( 3 g q − b f ) ( 2 b f + 3 g q ) ,
r 3 T H η r 3 = 2 g q ( b f + g q ) 2 , \mathbf{r}_3^{\mathsf{T}} H_\eta\mathbf{r}_3 = \frac{2g}{q(bf+gq)^2}, r 3 T H η r 3 = q ( b f + g q ) 2 2 g ,
r 4 T H η r 4 = 2 g ( 3 g q − b f ) q ( b f + g q ) 3 , \mathbf{r}_4^{\mathsf{T}} H_\eta\mathbf{r}_4 = \frac{2g(3gq-bf)}{q(bf+gq)^3}, r 4 T H η r 4 = q ( b f + g q ) 3 2 g ( 3 g q − b f ) ,
which are all positive for U ∈ U \mathbf{U}\in\mathcal{U} U ∈ U .
We also define the entropy variables V = ∂ η ∂ U \mathbf{V}=\frac{\partial\eta}{\partial\mathbf{U}} V = ∂ U ∂ η for b > 0 b>0 b > 0 and b < 0 b<0 b < 0 , respectively, which are given by
V = ( ∓ 1 b f 2 ∓ b ( b f + g q ) 2 , ∓ 1 b 2 f − f ( b f + g q ) 2 , ∓ q ( b f + g q ) 2 , ∓ g ( b f + g q ) 2 ) T . (12) \mathbf{V}=\left(\mp\frac{1}{bf^2}\mp\frac{b}{(bf+gq)^2},\ \mp\frac{1}{b^2f}-\frac{f}{(bf+gq)^2},\ \mp\frac{q}{(bf+gq)^2},\ \mp\frac{g}{(bf+gq)^2}\right)^{\mathsf{T}}. \tag*{(12)} V = ( ∓ b f 2 1 ∓ ( b f + g q ) 2 b , ∓ b 2 f 1 − ( b f + g q ) 2 f , ∓ ( b f + g q ) 2 q , ∓ ( b f + g q ) 2 g ) T . (12)
Constructing high-order entropy dissipative schemes
In the following, we construct entropy-conservative or entropy-dissipative higher-order schemes by deriving numerical fluxes for (1). For the sake of cleaner presentation, we present the calculation in this section for b > 0 b>0 b > 0 . The case b < 0 b<0 b < 0 can be done analogously and we will later demonstrate also a numerical example for this. Here, we derive the entropy conservative fluxes using two different approaches. First, we use a Taylor approximation; afterward, we use an analytical approach. Before, we fix some notation and explain the basis on which these fluxes are derived. We also fix the notation for the space discretization. In particular, we introduce the entropy-dissipative FD scheme and DGSEM.
Notation and background
For a possibly discontinuous function a : Ω → R a:\Omega\to\mathbb{R} a : Ω → R we define the jump via ⟦ a ⟧ : = a + − a − \llbracket a\rrbracket:= a^+ - a^- [ [ a ] ] := a + − a − and the average via { { a } } : = 1 2 ( a + + a − ) \{\!\{a\}\!\} := \frac{1}{2}(a^+ + a^-) { { a } } := 2 1 ( a + + a − ) , where a + a^+ a + and a − a^- a − are the values at the discontinuity with a + = lim x → x 0 + a ( x ) a^+ = \lim_{x\to x_0^+}a(x) a + = lim x → x 0 + a ( x ) and a − = lim x → x 0 − a ( x ) a^- = \lim_{x\to x_0^-}a(x) a − = lim x → x 0 − a ( x ) . Further, let
{ { a } } log : = ⟦ a ⟧ ⟦ ln a ⟧ , \{\!\{a\}\!\}_{\log} := \frac{\llbracket a\rrbracket}{\llbracket\ln a\rrbracket}, { { a } } l o g := [ [ ln a ] ] [ [ a ] ] ,
be the logarithmic mean, which can be calculated in a numerically stable way following [30 ] . We refer also to [31 ] for some recent approximations. Later on we need the identity.
⟦ a b ⟧ = { { a } } ⟦ b ⟧ + { { b } } ⟦ a ⟧ . \llbracket ab\rrbracket= \{\!\{a\}\!\}\llbracket b\rrbracket+ \{\!\{b\}\!\}\llbracket a\rrbracket. [ [ ab ] ] = { { a } } [ [ b ] ] + { { b } } [ [ a ] ] .
We now state Tadmor’s approach [20 ] for finding an entropy-conservative flux: Given a system of type (2) , a numerical flux is entropy-conservative if
0 = ⟦ V ⟧ ⋅ F n u m − ⟦ Ψ ( U ( V ) ) ⟧ , (13) 0 = \llbracket\mathbf{V}\rrbracket\cdot\mathbf{F}^{\mathrm{num}}-\llbracket\Psi(\mathbf{U}(\mathbf{V}))\rrbracket, \tag*{(13)} 0 = [ [ V ] ] ⋅ F num − [ [ Ψ ( U ( V )) ] ] , (13)
where V = ( ∂ η ∂ u i ) i = 1 n \mathbf{V}=\left(\frac{\partial\eta}{\partial u_i}\right)_{i=1}^{n} V = ( ∂ u i ∂ η ) i = 1 n , η \eta η is an entropy and Ψ = V ⋅ F ( U ) − F \Psi=\mathbf{V}\cdot\mathbf{F}(\mathbf{U})-\mathcal{F} Ψ = V ⋅ F ( U ) − F is an entropy potential. It is given for the entropy-entropy flux pair (10) by
Ψ = − 2 + f b 2 ( b f + g q ) + 3 2 ln ( b f ( b f + g q ) ) , (14) \Psi=-2+\frac{fb}{2(bf+gq)}+\frac{3}{2}\ln\left(bf(bf+gq)\right), \tag*{(14)} Ψ = − 2 + 2 ( b f + g q ) f b + 2 3 ln ( b f ( b f + g q ) ) , (14)
for which the derivation can be found in Appendix B.
For simplicity and later calculations, we introduce the following abbreviations: A : = f b A:=fb A := f b , B : = f b + g q B:=fb+gq B := f b + g q , then we have, η = 1 A + 1 B \eta=\frac{1}{A}+\frac{1}{B} η = A 1 + B 1 and F = − 1 2 B A − 3 2 ln ( A B ) \mathcal{F}=-\frac{1}{2B}A-\frac{3}{2}\ln(AB) F = − 2 B 1 A − 2 3 ln ( A B ) . Additionally, we have the following relations:
v 1 : = ∂ η ∂ f = − b ( f b ) 2 − b ( f b + g q ) 2 = − u 2 ( A − 2 + B − 2 ) , v 2 : = ∂ η ∂ b = − f ( f b ) 2 − f ( f b + g q ) 2 = − u 1 ( A − 2 + B − 2 ) , v 3 : = ∂ η ∂ g = − q ( f b + g q ) 2 = − u 4 B − 2 , v 4 : = ∂ η ∂ q = − g ( f b + g q ) 2 = − u 3 B − 2 . \begin{aligned}
v_1&:=\frac{\partial\eta}{\partial f}=-\frac{b}{(fb)^2}-\frac{b}{(fb+gq)^2}=-u_2(A^{-2}+B^{-2}),\\
v_2&:=\frac{\partial\eta}{\partial b}=-\frac{f}{(fb)^2}-\frac{f}{(fb+gq)^2}=-u_1(A^{-2}+B^{-2}),\\
v_3&:=\frac{\partial\eta}{\partial g}=-\frac{q}{(fb+gq)^2}=-u_4B^{-2},\\
v_4&:=\frac{\partial\eta}{\partial q}=-\frac{g}{(fb+gq)^2}=-u_3B^{-2}.
\end{aligned} v 1 v 2 v 3 v 4 := ∂ f ∂ η = − ( f b ) 2 b − ( f b + g q ) 2 b = − u 2 ( A − 2 + B − 2 ) , := ∂ b ∂ η = − ( f b ) 2 f − ( f b + g q ) 2 f = − u 1 ( A − 2 + B − 2 ) , := ∂ g ∂ η = − ( f b + g q ) 2 q = − u 4 B − 2 , := ∂ q ∂ η = − ( f b + g q ) 2 g = − u 3 B − 2 .
Next, we briefly introduce the notation and discretization frameworks used throughout the remainder of this work, in particular the DGSEM and the entropy-dissipative finite-difference scheme.
Entropy Dissipative Discontinuous Galerkin Spectral Element Method
A central aspect is the use of entropy-conservative two-point fluxes within a flux-differencing framework to construct an entropy-dissipative (conservative) DG method.
We consider a one-dimensional spatial domain Ω = [ x L , x R ] \Omega=[x_L,x_R] Ω = [ x L , x R ] . For more details, we refer to the literature [12 , 17 ] . Then, the construction of the entropy dissipative DGSEM can be summarized as follows. We multiply the system (2) by a test function φ \varphi φ and integrate over the domain Ω \Omega Ω . Then, we divide Ω \Omega Ω into non-overlapping elements E k = ( x k , x k + 1 ) E_k=(x_k,x_{k+1}) E k = ( x k , x k + 1 ) , k = 1 , … , K k=1,\ldots,K k = 1 , … , K . Instead of working in each element separately, all calculations are done in the reference element E 0 = ( − 1 , 1 ) E_0=(-1,1) E 0 = ( − 1 , 1 ) and we create a mapping between the physical coordinates x x x and computational coordinate χ \chi χ on the reference element E 0 E_0 E 0 via
χ k ( x ) = 2 ( x − x k x k + 1 − x k ) − 1 ∈ E 0 , k = 1 , … , K . \chi^k(x)=2\left(\frac{x-x_k}{x_{k+1}-x_k}\right)-1\in E_0,\quad k=1,\ldots,K. χ k ( x ) = 2 ( x k + 1 − x k x − x k ) − 1 ∈ E 0 , k = 1 , … , K .
This introduces a Jacobian term on each element of the form χ x k = 2 Δ x k \chi_x^k=\frac{2}{\Delta x_k} χ x k = Δ x k 2 with Δ x k = x k + 1 − x k \Delta x_k=x_{k+1}-x_k Δ x k = x k + 1 − x k . From the mapping, we apply the chain rule to rewrite spatial derivatives from physical coordinates into the computational coordinates. The numerical solution and physical flux with nodal polynomials of degree N N N are written in the Lagrange basis, e.g.,
U ( x , t ) ≈ ∑ j = 0 N U j ( t ) ℓ j ( χ ) , \mathbf{U}(x,t)\approx\sum_{j=0}^{N}\mathbf{U}_j(t)\ell_j(\chi), U ( x , t ) ≈ j = 0 ∑ N U j ( t ) ℓ j ( χ ) ,
where the interpolation nodes are taken to be N + 1 N+1 N + 1 Legendre-Gauss-Lobatto (LGL) nodes. Now, we apply two times integration-by-parts, where, after the first round, the discontinuity at the element boundary is resolved by using a numerical flux in the spirit of FV methods. The second integration-by-parts yields the strong-form DGSEM. We now select the test function to be the Lagrange basis polynomials φ = ℓ i ( χ ) \varphi=\ell_i(\chi) φ = ℓ i ( χ ) , where i = 0 , … , N i=0,\ldots,N i = 0 , … , N and approximate the integrals with LGL quadrature rules, where we additionally collocate the interpolation and quadrature nodes. This finally yields the DGSEM. However, the discretization is not, in general, entropy conservative (dissipative). The key ingredient is now to replace the collocated flux in the volume with an entropy conservative, numerical two-point flux that extends a low-order entropy conservative FV flux to high-order [16 ] and results in a split-form discretization for the volume flux. For a uniform grid, the resulting semi-discrete nodal DGSEM takes the form
Δ x 2 U ˙ i + 2 ∑ j = 0 N D i j F n u m ( U i , U j ) + τ i ω i ( F n u m , s u r f − F ) = 0 , where i = 0 , … , N , (15) \frac{\Delta x}{2}\dot{\mathbf{U}}_i+2\sum_{j=0}^{N}D_{ij}F^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_j)+\frac{\tau_i}{\omega_i}\left(F^{\mathrm{num,surf}}-F\right)=0,\quad\text{where }i=0,\ldots,N, \tag*{(15)} 2 Δ x U ˙ i + 2 j = 0 ∑ N D ij F num ( U i , U j ) + ω i τ i ( F num , surf − F ) = 0 , where i = 0 , … , N , (15)
with derivative matrix D \mathcal{D} D approximating the first derivative ∂ ∂ x \frac{\partial}{\partial x} ∂ x ∂ , ω i \omega_i ω i be the Gauss-Lobatto quadrature weights (which defines as well a diagonal norm mass matrix M = diag ( ω 0 , … , ω N ) \mathcal{M}=\operatorname{diag}(\omega_0,\ldots,\omega_N) M = diag ( ω 0 , … , ω N ) ), and τ i \tau_i τ i represent the contribution at the boundary. We have
τ i = { − 1 for i = 0 , 1 for i = N , 0 else . \tau_i=
\begin{cases}
-1 & \text{for }i=0,\\
1 & \text{for }i=N,\\
0 & \text{else}.
\end{cases} τ i = ⎩ ⎨ ⎧ − 1 1 0 for i = 0 , for i = N , else .
The choice of the symmetric, two-point volume flux F n u m ( U i , U j ) F^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_j) F num ( U i , U j ) and the two-point surface flux F n u m , s u r f F^{\mathrm{num,surf}} F num , surf plays a crucial role in ensuring the desired properties of the overall discretization. This has been demonstrated in several works, see, e.g., [17 ] , building on the original analysis of Fisher et al. [16 ] . In particular, it was shown that, under the appropriate choice of volume and surface fluxes, the resulting discretization inherits the desired stability and conservation properties. A summary of these results, adapted from [12 , 32 ] , is given below:
Theorem 3.1. If F n u m ( U i , U j ) F^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_j) F num ( U i , U j ) is consistent and symmetric, then (15) is conservative and high-order accurate. If we further assume that F n u m ( U i , U j ) F^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_j) F num ( U i , U j ) is entropy conservative, then the semi-discrete scheme (15) is also entropy conservative within a single element. In addition, if the numerical flux F n u m , s u r f F^{\mathrm{num,surf}} F num , surf at the element interface is entropy conservative (dissipative), then the scheme is entropy conservative (dissipative).
Therefore, to construct entropy dissipative DG schemes within the framework, the development of entropy conservative two-point fluxes is essential.
Entropy Dissipative Finite Difference Scheme
Next, we briefly introduce the entropy-dissipative finite-difference discretization used in the following. We consider the one-dimensional spatial domain Ω = [ x L , x R ] \Omega= [x_L,x_R] Ω = [ x L , x R ] , which is discretized by a uniform grid with grid points x i = x L + i Δ x x_i = x_L+i\Delta x x i = x L + i Δ x , i = 0 , … , N i = 0,\ldots,N i = 0 , … , N . The semi-discrete FD approximation is given by
d d t U i ( t ) + F i + 1 2 n u m ( t ) − F i − 1 2 n u m ( t ) Δ x = 0 , (16) \frac{\mathrm{d}}{\mathrm{d}t}\mathbf{U}_i(t) + \frac{\mathbf{F}^{\mathrm{num}}_{i+\frac{1}{2}}(t)-\mathbf{F}^{\mathrm{num}}_{i-\frac{1}{2}}(t)}{\Delta x} = 0, \tag*{(16)} d t d U i ( t ) + Δ x F i + 2 1 num ( t ) − F i − 2 1 num ( t ) = 0 , (16)
where F i + 1 2 n u m \mathbf{F}^{\mathrm{num}}_{i+\frac{1}{2}} F i + 2 1 num denotes a numerical flux consistent with the physical flux F ( U ) \mathbf{F}(\mathbf{U}) F ( U ) . Following [20 ] , we have the following result.
Theorem 3.2. Assume that the numerical flux F i + 1 2 n u m = F n u m ( U i , U i + 1 ) \mathbf{F}^{\mathrm{num}}_{i+\frac{1}{2}} = \mathbf{F}^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_{i+1}) F i + 2 1 num = F num ( U i , U i + 1 ) is consistent with the physical flux F ( U ) \mathbf{F}(\mathbf{U}) F ( U ) and satisfies Tadmor’s entropy-conservation condition [ [ V ] ] i + 1 2 ⋅ F i + 1 2 n u m = [ [ Ψ ] ] i + 1 2 [\![\mathbf{V}]\!]_{i+\frac{1}{2}} \cdot\mathbf{F}^{\mathrm{num}}_{i+\frac{1}{2}} = [\![\Psi]\!]_{i+\frac{1}{2}} [ [ V ] ] i + 2 1 ⋅ F i + 2 1 num = [ [ Ψ ] ] i + 2 1 . Then the semi-discrete FD scheme (16) is entropy conservative, i.e.,
d d t η ( U i ) + F ^ i + 1 2 − F ^ i − 1 2 Δ x = 0 , (17) \frac{\mathrm{d}}{\mathrm{d}t}\eta(\mathbf{U}_i) + \frac{\widehat{F}_{i+\frac{1}{2}}-\widehat{F}_{i-\frac{1}{2}}}{\Delta x} = 0, \tag*{(17)} d t d η ( U i ) + Δ x F i + 2 1 − F i − 2 1 = 0 , (17) where the numerical entropy flux is defined by
F ^ i + 1 2 = { { V } } i + 1 2 ⋅ F i + 1 2 n u m − { { Ψ } } i + 1 2 . (18) \widehat{F}_{i+\frac{1}{2}} = \{\!\{\mathbf{V}\}\!\}_{i+\frac{1}{2}} \cdot\mathbf{F}^{\mathrm{num}}_{i+\frac{1}{2}} - \{\!\{\Psi\}\!\}_{i+\frac{1}{2}}. \tag*{(18)} F i + 2 1 = { { V } } i + 2 1 ⋅ F i + 2 1 num − { { Ψ } } i + 2 1 . (18)
However, the entropy-conservative fluxes derived from the Tadmor condition are only second-order accurate. Following [18 ] , for any positive integer p p p , we can construct accurate fluxes of order 2 p 2p 2 p using second-order fluxes. For p = 2 p = 2 p = 2 , the fourth-order entropy-conservative flux F ^ i + 1 2 n u m , 4 \widehat{\mathbf{F}}^{\mathrm{num},4}_{i+\frac{1}{2}} F i + 2 1 num , 4 is given as follows:
F ^ i + 1 2 n u m , 4 = 4 3 F n u m ( U i , U i + 1 ) − 1 6 ( F n u m ( U i − 1 , U i + 1 ) + F n u m ( U i , U i + 2 ) ) (19) \widehat{\mathbf{F}}^{\mathrm{num},4}_{i+\frac{1}{2}} = \frac{4}{3}\mathbf{F}^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_{i+1}) - \frac{1}{6}\left(\mathbf{F}^{\mathrm{num}}(\mathbf{U}_{i-1},\mathbf{U}_{i+1}) + \mathbf{F}^{\mathrm{num}}(\mathbf{U}_i,\mathbf{U}_{i+2})\right) \tag*{(19)} F i + 2 1 num , 4 = 3 4 F num ( U i , U i + 1 ) − 6 1 ( F num ( U i − 1 , U i + 1 ) + F num ( U i , U i + 2 ) ) (19)
Therefore, also in such context, higher-order methods can be constructed.
Entropy-conservative schemes, while satisfying a discrete entropy equality, generally lack the dissipation required to control oscillations in the presence of shocks. To obtain an entropy-dissipative scheme, we therefore augment the entropy-conservative flux by a suitable dissipative term. Following [20 ] again, we consider the modified numerical flux
F i + 1 2 e s = F i + 1 2 n u m − 1 2 D i + 1 2 [ [ V ] ] i + 1 2 , (20) \mathbf{F}^{\mathrm{es}}_{i+\frac{1}{2}} = \mathbf{F}^{\mathrm{num}}_{i+\frac{1}{2}} - \frac{1}{2}\mathcal{D}_{i+\frac{1}{2}}[\![\mathbf{V}]\!]_{i+\frac{1}{2}}, \tag*{(20)} F i + 2 1 es = F i + 2 1 num − 2 1 D i + 2 1 [ [ V ] ] i + 2 1 , (20)
where D i + 1 2 \mathcal{D}_{i+\frac{1}{2}} D i + 2 1 is a symmetric positive semidefinite matrix. We obtain therefore the estimation
[ [ V ] ] i + 1 2 ⋅ F i + 1 2 e s − [ [ Ψ ] ] i + 1 2 = − 1 2 [ [ V ] ] i + 1 2 T D i + 1 2 [ [ V ] ] i + 1 2 ≤ 0. (21) [\![\mathbf{V}]\!]_{i+\frac{1}{2}}\cdot\mathbf{F}^{\mathrm{es}}_{i+\frac{1}{2}} - [\![\Psi]\!]_{i+\frac{1}{2}} = -\frac{1}{2}[\![\mathbf{V}]\!]_{i+\frac{1}{2}}^{T}\mathcal{D}_{i+\frac{1}{2}}[\![\mathbf{V}]\!]_{i+\frac{1}{2}} \leq0. \tag*{(21)} [ [ V ] ] i + 2 1 ⋅ F i + 2 1 es − [ [ Ψ ] ] i + 2 1 = − 2 1 [ [ V ] ] i + 2 1 T D i + 2 1 [ [ V ] ] i + 2 1 ≤ 0. (21)
Consequently, the resulting semi-discrete scheme is entropy dissipative.
The entropy-stable flux contains the jump of the entropy variables and is therefore, in its basic form, only first-order accurate. To obtain higher-order entropy-dissipative schemes, we follow the sign-preserving reconstruction approach of [14 , 25 ] as it is also used in [26 ] . The key idea is to reconstruct suitably scaled entropy variables rather than the entropy variables directly. More precisely, we introduce entropy-scaled right eigenvectors of the symmetrized quasilinear form and use them to define the scaled entropy variables. The construction and scaling of these eigenvectors are given in Appendix C. The same entropy-scaled eigenvectors are used to construct the diffusion matrix, which takes the form
D i + 1 2 = R ~ i + 1 2 ∣ Λ i + 1 2 ∣ R ~ i + 1 2 T , (22) \mathcal{D}_{i+\frac{1}{2}}=\widetilde{\mathbf{R}}_{i+\frac{1}{2}}\left|\mathbf{\Lambda}_{i+\frac{1}{2}}\right|\widetilde{\mathbf{R}}_{i+\frac{1}{2}}^{\mathsf{T}}, \tag*{(22)} D i + 2 1 = R i + 2 1 Λ i + 2 1 R i + 2 1 T , (22)
where ∣ Λ i + 1 2 ∣ \left|\mathbf{\Lambda}_{i+\frac{1}{2}}\right| Λ i + 2 1 contains the absolute values of the characteristic speeds. We then apply a sign-preserving higher-order reconstruction to the scaled entropy variables and transform the reconstructed values back to entropy variables. Denoting the resulting reconstructed jump by ⟦ V ^ ⟧ i + 1 2 k \llbracket\widehat{\mathbf{V}}\rrbracket_{i+\frac{1}{2}}^{k} [ [ V ] ] i + 2 1 k , the higher-order entropy-stable flux is defined as
F i + 1 2 e s , k = F i + 1 2 e c , 2 p − 1 2 D i + 1 2 ⟦ V ^ ⟧ i + 1 2 k . (23) \mathbf{F}_{i+\frac{1}{2}}^{\mathrm{es},k}=\mathbf{F}_{i+\frac{1}{2}}^{\mathrm{ec},2p}-\frac{1}{2}\mathcal{D}_{i+\frac{1}{2}}\llbracket\widehat{\mathbf{V}}\rrbracket_{i+\frac{1}{2}}^{k}. \tag*{(23)} F i + 2 1 es , k = F i + 2 1 ec , 2 p − 2 1 D i + 2 1 [ [ V ] ] i + 2 1 k . (23)
Here, F e c , 2 p \mathbf{F}^{\mathrm{ec},2p} F ec , 2 p denotes the corresponding higher-order entropy-conservative flux and the sign-preserving property of the reconstruction ensures that the dissipative contribution retains the correct sign and thus preserves the entropy-stability property. Similar to DGSEM, the key ingredient to develop an entropy dissipative high-order scheme is the existence of entropy conservative two point fluxes, which we will develop in the following using two slightly different approaches.
Entropy conservative flux using Taylor expansion
The aim is to construct an entropy-conservative numerical flux satisfying Tadmor’s condition (13) . For notational simplicity, we suppress the mesh indices and denote the left and right states by U l \mathbf{U}_{l} U l and U r \mathbf{U}_{r} U r , respectively. When a l ≈ a r a_{l}\approx a_{r} a l ≈ a r , we employ the Taylor expansion-based approximation of the logarithmic mean proposed in [30 ] . Following the approach from [33 , 34 ] , we express the jumps in the entropy variables V \mathbf{V} V in terms of the jumps of b b b , f f f , g g g , and q q q as
⟦ V ⟧ = ( ⟦ v 1 ⟧ ⟦ v 2 ⟧ ⟦ v 3 ⟧ ⟦ v 4 ⟧ ) = ( ⟦ 1 b f 2 ⟧ − ⟦ b ( b f + g q ) 2 ⟧ ⟦ 1 b 2 f ⟧ − ⟦ f ( b f + g q ) 2 ⟧ − ⟦ q ( b f + g q ) 2 ⟧ − ⟦ g ( b f + g q ) 2 ⟧ ) . \llbracket\mathbf{V}\rrbracket=
\begin{pmatrix}
\llbracket v_{1}\rrbracket\\
\llbracket v_{2}\rrbracket\\
\llbracket v_{3}\rrbracket\\
\llbracket v_{4}\rrbracket
\end{pmatrix}
=
\begin{pmatrix}
\llbracket\frac{1}{bf^{2}}\rrbracket-\llbracket\frac{b}{(bf+gq)^{2}}\rrbracket\\
\llbracket\frac{1}{b^{2}f}\rrbracket-\llbracket\frac{f}{(bf+gq)^{2}}\rrbracket\\
-\llbracket\frac{q}{(bf+gq)^{2}}\rrbracket\\
-\llbracket\frac{g}{(bf+gq)^{2}}\rrbracket
\end{pmatrix}. [ [ V ] ] = [ [ v 1 ] ] [ [ v 2 ] ] [ [ v 3 ] ] [ [ v 4 ] ] = [ [ b f 2 1 ] ] − [ [ ( b f + g q ) 2 b ] ] [ [ b 2 f 1 ] ] − [ [ ( b f + g q ) 2 f ] ] − [ [ ( b f + g q ) 2 q ] ] − [ [ ( b f + g q ) 2 g ] ] .
Next, we expend the jumps of the variables and obtain the following expressions:
⟦ v 1 ⟧ = ± ⟦ 1 b f 2 ⟧ ⟦ b f 2 ⟧ { 2 ⟦ b ⟧ ⟦ f ⟧ ⟦ f ⟧ + ⟦ f 2 ⟧ ⟦ b ⟧ } − ⟦ b ⟧ − 2 ⟦ ( b f + g q ) ⟧ ⟦ ( b f + g q ) 2 ⟧ ⟦ b ( b f + g q ) 2 ⟧ { ⟦ b ⟧ ⟦ f ⟧ + ⟦ f ⟧ ⟦ b ⟧ + ⟦ g ⟧ ⟦ q ⟧ + ⟦ q ⟧ ⟦ g ⟧ } . \llbracket v_{1}\rrbracket=\pm\frac{\llbracket\frac{1}{bf^{2}}\rrbracket}{\llbracket bf^{2}\rrbracket}\left\{2\llbracket b\rrbracket\llbracket f\rrbracket\llbracket f\rrbracket+\llbracket f^{2}\rrbracket\llbracket b\rrbracket\right\}
-\frac{\llbracket b\rrbracket-2\llbracket(bf+gq)\rrbracket}{\llbracket(bf+gq)^{2}\rrbracket}
\llbracket\frac{b}{(bf+gq)^{2}}\rrbracket
\left\{\llbracket b\rrbracket\llbracket f\rrbracket+\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket g\rrbracket\llbracket q\rrbracket+\llbracket q\rrbracket\llbracket g\rrbracket\right\}. [ [ v 1 ] ] = ± [ [ b f 2 ] ] [ [ b f 2 1 ] ] { 2 [ [ b ] ] [ [ f ] ] [ [ f ] ] + [ [ f 2 ] ] [ [ b ] ] } − [ [ ( b f + g q ) 2 ] ] [ [ b ] ] − 2 [ [ ( b f + g q ) ] ] [ [ ( b f + g q ) 2 b ] ] { [ [ b ] ] [ [ f ] ] + [ [ f ] ] [ [ b ] ] + [ [ g ] ] [ [ q ] ] + [ [ q ] ] [ [ g ] ] } .
⟦ v 2 ⟧ = ± ⟦ 1 b 2 f ⟧ ⟦ b 2 f ⟧ { 2 ⟦ b ⟧ ⟦ f ⟧ ⟦ b ⟧ + ⟦ b 2 ⟧ ⟦ f ⟧ } − ⟦ f ⟧ − 2 ⟦ ( b f + g q ) ⟧ ⟦ ( b f + g q ) 2 ⟧ ⟦ f ( b f + g q ) 2 ⟧ { ⟦ b ⟧ ⟦ f ⟧ + ⟦ f ⟧ ⟦ b ⟧ + ⟦ g ⟧ ⟦ q ⟧ + ⟦ q ⟧ ⟦ g ⟧ } . \llbracket v_{2}\rrbracket=\pm\frac{\llbracket\frac{1}{b^{2}f}\rrbracket}{\llbracket b^{2}f\rrbracket}\left\{2\llbracket b\rrbracket\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket b^{2}\rrbracket\llbracket f\rrbracket\right\}
-\frac{\llbracket f\rrbracket-2\llbracket(bf+gq)\rrbracket}{\llbracket(bf+gq)^{2}\rrbracket}
\llbracket\frac{f}{(bf+gq)^{2}}\rrbracket
\left\{\llbracket b\rrbracket\llbracket f\rrbracket+\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket g\rrbracket\llbracket q\rrbracket+\llbracket q\rrbracket\llbracket g\rrbracket\right\}. [ [ v 2 ] ] = ± [ [ b 2 f ] ] [ [ b 2 f 1 ] ] { 2 [ [ b ] ] [ [ f ] ] [ [ b ] ] + [ [ b 2 ] ] [ [ f ] ] } − [ [ ( b f + g q ) 2 ] ] [ [ f ] ] − 2 [ [ ( b f + g q ) ] ] [ [ ( b f + g q ) 2 f ] ] { [ [ b ] ] [ [ f ] ] + [ [ f ] ] [ [ b ] ] + [ [ g ] ] [ [ q ] ] + [ [ q ] ] [ [ g ] ] } .
⟦ v 3 ⟧ = − ⟦ q ⟧ − 2 ⟦ ( b f + g q ) ⟧ ⟦ ( b f + g q ) 2 ⟧ ⟦ q ( b f + g q ) 2 ⟧ { ⟦ g ⟧ ⟦ f ⟧ + ⟦ f ⟧ ⟦ b ⟧ + ⟦ g ⟧ ⟦ q ⟧ + ⟦ q ⟧ ⟦ g ⟧ } . \llbracket v_{3}\rrbracket=-\frac{\llbracket q\rrbracket-2\llbracket(bf+gq)\rrbracket}{\llbracket(bf+gq)^{2}\rrbracket}
\llbracket\frac{q}{(bf+gq)^{2}}\rrbracket
\left\{\llbracket g\rrbracket\llbracket f\rrbracket+\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket g\rrbracket\llbracket q\rrbracket+\llbracket q\rrbracket\llbracket g\rrbracket\right\}. [ [ v 3 ] ] = − [ [ ( b f + g q ) 2 ] ] [ [ q ] ] − 2 [ [ ( b f + g q ) ] ] [ [ ( b f + g q ) 2 q ] ] { [ [ g ] ] [ [ f ] ] + [ [ f ] ] [ [ b ] ] + [ [ g ] ] [ [ q ] ] + [ [ q ] ] [ [ g ] ] } .
⟦ v 4 ⟧ = − ⟦ g ⟧ − 2 { { ( b f + g q ) } } { { g ( b f + g q ) 2 } } { { b } } ⟦ f ⟧ + { { f } } ⟦ b ⟧ + { { g } } ⟦ q ⟧ + { { q } } ⟦ g ⟧ { { ( b f + g q ) 2 } } \llbracket v_4\rrbracket=-\frac{\llbracket g\rrbracket-2\{\!\{(bf+gq)\}\!\}\{\!\{\frac{g}{(bf+gq)^2}\}\!\}\{\!\{b\}\!\}\llbracket f\rrbracket+\{\!\{f\}\!\}\llbracket b\rrbracket+\{\!\{g\}\!\}\llbracket q\rrbracket+\{\!\{q\}\!\}\llbracket g\rrbracket}{\{\!\{(bf+gq)^2\}\!\}} [ [ v 4 ] ] = − { {( b f + g q ) 2 } } [ [ g ] ] − 2 { {( b f + g q )} } { { ( b f + g q ) 2 g } } { { b } } [ [ f ] ] + { { f } } [ [ b ] ] + { { g } } [ [ q ] ] + { { q } } [ [ g ] ]
Let us consider the numerical flux F n u m = [ F ~ ( 1 ) , F ~ ( 2 ) , F ~ ( 3 ) , F ~ ( 4 ) ] T F^{\mathrm{num}}=\left[\widetilde{F}^{(1)},\widetilde{F}^{(2)},\widetilde{F}^{(3)},\widetilde{F}^{(4)}\right]^{\mathsf{T}} F num = [ F ( 1 ) , F ( 2 ) , F ( 3 ) , F ( 4 ) ] T . Then, we have
⟦ V ⟧ ⋅ F n u m = ∑ i = 1 4 ⟦ v i ⟧ ⋅ F ~ ( i ) = ⟦ Ψ ⟧ . (24) \llbracket\mathbf{V}\rrbracket\cdot F^{\mathrm{num}}=\sum_{i=1}^{4}\llbracket v_i\rrbracket\cdot\widetilde{F}^{(i)}=\llbracket\Psi\rrbracket. \tag*{(24)} [ [ V ] ] ⋅ F num = i = 1 ∑ 4 [ [ v i ] ] ⋅ F ( i ) = [ [ Ψ ] ] . (24)
We can sort the jump expansions of (24) in terms of jumps in the conservative variables, e.g. ⟦ U ⟧ = ( ⟦ f ⟧ , ⟦ b ⟧ , ⟦ g ⟧ , ⟦ q ⟧ ) T \llbracket\mathbf{U}\rrbracket=(\llbracket f\rrbracket,\llbracket b\rrbracket,\llbracket g\rrbracket,\llbracket q\rrbracket)^{\mathsf{T}} [ [ U ] ] = ( [ [ f ] ] , [ [ b ] ] , [ [ g ] ] , [ [ q ] ] ) T as well as the jump in the potential. By elementary calculation, we obtain a linear system of equations to calculate the entropy conservative flux components inside F n u m F^{\mathrm{num}} F num . The resulting system can be written in matrix-vector form A F n u m = b AF^{\mathrm{num}}=b A F num = b , and the solution of this linear system is given by F n u m = A − 1 b F^{\mathrm{num}}=A^{-1}b F num = A − 1 b . The details and the entries can be found in Appendix A. Please note that the resulting 4 × 4 4\times4 4 × 4 system has to be solved in each time-step to calculate the entropy conservative numerical two-point flux which is also done numerically inside our algorithm.
Analytical derivation of numerical flux
In the next part, we will derive an analytical derivation of the numerical flux without using Taylor series expansion for simplicity. We work directly with the flux formulation.
We rewrite (13) in terms of the conservative variables U \mathbf{U} U . Using the chain rule to express the averages and jumps in terms of the conservative variables, we factor out the jumps of all conservative variables. Exploiting the linear independence of the jumps of the components of U \mathbf{U} U , i.e.,
( 0 = ∑ i = 1 4 α i ⟦ u i ⟧ ) ⟹ ∀ i ∈ { 1 , 2 , 3 , 4 } : α i = 0. \left(0=\sum_{i=1}^{4}\alpha_i\llbracket u_i\rrbracket\right)\Longrightarrow\forall i\in\{1,2,3,4\}:\alpha_i=0. ( 0 = i = 1 ∑ 4 α i [ [ u i ] ] ) ⟹ ∀ i ∈ { 1 , 2 , 3 , 4 } : α i = 0.
We thus obtain the following linear system of equations, whose solution determines the entropy-conservative numerical flux:
A F n u m = c , (25) AF^{\mathrm{num}}=c, \tag*{(25)} A F num = c , (25)
with
A = ( { { u 2 } } { { C ~ } } { { u 1 } } { { C ~ } } − { { D ~ } } 2 { { u 2 } } { { u 4 } } { { B ~ } } { { u 3 } } { { B ~ } } { { u 2 } } { { C ~ } } − { { D ~ } } 2 { { u 1 } } { { u 1 } } { { C ~ } } { { u 4 } } { { B ~ } } { { u 3 } } { { B ~ } } { { u 2 } } { { B ~ } } { { u 1 } } { { B ~ } } { { u 4 } } { { B ~ } } { { u 3 } } { { B ~ } } − { { B − 2 } } 2 { { u 4 } } { { u 2 } } { { B ~ } } { { u 1 } } { { B ~ } } { { u 4 } } { { B ~ } } − { { B − 2 } } 2 { { u 3 } } { { u 3 } } { { B ~ } } ) A=
\begin{pmatrix}
\{\!\{u_2\}\!\}\{\!\{\widetilde C\}\!\} & \{\!\{u_1\}\!\}\{\!\{\widetilde C\}\!\}-\frac{\{\!\{\widetilde D\}\!\}}{2\{\!\{u_2\}\!\}} & \{\!\{u_4\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_3\}\!\}\{\!\{\widetilde B\}\!\}\\
\{\!\{u_2\}\!\}\{\!\{\widetilde C\}\!\}-\frac{\{\!\{\widetilde D\}\!\}}{2\{\!\{u_1\}\!\}} & \{\!\{u_1\}\!\}\{\!\{\widetilde C\}\!\} & \{\!\{u_4\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_3\}\!\}\{\!\{\widetilde B\}\!\}\\
\{\!\{u_2\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_1\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_4\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_3\}\!\}\{\!\{\widetilde B\}\!\}-\frac{\{\!\{B^{-2}\}\!\}}{2\{\!\{u_4\}\!\}}\\
\{\!\{u_2\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_1\}\!\}\{\!\{\widetilde B\}\!\} & \{\!\{u_4\}\!\}\{\!\{\widetilde B\}\!\}-\frac{\{\!\{B^{-2}\}\!\}}{2\{\!\{u_3\}\!\}} & \{\!\{u_3\}\!\}\{\!\{\widetilde B\}\!\}
\end{pmatrix} A = { { u 2 } } { { C } } { { u 2 } } { { C } } − 2 { { u 1 } } { { D } } { { u 2 } } { { B } } { { u 2 } } { { B } } { { u 1 } } { { C } } − 2 { { u 2 } } { { D } } { { u 1 } } { { C } } { { u 1 } } { { B } } { { u 1 } } { { B } } { { u 4 } } { { B } } { { u 4 } } { { B } } { { u 4 } } { { B } } { { u 4 } } { { B } } − 2 { { u 3 } } { { B − 2 } } { { u 3 } } { { B } } { { u 3 } } { { B } } { { u 3 } } { { B } } − 2 { { u 4 } } { { B − 2 } } { { u 3 } } { { B } }
and
c = 1 4 ( { { B − 1 } } − { { A } } { { B − 1 } } { { B } } − 3 ( { { A } } + { { B } } ) { { A B } } log − 1 { { B − 1 } } − { { A } } { { B − 1 } } { { B } } − 3 ( { { A } } + { { B } } ) { { A B } } log − 1 − { { A } } { { B − 1 } } { { B } } − 3 { { A } } { { A B } } log − 1 − { { A } } { { B − 1 } } { { B } } − 3 { { A } } { { A B } } log − 1 ) , c=\frac{1}{4}
\begin{pmatrix}
\{\!\{B^{-1}\}\!\}-\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-3\left(\{\!\{A\}\!\}+\{\!\{B\}\!\}\right)\{\!\{AB\}\!\}_{\log}^{-1}\\
\{\!\{B^{-1}\}\!\}-\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-3\left(\{\!\{A\}\!\}+\{\!\{B\}\!\}\right)\{\!\{AB\}\!\}_{\log}^{-1}\\
-\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-3\{\!\{A\}\!\}\{\!\{AB\}\!\}_{\log}^{-1}\\
-\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-3\{\!\{A\}\!\}\{\!\{AB\}\!\}_{\log}^{-1}
\end{pmatrix}, c = 4 1 { { B − 1 } } − { { A } } { { B } } { { B − 1 } } − 3 ( { { A } } + { { B } } ) { { A B } } l o g − 1 { { B − 1 } } − { { A } } { { B } } { { B − 1 } } − 3 ( { { A } } + { { B } } ) { { A B } } l o g − 1 − { { A } } { { B } } { { B − 1 } } − 3 { { A } } { { A B } } l o g − 1 − { { A } } { { B } } { { B − 1 } } − 3 { { A } } { { A B } } l o g − 1 ,
where { { C ~ } } : = { { A ~ } } + { { B ~ } } \{\!\{\widetilde{C}\}\!\} := \{\!\{\widetilde{A}\}\!\} + \{\!\{\widetilde{B}\}\!\} { { C } } := { { A } } + { { B } } , { { D ~ } } : = { { A − 2 + B − 2 } } \{\!\{\widetilde{D}\}\!\} := \{\!\{A^{-2} + B^{-2}\}\!\} { { D } } := { { A − 2 + B − 2 } } , { { X ~ } } = { { X } } { { X − 2 } } { { X 2 } } \{\!\{\widetilde{X}\}\!\} = \{\!\{X\}\!\}\frac{\{\!\{X^{-2}\}\!\}}{\{\!\{X^2\}\!\}} { { X } } = { { X } } { { X 2 } } { { X − 2 } } , and X ∈ { A , B } X \in\{A, B\} X ∈ { A , B } . The details of the derivation are provided in Appendix B. The system A F n u m = c AF^{\mathrm{num}} = c A F num = c with F n u m = ( F 1 , F 2 , F 3 , F 4 ) T F^{\mathrm{num}} = (F_1,F_2,F_3,F_4)^T F num = ( F 1 , F 2 , F 3 , F 4 ) T can be simplified to
{ { u 1 } } F 2 = { { u 2 } } F 1 , { { u 3 } } F 4 = { { u 4 } } F 3 (26) \{\!\{u_1\}\!\}F_2 = \{\!\{u_2\}\!\}F_1,\qquad\{\!\{u_3\}\!\}F_4 = \{\!\{u_4\}\!\}F_3 \tag*{(26)} { { u 1 } } F 2 = { { u 2 } } F 1 , { { u 3 } } F 4 = { { u 4 } } F 3 (26)
and
A ~ ( F 1 F 3 ) : = ( 2 { { u 2 } } { { C ~ } } − { { D ~ } } 2 { { u 1 } } 2 { { u 4 } } { { B ~ } } 2 { { u 2 } } { { B ~ } } 2 { { u 4 } } { { B ~ } } − { { B − 2 } } 2 { { u 3 } } ) ( F 1 F 3 ) = ( c 1 c 3 ) . (27) \widetilde{A}
\begin{pmatrix}
F_1\\
F_3
\end{pmatrix}
:=
\begin{pmatrix}
2\{\!\{u_2\}\!\}\{\!\{\widetilde{C}\}\!\} - \frac{\{\!\{\widetilde{D}\}\!\}}{2\{\!\{u_1\}\!\}} & 2\{\!\{u_4\}\!\}\{\!\{\widetilde{B}\}\!\}\\
2\{\!\{u_2\}\!\}\{\!\{\widetilde{B}\}\!\} & 2\{\!\{u_4\}\!\}\{\!\{\widetilde{B}\}\!\} - \frac{\{\!\{B^{-2}\}\!\}}{2\{\!\{u_3\}\!\}}
\end{pmatrix}
\begin{pmatrix}
F_1\\
F_3
\end{pmatrix}
=
\begin{pmatrix}
c_1\\
c_3
\end{pmatrix}. \tag*{(27)} A ( F 1 F 3 ) := ( 2 { { u 2 } } { { C } } − 2 { { u 1 } } { { D } } 2 { { u 2 } } { { B } } 2 { { u 4 } } { { B } } 2 { { u 4 } } { { B } } − 2 { { u 3 } } { { B − 2 } } ) ( F 1 F 3 ) = ( c 1 c 3 ) . (27)
If det ( A ~ ) ≠ 0 \det(\widetilde{A}) \ne0 det ( A ) = 0 , the system (27) (and (26)) can be uniquely solved via
F 1 = 1 det ( A ~ ) ( ( 2 { { u 4 } } { { B ~ } } − { { B − 2 } } 2 { { u 3 } } ) c 1 − 2 { { u 4 } } { { B ~ } } c 3 ) , F 2 = { { u 2 } } { { u 1 } } F 1 . F_1 = \frac{1}{\det(\widetilde{A})}\left((2\{\!\{u_4\}\!\}\{\!\{\widetilde{B}\}\!\} - \frac{\{\!\{B^{-2}\}\!\}}{2\{\!\{u_3\}\!\}})c_1 - 2\{\!\{u_4\}\!\}\{\!\{\widetilde{B}\}\!\}c_3\right),\qquad F_2 = \frac{\{\!\{u_2\}\!\}}{\{\!\{u_1\}\!\}}F_1. F 1 = det ( A ) 1 ( ( 2 { { u 4 } } { { B } } − 2 { { u 3 } } { { B − 2 } } ) c 1 − 2 { { u 4 } } { { B } } c 3 ) , F 2 = { { u 1 } } { { u 2 } } F 1 .
F 3 = 1 det ( A ~ ) ( ( 2 { { u 2 } } { { C ~ } } − { { D ~ } } 2 { { u 1 } } ) c 3 − 2 { { u 2 } } { { B ~ } } c 1 ) , F 4 = { { u 4 } } { { u 3 } } F 3 . F_3 = \frac{1}{\det(\widetilde{A})}\left((2\{\!\{u_2\}\!\}\{\!\{\widetilde{C}\}\!\} - \frac{\{\!\{\widetilde{D}\}\!\}}{2\{\!\{u_1\}\!\}})c_3 - 2\{\!\{u_2\}\!\}\{\!\{\widetilde{B}\}\!\}c_1\right),\qquad F_4 = \frac{\{\!\{u_4\}\!\}}{\{\!\{u_3\}\!\}}F_3. F 3 = det ( A ) 1 ( ( 2 { { u 2 } } { { C } } − 2 { { u 1 } } { { D } } ) c 3 − 2 { { u 2 } } { { B } } c 1 ) , F 4 = { { u 3 } } { { u 4 } } F 3 .
This gives us an analytical expression of the solution of the linear system (27) and thus an entropy-conservative two-point flux. We have now two different linear systems to solve to derive/determine the entropy-conservative two-point fluxes.
Numerics
In the following, we test and investigate the properties of the derived schemes. In particular, we focus on the performance of the two derived numerical fluxes when used within the entropy-dissipative finite-difference (FD) scheme and the DGSEM framework.
We consider one- and two-dimensional numerical experiments2 . For the implementation of the DGSEM, we use the Trixi.jl framework [35 ] . For non-smooth test cases, we apply the subcell shock-capturing procedure introduced in [36 ] . Within the flux-differencing formulation, we use our two derived entropy-conservative fluxes as volume fluxes. For the surface flux, we consider either a local Lax–Friedrichs flux or the corresponding entropy-conservative two-point flux. For the entropy-dissipative FD scheme, we extend the approach used in [26 ] by incorporating the entropy-conservative two-point fluxes derived in this work. In addition, we use the Roe-type dissipation term described in § 3 . The time discretization is usually performed using a strong-stability-preserving Runge–Kutta (SSP RK) scheme. The particular choice of the time integration method will be specified for the individual numerical experiments.
For the numerical simulations, we focus here on four test cases. We first consider a smooth problem and two Riemann problems in one spatial dimension. Finally, we consider a two-dimensional problem from [37 ] , which demonstrates the overall performance of the derived numerical fluxes and their application within the two considered discretization frameworks.
Smooth traveling wave solutions - convergence test
To demonstrate the high-order accuracy of our scheme, we consider a smooth traveling wave for the system (1). The exact evaluation are described in the work [29 ] . Here, we give only the basic setting and focus on the following 2 π 2\pi 2 π -periodic solution of the system (1)
f ( x , t ) = 2 + sin ( x + t ) , b ( x , t ) = 2 f ( x , t ) , g ( x , t ) = 2 , q ( x , t ) = 1. (28) f(x,t)=2+\sin(x+t),\quad b(x,t)=\frac{2}{f(x,t)},\quad g(x,t)=2,\quad q(x,t)=1. \tag*{(28)} f ( x , t ) = 2 + sin ( x + t ) , b ( x , t ) = f ( x , t ) 2 , g ( x , t ) = 2 , q ( x , t ) = 1. (28)
The domain is therefore given by [ 0 , 2 π ] [0,2\pi] [ 0 , 2 π ] with periodic boundary conditions and the initial data are also described in (28) (with t = 0 t=0 t = 0 ).
DGSEM: We compare the numerical result for varying mesh size for the spatial domain to the solution at time t = 3 t=3 t = 3 also given by (28) . In order to measure only the effects of different mesh sizes through the spatial discretization on the error, we use a high-order time integrator to minimize the error in time, in this case, a 3rd-order strong stability preserving Runge-Kutta scheme with adaptive time step size with 9 stages is applied [38 ] . We use for the surface fluxes the entropy conservative two-point fluxes.
(a) CPU time versus L 1 L_1 L 1 error using second order ED-FD scheme
(b) CPU time versus L 1 L_1 L 1 error using third order ED-FD scheme
(c) CPU time versus L 1 L_1 L 1 error using fourth order ED-FD scheme
Figure 2. Smooth traveling wave solutions - convergence test: Time vs accuracy comparison plots using the entropy-dissipative FD schemes with analytical and Taylor fluxes.
The results for the discrete L 2 L^2 L 2 -error and the computation time can be seen in Figure 1 . One can see that the error decreases with order h p + 1 h^{p+1} h p + 1 , where h h h is the spatial step size and p p p is the polynomial degree. One can also recognize that the errors calculated with the flux based on the Taylor expansion (denoted by Taylor in the Figure with dotted line) has a slightly larger error constant than the analytically derived flux. While the difference in error can be neglected for the two different fluxes, the computation time differs significantly: the analytical approach is at least one magnitude of order (and up to two orders of magnitude) faster than the Taylor approach. For every application of the flux, a 4 × 4 4 \times4 4 × 4 -matrix has to be inverted for the Taylor approach. For the analytical approach, only floating-point operations have to be performed that are much less computational heavy than inverting a matrix. Additionally, we mark that the p = 1 p = 1 p = 1 DGSEM scheme with the approximated flux is already breaking for this test case.
Figure 1. The discrete L 2 ( Ω ) L^2(\Omega) L 2 ( Ω ) -error between U h ( T ) \mathbf{U}^{h}(T) U h ( T ) and U ( T ) \mathbf{U}(T) U ( T ) (left) and the computation time (right), both plotted in a log-log graph for different polynomial degrees over an exponential decreasing spatial step size h h h .
Entropy dissipative FD: In Tables 1- 3, we report the errors for f f f (similar errors behaviour can be derived for the other conserved quantities) obtained with the second- to fourth-order entropy-dissipative FD schemes, combined with SSP Runge–Kutta methods of the corresponding orders (SSPRK22, SSPRK33, and SSPRK(5,4)). For the second-order scheme, the observed convergence rate is reduced due to the application of a min-mod limiter to ensure the sign-preserving property. In contrast, the third- and fourth-order schemes achieve the expected convergence rates for both flux formulations. Figure 2 shows the CPU time versus the L 1 L_1 L 1 error and indicates that the analytical flux becomes more advantageous on finer grids. The computational costs of the two flux formulations are comparable on coarse meshes, with the differences depending on the order of the scheme. As the mesh is refined, however, the analytically derived flux becomes consistently more efficient. For the third-order scheme, for example, the computational time on the finest mesh is reduced from 125.0 to 98.9, corresponding to a reduction of approximately 21%. A similar, though less pronounced, trend is observed for the second- and fourth-order schemes, with reductions of approximately 11% and 7%, respectively. Overall, both computational costs increase with mesh refinement and scheme order, while the analytical flux provides a moderate but systematic computational advantage on finer meshes, most notably for the third-order scheme. The complete results are summarized in Table 4.
Table 1. L 1 L_1 L 1 and L 2 L_2 L 2 errors and order of convergence for f f f using the entropy-dissipative FD scheme with analytical and Taylor-expanded fluxes.
Riemann Problems
While both approaches show the order of convergence we expect for a smooth solution, we investigate in this subsection how well these methods perform for two adapted Riemann problems.
Table 2. L 1 L_1 L 1 and L 2 L_2 L 2 errors and order of convergence for f f f using the entropy-dissipative FD scheme with analytical and Taylor-expanded fluxes.
Table 3. L 1 L_1 L 1 and L 2 L_2 L 2 errors and order of convergence for f f f using the entropy-dissipative FD scheme with analytical and Taylor-expanded fluxes.
A shock-tube type initial data
In the first example, we consider the following initial data
U ( x , 0 ) = { ( 1.50 , 1.60 , 1.60 , 2.00 ) T : x < 0 , ( 1.25 , 1.15 , 2.00 , 2.10 ) T : x > 0. (29) \mathbf{U}(x,0)=
\begin{cases}
(1.50,1.60,1.60,2.00)^{\mathsf{T}} & : \quad x<0,\\
(1.25,1.15,2.00,2.10)^{\mathsf{T}} & : \quad x>0.
\end{cases} \tag*{(29)} U ( x , 0 ) = { ( 1.50 , 1.60 , 1.60 , 2.00 ) T ( 1.25 , 1.15 , 2.00 , 2.10 ) T : x < 0 , : x > 0. (29)
in the intervall [ − 2 , 12 ] [-2,12] [ − 2 , 12 ] . The boundary conditions are set as outflow, and the final time is set to t = 1 t=1 t = 1 .
Entropy dissipative FD: In Figure 3 , the results of the entropy-dissipative FD scheme using the analytical fluxes and the Taylor approximated fluxes are presented using 400 grid points and various orders of accuracy (referred to as O n O_n O n , n = 2 , 3 , 4 n=2,3,4 n = 2 , 3 , 4 ). Nearly no difference can be seen between the analytical derived flux and the Taylor approximated ones except due to the different orders.
Figure 3. A shock-tube type initial data : Plots for O e x p 2 O^{2}_{\mathrm{exp}} O exp 2 , O e x p 3 O^{3}_{\mathrm{exp}} O exp 3 and O e x p 4 O^{4}_{\mathrm{exp}} O exp 4 schemes using 400 cells using Taylor flux.
DGSEM: We now investigate the performance of the entropy-dissipative DGSE scheme, with particular emphasis on the interplay between flux discretization and shock resolution. The scheme is based on the flux differencing ansatz, combined with our newly developed entropy-conservative numerical fluxes for the volume terms resulting in a skew-symmetric formulation. To stabilize the solution near discontinuities, we apply local Lax-Friedrichs-type numerical flux as surface flux, which introduces dissipation and improves the robustness. For time integration, we employ the SSPRK(3,3) with a fixed time step Δ t = 0.001 \Delta t=0.001 Δ t = 0.001 . The
Table 4. Time comparison between analytical flux and Taylor flux (in seconds) using the entropy-dissipative FD scheme.
spatial discretization uses polynomial approximations of degree p = 2 p = 2 p = 2 , resulting in a fully third-order accurate scheme in both space and time. Due to the high-order nature of the method, spurious oscillations due to the Gibbs phenomena emerge near discontinuities. To suppress these oscillations while preserving accuracy in smooth regions, we apply the subcell shock capturing algorithm proposed in [36 ] , adapted to our framework.
The computational domain is discretized using 128 elements, with corresponding Gauss–Lobatto quadrature points. This setup yields approximately 384 degrees of freedom, providing a fine resolution suitable for capturing sharp gradients and shocks.
In Figure 4 , we present the numerical result obtained by using the Taylor-approximated flux (which, in this case, does not visibly alter to the result obtained by the scheme using the analytical flux)(not shown). Although the solution profiles appear visually similar, a striking difference emerges in the computational cost. The simulation using the Taylor-approximated flux requires approximately ≈ 1.573 seconds of wall-clock time, whereas the scheme based on the analytical flux completes in only 0.078 seconds—demonstrating a 20-fold improvement in efficiency.
Figure 4. Numerical solutions of the entropy dissipative DSGEM scheme using subcell FV.
This discrepancy highlights a critical insight: while the Taylor approximation may appear harmless in terms of solution quality, it significantly degrades computational performance due to increased complexity in the flux evaluation solving the system numerically.
The entropy behavior of both schemes is quantified via the discrete entropy production rate ∑ ∂ η ∂ U ⋅ U t \sum\frac{\partial\eta}{\partial U} \cdot U_t ∑ ∂ U ∂ η ⋅ U t , which measures the deviation from entropy conservation. For the Taylor-approximated flux, the entropy change is approximately − 6.21110298 × 10 − 2 -6.21110298 \times10^{-2} − 6.21110298 × 1 0 − 2 , and for the analytical flux, it is − 6.21110521 × 10 − 2 -6.21110521 \times10^{-2} − 6.21110521 × 1 0 − 2 . Both values are negative, confirming that the scheme is entropy-dissipative.
The shock detection and subcell FV approach are performed using a smoothness indicator based on the coefficients of the polynomial expansion. In particular, it will be controlled by algebraic combinations of the conserved variables. After extensive testing of various indicators, we found that f 4 f^4 f 4 provides robust and reliable detection across a range of Riemann problems, including the current test case. This choice not only ensures accurate localization of discontinuities but also maintains stability and accuracy in the subcell finite volume reconstruction even if small oscillation can still be recognized in g g g and q q q . Note that examples can be constructed, where f 4 f^4 f 4 does not provide the aforementioned properties.
The presented results exhibit a relatively high level of numerical dissipation, which is expected for a shock-capturing scheme with a subcell FV approach. This dissipation can be reduced by increasing the spatial resolution through grid refinement. In Figure 5 , we demonstrate the solutions for the variable f f f computed on two different grids: 128 and 256 elements. The results demonstrate a clear improvement in resolution with finer grids, particularly in the resolution of sharp gradients. Notably, even the solution obtained by the coarser grid (128 cells) shows small oscillations. In future work, a detailed comparison and analysis of various shock detection techniques and developing other limiting techniques will be conducted to further improve the performance and robustness of the schemes. However, such an investigation lies beyond the scope of this study.
Figure 5. Numerical solutions of the entropy dissipative DSGEM scheme using subcell FV using 128 cells (blue) and 256 cells (black dotted).
Riemann problem with negative b b b
For this test case, we choose our initial data of the form
U ( x , 0 ) = { ( 1.57 , − 1.15 , 2.50 , 1.90 ) T − 10 ≤ x ≤ 10 , ( 1.90 , − 0.58 , 2.40 , 2.30 ) T 10 < x ≤ 40 (30) \mathbf{U}(x,0)=
\begin{cases}
(1.57,-1.15,2.50,1.90)^{\mathsf{T}} & -10\le x\le10,\\
(1.90,-0.58,2.40,2.30)^{\mathsf{T}} & 10<x\le40
\end{cases} \tag*{(30)} U ( x , 0 ) = { ( 1.57 , − 1.15 , 2.50 , 1.90 ) T ( 1.90 , − 0.58 , 2.40 , 2.30 ) T − 10 ≤ x ≤ 10 , 10 < x ≤ 40 (30)
end time t = 3.5 t=3.5 t = 3.5 together with outflow conditions. Note that a different state space including negative b b b is considered. We adapt the flux accordingly for both, Taylor and the analytical one. In Figure 6 , we present the result using the entropy dissipative FD scheme with the Taylor approximated flux applied with 400 cells whereas for DGSEM, we apply again the flux differencing ansatz together with the subcell FV scheme (same setting as in test 4.2.1, e.g., analytical flux as volume flux and local Lax-Friedrichs flux as surface flux), use 256 cells and present the results for polynomial order p = 2 , 3 p=2,3 p = 2 , 3 (together with SSPRK(3,3) and SSPRK(5,4) and Δ t = 0.001 \Delta t=0.001 Δ t = 0.001 ). The results are presented in Figure 7 . Here, we recognized small oscillations in f f f and smaller in the other variables.
Figure 6. Riemann problem with negative b b b : Plots for O 2 e x p e s \mathrm{O2}_{\mathrm{exp}}^{\mathrm{es}} O2 exp es , O 3 e x p e s \mathrm{O3}_{\mathrm{exp}}^{\mathrm{es}} O3 exp es and O 4 e x p e s \mathrm{O4}_{\mathrm{exp}}^{\mathrm{es}} O4 exp es schemes using 400 cells using Taylor flux.
Figure 7. Numerical solutions of the entropy-dissipative DGSEM using the analytically derived flux and subcell FV, computed on a grid of 256 elements with polynomial degrees p = 2 p=2 p = 2 (black dotted line) and p = 3 p=3 p = 3 (blue solid line).
Two-dimensional problems
Next, we extend our numerical investigation to two-dimensional problems as introduced in [37 ] of the form
U t + F ( U ) x + F ( U ) y = 0 U_t + F(\mathbf{U})_x + F(\mathbf{U})_y = 0 U t + F ( U ) x + F ( U ) y = 0
with F F F as in (3) . The initial condition is given by
f ( x , y , 0 ) = 1.0 , b ( x , y , 0 ) = 0.5 + 0.1 ϕ ( r ) , g ( x , y , 0 ) = 2.0 , q ( x , y , 0 ) = 0.5 + 0.2 ϕ ( r ) , \begin{aligned}
f(x,y,0) &= 1.0,\\
b(x,y,0) &= 0.5 + 0.1\phi(r),\\
g(x,y,0) &= 2.0,\\
q(x,y,0) &= 0.5 + 0.2\phi(r),
\end{aligned} f ( x , y , 0 ) b ( x , y , 0 ) g ( x , y , 0 ) q ( x , y , 0 ) = 1.0 , = 0.5 + 0.1 ϕ ( r ) , = 2.0 , = 0.5 + 0.2 ϕ ( r ) ,
where ϕ ( r ) = 1 2 ( 1 + tanh ( 2 ( 2 − r ) ) ) \phi(r) = \frac{1}{2}(1+\tanh(2(2-r))) ϕ ( r ) = 2 1 ( 1 + tanh ( 2 ( 2 − r ))) and r r r denotes the distance to the point ( − 1 , − 1 ) (-1,-1) ( − 1 , − 1 ) in the domain Ω = [ − 4 , 4 ] 2 \Omega=[-4,4]^2 Ω = [ − 4 , 4 ] 2 . Thus, the initial condition consists of a smooth radially symmetric perturbation centered at ( − 1 , − 1 ) (-1,-1) ( − 1 , − 1 ) .
In Figure 8 , we present the results obtained with the DGSEM using flux differencing and the subcell FV approach. The polynomial order is p = 2 p=2 p = 2 and the grid is 128 2 128^2 12 8 2 . The final time is T = 1 T=1 T = 1 , and SSPRK(3,3) is used with Δ t = 0.001 \Delta t=0.001 Δ t = 0.001 . The surface flux is the local Lax–Friedrichs flux, while the volume flux is the analytically derived flux. The results are in good agreement with those obtained in [37 ] and demonstrate the movement of the circle. The computation time for this setting is around 21 seconds, whereas the method using the Taylor-approximated flux inside the volume integrals gives a visually indistinguishable result (not shown). However, the computation time on the same machine is around 860 seconds without any improvement to the linear solver. For the Taylor-approximated flux, the resulting linear system has to be solved numerically at each time step, whereas the analytically derived flux provides an explicit formula that can be evaluated directly. We use the in-house linear solver available in Julia for the numerical solution of the Taylor-based system without further solver-specific optimization. We do not claim that this linear system cannot be solved more efficiently using alternative numerical solvers or optimization techniques; rather, the reported computation time reflects the particular implementation used in our comparison. These results demonstrate that both approaches can be used. However, for two-dimensional simulations, the scheme with the analytical flux is significantly faster, even though it was more complicated to derive.
Figure 8. DGSEM with flux differencing and subcell FV shock detection, polynomial order p = 2 p = 2 p = 2 , with the analytical flux.
For the second test case, we consider a two-dimensional problem on the domain Ω = [ − 1 , 1 ] 2 \Omega=[-1,1]^2 Ω = [ − 1 , 1 ] 2 . The initial condition is given by
f ( x , y , 0 ) = 1.0 , b ( x , y , 0 ) = − sech 2 ( 5 ( r − R ( θ ) ) ) , g ( x , y , 0 ) = 0.8 , q ( x , y , 0 ) = sech 2 ( 5 ( r − R ( θ ) ) ) , \begin{aligned}
f(x,y,0) &= 1.0,\\
b(x,y,0) &= -\operatorname{sech}^2(5(r-R(\theta))),\\
g(x,y,0) &= 0.8,\\
q(x,y,0) &= \operatorname{sech}^2(5(r-R(\theta))),
\end{aligned} f ( x , y , 0 ) b ( x , y , 0 ) g ( x , y , 0 ) q ( x , y , 0 ) = 1.0 , = − sech 2 ( 5 ( r − R ( θ ))) , = 0.8 , = sech 2 ( 5 ( r − R ( θ ))) ,
where r = x 2 + y 2 r=\sqrt{x^2+y^2} r = x 2 + y 2 , θ = atan ( y , x ) \theta=\operatorname{atan}(y,x) θ = atan ( y , x ) , and R ( θ ) = 0.35 + 0.03 cos ( 2 θ ) R(\theta)=0.35+0.03\cos(2\theta) R ( θ ) = 0.35 + 0.03 cos ( 2 θ ) .
Thus, the initial condition describes a smooth ring-shaped perturbation centered at the origin. The radius of the ring varies periodically with the angle, resulting in a slightly deformed circular shape. The perturbation is localized around r = R ( θ ) r=R(\theta) r = R ( θ ) by the squared hyperbolic secant function, with the parameter 5 controlling the thickness of the ring. The first and third components remain constant, while the second and fourth components contain perturbations of opposite sign. In particular, b ( x , y , 0 ) = − q ( x , y , 0 ) ≤ 0 b(x,y,0)=-q(x,y,0)\leq0 b ( x , y , 0 ) = − q ( x , y , 0 ) ≤ 0 , with b = − 1 b=-1 b = − 1 and q = 1 q=1 q = 1 at the center of the ring, where r = R ( θ ) r=R(\theta) r = R ( θ ) . Away from the ring, both perturbations smoothly approach zero. In Fig.9, we see the numerical result at T = 0.2 T=0.2 T = 0.2 . While b b b is strictly negative (within the range ( − 1 , 0 ) (-1,0) ( − 1 , 0 ) ), we see almost identical behavior of f f f and g g g with jumps across the x = y x=y x = y -line, and $b
Figure 9. DGSEM with flux differencing and subcell FV shock detection, polynomial order p = 1 p = 1 p = 1 , with the analytical flux on a mesh with 128 × \times × 128 elements.
and q q q being the negative (up to a positive factor) of each other. The jumps (in f f f and g g g ) are resolved very well, even with a rough grid of 128 × \times × 128 cells.
Outlook and Summary
In this work, we have developed and applied two different entropy-conservative numerical fluxes for a thin-film model. One flux is based on a Taylor approximation, whereas the second one is derived analytically. The Taylor-approximated flux is easier to derive and is based on ideas that are also used in various other settings, e.g., for the Euler equations and shallow water equations. Both fluxes lead to a linear system of equations. While the Taylor-approximated flux has to be solved numerically, the analytical one can be evaluated exactly within each time step of the underlying scheme, resulting in a more efficient approach when applied within numerical schemes. We have used both approaches and compared them in two different numerical methods. We have employed them in an entropy-dissipative finite-difference setting and within the flux-differencing DGSEM method. The performance was, as expected, similar in terms of accuracy and stability, but an improvement was observed in terms of runtime due to the analytical derivation of the numerical solution. We tested both approaches on smooth problems, Riemann problems in one space dimension, and two-dimensional problems. In particular, for experiments involving shocks, we used additional limiters in the context of the entropy-dissipative finite-difference method, whereas for the DGSEM, we applied the subcell finite-volume technique developed in [36 ] . In the future, we will develop bound-preserving limiters in the spirit of [39 , 40 , 41 ] for the considered model to provably ensure the preservation of the underlying physical laws.
Acknowledgement
P.Ö. was supported by the German Research Foundation (DFG) within SPP 2410, project 525866748 (OE 661/5-1) and under the personal grant 520756621 (OE 661/4-1).
Details for Taylor expansion
Here, we give the concrete idea how the numerical two-point flux is developed from Section 3.2. Therefore, we calculate the jumps of v i v_i v i together with the corresponding numerical fluxes using a Taylor expansion and the discrete chain rule. We get:
⟦ v 1 ⟧ ⋅ F 1 = ⟦ f ⟧ { ± ⟦ ( 1 b f 2 ) ⟧ ⟦ b f 2 ⟧ 2 ⟦ b ⟧ ⟦ f ⟧ + 2 ⟦ b ⟧ ⟦ b f + g q ⟧ ⟦ ( b ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 1 + ⟦ b ⟧ { ± ⟦ ( 1 b f 2 ) ⟧ ⟦ b f 2 ⟧ ⟦ f 2 ⟧ − 1 − 2 ⟦ f ⟧ ⟦ b f + g q ⟧ ⟦ ( b ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 1 + ⟦ g ⟧ { 2 ⟦ q ⟧ ⟦ b f + g q ⟧ ⟦ ( b ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 1 + ⟦ q ⟧ { 2 ⟦ g ⟧ ⟦ b f + g q ⟧ ⟦ ( b ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 1 , ⟦ v 2 ⟧ ⋅ F 2 = ⟦ f ⟧ { ± ⟦ ( 1 b 2 f ) ⟧ ⟦ b 2 f ⟧ ⟦ b 2 ⟧ − 1 − 2 ⟦ f ⟧ ⟦ b f + g q ⟧ ⟦ ( f ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 2 + ⟦ b ⟧ { ± ⟦ ( 1 b 2 f ) ⟧ ⟦ b 2 f ⟧ 2 ⟦ b ⟧ ⟦ f ⟧ + 2 ⟦ f ⟧ ⟦ b f + g q ⟧ ⟦ ( f ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 2 + ⟦ g ⟧ { 2 ⟦ q ⟧ ⟦ b f + g q ⟧ ⟦ ( f ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 2 + ⟦ q ⟧ { 2 ⟦ g ⟧ ⟦ b f + g q ⟧ ⟦ ( f ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 2 , ⟦ v 3 ⟧ ⋅ F 3 = ⟦ f ⟧ { 2 ⟦ b ⟧ ⟦ b f + g q ⟧ ⟦ ( q ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 3 + ⟦ b ⟧ { 2 ⟦ f ⟧ ⟦ b f + g q ⟧ ⟦ ( q ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 3 + ⟦ g ⟧ { 2 ⟦ q ⟧ ⟦ b f + g q ⟧ ⟦ ( q ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 3 + ⟦ q ⟧ { − 1 − 2 ⟦ g ⟧ ⟦ b f + g q ⟧ ⟦ ( q ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 3 , ⟦ v 4 ⟧ ⋅ F 4 = ⟦ f ⟧ { 2 ⟦ b ⟧ ⟦ b f + g q ⟧ ⟦ ( g ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 4 + ⟦ b ⟧ { 2 ⟦ f ⟧ ⟦ b f + g q ⟧ ⟦ ( g ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 4 + ⟦ g ⟧ { − 1 − 2 ⟦ q ⟧ ⟦ b f + g q ⟧ ⟦ ( g ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 4 + ⟦ q ⟧ { 2 ⟦ g ⟧ ⟦ b f + g q ⟧ ⟦ ( g ( b f + g q ) 2 ) ⟧ ⟦ ( b f + g q ) 2 ⟧ } F 4 . (31) \begin{aligned}
\llbracket v_1\rrbracket\cdot F_1={}&\llbracket f\rrbracket\left\{\pm\frac{\llbracket\left(\frac{1}{bf^2}\right)\rrbracket}{\llbracket bf^2\rrbracket}2\llbracket b\rrbracket\llbracket f\rrbracket+\frac{2\llbracket b\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{b}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_1\\
&+\llbracket b\rrbracket\left\{\pm\frac{\llbracket\left(\frac{1}{bf^2}\right)\rrbracket}{\llbracket bf^2\rrbracket}\llbracket f^2\rrbracket-\frac{1-2\llbracket f\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{b}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_1\\
&+\llbracket g\rrbracket\left\{\frac{2\llbracket q\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{b}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_1+\llbracket q\rrbracket\left\{\frac{2\llbracket g\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{b}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_1,\\
\llbracket v_2\rrbracket\cdot F_2={}&\llbracket f\rrbracket\left\{\pm\frac{\llbracket\left(\frac{1}{b^2f}\right)\rrbracket}{\llbracket b^2f\rrbracket}\llbracket b^2\rrbracket-\frac{1-2\llbracket f\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{f}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_2\\
&+\llbracket b\rrbracket\left\{\pm\frac{\llbracket\left(\frac{1}{b^2f}\right)\rrbracket}{\llbracket b^2f\rrbracket}2\llbracket b\rrbracket\llbracket f\rrbracket+\frac{2\llbracket f\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{f}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_2\\
&+\llbracket g\rrbracket\left\{\frac{2\llbracket q\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{f}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_2+\llbracket q\rrbracket\left\{\frac{2\llbracket g\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{f}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_2,\\
\llbracket v_3\rrbracket\cdot F_3={}&\llbracket f\rrbracket\left\{\frac{2\llbracket b\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{q}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_3+\llbracket b\rrbracket\left\{\frac{2\llbracket f\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{q}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_3\\
&+\llbracket g\rrbracket\left\{\frac{2\llbracket q\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{q}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_3\\
&+\llbracket q\rrbracket\left\{-\frac{1-2\llbracket g\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{q}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_3,\\
\llbracket v_4\rrbracket\cdot F_4={}&\llbracket f\rrbracket\left\{\frac{2\llbracket b\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{g}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_4+\llbracket b\rrbracket\left\{\frac{2\llbracket f\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{g}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_4\\
&+\llbracket g\rrbracket\left\{-\frac{1-2\llbracket q\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{g}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_4\\
&+\llbracket q\rrbracket\left\{\frac{2\llbracket g\rrbracket\llbracket bf+gq\rrbracket\llbracket\left(\frac{g}{(bf+gq)^2}\right)\rrbracket}{\llbracket(bf+gq)^2\rrbracket}\right\}F_4. \tag*{(31)}
\end{aligned} [ [ v 1 ] ] ⋅ F 1 = [ [ v 2 ] ] ⋅ F 2 = [ [ v 3 ] ] ⋅ F 3 = [ [ v 4 ] ] ⋅ F 4 = [ [ f ] ] ⎩ ⎨ ⎧ ± [ [ b f 2 ] ] [ [ ( b f 2 1 ) ] ] 2 [ [ b ] ] [ [ f ] ] + [ [ ( b f + g q ) 2 ] ] 2 [ [ b ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 b ) ] ] ⎭ ⎬ ⎫ F 1 + [ [ b ] ] ⎩ ⎨ ⎧ ± [ [ b f 2 ] ] [ [ ( b f 2 1 ) ] ] [ [ f 2 ] ] − [ [ ( b f + g q ) 2 ] ] 1 − 2 [ [ f ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 b ) ] ] ⎭ ⎬ ⎫ F 1 + [ [ g ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ q ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 b ) ] ] ⎭ ⎬ ⎫ F 1 + [ [ q ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ g ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 b ) ] ] ⎭ ⎬ ⎫ F 1 , [ [ f ] ] ⎩ ⎨ ⎧ ± [ [ b 2 f ] ] [ [ ( b 2 f 1 ) ] ] [ [ b 2 ] ] − [ [ ( b f + g q ) 2 ] ] 1 − 2 [ [ f ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 f ) ] ] ⎭ ⎬ ⎫ F 2 + [ [ b ] ] ⎩ ⎨ ⎧ ± [ [ b 2 f ] ] [ [ ( b 2 f 1 ) ] ] 2 [ [ b ] ] [ [ f ] ] + [ [ ( b f + g q ) 2 ] ] 2 [ [ f ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 f ) ] ] ⎭ ⎬ ⎫ F 2 + [ [ g ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ q ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 f ) ] ] ⎭ ⎬ ⎫ F 2 + [ [ q ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ g ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 f ) ] ] ⎭ ⎬ ⎫ F 2 , [ [ f ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ b ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 q ) ] ] ⎭ ⎬ ⎫ F 3 + [ [ b ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ f ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 q ) ] ] ⎭ ⎬ ⎫ F 3 + [ [ g ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ q ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 q ) ] ] ⎭ ⎬ ⎫ F 3 + [ [ q ] ] ⎩ ⎨ ⎧ − [ [ ( b f + g q ) 2 ] ] 1 − 2 [ [ g ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 q ) ] ] ⎭ ⎬ ⎫ F 3 , [ [ f ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ b ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 g ) ] ] ⎭ ⎬ ⎫ F 4 + [ [ b ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ f ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 g ) ] ] ⎭ ⎬ ⎫ F 4 + [ [ g ] ] ⎩ ⎨ ⎧ − [ [ ( b f + g q ) 2 ] ] 1 − 2 [ [ q ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 g ) ] ] ⎭ ⎬ ⎫ F 4 + [ [ q ] ] ⎩ ⎨ ⎧ [ [ ( b f + g q ) 2 ] ] 2 [ [ g ] ] [ [ b f + g q ] ] [ [ ( ( b f + g q ) 2 g ) ] ] ⎭ ⎬ ⎫ F 4 . (31)
Further, we simplify ⟦ Ψ ⟧ \llbracket\Psi\rrbracket [ [ Ψ ] ] , and obtain
⟦ Ψ ⟧ = ⟦ f ⟧ ⟦ b ⟧ + ⟦ b ⟧ ⟦ f ⟧ − ⟦ ( b f b f + g q ) ⟧ ⟦ b ⟧ ⟦ f ⟧ + ⟦ f ⟧ ⟦ b ⟧ + ⟦ g ⟧ ⟦ q ⟧ + ⟦ q ⟧ ⟦ g ⟧ 2 ⟦ b f + g q ⟧ + 3 2 { ± ⟦ b ⟧ ⟦ b ⟧ log ± ⟦ f ⟧ ⟦ f ⟧ log + ⟦ b ⟧ ⟦ f ⟧ + ⟦ f ⟧ ⟦ b ⟧ + ⟦ g ⟧ ⟦ q ⟧ + ⟦ q ⟧ ⟦ g ⟧ ⟦ b f + g q ⟧ log } \llbracket\Psi\rrbracket=
\frac{\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket b\rrbracket\llbracket f\rrbracket-\llbracket\left(\frac{bf}{bf+gq}\right)\rrbracket\llbracket b\rrbracket\llbracket f\rrbracket+\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket g\rrbracket\llbracket q\rrbracket+\llbracket q\rrbracket\llbracket g\rrbracket}{2\llbracket bf+gq\rrbracket}
+\frac{3}{2}\left\{\pm\frac{\llbracket b\rrbracket}{\llbracket b\rrbracket_{\log}}\pm\frac{\llbracket f\rrbracket}{\llbracket f\rrbracket_{\log}}+\frac{\llbracket b\rrbracket\llbracket f\rrbracket+\llbracket f\rrbracket\llbracket b\rrbracket+\llbracket g\rrbracket\llbracket q\rrbracket+\llbracket q\rrbracket\llbracket g\rrbracket}{\llbracket bf+gq\rrbracket_{\log}}\right\} [ [ Ψ ] ] = 2 [ [ b f + g q ] ] [ [ f ] ] [ [ b ] ] + [ [ b ] ] [ [ f ] ] − [ [ ( b f + g q b f ) ] ] [ [ b ] ] [ [ f ] ] + [ [ f ] ] [ [ b ] ] + [ [ g ] ] [ [ q ] ] + [ [ q ] ] [ [ g ] ] + 2 3 { ± [ [ b ] ] l o g [ [ b ] ] ± [ [ f ] ] l o g [ [ f ] ] + [ [ b f + g q ] ] l o g [ [ b ] ] [ [ f ] ] + [ [ f ] ] [ [ b ] ] + [ [ g ] ] [ [ q ] ] + [ [ q ] ] [ [ g ] ] }
[ Ψ ] = [ f ] { ± 3 2 { { f } } log + 3 { { b } } 2 { { b f + g q } } log + { { b } } − { { f } } { ( b f b f + g q ) } 2 { { b f + g q } } } + [ b ] { ± 3 2 { { b } } log + 3 { { f } } 2 { { b f + g q } } log + { { f } } − { { f } } { ( b f b f + g q ) } 2 { { b f + g q } } } + [ g ] { 3 { { q } } 2 { { b f + g q } } log − { { q } } { ( b f b f + g q ) } 2 { { b f + g q } } } + [ q ] { 3 { { g } } 2 { { b f + g q } } log − { { g } } { ( b f b f + g q ) } 2 { { b f + g q } } } . (32) [\Psi]=[f]\left\{\pm\frac{3}{2\{\{f\}\}_{\log}}+\frac{3\{\{b\}\}}{2\{\{bf+gq\}\}_{\log}}+\frac{\{\{b\}\}-\{\{f\}\}\left\{\left(\frac{bf}{bf+gq}\right)\right\}}{2\{\{bf+gq\}\}}\right\}
+[b]\left\{\pm\frac{3}{2\{\{b\}\}_{\log}}+\frac{3\{\{f\}\}}{2\{\{bf+gq\}\}_{\log}}+\frac{\{\{f\}\}-\{\{f\}\}\left\{\left(\frac{bf}{bf+gq}\right)\right\}}{2\{\{bf+gq\}\}}\right\}
+[g]\left\{\frac{3\{\{q\}\}}{2\{\{bf+gq\}\}_{\log}}-\frac{\{\{q\}\}\left\{\left(\frac{bf}{bf+gq}\right)\right\}}{2\{\{bf+gq\}\}}\right\}
+[q]\left\{\frac{3\{\{g\}\}}{2\{\{bf+gq\}\}_{\log}}-\frac{\{\{g\}\}\left\{\left(\frac{bf}{bf+gq}\right)\right\}}{2\{\{bf+gq\}\}}\right\}. \tag*{(32)} [ Ψ ] = [ f ] ⎩ ⎨ ⎧ ± 2 {{ f } } l o g 3 + 2 {{ b f + g q } } l o g 3 {{ b }} + 2 {{ b f + g q }} {{ b }} − {{ f }} { ( b f + g q b f ) } ⎭ ⎬ ⎫ + [ b ] ⎩ ⎨ ⎧ ± 2 {{ b } } l o g 3 + 2 {{ b f + g q } } l o g 3 {{ f }} + 2 {{ b f + g q }} {{ f }} − {{ f }} { ( b f + g q b f ) } ⎭ ⎬ ⎫ + [ g ] ⎩ ⎨ ⎧ 2 {{ b f + g q } } l o g 3 {{ q }} − 2 {{ b f + g q }} {{ q }} { ( b f + g q b f ) } ⎭ ⎬ ⎫ + [ q ] ⎩ ⎨ ⎧ 2 {{ b f + g q } } l o g 3 {{ g }} − 2 {{ b f + g q }} {{ g }} { ( b f + g q b f ) } ⎭ ⎬ ⎫ . (32)
Equating the coefficients of [ f ] [f] [ f ] , [ b ] [b] [ b ] , [ g ] [g] [ g ] , and [ q ] [q] [ q ] in (31) and (32), we obtain the following 4 × 4 linear system:
A F n u m = b . AF^{\mathrm{num}}=\mathbf{b}. A F num = b .
The coefficient matrix and the right-hand side are given explicitly below. It is
A = ( A 11 A 12 A 13 A 14 A 21 A 22 A 23 A 24 A 31 A 32 A 33 A 34 A 41 A 42 A 43 A 44 ) , \mathbf{A}=
\begin{pmatrix}
A_{11} & A_{12} & A_{13} & A_{14}\\
A_{21} & A_{22} & A_{23} & A_{24}\\
A_{31} & A_{32} & A_{33} & A_{34}\\
A_{41} & A_{42} & A_{43} & A_{44}
\end{pmatrix}, A = A 11 A 21 A 31 A 41 A 12 A 22 A 32 A 42 A 13 A 23 A 33 A 43 A 14 A 24 A 34 A 44 ,
with
A 11 = ± { ( 1 b f 2 ) } { { b f 2 } } 2 { { b } } { { f } } + 2 { { b } } { { b f + g q } } { ( b ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{11}=\pm\frac{\left\{\left(\frac{1}{bf^{2}}\right)\right\}}{\{\{bf^{2}\}\}}2\{\{b\}\}\{\{f\}\}+\frac{2\{\{b\}\}\{\{bf+gq\}\}\left\{\left(\frac{b}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 11 = ± {{ b f 2 }} { ( b f 2 1 ) } 2 {{ b }} {{ f }} + {{( b f + g q ) 2 }} 2 {{ b }} {{ b f + g q }} { ( ( b f + g q ) 2 b ) } ,
A 12 = ± { ( 1 b 2 f ) } { { b 2 f } } { { b 2 } } − 1 − 2 { { b } } { { b f + g q } } { ( f ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{12}=\pm\frac{\left\{\left(\frac{1}{b^{2}f}\right)\right\}}{\{\{b^{2}f\}\}}\left\{\{b^{2}\}\right\}-\frac{1-2\{\{b\}\}\{\{bf+gq\}\}\left\{\left(\frac{f}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 12 = ± {{ b 2 f }} { ( b 2 f 1 ) } { { b 2 } } − {{( b f + g q ) 2 }} 1 − 2 {{ b }} {{ b f + g q }} { ( ( b f + g q ) 2 f ) } ,
A 13 = 2 { { b } } { { b f + g q } } { ( q ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A 14 = 2 { { b } } { { b f + g q } } { ( g ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{13}=\frac{2\{\{b\}\}\{\{bf+gq\}\}\left\{\left(\frac{q}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}},
\qquad
A_{14}=\frac{2\{\{b\}\}\{\{bf+gq\}\}\left\{\left(\frac{g}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 13 = {{( b f + g q ) 2 }} 2 {{ b }} {{ b f + g q }} { ( ( b f + g q ) 2 q ) } , A 14 = {{( b f + g q ) 2 }} 2 {{ b }} {{ b f + g q }} { ( ( b f + g q ) 2 g ) } ,
A 21 = ± { ( 1 b f 2 ) } { { b f 2 } } { { f 2 } } − 1 − 2 { { f } } { { b f + g q } } { ( b ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{21}=\pm\frac{\left\{\left(\frac{1}{bf^{2}}\right)\right\}}{\{\{bf^{2}\}\}}\{\{f^{2}\}\}-\frac{1-2\{\{f\}\}\{\{bf+gq\}\}\left\{\left(\frac{b}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 21 = ± {{ b f 2 }} { ( b f 2 1 ) } {{ f 2 }} − {{( b f + g q ) 2 }} 1 − 2 {{ f }} {{ b f + g q }} { ( ( b f + g q ) 2 b ) } ,
A 22 = ± { ( 1 b 2 f ) } { { b 2 f } } 2 { { b } } { { f } } + 2 { { f } } { { b f + g q } } { ( f ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{22}=\pm\frac{\left\{\left(\frac{1}{b^{2}f}\right)\right\}}{\{\{b^{2}f\}\}}2\{\{b\}\}\{\{f\}\}+\frac{2\{\{f\}\}\{\{bf+gq\}\}\left\{\left(\frac{f}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 22 = ± {{ b 2 f }} { ( b 2 f 1 ) } 2 {{ b }} {{ f }} + {{( b f + g q ) 2 }} 2 {{ f }} {{ b f + g q }} { ( ( b f + g q ) 2 f ) } ,
A 23 = 2 { { f } } { { b f + g q } } { ( q ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A 24 = 2 { { f } } { { b f + g q } } { ( g ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{23}=\frac{2\{\{f\}\}\{\{bf+gq\}\}\left\{\left(\frac{q}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}},
\qquad
A_{24}=\frac{2\{\{f\}\}\{\{bf+gq\}\}\left\{\left(\frac{g}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 23 = {{( b f + g q ) 2 }} 2 {{ f }} {{ b f + g q }} { ( ( b f + g q ) 2 q ) } , A 24 = {{( b f + g q ) 2 }} 2 {{ f }} {{ b f + g q }} { ( ( b f + g q ) 2 g ) } ,
A 31 = 2 { { q } } { { b f + g q } } { ( b ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A 32 = 2 { { q } } { { b f + g q } } { ( f ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{31}=\frac{2\{\{q\}\}\{\{bf+gq\}\}\left\{\left(\frac{b}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}},
\qquad
A_{32}=\frac{2\{\{q\}\}\{\{bf+gq\}\}\left\{\left(\frac{f}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 31 = {{( b f + g q ) 2 }} 2 {{ q }} {{ b f + g q }} { ( ( b f + g q ) 2 b ) } , A 32 = {{( b f + g q ) 2 }} 2 {{ q }} {{ b f + g q }} { ( ( b f + g q ) 2 f ) } ,
A 33 = 2 { { q } } { { b f + g q } } { ( q ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A 34 = 1 − 2 { { q } } { { b f + g q } } { ( g ( b f + g q ) 2 ) } { { ( b f + g q ) 2 } } , A_{33}=\frac{2\{\{q\}\}\{\{bf+gq\}\}\left\{\left(\frac{q}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}},
\qquad
A_{34}=\frac{1-2\{\{q\}\}\{\{bf+gq\}\}\left\{\left(\frac{g}{(bf+gq)^{2}}\right)\right\}}{\{\{(bf+gq)^{2}\}\}}, A 33 = {{( b f + g q ) 2 }} 2 {{ q }} {{ b f + g q }} { ( ( b f + g q ) 2 q ) } , A 34 = {{( b f + g q ) 2 }} 1 − 2 {{ q }} {{ b f + g q }} { ( ( b f + g q ) 2 g ) } ,
A 41 = 2 { { g } } { { ( b f + g q ) } } { { b ( b f + g q ) 2 } } { { ( b f + g q ) 2 } } , A 42 = 2 { { g } } { { ( b f + g q ) } } { { f ( b f + g q ) 2 } } { { ( b f + g q ) 2 } } , A_{41}=\frac{2\{\{g\}\}\{\{(bf+gq)\}\}\left\{\!\left\{\frac{b}{(bf+gq)^2}\right\}\!\right\}}{\{\{(bf+gq)^2\}\}},\qquad A_{42}=\frac{2\{\{g\}\}\{\{(bf+gq)\}\}\left\{\!\left\{\frac{f}{(bf+gq)^2}\right\}\!\right\}}{\{\{(bf+gq)^2\}\}}, A 41 = {{( b f + g q ) 2 }} 2 {{ g }} {{( b f + g q )}} { { ( b f + g q ) 2 b } } , A 42 = {{( b f + g q ) 2 }} 2 {{ g }} {{( b f + g q )}} { { ( b f + g q ) 2 f } } ,
A 43 = − 1 − 2 { { g } } { { ( b f + g q ) } } { { q ( b f + g q ) 2 } } { { ( b f + g q ) 2 } } , A 44 = 2 { { g } } { { ( b f + g q ) } } { { g ( b f + g q ) 2 } } { { ( b f + g q ) 2 } } . A_{43}=-\frac{1-2\{\{g\}\}\{\{(bf+gq)\}\}\left\{\!\left\{\frac{q}{(bf+gq)^2}\right\}\!\right\}}{\{\{(bf+gq)^2\}\}},\qquad A_{44}=\frac{2\{\{g\}\}\{\{(bf+gq)\}\}\left\{\!\left\{\frac{g}{(bf+gq)^2}\right\}\!\right\}}{\{\{(bf+gq)^2\}\}}. A 43 = − {{( b f + g q ) 2 }} 1 − 2 {{ g }} {{( b f + g q )}} { { ( b f + g q ) 2 q } } , A 44 = {{( b f + g q ) 2 }} 2 {{ g }} {{( b f + g q )}} { { ( b f + g q ) 2 g } } .
and the right hand side is
b 1 = ± 3 2 { { f } } log + 3 { { b } } 2 { { ( b f + g q ) } } log + { { b } } − { { b } } { { b f b f + g q } } 2 { { ( b f + g q ) } } , b_1=\pm\frac{3}{2\{\{f\}\}_{\log}}+\frac{3\{\{b\}\}}{2\{\{(bf+gq)\}\}_{\log}}+\frac{\{\{b\}\}-\{\{b\}\}\left\{\!\left\{\frac{bf}{bf+gq}\right\}\!\right\}}{2\{\{(bf+gq)\}\}}, b 1 = ± 2 {{ f } } l o g 3 + 2 {{( b f + g q )} } l o g 3 {{ b }} + 2 {{( b f + g q )}} {{ b }} − {{ b }} { { b f + g q b f } } ,
b 2 = ± 3 2 { { b } } log + 3 { { f } } 2 { { ( b f + g q ) } } log + { { f } } − { { f } } { { b f b f + g q } } 2 { { ( b f + g q ) } } , b_2=\pm\frac{3}{2\{\{b\}\}_{\log}}+\frac{3\{\{f\}\}}{2\{\{(bf+gq)\}\}_{\log}}+\frac{\{\{f\}\}-\{\{f\}\}\left\{\!\left\{\frac{bf}{bf+gq}\right\}\!\right\}}{2\{\{(bf+gq)\}\}}, b 2 = ± 2 {{ b } } l o g 3 + 2 {{( b f + g q )} } l o g 3 {{ f }} + 2 {{( b f + g q )}} {{ f }} − {{ f }} { { b f + g q b f } } ,
b 3 = 3 { { q } } 2 { { ( b f + g q ) } } log − { { q } } { { b f b f + g q } } 2 { { ( b f + g q ) } } , b_3=\frac{3\{\{q\}\}}{2\{\{(bf+gq)\}\}_{\log}}-\frac{\{\{q\}\}\left\{\!\left\{\frac{bf}{bf+gq}\right\}\!\right\}}{2\{\{(bf+gq)\}\}}, b 3 = 2 {{( b f + g q )} } l o g 3 {{ q }} − 2 {{( b f + g q )}} {{ q }} { { b f + g q b f } } ,
b 4 = 3 { { g } } 2 { { ( b f + g q ) } } log − { { g } } { { b f b f + g q } } 2 { { ( b f + g q ) } } . b_4=\frac{3\{\{g\}\}}{2\{\{(bf+gq)\}\}_{\log}}-\frac{\{\{g\}\}\left\{\!\left\{\frac{bf}{bf+gq}\right\}\!\right\}}{2\{\{(bf+gq)\}\}}. b 4 = 2 {{( b f + g q )} } l o g 3 {{ g }} − 2 {{( b f + g q )}} {{ g }} { { b f + g q b f } } .
We provide the exact form in the corresponding repository where it can be downloaded [42 ] .
Detail for analytical derivation
Here, we give now the details of the calculation to derive the analytical expression of the entropy-conservative two-point flux from § 3.4 . We first give the entropy potential in terms of our abbreviations yielding to (14). We have
Ψ = ( − u 2 ( A − 2 + B − 2 ) − u 1 ( A − 2 + B − 2 ) − u 4 B − 2 − u 3 B − 2 ) ⋅ ( 1 2 u 1 A 1 2 u 2 A 1 2 u 3 ( A + B ) 1 2 u 4 ( A + B ) ) + 3 2 ln ( A B ) + 1 2 A B − 1 = − 1 2 ( A 2 ( A − 2 + B − 2 ) + A 2 ( A − 2 + B − 2 ) + 2 u 3 u 4 ( A + B ) B − 2 − 3 ln ( A B ) − A B − 1 ) = − 1 2 ( 2 + 2 A 2 B − 2 + 2 ( B − A ) ( B + A ) B − 2 − 3 ln ( A B ) − A B − 1 ) = − 1 2 ( 4 − A B − 1 − 3 ln ( A B ) ) . \begin{aligned}
\Psi=
\begin{pmatrix}
-u_2(A^{-2}+B^{-2})\\
-u_1(A^{-2}+B^{-2})\\
-u_4B^{-2}\\
-u_3B^{-2}
\end{pmatrix}
\cdot
\begin{pmatrix}
\frac{1}{2}u_1A\\
\frac{1}{2}u_2A\\
\frac{1}{2}u_3(A+B)\\
\frac{1}{2}u_4(A+B)
\end{pmatrix}
+\frac{3}{2}\ln(AB)+\frac{1}{2}AB^{-1} \\
&=-\frac{1}{2}\left(A^2(A^{-2}+B^{-2})+A^2(A^{-2}+B^{-2})+2u_3u_4(A+B)B^{-2}-3\ln(AB)-AB^{-1}\right) \\
&=-\frac{1}{2}\left(2+2A^2B^{-2}+2(B-A)(B+A)B^{-2}-3\ln(AB)-AB^{-1}\right) \\
&=-\frac{1}{2}\left(4-AB^{-1}-3\ln(AB)\right).
\end{aligned} Ψ = − u 2 ( A − 2 + B − 2 ) − u 1 ( A − 2 + B − 2 ) − u 4 B − 2 − u 3 B − 2 ⋅ 2 1 u 1 A 2 1 u 2 A 2 1 u 3 ( A + B ) 2 1 u 4 ( A + B ) + 2 3 ln ( A B ) + 2 1 A B − 1 = − 2 1 ( A 2 ( A − 2 + B − 2 ) + A 2 ( A − 2 + B − 2 ) + 2 u 3 u 4 ( A + B ) B − 2 − 3 ln ( A B ) − A B − 1 ) = − 2 1 ( 2 + 2 A 2 B − 2 + 2 ( B − A ) ( B + A ) B − 2 − 3 ln ( A B ) − A B − 1 ) = − 2 1 ( 4 − A B − 1 − 3 ln ( A B ) ) .
Before starting with the calculation, we note that for n ∈ N n\in\mathbb{N} n ∈ N
0 = [ 1 ] = [ a n a − n ] = [ a n ] { { a − n } } + { { a n } } [ a − n ] , 0=[1]=[a^na^{-n}]=[a^n]\{\{a^{-n}\}\}+\{\{a^n\}\}[a^{-n}], 0 = [ 1 ] = [ a n a − n ] = [ a n ] {{ a − n }} + {{ a n }} [ a − n ] ,
and therefore obtain
[ a − n ] = − [ a n ] { { a − n } } { { a n } } . (33) [a^{-n}]=-[a^n]\frac{\{\{a^{-n}\}\}}{\{\{a^n\}\}}. \tag*{(33)} [ a − n ] = − [ a n ] {{ a n }} {{ a − n }} . (33)
To find the numerical flux, we use (13) and get
0 = [ V ( U ) ] ⋅ F − n u m [ Ψ ] = ( ( ⟦ − u 2 ( A − 2 + B − 2 ) ⟧ ⟦ − u 1 ( A − 2 + B − 2 ) ⟧ ⟦ − u 4 B − 2 ⟧ ⟦ − u 3 B − 2 ⟧ ) ) ⋅ ( F 1 F 2 F 3 F 4 ) + 1 2 [ ⟦ 4 − A B − 1 − 3 ln ( A B ) ⟧ ] = − F 1 [ ⟦ u 2 ( A − 2 + B − 2 ) ⟧ ] − F 2 [ ⟦ u 1 ( A − 2 + B − 2 ) ⟧ ] − F 3 [ ⟦ u 4 B − 2 ⟧ ] − F 4 [ ⟦ u 3 B − 2 ⟧ ] \begin{aligned}
0 = [\mathbf{V}(\mathbf{U})] \cdot F^{\mathrm{num}}_{-}[\Psi] = \left(\begin{pmatrix} \llbracket-u_2(A^{-2}+B^{-2}) \rrbracket\\ \llbracket-u_1(A^{-2}+B^{-2}) \rrbracket\\ \llbracket-u_4B^{-2} \rrbracket\\ \llbracket-u_3B^{-2} \rrbracket\end{pmatrix}\right) \cdot\begin{pmatrix} F_1 \\ F_2 \\ F_3 \\ F_4 \end{pmatrix} + \frac{1}{2}\left[\llbracket4-AB^{-1}-3\ln(AB)\rrbracket\right] \\
&= -F_1\left[\llbracket u_2(A^{-2}+B^{-2})\rrbracket\right] - F_2\left[\llbracket u_1(A^{-2}+B^{-2})\rrbracket\right] - F_3\left[\llbracket u_4B^{-2}\rrbracket\right] - F_4\left[\llbracket u_3B^{-2}\rrbracket\right]
\end{aligned} 0 = [ V ( U )] ⋅ F − num [ Ψ ] = [ [ − u 2 ( A − 2 + B − 2 ) ] ] [ [ − u 1 ( A − 2 + B − 2 ) ] ] [ [ − u 4 B − 2 ] ] [ [ − u 3 B − 2 ] ] ⋅ F 1 F 2 F 3 F 4 + 2 1 [ [ [ 4 − A B − 1 − 3 ln ( A B ) ] ] ] = − F 1 [ [ [ u 2 ( A − 2 + B − 2 ) ] ] ] − F 2 [ [ [ u 1 ( A − 2 + B − 2 ) ] ] ] − F 3 [ [ [ u 4 B − 2 ] ] ] − F 4 [ [ [ u 3 B − 2 ] ] ]
− 1 2 ( ⟦ A B − 1 ⟧ + 3 ⟦ ln ( A B ) ⟧ ) . -\frac{1}{2}\left(\llbracket AB^{-1}\rrbracket+ 3\llbracket\ln(AB)\rrbracket\right). − 2 1 ( [ [ A B − 1 ] ] + 3 [ [ ln ( A B ) ] ] ) .
The first four components are of the form F i [ ⟦ u j X − 2 ⟧ ] F_i\left[\llbracket u_jX^{-2}\rrbracket\right] F i [ [ [ u j X − 2 ] ] ] , where i , j ∈ { 1 , 2 , 3 , 4 } i,j \in\{1,2,3,4\} i , j ∈ { 1 , 2 , 3 , 4 } and X ∈ { A , B } X \in\{A,B\} X ∈ { A , B } . First, we find,
⟦ u i X − 2 ⟧ = ⟦ u i ⟧ { { X − 2 } } + { { u i } } ⟦ X − 2 ⟧ , \llbracket u_iX^{-2}\rrbracket= \llbracket u_i\rrbracket\{\{X^{-2}\}\} + \{\{u_i\}\}\llbracket X^{-2}\rrbracket, [ [ u i X − 2 ] ] = [ [ u i ] ] {{ X − 2 }} + {{ u i }} [ [ X − 2 ] ] ,
then we expand the last term using (33) via
⟦ X − 2 ⟧ = − { { X − 2 } } { { X 2 } } ⟦ X 2 ⟧ , \llbracket X^{-2}\rrbracket= -\frac{\{\{X^{-2}\}\}}{\{\{X^2\}\}}\llbracket X^2\rrbracket, [ [ X − 2 ] ] = − {{ X 2 }} {{ X − 2 }} [ [ X 2 ] ] ,
and calculate separately
⟦ A 2 ⟧ = 2 ⟦ A ⟧ { { A } } = 2 ⟦ u 1 u 2 ⟧ { { A } } = 2 { { A } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } ) \llbracket A^2\rrbracket= 2\llbracket A\rrbracket\{\{A\}\} = 2\llbracket u_1u_2\rrbracket\{\{A\}\} = 2\{\{A\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}\right) [ [ A 2 ] ] = 2 [ [ A ] ] {{ A }} = 2 [ [ u 1 u 2 ] ] {{ A }} = 2 {{ A }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} )
and
⟦ B 2 ⟧ = 2 ⟦ B ⟧ { { B } } = 2 { { B } } ( ⟦ u 1 u 2 ⟧ + ⟦ u 3 u 4 ⟧ ) = 2 { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } + ⟦ u 3 ⟧ { { u 4 } } + ⟦ u 4 ⟧ { { u 3 } } ) . \begin{aligned}
\llbracket B^2\rrbracket= 2\llbracket B\rrbracket\{\{B\}\} = 2\{\{B\}\}\left(\llbracket u_1u_2\rrbracket+\llbracket u_3u_4\rrbracket\right) \\
&= 2\{\{B\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}+\llbracket u_3\rrbracket\{\{u_4\}\}+\llbracket u_4\rrbracket\{\{u_3\}\}\right).
\end{aligned} [ [ B 2 ] ] = 2 [ [ B ] ] {{ B }} = 2 {{ B }} ( [ [ u 1 u 2 ] ] + [ [ u 3 u 4 ] ] ) = 2 {{ B }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} + [ [ u 3 ] ] {{ u 4 }} + [ [ u 4 ] ] {{ u 3 }} ) .
Further, we have
⟦ A B − 1 ⟧ = ⟦ A ⟧ { { B − 1 } } + ⟦ B − 1 ⟧ { { A } } = ⟦ A ⟧ { { B − 1 } } − ⟦ B ⟧ { { B − 1 } } { { B } } { { A } } , \llbracket AB^{-1}\rrbracket= \llbracket A\rrbracket\{\{B^{-1}\}\}+\llbracket B^{-1}\rrbracket\{\{A\}\} = \llbracket A\rrbracket\{\{B^{-1}\}\}-\llbracket B\rrbracket\frac{\{\{B^{-1}\}\}}{\{\{B\}\}}\{\{A\}\}, [ [ A B − 1 ] ] = [ [ A ] ] {{ B − 1 }} + [ [ B − 1 ] ] {{ A }} = [ [ A ] ] {{ B − 1 }} − [ [ B ] ] {{ B }} {{ B − 1 }} {{ A }} ,
and combining all, leads to
0 = − F 1 ( ⟦ u 2 ⟧ { { A − 2 + B − 2 } } + { { u 2 } } ( − { { A − 2 } } { { A 2 } } 2 { { A } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } ) ) + { { u 2 } } ( − { { B − 2 } } { { B 2 } } 2 { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } + ⟦ u 3 ⟧ { { u 4 } } + ⟦ u 4 ⟧ { { u 3 } } ) ) ) − F 2 ( ⟦ u 1 ⟧ { { A − 2 + B − 2 } } + { { u 1 } } ( − { { A − 2 } } { { A 2 } } 2 { { A } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } ) ) + { { u 1 } } ( − { { B − 2 } } { { B 2 } } 2 { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } + ⟦ u 3 ⟧ { { u 4 } } + ⟦ u 4 ⟧ { { u 3 } } ) ) ) − F 3 ( ⟦ u 4 ⟧ { { B − 2 } } + { { u 4 } } ( − { { B − 2 } } { { B 2 } } 2 { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } + ⟦ u 3 ⟧ { { u 4 } } + ⟦ u 4 ⟧ { { u 3 } } ) ) ) − F 4 ( ⟦ u 3 ⟧ { { B − 2 } } + { { u 3 } } ( − { { B − 2 } } { { B 2 } } 2 { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } + ⟦ u 3 ⟧ { { u 4 } } + ⟦ u 4 ⟧ { { u 3 } } ) ) ) + 1 2 { { B − 1 } } ( ⟦ u 1 ⟧ { { u 2 } } { { u 1 } } ⟦ u 2 ⟧ ) − 1 2 { { A } } { { B − 1 } } { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + { { u 1 } } ⟦ u 2 ⟧ + ⟦ u 3 ⟧ { { u 4 } } + { { u 3 } } ⟦ u 4 ⟧ ) − 3 2 { { A B } } log − 1 ( { { B } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } ) + { { A } } ( ⟦ u 1 ⟧ { { u 2 } } + ⟦ u 2 ⟧ { { u 1 } } + ⟦ u 3 ⟧ { { u 4 } } + ⟦ u 4 ⟧ { { u 3 } } ) ) . \begin{aligned}
0 ={}& -F_1\left(\llbracket u_2\rrbracket\{\{A^{-2}+B^{-2}\}\}+\{\{u_2\}\}\left(-\frac{\{\{A^{-2}\}\}}{\{\{A^2\}\}}2\{\{A\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}\right)\right)\right.\\
&\left.\quad+\{\{u_2\}\}\left(-\frac{\{\{B^{-2}\}\}}{\{\{B^2\}\}}2\{\{B\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}+\llbracket u_3\rrbracket\{\{u_4\}\}+\llbracket u_4\rrbracket\{\{u_3\}\}\right)\right)\right)\\
&-F_2\left(\llbracket u_1\rrbracket\{\{A^{-2}+B^{-2}\}\}+\{\{u_1\}\}\left(-\frac{\{\{A^{-2}\}\}}{\{\{A^2\}\}}2\{\{A\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}\right)\right)\right.\\
&\left.\quad+\{\{u_1\}\}\left(-\frac{\{\{B^{-2}\}\}}{\{\{B^2\}\}}2\{\{B\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}+\llbracket u_3\rrbracket\{\{u_4\}\}+\llbracket u_4\rrbracket\{\{u_3\}\}\right)\right)\right)\\
&-F_3\left(\llbracket u_4\rrbracket\{\{B^{-2}\}\}+\{\{u_4\}\}\left(-\frac{\{\{B^{-2}\}\}}{\{\{B^2\}\}}2\{\{B\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}+\llbracket u_3\rrbracket\{\{u_4\}\}+\llbracket u_4\rrbracket\{\{u_3\}\}\right)\right)\right)\\
&-F_4\left(\llbracket u_3\rrbracket\{\{B^{-2}\}\}+\{\{u_3\}\}\left(-\frac{\{\{B^{-2}\}\}}{\{\{B^2\}\}}2\{\{B\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}+\llbracket u_3\rrbracket\{\{u_4\}\}+\llbracket u_4\rrbracket\{\{u_3\}\}\right)\right)\right)\\
&+\frac{1}{2}\{\{B^{-1}\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}\{\{u_1\}\}\llbracket u_2\rrbracket\right)-\frac{1}{2}\{\{A\}\}\frac{\{\{B^{-1}\}\}}{\{\{B\}\}}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\{\{u_1\}\}\llbracket u_2\rrbracket+\llbracket u_3\rrbracket\{\{u_4\}\}+\{\{u_3\}\}\llbracket u_4\rrbracket\right)\\
&-\frac{3}{2}\{\{AB\}\}_{\log}^{-1}\left(\{\{B\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}\right)+\{\{A\}\}\left(\llbracket u_1\rrbracket\{\{u_2\}\}+\llbracket u_2\rrbracket\{\{u_1\}\}+\llbracket u_3\rrbracket\{\{u_4\}\}+\llbracket u_4\rrbracket\{\{u_3\}\}\right)\right).
\end{aligned} 0 = − F 1 ( [ [ u 2 ] ] {{ A − 2 + B − 2 }} + {{ u 2 }} ( − {{ A 2 }} {{ A − 2 }} 2 {{ A }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} ) ) + {{ u 2 }} ( − {{ B 2 }} {{ B − 2 }} 2 {{ B }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} + [ [ u 3 ] ] {{ u 4 }} + [ [ u 4 ] ] {{ u 3 }} ) ) ) − F 2 ( [ [ u 1 ] ] {{ A − 2 + B − 2 }} + {{ u 1 }} ( − {{ A 2 }} {{ A − 2 }} 2 {{ A }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} ) ) + {{ u 1 }} ( − {{ B 2 }} {{ B − 2 }} 2 {{ B }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} + [ [ u 3 ] ] {{ u 4 }} + [ [ u 4 ] ] {{ u 3 }} ) ) ) − F 3 ( [ [ u 4 ] ] {{ B − 2 }} + {{ u 4 }} ( − {{ B 2 }} {{ B − 2 }} 2 {{ B }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} + [ [ u 3 ] ] {{ u 4 }} + [ [ u 4 ] ] {{ u 3 }} ) ) ) − F 4 ( [ [ u 3 ] ] {{ B − 2 }} + {{ u 3 }} ( − {{ B 2 }} {{ B − 2 }} 2 {{ B }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} + [ [ u 3 ] ] {{ u 4 }} + [ [ u 4 ] ] {{ u 3 }} ) ) ) + 2 1 {{ B − 1 }} ( [ [ u 1 ] ] {{ u 2 }} {{ u 1 }} [ [ u 2 ] ] ) − 2 1 {{ A }} {{ B }} {{ B − 1 }} ( [ [ u 1 ] ] {{ u 2 }} + {{ u 1 }} [ [ u 2 ] ] + [ [ u 3 ] ] {{ u 4 }} + {{ u 3 }} [ [ u 4 ] ] ) − 2 3 {{ A B } } l o g − 1 ( {{ B }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} ) + {{ A }} ( [ [ u 1 ] ] {{ u 2 }} + [ [ u 2 ] ] {{ u 1 }} + [ [ u 3 ] ] {{ u 4 }} + [ [ u 4 ] ] {{ u 3 }} ) ) .
Defining
{ { C ~ } } : = { { C } } { { C − 2 } } { { C 2 } } , C ∈ { A , B } , \{\!\{\tilde{C}\}\!\} := \{\!\{C\}\!\}\frac{\{\!\{C^{-2}\}\!\}}{\{\!\{C^{2}\}\!\}}, \qquad C \in\{A,B\}, { { C ~ } } := { { C } } { { C 2 } } { { C − 2 } } , C ∈ { A , B } ,
we find
0 = [ u 1 ] ( 2 F 1 { { u 2 } } 2 { { A ~ } } + 2 f 1 { { u 2 } } 2 { { B ~ } } − F 2 { { A − 2 + B − 2 } } ) + 2 F 2 { { u 1 } } { { u 2 } } { { A ~ } } + 2 F 2 { { u 1 } } { { u 2 } } { { B ~ } } + 2 F 3 { { u 2 } } { { u 4 } } { { B ~ } } + 2 F 4 { { u 3 } } { { u 2 } } { { B ~ } } + 1 2 { { u 2 } } { { B − 1 } } − 1 2 { { u 2 } } { { A } } { { B − 1 } } { { B } } − 3 2 { { u 2 } } ( { { A } } + { { B } } ) { { A B } } log − 1 + [ u 2 ] ( − f 1 { { A − 2 + B − 2 } } + 2 f 1 { { u 1 } } { { u 2 } } { { A ~ } } + 2 f 1 { { u 1 } } { { u 2 } } { { B ~ } } ) + 2 F 2 { { u 1 } } 2 { { A ~ } } + 2 { { u 1 } } 2 { { B ~ } } + 2 F 3 { { u 1 } } { { u 4 } } { { B ~ } } + 2 F 4 { { u 1 } } { { u 3 } } { { B ~ } } + 1 2 { { u 1 } } { { B − 1 } } − 1 2 { { u 1 } } { { A } } { { B − 1 } } { { B } } − 3 2 { { u 1 } } ( { { A } } + { { B } } ) { { A B } } log − 1 + [ u 3 ] ( 2 f 1 { { u 2 } } { { u 4 } } { { B ~ } } + 2 F 2 { { u 1 } } { { u 4 } } { { B ~ } } + 2 F 3 { { u 4 } } 2 { { B ~ } } ) + F 4 ( 2 { { u 3 } } { { u 4 } } { { B ~ } } − { { B − 2 } } ) − 1 2 { { u 4 } } { { A } } { { B − 1 } } { { B } } − 3 2 { { u 4 } } { { A } } { { A B } } log − 1 + [ u 4 ] ( 2 f 1 { { u 2 } } { { u 3 } } { { B ~ } } + 2 F 2 { { u 1 } } { { u 3 } } { { B ~ } } + F 3 ( − { { B − 2 } } + 2 { { u 3 } } { { u 4 } } { { B ~ } } ) ) + 2 F 4 { { u 3 } } 2 { { B ~ } } − 1 2 { { u 3 } } { { A } } { { B − 1 } } { { B } } − 3 2 { { u 3 } } { { A } } { { A B } } log − 1 . \begin{aligned}
0={}&[u_1]\left(2F_1\{\!\{u_2\}\!\}^2\{\!\{\tilde{A}\}\!\}+2f_1\{\!\{u_2\}\!\}^2\{\!\{\tilde{B}\}\!\}-F_2\{\!\{A^{-2}+B^{-2}\}\!\}\right)\\
&+2F_2\{\!\{u_1\}\!\}\{\!\{u_2\}\!\}\{\!\{\tilde{A}\}\!\}+2F_2\{\!\{u_1\}\!\}\{\!\{u_2\}\!\}\{\!\{\tilde{B}\}\!\}+2F_3\{\!\{u_2\}\!\}\{\!\{u_4\}\!\}\{\!\{\tilde{B}\}\!\}+2F_4\{\!\{u_3\}\!\}\{\!\{u_2\}\!\}\{\!\{\tilde{B}\}\!\}\\
&+\frac{1}{2}\{\!\{u_2\}\!\}\{\!\{B^{-1}\}\!\}-\frac{1}{2}\{\!\{u_2\}\!\}\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-\frac{3}{2}\{\!\{u_2\}\!\}\left(\{\!\{A\}\!\}+\{\!\{B\}\!\}\right)\{\!\{AB\}\!\}_{\log}^{-1}\\
&+[u_2]\left(-f_1\{\!\{A^{-2}+B^{-2}\}\!\}+2f_1\{\!\{u_1\}\!\}\{\!\{u_2\}\!\}\{\!\{\tilde{A}\}\!\}+2f_1\{\!\{u_1\}\!\}\{\!\{u_2\}\!\}\{\!\{\tilde{B}\}\!\}\right)\\
&+2F_2\{\!\{u_1\}\!\}^2\{\!\{\tilde{A}\}\!\}+2\{\!\{u_1\}\!\}^2\{\!\{\tilde{B}\}\!\}+2F_3\{\!\{u_1\}\!\}\{\!\{u_4\}\!\}\{\!\{\tilde{B}\}\!\}+2F_4\{\!\{u_1\}\!\}\{\!\{u_3\}\!\}\{\!\{\tilde{B}\}\!\}\\
&+\frac{1}{2}\{\!\{u_1\}\!\}\{\!\{B^{-1}\}\!\}-\frac{1}{2}\{\!\{u_1\}\!\}\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-\frac{3}{2}\{\!\{u_1\}\!\}\left(\{\!\{A\}\!\}+\{\!\{B\}\!\}\right)\{\!\{AB\}\!\}_{\log}^{-1}\\
&+[u_3]\left(2f_1\{\!\{u_2\}\!\}\{\!\{u_4\}\!\}\{\!\{\tilde{B}\}\!\}+2F_2\{\!\{u_1\}\!\}\{\!\{u_4\}\!\}\{\!\{\tilde{B}\}\!\}+2F_3\{\!\{u_4\}\!\}^2\{\!\{\tilde{B}\}\!\}\right)\\
&+F_4\left(2\{\!\{u_3\}\!\}\{\!\{u_4\}\!\}\{\!\{\tilde{B}\}\!\}-\{\!\{B^{-2}\}\!\}\right)-\frac{1}{2}\{\!\{u_4\}\!\}\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-\frac{3}{2}\{\!\{u_4\}\!\}\{\!\{A\}\!\}\{\!\{AB\}\!\}_{\log}^{-1}\\
&+[u_4]\left(2f_1\{\!\{u_2\}\!\}\{\!\{u_3\}\!\}\{\!\{\tilde{B}\}\!\}+2F_2\{\!\{u_1\}\!\}\{\!\{u_3\}\!\}\{\!\{\tilde{B}\}\!\}+F_3\left(-\{\!\{B^{-2}\}\!\}+2\{\!\{u_3\}\!\}\{\!\{u_4\}\!\}\{\!\{\tilde{B}\}\!\}\right)\right)\\
&+2F_4\{\!\{u_3\}\!\}^2\{\!\{\tilde{B}\}\!\}-\frac{1}{2}\{\!\{u_3\}\!\}\{\!\{A\}\!\}\frac{\{\!\{B^{-1}\}\!\}}{\{\!\{B\}\!\}}-\frac{3}{2}\{\!\{u_3\}\!\}\{\!\{A\}\!\}\{\!\{AB\}\!\}_{\log}^{-1}.
\end{aligned} 0 = [ u 1 ] ( 2 F 1 { { u 2 } } 2 { { A ~ } } + 2 f 1 { { u 2 } } 2 { { B ~ } } − F 2 { { A − 2 + B − 2 } } ) + 2 F 2 { { u 1 } } { { u 2 } } { { A ~ } } + 2 F 2 { { u 1 } } { { u 2 } } { { B ~ } } + 2 F 3 { { u 2 } } { { u 4 } } { { B ~ } } + 2 F 4 { { u 3 } } { { u 2 } } { { B ~ } } + 2 1 { { u 2 } } { { B − 1 } } − 2 1 { { u 2 } } { { A } } { { B } } { { B − 1 } } − 2 3 { { u 2 } } ( { { A } } + { { B } } ) { { A B } } l o g − 1 + [ u 2 ] ( − f 1 { { A − 2 + B − 2 } } + 2 f 1 { { u 1 } } { { u 2 } } { { A ~ } } + 2 f 1 { { u 1 } } { { u 2 } } { { B ~ } } ) + 2 F 2 { { u 1 } } 2 { { A ~ } } + 2 { { u 1 } } 2 { { B ~ } } + 2 F 3 { { u 1 } } { { u 4 } } { { B ~ } } + 2 F 4 { { u 1 } } { { u 3 } } { { B ~ } } + 2 1 { { u 1 } } { { B − 1 } } − 2 1 { { u 1 } } { { A } } { { B } } { { B − 1 } } − 2 3 { { u 1 } } ( { { A } } + { { B } } ) { { A B } } l o g − 1 + [ u 3 ] ( 2 f 1 { { u 2 } } { { u 4 } } { { B ~ } } + 2 F 2 { { u 1 } } { { u 4 } } { { B ~ } } + 2 F 3 { { u 4 } } 2 { { B ~ } } ) + F 4 ( 2 { { u 3 } } { { u 4 } } { { B ~ } } − { { B − 2 } } ) − 2 1 { { u 4 } } { { A } } { { B } } { { B − 1 } } − 2 3 { { u 4 } } { { A } } { { A B } } l o g − 1 + [ u 4 ] ( 2 f 1 { { u 2 } } { { u 3 } } { { B ~ } } + 2 F 2 { { u 1 } } { { u 3 } } { { B ~ } } + F 3 ( − { { B − 2 } } + 2 { { u 3 } } { { u 4 } } { { B ~ } } ) ) + 2 F 4 { { u 3 } } 2 { { B ~ } } − 2 1 { { u 3 } } { { A } } { { B } } { { B − 1 } } − 2 3 { { u 3 } } { { A } } { { A B } } l o g − 1 .
From α [ u 1 ] + β [ u 2 ] + γ [ u 3 ] + δ [ u 4 ] = 0 \alpha[u_1]+\beta[u_2]+\gamma[u_3]+\delta[u_4]=0 α [ u 1 ] + β [ u 2 ] + γ [ u 3 ] + δ [ u 4 ] = 0 , it follows that α = β = γ = δ = 0 \alpha=\beta=\gamma=\delta=0 α = β = γ = δ = 0 , leading to the linear system (25).
Entropy-scaled right eigenvectors for two-layer thin film flow model
Here, we will compute the entropy-scaled right eigenvectors in x x x -direction using the Barth scaling procedure [43 ] . We first construct the right eigenvector matrix R x \mathbf{R}^x R x corresponding to the Jacobian matrix ∂ F ( U ) ∂ U \frac{\partial\mathbf{F}(\mathbf{U})}{\partial\mathbf{U}} ∂ U ∂ F ( U ) , which is given below,
( − f b f b − 3 g q 4 q b 0 0 1 f b − 3 g q 4 q f 0 0 0 g q − g q g q 0 1 1 1 ) . \begin{pmatrix}
-\frac{f}{b} & \frac{fb-3gq}{4qb} & 0 & 0\\
1 & \frac{fb-3gq}{4qf} & 0 & 0\\
0 & \frac{g}{q} & -\frac{g}{q} & \frac{g}{q}\\
0 & 1 & 1 & 1
\end{pmatrix}. − b f 1 0 0 4 q b f b − 3 g q 4 q f f b − 3 g q q g 1 0 0 − q g 1 0 0 q g 1 .
We want to determine the scaling matrix T x T^x T x that will allow the scaled right-eigenvector matrix R ~ x = R x T x \tilde{\mathbf{R}}^x=\mathbf{R}^xT^x R ~ x = R x T x to satisfy
∂ U ∂ V = R ~ x R ~ x T . (34) \frac{\partial\mathbf{U}}{\partial\mathbf{V}}=\tilde{\mathbf{R}}^x\tilde{\mathbf{R}}^{x\mathsf{T}}. \tag*{(34)} ∂ V ∂ U = R ~ x R ~ x T . (34)
where the entropy variable V \mathbf{V} V is defined in (12). Now we follow [43 ] and define the matrix
Y x = ( R x ) − 1 ∂ U ∂ V ( R x ) − T . \mathcal{Y}^x=(\mathbf{R}^x)^{-1}\frac{\partial\mathbf{U}}{\partial\mathbf{V}}(\mathbf{R}^x)^{-\mathsf{T}}. Y x = ( R x ) − 1 ∂ V ∂ U ( R x ) − T .
For b > 0 b>0 b > 0 , this yields
Y x = ( f b 3 ( b f + g q ) 2 4 f 2 b 2 + 4 b f g q + 2 g 2 q 2 0 0 0 0 8 b 3 f 3 q 2 ( b f + g q ) 3 ( b f − 3 g q ) ( 2 b 2 f 2 − 2 b f g q − 3 g 2 q 2 ) 0 0 0 0 q ( b f + g q ) 2 2 g 0 0 0 0 q ( b f + g q ) 3 2 g ( − b f + 3 g q ) ) , \mathcal{Y}^{x}=\begin{pmatrix}
\frac{fb^{3}(bf+gq)^{2}}{4f^{2}b^{2}+4bf gq+2g^{2}q^{2}} & 0 & 0 & 0\\
0 & \frac{8b^{3}f^{3}q^{2}(bf+gq)}{3(bf-3gq)(2b^{2}f^{2}-2bf gq-3g^{2}q^{2})} & 0 & 0\\
0 & 0 & \frac{q(bf+gq)^{2}}{2g} & 0\\
0 & 0 & 0 & \frac{q(bf+gq)^{3}}{2g(-b f+3gq)}
\end{pmatrix}, Y x = 4 f 2 b 2 + 4 b f g q + 2 g 2 q 2 f b 3 ( b f + g q ) 2 0 0 0 0 3 ( b f − 3 g q ) ( 2 b 2 f 2 − 2 b f g q − 3 g 2 q 2 ) 8 b 3 f 3 q 2 ( b f + g q ) 0 0 0 0 2 g q ( b f + g q ) 2 0 0 0 0 2 g ( − b f + 3 g q ) q ( b f + g q ) 3 ,
whereas, for b < 0 b<0 b < 0 , we obtain,
Y x = ( − f b 3 ( b f + g q ) 2 2 g q ( 2 b f + g q ) 0 0 0 0 8 b 3 f 3 q ( b f + g q ) 3 g ( − b f + 3 g q ) ( 2 b f + 3 g q ) 0 0 0 0 q ( b f + g q ) 2 2 g 0 0 0 0 q ( b f + g q ) 3 2 g ( − b f + 3 g q ) ) , \mathcal{Y}^{x}=\begin{pmatrix}
-\frac{fb^{3}(bf+gq)^{2}}{2gq(2bf+gq)} & 0 & 0 & 0\\
0 & \frac{8b^{3}f^{3}q(bf+gq)}{3g(-b f+3gq)(2bf+3gq)} & 0 & 0\\
0 & 0 & \frac{q(bf+gq)^{2}}{2g} & 0\\
0 & 0 & 0 & \frac{q(bf+gq)^{3}}{2g(-b f+3gq)}
\end{pmatrix}, Y x = − 2 g q ( 2 b f + g q ) f b 3 ( b f + g q ) 2 0 0 0 0 3 g ( − b f + 3 g q ) ( 2 b f + 3 g q ) 8 b 3 f 3 q ( b f + g q ) 0 0 0 0 2 g q ( b f + g q ) 2 0 0 0 0 2 g ( − b f + 3 g q ) q ( b f + g q ) 3 ,
Then the scaling matrix T x T^{x} T x is the square root of Y x \mathcal{Y}^{x} Y x . For b > 0 b>0 b > 0 it is given by,
T x = ( Θ 1 0 0 0 0 2 2 3 Θ 2 0 0 0 0 q ( b f + g q ) 2 2 g 0 0 0 0 q ( b f + g q ) 3 2 g ( − b f + 3 g q ) ) . T^{x}=\begin{pmatrix}
\Theta_{1} & 0 & 0 & 0\\
0 & 2\sqrt{\frac{2}{3}}\Theta_{2} & 0 & 0\\
0 & 0 & \sqrt{\frac{q(bf+gq)^{2}}{2g}} & 0\\
0 & 0 & 0 & \sqrt{\frac{q(bf+gq)^{3}}{2g(-b f+3gq)}}
\end{pmatrix}. T x = Θ 1 0 0 0 0 2 3 2 Θ 2 0 0 0 0 2 g q ( b f + g q ) 2 0 0 0 0 2 g ( − b f + 3 g q ) q ( b f + g q ) 3 .
where Θ 1 = f b 3 ( b f + g q ) 2 4 f 2 b 2 + 4 b f g q + 2 g 2 q 2 \Theta_{1}=\sqrt{\frac{fb^{3}(bf+gq)^{2}}{4f^{2}b^{2}+4bf gq+2g^{2}q^{2}}} Θ 1 = 4 f 2 b 2 + 4 b f g q + 2 g 2 q 2 f b 3 ( b f + g q ) 2 and Θ 2 = b 3 f 3 q 2 ( b f + g q ) ( b f − 3 g q ) ( 2 b 2 f 2 − 2 b f g q − 3 g 2 q 2 ) \Theta_{2}=\sqrt{\frac{b^{3}f^{3}q^{2}(bf+gq)}{(bf-3gq)(2b^{2}f^{2}-2bf gq-3g^{2}q^{2})}} Θ 2 = ( b f − 3 g q ) ( 2 b 2 f 2 − 2 b f g q − 3 g 2 q 2 ) b 3 f 3 q 2 ( b f + g q ) . For b < 0 b<0 b < 0 , the scaling matrix T x T^{x} T x is given by
T x = ( Θ 3 2 0 0 0 0 2 2 3 Θ 4 0 0 0 0 q ( b f + g q ) 2 2 g 0 0 0 0 q ( b f + g q ) 3 2 g ( − b f + 3 g q ) ) . T^{x}=\begin{pmatrix}
\frac{\Theta_{3}}{\sqrt{2}} & 0 & 0 & 0\\
0 & 2\sqrt{\frac{2}{3}}\Theta_{4} & 0 & 0\\
0 & 0 & \sqrt{\frac{q(bf+gq)^{2}}{2g}} & 0\\
0 & 0 & 0 & \sqrt{\frac{q(bf+gq)^{3}}{2g(-b f+3gq)}}
\end{pmatrix}. T x = 2 Θ 3 0 0 0 0 2 3 2 Θ 4 0 0 0 0 2 g q ( b f + g q ) 2 0 0 0 0 2 g ( − b f + 3 g q ) q ( b f + g q ) 3 .
where Θ 3 = f b 3 ( b f + g q ) 2 g q ( 2 b f + g q ) \Theta_{3}=\sqrt{\frac{fb^{3}(bf+gq)^{2}}{gq(2bf+gq)}} Θ 3 = g q ( 2 b f + g q ) f b 3 ( b f + g q ) 2 and Θ 4 = b 3 f 3 q ( b f + g q ) g ( − b f + 3 g q ) ( 2 b f + 3 g q ) \Theta_{4}=\sqrt{\frac{b^{3}f^{3}q(bf+gq)}{g(-b f+3gq)(2bf+3gq)}} Θ 4 = g ( − b f + 3 g q ) ( 2 b f + 3 g q ) b 3 f 3 q ( b f + g q ) . Finally, we present the complete expressions for the entropy-scaled right eigenvector matrices in the x x x and y y y -directions for b > 0 b>0 b > 0 , which are given below:
( − f Θ 1 b Θ 2 6 ( b f − 3 g q b q ) 0 0 Θ 1 Θ 2 6 ( b f − 3 g q f q ) 0 0 0 2 3 2 g Θ 2 q − g ( b f + g q ) 2 2 q g ( b f + g q ) 3 2 q ( − b f + 3 g q ) 0 2 3 2 Θ 2 q ( b f + g q ) 2 2 g q ( b f + g q ) 3 2 g ( − b f + 3 g q ) ) . \begin{pmatrix}
-\frac{f\Theta_{1}}{b} & \frac{\Theta_{2}}{\sqrt{6}}\left(\frac{bf-3gq}{bq}\right) & 0 & 0\\
\Theta_{1} & \frac{\Theta_{2}}{\sqrt{6}}\left(\frac{bf-3gq}{fq}\right) & 0 & 0\\
0 & \sqrt{\frac{2}{3}}\frac{2g\Theta_{2}}{q} & -\sqrt{\frac{g(bf+gq)^{2}}{2q}} & \sqrt{\frac{g(bf+gq)^{3}}{2q(-b f+3gq)}}\\
0 & \sqrt{\frac{2}{3}}2\Theta_{2} & \sqrt{\frac{q(bf+gq)^{2}}{2g}} & \sqrt{\frac{q(bf+gq)^{3}}{2g(-b f+3gq)}}
\end{pmatrix}. − b f Θ 1 Θ 1 0 0 6 Θ 2 ( b q b f − 3 g q ) 6 Θ 2 ( f q b f − 3 g q ) 3 2 q 2 g Θ 2 3 2 2 Θ 2 0 0 − 2 q g ( b f + g q ) 2 2 g q ( b f + g q ) 2 0 0 2 q ( − b f + 3 g q ) g ( b f + g q ) 3 2 g ( − b f + 3 g q ) q ( b f + g q ) 3 .
and the entropy-scaled right eigenvector matrices in the x x x and y y y -directions for b < 0 b<0 b < 0 is are given below:
( − f b 2 Θ 3 Θ 4 6 ( b f − 3 g q b q ) 0 0 Θ 3 2 Θ 4 6 ( b f − 3 g q f q ) 0 0 0 2 3 2 g Θ 4 q − g ( b f + g q ) 2 2 q g ( b f + g q ) 3 2 q ( − b f + 3 g q ) 0 2 3 2 Θ 4 q ( b f + g q ) 2 2 g q ( b f + g q ) 3 2 g ( − b f + 3 g q ) ) . \begin{pmatrix}
-\frac{f}{b\sqrt{2}}\Theta_{3} & \frac{\Theta_{4}}{\sqrt{6}}\left(\frac{bf-3gq}{bq}\right) & 0 & 0\\
\frac{\Theta_{3}}{\sqrt{2}} & \frac{\Theta_{4}}{\sqrt{6}}\left(\frac{bf-3gq}{fq}\right) & 0 & 0\\
0 & \sqrt{\frac{2}{3}}\frac{2g\Theta_{4}}{q} & -\sqrt{\frac{g(bf+gq)^{2}}{2q}} & \sqrt{\frac{g(bf+gq)^{3}}{2q(-b f+3gq)}}\\
0 & \sqrt{\frac{2}{3}}2\Theta_{4} & \sqrt{\frac{q(bf+gq)^{2}}{2g}} & \sqrt{\frac{q(bf+gq)^{3}}{2g(-b f+3gq)}}
\end{pmatrix}. − b 2 f Θ 3 2 Θ 3 0 0 6 Θ 4 ( b q b f − 3 g q ) 6 Θ 4 ( f q b f − 3 g q ) 3 2 q 2 g Θ 4 3 2 2 Θ 4 0 0 − 2 q g ( b f + g q ) 2 2 g q ( b f + g q ) 2 0 0 2 q ( − b f + 3 g q ) g ( b f + g q ) 3 2 g ( − b f + 3 g q ) q ( b f + g q ) 3 .