Next Article in Journal
A Post-Processing Method for Quantum Random Number Generator Based on Zero-Phase Component Analysis Whitening
Previous Article in Journal
VFL-Cafe: Communication-Efficient Vertical Federated Learning via Dynamic Caching and Feature Selection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Shannon Entropy Computations in Navier–Stokes Flow Problems Using the Stochastic Finite Volume Method

by
Marcin Kamiński
* and
Rafał Leszek Ossowski
Faculty of Civil Engineering, Architecture and Environmental Engineering, Lodz University of Technology, 90-924 Łódź, Poland
*
Author to whom correspondence should be addressed.
Entropy 2025, 27(1), 67; https://doi.org/10.3390/e27010067
Submission received: 14 October 2024 / Revised: 28 December 2024 / Accepted: 9 January 2025 / Published: 14 January 2025
(This article belongs to the Section Multidisciplinary Applications)

Abstract

:
The main aim of this study is to achieve the numerical solution for the Navier–Stokes equations for incompressible, non-turbulent, and subsonic fluid flows with some Gaussian physical uncertainties. The higher-order stochastic finite volume method (SFVM), implemented according to the iterative generalized stochastic perturbation technique and the Monte Carlo scheme, are engaged for this purpose. It is implemented with the aid of the polynomial bases for the pressure–velocity–temperature (PVT) solutions, for which the weighted least squares method (WLSM) algorithm is applicable. The deterministic problem is solved using the freeware OpenFVM, the computer algebra software MAPLE 2019 is employed for the LSM local fittings, and the resulting probabilistic quantities are computed. The first two probabilistic moments, as well as the Shannon entropy spatial distributions, are determined with this apparatus and visualized in the FEPlot software. This approach is validated using the 2D heat conduction benchmark test and then applied for the probabilistic version of the 3D coupled lid-driven cavity flow analysis. Such an implementation of the SFVM is applied to model the 2D lid-driven cavity flow problem for statistically homogeneous fluid with limited uncertainty in its viscosity and heat conductivity. Further numerical extension of this technique is seen in an application of the artificial neural networks, where polynomial approximation may be replaced automatically by some optimal, and not necessarily polynomial, bases.

1. Introduction

Uncertainty in fluid flows is remarkably less frequently studied in computational mechanics [1] than in solids and structure deformations [2,3], but following physical observations, it seems to be more natural and accurate. Further, it is usually characterized by decisively larger statistical scattering of state-dependent physical parameters, so that uncertainty quantification and/or propagation may exhibit unpredictable and highly nonlinear characteristics. Uncertainty quantification in both fluids and solids is traditionally delivered with the help of various implementations of the stochastic finite element method (SFEM) [4], whereas analogous extensions of other discrete numerical methods are definitely less popular, and even scarce. This specifically applies to the finite volume method (FVM) [5,6], which seems to be more efficient than the FEM in many fluid flow problems described by the Navier–Stokes equations [7,8,9,10]. The FVM is decisively less popular in computational mechanics than the FEM, but its implementations and applications in stress analysis [11], multiscale analyses [12,13], and heterogeneous media [14] make this methodology more attractive, useful, and accurate. Common usage of the FVM with machine learning algorithms [15], along with new research paths including adaptivity [16] or mimetic algorithms [17], are observed. There is well documented evidence in the literature of the application of this method to solve a huge variety of stochastic problems, e.g., conservation laws in physical systems [18], computer science issues [19], flow problems [10], and energy simulations [20].
It is well known that modern stochastic analysis is usually based upon determination of the basic probabilistic moments and coefficients of the state functions for the given computational domain [21], including recently developed methods with fractional derivatives [22]. This enables the further discussion and justification of statistical correlations between different mechanical and physical fields in regards to reliability analysis [23]. Direct determination of the resulting probability functions in the given system, exhibiting some random parameters, is still explored, i.e., Ref. [24]; nevertheless an alternative method consists of the estimation (or direct computation) of probabilistic entropy. It can be determined using discrete or continuous probability measures for the physical quantity of interest. Shannon entropy [25,26,27] is most frequently applicable to assess complexity, diversity, disorder, or chaos, and some mathematical models applied successfully in image analysis [28,29], computer science [30], information theory [26,31], economics [32], physics, and engineering [33,34], and employing this entropy may attract increasing interest and importance.
Therefore, the main idea of this work is a utilization of the stochastic finite volume method (SFVM) [35] for the determination of the spatial distribution of the Shannon theory for fully coupled Navier–Stokes equations relevant to the fluid flow problems in the presence of specific physical uncertainty. This is not the first attempt to include entropy application in fluid flows analysis [34,36]; however, the approach proposed combines different computational strategies to achieve this goal and to deliver a comparison of the entropy-based method with the existing moments-based approaches. It is based upon combined polynomial interpolation and the weighted least squares method (WLSM) recovery of polynomial bases, linking the PVT solutions with the physical parameters of the analyzed fluid. Random polynomials of some physical characteristics of the fluid are used in the stochastic perturbation method for Taylor expansions to calculate probabilistic moments in the given flow problem [4]. These polynomials are next engaged in Monte Carlo simulations (MCS), enabling Shannon entropy computations at the discrete finite volume level. Two numerical examples are presented here, namely (i) heat transfer in some trapezoidal plates and (ii) the 3D lid-driven cavity flow benchmark CFD, where Gaussian heat conductivity is considered. These two case studies enable a contrast of the first two probabilistic moments maps with those representing Shannon entropy, as well as analysis of the probabilistic convergence of all probabilistic responses, while increasing the size of the generated population in the MCS approach. These studies confirm several observations made in computational solid mechanics analyses, especially the fact that extreme values of the resulting coefficients of variation of the PVT solution coincide very well with those of Shannon entropy. Additionally, this work documents a coincidence of the maps for these two parameters, which may affect further studies in computational mechanics.

2. Uncertainty in Navier–Stokes Equations

The system of basic equilibrium Navier–Stokes equations, to be extended towards stochastic analysis and to be solved numerically, can be written in the given computational domain Ω for the unknown fluid state functions, i.e., velocities, vi = vi(x); pressure, p = p(x); temperature, θ = θ(x) ( x Ω ), as follows [37]:
ρ v i t + v i , j v j = σ i j , j + f ˜ i ,
v i , i = 0 ,
σ i j = p δ i j + 2 μ ε i j ,
ρ c θ t + θ , i v i = k θ , i , i + q ˜ i ,
where the following geometrical equation is adopted:
ε i j = 1 2 v i , j + v j , i = 1 2   v i x j + v j x i ,       i = 1 , 2 , 3 .
Here, the second-order symmetric tensors σ i j , ε i j represent the stress and strain states for the given fluid, whose viscosity is traditionally denoted by μ, its heat conductivity by k, its heat capacity as c, and the mass density as ρ. These equations are relevant to the macroscopically homogeneous single-phase fluid, although they may also be rewritten and solved in case of any heterogeneity. The following general boundary conditions need to be imposed here:
v i = v ^ i ; x Ω v ,
σ i j n j = f ^ i ; x Ω σ ,
θ = θ ^ ; x Ω Θ
k θ x = q ^ ; x Ω q .
Variational formulation of this problem is introduced in the following way:
Ω δ v i ρ v ˙ i + v i , j v j d Ω + Ω δ v i , j 2 μ ε i j p δ i j d Ω = Ω δ v i f ˜ i d Ω + Ω δ v i f ^ i d Ω σ .
Ω δ p v i , i d Ω = 0 ,
Ω δ θ ρ c θ ˙ + θ , i v i d Ω + Ω k δ θ , i θ , i d Ω = Ω δ θ q ˜ d Ω + Ω q δ θ ^ q ^ d Ω .
It is further assumed that some physical parameters of the analyzed fluid exhibit Gaussian uncertainty within the first two given moments [38]. An extension of the aforementioned equations to uncertainty analysis involves using the generalized stochastic perturbation technique. For this purpose, let us consider a random variable b and its probability density function (PDF) by pb(x) so that its expectation can be defined as follows:
E b = + x   p b x   d x
assuming no additional truncation, in this case. Further, one can define the central probabilistic moment of the mth order as follows:
μ m b = + b E b m p b x d x .
Let us consider the following representation of the random function v(b) with respect to its parameter b around its mean value [4,35], as follows:
v b = v 0 b 0 + ε v b b b = b 0 Δ b + + ε n n ! n v b b n b = b 0 Δ b n
where ε is a given perturbation parameter, while the nth-order variation of a random variable is given as follows:
ε n Δ b n = δ b n = ε n b b 0 n
Taking into account the partial derivatives of physical system function v(b), this function should be continuous and differentiable at the mean value of the input random parameter b = b0, which condition is fulfilled using polynomial, power, hyperbolic, and harmonic, as well as exponential, functions. Then, the expected values are evaluated from Equation (13) using the 10th-order expansion, with ε = 1, as follows:
E v b = v 0 b 0 + 1 2 2 v b b 2 b = b 0 μ 2 b 0 + 1 4 ! 4 v b b 4 b = b 0 μ 4 b 0 + 1 6 ! 6 v b b 6 b = b 0 μ 6 b 0 + 1 8 ! 8 v b b 8 b = b 0 μ 8 b 0 + 1 10 ! 10 v b b 10 b = b 0 μ 10 b 0
It is assumed that the input random variable b exhibits symmetrical, but not necessarily Gaussian, distribution to eliminate all odd-order term expansion components (uniform or symmetric triangular distributions are admissible here as well).
A precision of the expected value determination (and also variances) using this tenth-order approach has been demonstrated in the first numerical experiment. Assuming that the variable b exhibits Gaussian distribution, one may simply derive its higher-order central probabilistic moments in the following way:
μ p b =                   0 ;                   p = 2 k + 1 σ b p p 1 ! ! = σ b p p 1 p 3 . 5 3 ;   p = 2 k
for any natural k 1 , the expansions relevant to higher-order statistics in this methodology can be found in Ref. [4]. Uncertainty analysis, based upon probabilistic moments and coefficients, has some well-known limitations and may be biased due to some unpredictable numerical errors; therefore, a concept of probabilistic entropy has been proposed by Shannon [25] and then extended by many researchers. It states that uncertainty in the given technical system, quantified by a real valued function f = f(b), where b is this uncertainty source, may be quantified by a real number h, as follows:
h f b = i = 1 n p i f b ln p i f b  
where n stands here for the number of possible different states of this system. Because a coefficient of variation (CoV) was dominantly used in stochastic computational mechanics to discuss uncertainty importance and propagation in the given boundary value problem, a comparison of the Shannon entropy distribution with the analogous distribution of the CoV for the given benchmark problem is delivered in the following sections.

3. Stochastic Finite Volume Method

The following polynomial basis is proposed for the resulting discrete temperature field T β in the presence of an uncertainty source b [4]:
T β   =   D β m T b m ,     m = 0 , , n 1 ; β = 1 , , N ,
where D β m T stands for a rectangular matrix of the unknown polynomial coefficients, so that the following continuous approximation is adopted:
θ x i =   ϕ β x i     T β = ϕ β x i     D β m T b m ,       i = 1 ,   2 ; β = 1 ,   2 , , N ; m = 0 , , n 1 ;
where ϕ β and T β are traditional deterministic shape functions. The temperature gradients are similarly determined as follows:
θ , j = ϕ β , j   T β = ϕ β , j   D β m T b m ,         i = 1 ,   2 , m = 0 , , n 1 .
Analogous representation is proposed for the pressures as follows:
P β   =   D β m p b m ,   m = 0 , , n 1 ; β = 1 , , N ,
as well as for the fluid velocities. These interpolation (or approximation) functions inherent in the response function method (RFM) follow the series of the given flow problem solutions, where the input uncertainty parameter b is initially discretized in a uniform way within the given lower and upper bounds. One introduces several uniform subdivision of the interval [inf(b), sup(b)], getting the set {b1, b2,…, bp}, and iteratively solves the Navier–Stokes equations system for a discrete value of this parameter b. This parametrization is introduced in the following thermodynamic equilibrium equations with the additional upper index α = 1,…, p, whose natural value usually does not increase above one hundred.
As is well known, the basic idea behind the FVM is an application of the Gauss–Ostrogradsky divergence theorem to replace the volumetric integrals inherent in governing Equations (10)–(12), with the surface integrals rewritten for all the finite volumes, completely composing the entire computational domain. The contribution of each finite volume to the global equilibrium equation is represented by the contribution of its center, as well as its outer faces. It remarkably differs from the FEM and the boundary element method (BEM) discretization [37,39], in which the significance of each element traditionally depends upon the contributions of their nodal points.
Therefore, Equation (10) is discretized in each local finite volume l, as follows [40,41,42]:
ρ α Δ U α Δ t l + 1 V l j = 1 n s ρ j α U j α U j α A j 1 V l j = 1 n s μ j α U j α A j = U α l μ l α P α l + ρ l α g α
where Vl denotes the lth finite volume (in Figure 1). The pressure gradient in xi direction is calculated with the use of the Gauss integration scheme, as follows [35,40]:
P l α x i = 1 V l j = 1 n s P j α A j n j
where Aj is the area of the face j, nj denotes the versor of this surface directed outwards, and α = 1,, M. An analogous procedure is proposed for the velocities, e.g.,
U l α = 1 V l j = 1 n s U j α A j n j
where the central differencing scheme is applied to determine the given value at the cell face center. The following definitions are adopted, yielding:
K l U α = ρ l α Δ t + 1 V l j = 1 n s 1 χ ρ j α U j α A j + μ j α A j d j K ¯ l j U α = 1 V l χ ρ j α U j α A j μ j α A j d j Q l U α = ρ l α U l α t Δ t Δ t 1 V l j = 1 n s P j α A j n j ρ l α g α + U l α t Δ t μ l α t Δ t
Finally, the following algebraic equations system is obtained for the lth finite volume:
K l U α U l α t + j = 1 n s K ¯ l j U α U ¯ l j α t = Q l U α
The variable U ¯ l j α t is the so-called velocity face flux adjacent to the finite volume l and its j outer plane computed at time t for the response function test indexed with α. The global momentum equation in the RFM-based FVM is rewritten as follows:
l = 1 N K l U α U l α t + l = 1 N j = 1 n s K ¯ l j U α U ¯ l j α t = l = 1 N Q l U α
The central differencing scheme, with the coefficient χ as the (linear) interpolation factor connecting the given finite volume and its particular face j, is introduced to evaluate the given scalar field at the cell face center. The continuity equation, cf. Equation (11), is discretized similarly on the finite volume level as follows:
j = 1 n s U j α A j = 0
Then, the following matrix equation for pressures (for the finite volumes center contribution and the finite volumes face, separately) is applied:
K l P α P l α t + j = 1 n s K ¯ l j P α P ¯ l j α t = Q l P α
where its global version is provided as follows:
l = 1 N K l P α P l α t + l = 1 N j = 1 n s K ¯ l j P α P ¯ l j α t = l = 1 N Q l P α
Finally, the SFVM discretization of the heat transfer equation is proposed as follows:
K l T α T l α t + j = 1 n s K ¯ l j T α T ¯ l j α t = Q l T α
where
K l T α = ρ l α c l α Δ t + U l i α 1 V l ρ l α c l α j = 1 n s 1 χ A l j n l j i + k l α A j d j K ¯ l j T α = U l i α 1 V l ρ l α c l α χ A l j n j l i   ,       i = 1 , 2 , 3 Q l T α = ρ l α c l α Δ t T l α t Δ t + φ l α
and φ l α is the viscous dissipation in the lth finite volume and the αth RFM numerical test. Therefore, the global heat transfer equation for the SFVM yields [35] the following:
l = 1 N K l T α T l α t + l = 1 N j = 1 n s K ¯ l j T α T ¯ l j α t = l = 1 N Q l T α
Having determined the series of the PVT solutions for the given flow problem, one needs to complete the polynomial representations for these solutions proposed in Equations (21)–(23), which can be achieved using an interpolation or approximation method. Usually, polynomial interpolation or the least squares method (LSM) is preferred, although some spline techniques or artificial intelligence tools can be engaged as well. Finally, the calculation of the first two probabilistic moments of the temperature begins analytically in the following way:
E T b , x = + T b , x   p b t d t = + D β m T b m   p b t d t
V a r T b , x = + T b , x E T b , x 2   p b t d t = + D β m T b m E T b , x 2   p b t d t
In case of the existence of the abovementioned integrals, the results are identical in the probabilistic context, and such a methodology is called the semi-analytical method (SAM), due to the approximative character of the temperature representations. In general, one may apply the generalized Taylor expansion proposed by Equation (15), and then the expression describing expectations (Equation (17)) will be enriched with the approximating polynomials. This approach is usually called the stochastic perturbation technique, in which the tenth order is applicable in the given test flow problems. Finally, the statistical counterparts of Equations (36) and (37) are used in the classical Monte Carlo scheme, whose numerical accuracy is biased by the total number of random trials.

4. Numerical Simulation

4.1. The 2D Heat Transfer Benchmark Test

The first example shows the numerical solution of the heat transfer in a trapezoidal plate with two elementary finite volumes’ discretization. This benchmark example has been attached to validate computational implementation of the proposed SFVM and also to verify the numerical convergence of the entire procedure. This case study has been entirely coded in the MAPLE computer algebra system, where the FVM equations, Monte Carlo simulation relevant to the uncertainty quantification, as well as Shannon entropy computations have been compiled. The geometry of this benchmark test is shown schematically in Figure 2, where a constant source of heat q = 8.0 N   m s   kg has been applied, and the material density of the plate equals ρ = 1.0 kg m 3 , whereas the heat conductivity κ is the given Gaussian uncertainty source, and it has been identified using its first two probabilistic moments E[κ] = 2.0 N/K·s, while its coefficient of variation equals 0.05. The boundary conditions imposed on this plate are relevant to a heating of the upper surface and a maintenance of zero values at the lower surface, as shown in Figure 2.
An approximation of the integrals using the midpoint rule and the derivatives at the CV faces obtained using the second-order central differences yields the following algebraic system of equations:
98 T 1 17 T 2 = 1386   98 T 2 17 T 1 = 1746 .
The final deterministic solution for the two temperatures obtained in this case is obtained as follows:
T 0 = 2452 69 1 κ 2884 69 1 κ .
Two polynomial functions relating the resulting temperatures with the heat conductivity κ have been determined using the polynomial interpolation function embedded in the CurveFitting library of the MAPLE system.
Figure 3 presents the statistical estimators of the expectations (left graph) and the coefficient of variation (right graph) for the temperatures computed using the deterministic scheme of the finite volume method, in conjunction with the Monte Carlo simulation routines for 125, 250, 500, 1000, 2000, 5000, 10.000, 20.000, 50.000, 100.000, and finally, 200.000 random samples in the MAPLE system. The results of these simulations are shown in Figure 3, including the expectations of convergence (a) and the coefficients of variation convergence (b). Figure 4 illustrates the probabilistic convergence of both discrete temperatures; the horizontal axes in these graphs include a logarithm of an increasing MCS sample number. The first two moments have been estimated directly using the Statistics library of this system, while Shannon entropy has been determined by the partitioning of the histograms created in MAPLE; the additional script has been created for this purpose.
These two figures confirm that the fastest convergence is traditionally obtained for the lowest order probabilistic moment (expected value), where good accuracy is obtained even for about 103 random trials. Satisfactory accuracy of the coefficients of variation is noticed while applying 5 × 104 repetitions in the MCS approach. Reasonable convergence of Shannon entropy is determined with 2 × 105, which means that reliable results in entropy analysis demand remarkably larger sizes of populations and computer effort. It is interesting that the coefficients of variation of both temperatures are almost the same, while the expectations and Shannon entropies display remarkably different values in the two discrete points under consideration. This partially confirms the previous observations made for nonlinear solids [43] that Shannon entropy shows the trends relevant to the expectations and coefficients of variation at the same time, so that instead of two graphs, a single uncertainty propagation graph may be analyzed.
Additional observations for the Shannon entropies can be made while varying both the total number of random trials and the expectation of the randomized heat conductivity k, which is reported in Figure 5 below. This is separately delivered for the two given discrete volumes. This data confirms the high impact of the Shannon entropy to this expectation, whose increase remarkably decreases the entropy of interest. Furthermore, larger expectations of the heat conductivity results in a monotonous increase in the Shannon entropy, while increasing the size of the MCS analysis, and inversely, smaller expectations of random input cause a monotonous decrease in this entropy to its theoretical limit.
This benchmark test has also been used to contrast the first two moment computations computed using the simulation method (MCS solution) with a semi-analytical approach (SAM solution), where symbolic integration has been delivered, and also with the stochastic perturbation approach of the tenth order (SPT solution). This study is attached to check a validity range of the SPT technique, whose time and computer power usage is close to those of the deterministic case study solution. The results are shown in Figure 6 and Figure 7 below for two discrete volumes in the function of an increasing input uncertainty in this model, i.e., α(κ) ∈ [0.00,0.25], which corresponds to a huge uncertainty regarding the temperature-independent physical characteristics of solids. Due to the nature of the specific solutions, the stochastic perturbation and semi-analytical methods return continuous functions with respect to this parameter α(κ) when the simulation for each discrete value α(κ) = 0.025*n, where natural n = 1, …, 10. The results cannot be deduced from Figure 6 and Figure 7.
The expected values contained in Figure 6a,b coincide perfectly with each other for all three methods and for any input uncertainty level. This coincidence is expected, even for lower-order stochastic perturbation theories; nevertheless, the existence of semi-analytical trend in these results depends upon specific stochastic responses of the given physical systems. Not all response functions (except polynomial types) can be relatively easily integrated using the Gaussian probability density function (PDF). This methodology may also fail when non-Gaussian PDF is chosen for a particular physical motivation; then, the application of polynomial approximations may not return the exact analytical result. These effects are also expected for higher-order statistics, for which symbolic integration is more complex. All the trends of both expectations are nonlinear, smooth, and convex, so one can also extrapolate from these curves a propagation of the expected values out of this interval. Figure 7 presents additional information concerning the second-order statistics (variance), where almost perfect agreement is restricted to the interval α(κ) = [0.00, …, 0.20].
Eventually, all the methods start to diverge from each other, and the largest values come from the MCS approach, with smaller values resulting from the analytical approach (SAM curve), while the SPT trend begins to underestimate this probabilistic moment. It is likely that the greatest precision in the SPT approach could be achieved by systematically increasing the order of this method while increasing the input uncertainty level above the critical value α(κ) = 0.20. One also notices that the general trend is almost linear from the very beginning, and then for about α(κ) = 0.20, it falls into a curvilinear mode, and the extrapolation for larger input uncertainties may be biased, with a higher modeling error; the second moments are remarkably close to each other for two given finite volumes. Concluding this benchmark test, one may assume that the usage of the time-consuming Monte Carlo simulation for numerical analysis of the basic probabilistic characteristics of the physical responses in linear systems with limited input uncertainty may be replaced with some alternative techniques, but this is not the case for Shannon entropy, where statistical estimation of the histogram remains the best approach.
The final part of this numerical experiment has been devoted to the verification of the importance of the two input parameters inherent in the generalized stochastic perturbation technique—the input coefficient of variation of the heat conductivity and the perturbation parameters. The absolute differences between the fourth and the second O4, the sixth and the fourth O6, the eighth and the sixth O8, as well as the tenth and the eighth O10, are presented on Figure 8.
Both graphs well-document that the differences between the neighboring even orders of the Taylor expansions vanish rapidly when increasing the order of this methodology. These differences quite expectedly increase while increasing the input uncertainty level and the perturbation parameter value above the traditionally accepted value of one. The precision of the tenth-order perturbation scheme can be validated by contrasting these two figures with Figure 6a and Figure 7a, respectively. Taking into account ε = 1 and the extreme value of the input CoV equal to 0.25, it is observed that the modeling error in the expectations is remarkably smaller than 1%, which confirms the sufficient precision of the determination of the first two moments. An analogous error while computing the coefficient of variation for the same combination of input parameters equals about 2.5%; nevertheless, an application of the input CoV equal to 5% in the first case and 10% in the second case, makes this error negligible. This discussion may gain importance when considering temperature-dependent physical parameters, for which uncertainty propagation may be highly nonlinear during heating or coupled heat and mass transfer processes.

4.2. The 3D Coupled Lid-Driven Cavity Flow

Let us consider a cube of unit dimensions discretized into 400 equal cubic finite volumes containing a fluid with the following physical parameters—density, specific heat, thermal conductivity, and viscosity (both CoVs equal 0.10). These two parameters are randomized separately, according to the Gaussian distribution, to distinguish the influence of their uncertainty on the PVT solution of the given fluid flow problem. The boundary conditions introduced for this cube relevant to the forced uniform flow at the upper surface and the surface temperature difference between the upper and lower surface are schematically shown in Figure 9.
The problem is restricted to 2D analysis to provide a more apparent final visualization of the resulting state functions and their basic probabilistic characteristics. The time increment has been set as Δt = 0.10 s, and the computations have been stopped after 10 s. It is clear that a composition of the physical parameters of the fluid is artificial and is taken to complete this benchmark test, while realistic fluids analysis would be more demanding. Computational analysis has been performed with hybrid usage of three different computer systems, namely (a) OpenFVM (a series of the few deterministic Navier–Stokes problem solutions, with some varying physical parameters) [44], (b) symbolic environment of the mathematical package MAPLE [45] (WLSM fitting), and (c) the freeware FEPlot 3.1 [35] (visualization of probabilistic moments and entropy).
The expected values, coefficients of variation, and Shannon entropies of the resulting temperatures in two tests, including random viscosity (a) and heat conductivity (b), are shown in Figure 10, Figure 11 and Figure 12 below. It is rather natural and intuitively clear that the expected values of the temperatures in both problems are almost equal to each other (Figure 10), and they increase moderately from the upper to the lower surface of this quadratic cavity, resulting from the thermal boundary conditions presented in Figure 9. Negligible boundary temperature fluctuations throughout the upper and lower edges are caused by the rotational character of this particular flow.
First of all, it is noticeable that the coefficients of variation, as well as probabilistic entropies, exhibit similar spatial distributions; this similarity holds true for both uncertainty sources separately. These parameters are, at the same time, completely different from the corresponding distributions of the expectations.
Moreover, one notices that the uncertainty in fluid viscosity causes extreme uncertainty of the temperature distribution (the largest values of the CoV and entropy) in some part of the right vertical edge of this computational domain. Analogous uncertainty in the fluid’s heat conductivity results in the extremes near the upper left corner, quite close to the cavity inlet. Interestingly, the minimum values of the resulting temperature uncertainty (close to 0, which is adjacent to the deterministic situation) form almost the same patterns within the given 2D domain for the fluid viscosity and a very similar pattern to that of the random heat conductivity case. Finally, it is remarkable that larger CoVs and Shannon entropies are noticed while randomizing heat conductivity than the corresponding values obtained for fluid viscosity. It agrees well with engineering intuition and may serve as some verification of this probabilistic solution.

5. Concluding Remarks

(1)
Shannon entropy determination for the PVT solution of the fluid flow problems with uncertainty, solved using the stochastic finite volume method, has been presented in this work. This approach uses fully coupled Navier–Stokes equations and dual probabilistic methodology, based on the generalized stochastic perturbation method, as well as the Monte Carlo simulation technique. It has been demonstrated here that the spatial distribution of probabilistic entropies is very close to the additional distribution of the coefficients of variation of the given fluid state function and may be useful in further uncertainty analysis for flow problems. This coincidence is observed for two different physical properties of the fluid, namely heat conductivity and viscosity, so the results do not appear to be accidental. Additionally, the probabilistic convergence of Shannon entropy has been documented using two discrete volumes, discretizing some planar heat conduction problems. Therefore, Shannon entropy would be advisable to illustrate uncertainty propagation in the flow problem instead of a series of the probabilistic moments and coefficients, which need to be studied together to achieve the same goal. It should be highlighted that contrary to the existing research in computational mechanics, this study enables the spatial distributions of Shannon entropy throughout the entire computational domain, and this entropy exhibits local characteristics connected with the discrete finite volume.
(2)
The numerical solution presented here is based on the hybrid usage of the open source FVM program, a computer algebra system for probabilistic analyses, and the LSM fittings, as well as FEPlot software to complete a visualization of the resulting probabilistic moments and entropies. Further implementations focus on a closer interfacing of these three systems, as well as on the parameter sensitivity of the resulting entropy concerning the histogram partitioning, the Monte Carlo random trials number, the input uncertainty level, as well as the FVM time and the spatial discretization of the given flow problem. It may be that due to the numerical error of the solution itself or erroneous definition of the aforementioned problem parameter settings, Shannon entropy distribution computation would be inefficient. In case of any possible numerical discrepancies, other probabilistic entropy models could be considered.

Author Contributions

Methodology, M.K.; Software, M.K. and R.L.O.; Validation, M.K. and R.L.O.; Formal analysis, R.L.O.; Investigation, R.L.O.; Data curation, R.L.O.; Writing—original draft, M.K. and R.L.O.; Writing—review & editing, M.K.; Visualization, R.L.O.; Supervision, M.K.; Project administration, M.K.; Funding acquisition, M.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work contains the results obtained in the framework of the research grant OPUS No. 2021/41/B/ST8/02432, “Probabilistic Entropy in Engineering Computations”, sponsored by the National Science Center in Cracow, Poland, in the period of 2022–2025.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Wan, X.; Karniadakis, G.E. Long-term behavior of polynomial chaos in stochastic flow simulations. Comput. Methods Appl. Mech. Eng. 2006, 195, 5582–5596. [Google Scholar] [CrossRef]
  2. Ghanem, R.G.; Spanos, P.D. Stochastic Finite Elements: A Spectral Approach; Courier Corporation: New York, NY, USA, 2003. [Google Scholar]
  3. Xu, X.F.; Graham-Brady, L. A stochastic computational method for evaluation of global and local behavior of random elastic media. Comput. Methods Appl. Mech. Eng. 2005, 194, 4362–4385. [Google Scholar] [CrossRef]
  4. Kamiński, M. The Stochastic Perturbation Method for Computational Mechanics; Wiley: Chichester, UK, 2013. [Google Scholar]
  5. Li, R.; Chen, Z.; Wu, W. Generalized Difference Methods for Differential Equations. Numerical Analysis of Finite Volume Methods; CRC Press: Boca Raton, FL, USA, 2000. [Google Scholar]
  6. Moukalled, F.; Mangani, L.; Darwish, M. The Finite Volume Method in Computational Fluid Dynamics. An Advanced Introduction with OpenFOAM® and Matlab; Springer Nature: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
  7. Tokareva, S.; Zlotnik, A.; Gyrya, V. Stochastic finite volume method for uncertainty quantification of transient flow in gas pipeline networks. Appl. Math. Model. 2024, 125, 66–84. [Google Scholar] [CrossRef]
  8. Dotti, S.; Vovelle, J. Convergence of the Finite Volume Method for scalar conservation laws with multiplicative noise: An approach by the kinetic formulation. Stoch. Partial Differ. Equ. Anal. Comput. 2020, 8, 265–310. [Google Scholar] [CrossRef]
  9. Feireisl, E.; Lukáova-Medvidová, M. Convergence of a stochastic collocation finite volume method for the compressible Navier-Stokes system. Ann. Appl. Probab. 2023, 33, 4936–4963. [Google Scholar] [CrossRef]
  10. Bossy, M.; Fezoui, L.; Piperno, S. Comparison of a stochastic particle method and a finite volume deterministic method applied to Burgers equation. Monte Carlo Methods Appl. 1997, 3, 113–140. [Google Scholar] [CrossRef]
  11. Demirdžić, I.; Muzaferija, S. Finite volume method for stress analysis in complex domains. Int. J. Numer. Methods Eng. 1994, 37, 3751–3766. [Google Scholar] [CrossRef]
  12. Hajibeygi, H.; Bonfigli, G.; Hesse, M.A.; Jenny, P. Iterative multiscale finite-volume method. J. Comput. Phys. 2008, 227, 8604–8621. [Google Scholar] [CrossRef]
  13. Sokolova, I.; Bastisya, M.G.; Hajibeygi, H. Multiscale finite volume method for finite-volume-based simulation of poroelasticity. J. Comput. Phys. 2019, 379, 309–324. [Google Scholar] [CrossRef]
  14. Zhang, X.; Ma, F.; Yin, S.; Wallace, C.D.; Soltanian, M.R.; Dai, Z.; Ritzi, R.W.; Ma, Z.; Zhan, C.; Lü, X. Application of upscaling methods for fluid flow and mass transport in multi-scale heterogeneous media: A critical review. Appl. Energy 2021, 303, 117603. [Google Scholar] [CrossRef]
  15. Ranade, R.; Hill, C.; Pathak, J. DiscretizationNet: A machine-learning based solver for Navier–Stokes equations using finite volume discretization. Comput. Methods Appl. Mech. Eng. 2021, 378, 113722. [Google Scholar] [CrossRef]
  16. Hajibeygi, H.; Jenny, P. Adaptive iterative multiscale finite volume method. J. Comput. Phys. 2011, 230, 628–643. [Google Scholar] [CrossRef]
  17. Droniou, J.; Eymard, R.; Gallouët, T.; Herbin, R. A unified approach to mimetic finite difference, hybrid finite volume and mixed finite volume methods. Math. Models Methods Appl. Sci. 2010, 20, 265–295. [Google Scholar] [CrossRef]
  18. Mohamed, K.; Seaid, M.; Zahri, M. A finite volume method for scalar conservation laws with stochastic time–space dependent flux functions. J. Comput. Appl. Math. 2013, 237, 614–632. [Google Scholar] [CrossRef]
  19. Marpeau, F.; Barua, A.; Josić, K. A finite volume method for stochastic integrate-and-fire models. J. Comput. Neurosci. 2009, 26, 445–457. [Google Scholar] [CrossRef] [PubMed]
  20. Kazi, S.R.; Sundar, K.; Misra, S.; Tokareva, S. Zlotnik, Intertemporal uncertainty management in gas-electric energy systems using stochastic finite volumes. Electr. Power Syst. Res. 2024, 235, 110748. [Google Scholar] [CrossRef]
  21. Stefanou, G.; Papadrakakis, M. Assessment of spectral representation and Karhunen–Loève expansion methods for the simulation of Gaussian stochastic fields. Comput. Methods Appl. Mech. Eng. 2007, 196, 2465–2477. [Google Scholar] [CrossRef]
  22. Zhu, S.; Cai, C.; Spanos, P.D. A nonlinear and fractional derivative viscoelastic model for rail pads in the dynamic analysis of coupled vehicle–slab track systems. J. Sound Vib. 2015, 335, 304–320. [Google Scholar] [CrossRef]
  23. Dai, H.; Zhang, R.; Beer, M. A new perspective on the simulation of cross-correlated random fields. Struct. Saf. 2022, 96, 102201. [Google Scholar] [CrossRef]
  24. Babuška, I.; Nobile, F.; Tempone, R. A systematic approach to model validation based on Bayesian updates and prediction related rejection criteria. Comput. Methods Appl. Mech. Eng. 2008, 197, 2517–2539. [Google Scholar] [CrossRef]
  25. Shannon, C.E. A mathematical theory of computation. Bell Syst. Tech. J. 1948, 27, 623–656. [Google Scholar] [CrossRef]
  26. Machta, J. Entropy, information and computation. Am. J. Phys. 1999, 67, 1074–1077. [Google Scholar] [CrossRef]
  27. Feutrill, A.; Roughan, M. A review of Shannon and differential entropy rate estimation. Entropy 2021, 23, 1046. [Google Scholar] [CrossRef] [PubMed]
  28. Gao, P.; Li, Z. Computation of the Boltzmann entropy of a landscape: A review and a generalization. Landsc. Ecol. 2019, 34, 2183–2196. [Google Scholar] [CrossRef]
  29. Cholewa, M.; Płaczek, B. Application of positional entropy to fast Shannon entropy estimation for samples of digital signals. Entropy 2020, 22, 1173. [Google Scholar] [CrossRef] [PubMed]
  30. Zenil, H.; Hernández-Orozco, S.; Kiani, N.A.; Soler-Toscano, F.; Rueda-Toicen, A.; Tegnér, J. A decomposition method for global evaluation of Shannon entropy and local estimations of algorithmic complexity. Entropy 2018, 20, 605. [Google Scholar] [CrossRef] [PubMed]
  31. Lesne, A. Shannon entropy: A rigorous notion at the crossroads between probability, information theory, dynamical systems and statistical physics. Math. Struct. Comput. Sci. 2014, 24, 240311. [Google Scholar] [CrossRef]
  32. Mishra, S.; Ayyub, B.M. Shannon entropy for quantifying uncertainty and risk in economic disparity. Risk Anal. Int. J. 2019, 39, 2160–2181. [Google Scholar] [CrossRef]
  33. Cincotta, P.M.; Giordano, C.M.; Silva, R.A. The Shannon entropy: An efficient indicator of dynamical stability. Phys. D Nonlinear Phenom. 2021, 417, 132816. [Google Scholar] [CrossRef]
  34. Alkassar, Y.; Agarwal, V.K.; Pandey, R.K.; Behera, N. Experimental study and Shannon entropy analysis of pressure fluctuations and flow mode transition in fluidized dense phase pneumatic conveying of fly ash. Particuology 2020, 49, 169–178. [Google Scholar] [CrossRef]
  35. Kamiński, M.; Ossowski, R.L. Navier-Stokes problems with random coefficients by the Weighted Least Squares Technique Stochastic Finite Volume Method. Arch. Civ. Mech. Eng. 2014, 14, 745–756. [Google Scholar] [CrossRef]
  36. Camesasca, M.; Kaufman, M.; Manas-Zloczower, I. Quantifying Fluid Mixing with the Shannon Entropy. Macromol. Theory Simul. 2006, 15, 595–607. [Google Scholar] [CrossRef]
  37. Bathe, K.J. Finite Element Procedures; Prentice-Hall: Englewood Cliffs, NJ, USA, 1996. [Google Scholar]
  38. Kamiński, M.; Carey, G.F. Stochastic perturbation-based finite element approach to fluid flow problems. Int. J. Numer. Methods Heat Fluid Flow 2005, 15, 671–697. [Google Scholar] [CrossRef]
  39. Zienkiewicz, O.C.; Taylor, R.; Nithiarasu, P. The Finite Element Method for Fluid Dynamics; Butterworth-Heinemann: Oxford, UK, 2005. [Google Scholar]
  40. Cueto-Felgueroso, L.; Colominas, I.; Nogueira, X.; Casteleiro, M. Finite volume solvers and Moving Least-Squares approximations for the compressible Navier-Stokes equations on unstructured grids. Comput. Methods Appl. Mech. Eng. 2007, 196, 4712–4736. [Google Scholar] [CrossRef]
  41. Demirdzic, J.; Muzaferija, S. Numerical method for coupled fluid flow, heat transfer and stress analysis using unstructured moving meshes with cells of arbitrary topology. Comput. Methods Appl. Mech. Eng. 1995, 125, 235–255. [Google Scholar] [CrossRef]
  42. Durany, J.; Pereira, J.; Varas, F. A cell-vertex finite volume method for thermo-hydrodynamic problems in lubrication theory. Comput. Methods Appl. Mech. Eng. 2006, 195, 5949–5961. [Google Scholar] [CrossRef]
  43. Kamiński, M. On Shannon entropy computations in selected plasticity problems. Int. J. Numer. Methods Eng. 2021, 122, 5128–5143. [Google Scholar] [CrossRef]
  44. OpenFVM. Available online: http://openfvm.sourceforge.net (accessed on 2 December 2024).
  45. Cornil, J.M.; Testud, P. An Introduction to MAPLE V; Springer: Berlin/Heidelberg, Germany, 2001. [Google Scholar]
Figure 1. 3D view of a single finite volume.
Figure 1. 3D view of a single finite volume.
Entropy 27 00067 g001
Figure 2. CVs configuration with boundary conditions in the 2D numerical test.
Figure 2. CVs configuration with boundary conditions in the 2D numerical test.
Entropy 27 00067 g002
Figure 3. Expected values (a) and coefficients of variation (b) of the temperatures for Gaussian heat conductivity.
Figure 3. Expected values (a) and coefficients of variation (b) of the temperatures for Gaussian heat conductivity.
Entropy 27 00067 g003
Figure 4. Shannon entropies of temperatures in the heat flow test for Gaussian heat conductivity.
Figure 4. Shannon entropies of temperatures in the heat flow test for Gaussian heat conductivity.
Entropy 27 00067 g004
Figure 5. Shannon entropies of temperatures T1 (a) and T2 (b) in the heat flow test for Gaussian heat conductivity k, according to the random samples in the MCS analysis.
Figure 5. Shannon entropies of temperatures T1 (a) and T2 (b) in the heat flow test for Gaussian heat conductivity k, according to the random samples in the MCS analysis.
Entropy 27 00067 g005
Figure 6. A comparison of the temperature expectations (T1 (a) & T2 (b)) in the given discrete volumes using three concurrent computational techniques.
Figure 6. A comparison of the temperature expectations (T1 (a) & T2 (b)) in the given discrete volumes using three concurrent computational techniques.
Entropy 27 00067 g006
Figure 7. A comparison of the temperature coefficients of variation (T1 (a) & T2 (b)) in the given discrete volumes using three concurrent computational techniques.
Figure 7. A comparison of the temperature coefficients of variation (T1 (a) & T2 (b)) in the given discrete volumes using three concurrent computational techniques.
Entropy 27 00067 g007
Figure 8. Common influence of the input uncertainty and the perturbation parameter on (a) expected values and (b) coefficients of variation of the temperature in the finite volume 1.
Figure 8. Common influence of the input uncertainty and the perturbation parameter on (a) expected values and (b) coefficients of variation of the temperature in the finite volume 1.
Entropy 27 00067 g008
Figure 9. Boundary conditions for the lid-driven cavity flow.
Figure 9. Boundary conditions for the lid-driven cavity flow.
Entropy 27 00067 g009
Figure 10. Expected values of the temperature field in the lid-driven cavity flow test for Gaussian viscosity (a) and heat conductivity (b).
Figure 10. Expected values of the temperature field in the lid-driven cavity flow test for Gaussian viscosity (a) and heat conductivity (b).
Entropy 27 00067 g010
Figure 11. Coefficients of variation of the temperature field in the lid-driven cavity flow test for Gaussian viscosity (a) and heat conductivity (b).
Figure 11. Coefficients of variation of the temperature field in the lid-driven cavity flow test for Gaussian viscosity (a) and heat conductivity (b).
Entropy 27 00067 g011
Figure 12. Shannon entropies for the temperature field in the lid-driven cavity flow test for Gaussian viscosity (a) and heat conductivity (b).
Figure 12. Shannon entropies for the temperature field in the lid-driven cavity flow test for Gaussian viscosity (a) and heat conductivity (b).
Entropy 27 00067 g012
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kamiński, M.; Ossowski, R.L. Shannon Entropy Computations in Navier–Stokes Flow Problems Using the Stochastic Finite Volume Method. Entropy 2025, 27, 67. https://doi.org/10.3390/e27010067

AMA Style

Kamiński M, Ossowski RL. Shannon Entropy Computations in Navier–Stokes Flow Problems Using the Stochastic Finite Volume Method. Entropy. 2025; 27(1):67. https://doi.org/10.3390/e27010067

Chicago/Turabian Style

Kamiński, Marcin, and Rafał Leszek Ossowski. 2025. "Shannon Entropy Computations in Navier–Stokes Flow Problems Using the Stochastic Finite Volume Method" Entropy 27, no. 1: 67. https://doi.org/10.3390/e27010067

APA Style

Kamiński, M., & Ossowski, R. L. (2025). Shannon Entropy Computations in Navier–Stokes Flow Problems Using the Stochastic Finite Volume Method. Entropy, 27(1), 67. https://doi.org/10.3390/e27010067

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop