2. Fastest Method
2.1. Scheme Definition
Let consider the unsteady convection-diffusion equation, defined on a bounded domain
and the appropriate initial and boundary conditions, where
is the dependent variable,
the constant convective velocity agreed with
axis and never changing its direction,
the diffusion coefficient,
the source term and
the boundary of
. Suppose that
is partitioned with FV of equal diameter
respecting the condition
, with
cell Reynolds number and
L characteristic length, thus the numerical solution of the transport equation (
1) is qualitatively similar to the one of a parabolic differential equation dominated by the convective term.
To obtain a high order in time and space profile, we consider the Taylor expansion in time
(2)
and result first- and second- time derivatives from the homogeneous advection equation
(3)
by replacing both the expressions (
3) into (
2), we have (see
| [38] | Roache, P. J.: Computational fluid dynamics. Hermosa Publishers, Albuquerque, NM (1972). |
[38]
)
(4)
By adopting second-order FV approximations and for and respectively, we obtain
(5)
Integrating this approximation we obtain
(6)
Let apply the Mean Value Integral theorem and indicate with the diameter of a generic FV
(7)
where
(8)
The numerical fluxes
, with
denoting respectively the right and left face, are the sum of the value
estimated by third-degree
-spline polynomials (see
| [37] | Pennati, V. A., Marelli, M., De Biase, L. M.: FAST - A generalized FV solution of convection-diffusion problems by means of monotonic v-splines profiles. Int. J. Num. Meth. Heat Fluid Flow. 6, 3-30 (1996). https://doi.org/10.1108/eb017549 |
[37]
) and the second term representing the
gradient calculated on the same face
. Omitting the time index for simplicity, the expression of
(9)
The parameter with and , determines the profile to use considering the variations of the grid. Let choose , which define the profiles for equally spaced nodes (the most frequent situation), half of the distance with respect to or double of the distance with respect to (in these last cases results to be the node of a Bridge FV). The three obtained profiles are
(10)
(11)
(12)
By the substitution of (
10), (
11) and (
12) into (
8) the right fluxes are
(13)
(14)
(15)
where
with
denoting the velocity at the considered face. The expressions of
and
at the left face are similar the above relations (
10) – (
15) after decreasing of a unit the indexes of the nodes.
2.2. Normalized Variable Diagram
To control the behaviour of the numerical solution, we analyze the diagram of the normalized variable , i.e. the variable transformed by
and inversely
It is easy to verify that the transformed values
of
and
of
are
and
, respectively. This means that while
depends on both
,
and
, the normalized variable
depends only on
. Therefore, a Normalized Variable Diagram (NVD) allows a graphic representation of the functional relationship between the values
and
. Since Fastest has to be transformed into unit square by piecewise profiles, three pairs of abscissas
and
, projections of three pairs of points
and
on the
axis, need to be calculated see
Figure 2 as an example for
.
After some simplifications, the transformed profiles are
(18)
(19)
(20)
The solutions of the six systems
and(21)
and(22)
and(23)
result in three couples of values
(24)
(25)
(26)
The analysis of the profiles
into the unit square when
, gives for
, a set of straight non-parallel lines. In particular, for
and
the transformed flux (
18) is reduced into
which for
gives
, that is the point
. Instead for
and
the transformed flux (
18) is reduced into
which for
and
Figure 2. Normalized Variable Diagram of Fastest with and Courant numbers
results
and
respectively, thus by definition values
and
. Lastly for
we obtain
, hence the Upwind profile see
Figure 2.
The graphic of Fastest, assigned
and
, is shown in
Figure 2. It is composed of three segments:
delimited by the points
O=(0,0) and
intersection of the two straight lines
and
with
intersection of the two straight lines
and
and finally
with
D=(1.0,1.0). To better understand what the segment
represents (see Section 2.3 and
.
Given the corresponding value is obtained by Fastest applying the Algorithm 2.1, both with velocity u constant and with the velocity u varying in time and space, see section 2.3.
Algorithm 2.1.
After fixing the parameters and ( for, for and for), five cases are possible:
1) and , the transformation in the normalised plane is not possible therefore is estimated by means of second-order back-ward Characteristic starting from, abscissa of the node. The value on foot is interpolated with a third-degree polynomial, which is function of four values calculated on the partition or (for further details see Section 5)
2)
for
3)
for(withfor,forandfor)
5)
for0 or>
After computing in the cases 2, 3, 4 and 5 we obtain with inverse transformation
(27)
Remark 2.1 In the case 5,
can be a local extremum and the solution might present sharp changes due to the geometry of the domain. The use of high order numerical schemes may thus generate spurious oscillations and the no convergence of the solution. In order to comply with the condition established by the Godunov’s theorem in
| [39] | Godunov, S. K.: A difference scheme for numerical solution of discontinuous solution of hydrodynamic equations. Mathematics of the USSR-Sbornik. 47, 271-306 (1959). Translated US Joint Publ. Ross. Service, JPRS7226, 1969. |
[39]
, one may reformulate Fastest similarly as in some high order schemes
. However, a more effective strategy may be adopted by implementing h-adaptivity. Generated a suitable subdomain
in the region where the wiggles manifest
it is assigned Upwind to all the faces of the FV belonging to
Thus, Fastest would accordingly turn into a Total Variation Diminishing method that notoriously avoids spurious oscillations near a jump.
2.3. Velocity Varying in Time and Space
In case the Courant, Friedrichs and Lewy number c=c(x, t) varies in time and space, the local monotonicity is guaranteed in the unit square as long as certain conditions are respected. Since the monotonicity can increase or decrease, it is necessary to examine these conditions with respect to the right and left face in both the cases:
1) Increasing monotonicity:
(28)
at the right and the left face respectively
2) Decreasing monotonicity:
(29)
at the right and the left face respectively.
Firstly, consider the condition (
28) at the right face
and the inequality chain
. By applying the expression (
7) to
, we obtain
. Then by reordering
and applying to
the worst estimation
, we obtain
. Thus, considering
, the condition required to be satisfied in the NVD plane is
For the increasing monotonicity at the left face,
is the condition to consider. By applying (
7) to
, we have
. Reordering
and applying the worst estimation
to
, we obtain
. The inequality in NVD plane becomes:
. Since
for
, the condition ultimately achieved is
Similarly, for decreasing monotonicity at the right and left face, the conditions to be satisfied in the NVD plane are, respectively
and
Thus, the four limitations are: for increasing monotonicity and at the right and left face, respectively; for decreasing monotonicity and at the right and left face, respectively. Therefore, if and all the above conditions are satisfied. Since the increasing and decreasing monotonicity have the same representation in the unit square, a single analysis is required satisfying the aforementioned necessary conditions.
The above condition
is used to define the flux with constant velocity
u in the case 2 of Algorithm 2.1 (see
. Additionally, an example of flux
is shown in a diagrammatic form by the segment
in
Figure 2.
The second condition splits in three cases
and . Since is less than , is assigned by Upwind
and . Since , the value is again assigned by Upwind
and
with
. The condition
is used, similarly to case 2 of Algorithm 2.1, to define the flux with velocity
u varying in time and space. To note that
. Even the flux
can be graphically shown similarly to the segment
in
Figure 2.
3. Consistency, Stability and Convergence of Fastest
3.1. Consistency
Given the one-way wave equation:
The corresponding partial differential operator is
For the Fastest scheme, the corresponding approximation operator is
(36)
where
and index
identifies the FV where (
36) is applied.
Definition 3.1
Let suppose the function
ξ(t,x) suitably differentiable with respect to time and space, then the scheme (
36) is consistent with the partial differential equation (
34) if the difference
Theorem 3.1
The consistency of the Fastest method with the equation (
34) is demonstrated by using the definition
3.1.
Proof
Since the expressions of and depend on parameter (), when or σ = both the Bridge and its next need to define a suitable flux . Therefore, the cases to examine are five. For simplicity, the time index of the fluxes is neglected.
1. (FV with equal diameter)
The difference
-(37)
can be reordered as
(38)
By replacing suitable Taylor series in the scheme (
36) with
and
, the difference
(39)
(Bridge FV with grid of the next subdomain halved)
The fluxes difference reordered is
(40)
By replacing suitable Taylor series in the scheme (
36) with
,
and
, the difference
+→0(41)
(First FV of the next subdomain with halfed grid spacing)
The fluxes difference reordered is
(42)
By replacing suitable Taylor series in the scheme (
36) with
,
and
, the difference
(43)
(Bridge FV and next subdomain with doubled grid spacing)
The fluxes difference reordered is
(44)
By replacing suitable Taylor series in the scheme (
36) with
,
and
, the difference
(45)
(First FV of the next subdomain with grid double spacing)
The fluxes difference reordered is
(46)
By replacing suitable Taylor series in the scheme (
36) with
,
and
the difference
(47)
In conclusion, the method Fastest is consistent with the partial differential equation (
34) with
and
for Bridge FV and first FV of
respectively.
3.2. Order of Accuracy of the Schemes
Given the discretized problem , where the expressions and are evaluated at the grid point , a consistent scheme for the partial differential equation is accurate of order in time and order in space if for any smooth function
. (48)
Definition 3.2
The difference
defines the
truncation error of the scheme
| [41] | Strikwerda, J. C.: Finite difference schemes and partial differential equations. Wadsworth & Brooks/Cole Advanced Books & Software, Pacific Grove, California, USA (1989). |
[41]
.
Thus, the accuracy of the above schemes are respectively:
, 2., 3.4.5.(49)
3.3. Stability for Initial Value Problem and σ=1
Consider the one-way wave equation (
33) on the interval
, where the solution satisfies the boundary conditions
for all nonnegative values of
and the initial condition given by periodic data. The application of Fourier analysis to the equation (
33) shows that the initial value problem is well-posed
| [41] | Strikwerda, J. C.: Finite difference schemes and partial differential equations. Wadsworth & Brooks/Cole Advanced Books & Software, Pacific Grove, California, USA (1989). |
[41]
, therefore both the
continuity conditionwith = constant independent from and the robustness property are satisfied. The definitions of norm for functions and for grid functions are, respectively
Theorem 3.2
In the case , Fastest is conditionally stable and the stability region is the interval .
Proof
Let the interval be partitioned in equal sub-intervals and consider the discrete Fourier transform of the numerical solution
(53)
with and , where is the imaginary unit. Its inverse is
(54)
Let apply the transform (
54) to scheme (
36), which for
is
(55)
Figure 3. Graphic of surface for and
Figure 4. Graphical representation of the section where is the value c whose corresponding section has the maximum height .
obtaining
=(56)
thus from (
54) and (
56), the equality
(57)
By applying a term-by-term equality and defining the phase angle , we obtain
+⦌(58)
where is the amplification factor.
By iteratively applying the (
59),
, where
is the transformed initial condition, consequently the behaviour in time of the solution
is controlled by the initial condition and the powers of the amplification factor.
Therefore
withand(60)
is the condition to respect in order to ensure the stability. The above restriction is the well-known CFL condition. The amplification factor, for can be rewritten as
= {+}1/2(61)
In order to determine the interval of
values that respect the condition (
60), one can analyze the graphic of surface (
61) and determine the section
, where
is the value whose corresponding section
has the maximum height
,
Figure 3 and
Figure 4. It is possible to conclude that, for
the stability region is the interval
0.78 and that Fastest is conditionally stable.
Furthermore, with varying velocity u, the stability condition is and in the case that even the net size varies, the stability condition is
(62)
with
3.4. Stability for Initial-boundary Value Problem with σ=1
To obtain a solution of the initial-boundary value problems such as the one-way wave equation (
34), the inflow boundary condition required by the partial differential equation need to be used in addition to the initial data. Moreover, to avoid the solution is overdetermined no data have to be assigned at the outflow. However many schemes, including Fastest, require additional
numerical boundary conditions, in order to determine the solution uniquely. Specifically, the boundary conditions assigned to the problem (
36) are the solution
at
and a quasi-characteristic extrapolation at outflow, respectively.
Theorem 3.3
Let be formulated the following assumptions (see
| [41] | Strikwerda, J. C.: Finite difference schemes and partial differential equations. Wadsworth & Brooks/Cole Advanced Books & Software, Pacific Grove, California, USA (1989). |
[41]
):
1) The differential equation and the initial data are extended to the entire axis and the initial value problem results to be well-posed and stable in case of a difference scheme.
2) The solution can be expressed as allowing to obtain an initial-boundary value problem for in similar to the original problem for except for and equal to zero.
3) The time interval is extended from to so that the Laplace transform can be used in the analysis of the boundary conditions.
4) Well-posedness of boundary conditions of a partial differential equation is essentially a local property and consequently, only the differential equation and boundary condition on need to be considered.
Then, the Fastest solution to the boundary value problem is bounded by the norm of the data on the boundary multiplied for a suitable constant : .
Proof
Let define the Laplace transform of a discrete function
(63)
with , time index, spatial index, with , dual variable, specifies that we are considering the initial-boundary problem for in positive direction, . Since the functions and are respectively analytic functions of the complex variables and , the inversion formula is
or(64)
The Fastest integration formula for is
(65)
Where
, , , .
Applying the inverse transformation to (
65), one gets
(66)
The resolvent equation obtained by executing a term-by-term equality and simplifying for is
z=.(67)
In order to find solutions to the resolvent equation that are function of in , is replaced by , with analytic and continuous function of , for
(68)
Lemma 3.1
The general integral of the resolvent equation (
67) function of
z in
has the form
with
real function and
for
.
Proof
The
right
term
of
equation
(
68)
represents
the
third
degree
characteristic
polynomial
in
K(z) with
four
real
coefficients,
when
posed
equal
to
zero
it
has
three
roots
and
consequently
the
general
solution
of
the
resolvent
equation
(
67)
is
the
linear
combination
of
the
three
roots
,
,
with
three
coefficient
functions
,
,
(69)
The analysis of the three roots by applying the algorithm of Jury reported in
and the polynomial zeros theorem of Marden given in
| [43] | Marden, M.: The Geometry of the Zeros of a Polynomial in a Complex Variable. American Mathematical Society, New York (1949). |
[43]
, here omitted for sake of brevity, leads to the following conclusion: since just the solutions of the resolvent equation that belonging to
when
are taken into account, there is only a real root
satisfying
for
. Hence, the general integral reduce to the particular form
wherefor.(70)
An extrapolation formula approximates the boundary condition at inflow
Replacing the expression (
71) in the generic left flux
(72)
one obtains for i =1
where is the Dirichlet value.
By integrating the convection equation in the first FV
(74)
Finally the boundary condition to analyze is
(75)
where , and results by the subtracting solutions so that the initial function is zero.
The coefficient is determined by transforming the boundary function .
Considering the equation (
75)
(76)
that is the equation
(77)
Recalling (
70)
and
then from (
77)
The norm of the solution is
.(80)
With regard to the function , by the Parseval’s relations, the norm is
(81)
where
. Then, by substitution of
with (
79)
(82)
Note that lower bound is necessary on .
Now, the analysis consists to verify that nontrivial solutions of form (
78) solve the homogeneous boundary condition, therefore one needs to check whether there is a
satisfying (
67) such that
First, let consider the case and
By writing
and
, where both
and
are greater than 0 and less than 1, set a constant
, with
, for the values
with
0.78, the first factor of expression (
82) gives
where the ratio> 0. (84)
Then, the second factor of the expression (
82)
with.(85)
Since
is a root of the equation (
68) with
for
, according to Strikwerda (see Lemma 11.3.2, in
| [41] | Strikwerda, J. C.: Finite difference schemes and partial differential equations. Wadsworth & Brooks/Cole Advanced Books & Software, Pacific Grove, California, USA (1989). |
[41]
) there exists a constant
such that
Let set the expansion , since is constant, it results
To conclude, the dependence of the solution on the data, for and , is given by
where the constant takes into account and .
Second, let consider the case and .
Set a constant
, with 0 <
1, for the values
with
0.78 the first factor of expression (
82) gives
(90)
Since the relation (
88) is once again applicable to the second factor of (
82), it is possible to conclude that the dependence of the solution on the data is given by
where is a constant that takes into account and .
The stability of the initial-boundary value problem for the one-way wave equation, here solved with the Fastest method and inflow Dirichlet condition, is demonstrated.
However, in order to determine uniquely the numerical solution, Fastest requires the value at outflow. The extrapolation formula is therefore proposed.
3.5. Stability of Fastest for Initial-boundary Value Problem with h-Adaptivity
The convergence of the numerical solution of transport problems in the context of Domain Decomposition methods is shown in
| [9] | Quarteroni, A.: Modellistica numerica per problemi differenziali. Springer-Verlag, Milano (2008). |
[9].
A theorem based on the previous study is formulated to prove the stability of Fastest in presence of h-adaptivity.
Theorem 3.4
Let consider the differential equation (
34) on a domain
where the solution
satisfies the initial-boundary data and let partition
into
N subdomains
(k=1,…, N) which FV diameter
Dk have different values. In addition, Bridge
(k=1,…, N-1) are placed between each couple of subdomains. Suppose that the stability property of Fastest is enjoyed in each subdomain
with regard to the initial or initial-boundary values depending on the
in exam.
Therefore, a condition for Fastest stability in in presence of h-adaptivity is that the continuity condition is accomplished on each interfaces Note that the continuity condition is used to solve the linear system arising from the discretization of the partial differential equation and not for its solution.
Proof
Theorem 3.4 is demonstrated by a constructive proof, with the assumption . It is useful considering the Bridge divided into two parts, each of them added to the adjacent subdomain.
Let consider that:
1) the first subdomain is partitioned with equal , and let define the subdomain by including the inflow boundary and the left part of the first Bridge FV;
2) the generic subdomain with 1< j < N, (2<N), is partitioned with equal , , and let define the subdomain by including the right part of (j-1)th Bridge FV and the left part of jth Bridge FV;
3) the last subdomain is partitioned with equal , and let define the subdomain by including the right part of (N-1)th Bridge FV and the outflow boundary;
4) the node of each Bridge
has distances from the left and right faces equal to
Dk/2 and
Dk+1/2, respectively (see
Figure 1a and 1b);
5) the Bridge FV nodes coincide with the interfaces
Furthermore considering that:
in each subdomain the approximations of the numerical fluxes of the kth Bridge FV can be assimilated to the outflow and inflow conditions related to the interface;
by hypothesis the schemes are stable in each subdomain ;
the integration formula relevant to the Bridge FV assigns the value on its node (that is the continuity condition u is fulfilled on the interface by construction).
One can conclude that Fastest is stable even in presence of h-adaptivity.
Note that the partition with two subdomains is not included in the previous definitions, however the condition N=2 is easily intelligible. Moreover, the theorem 3.4 with the assumption can be demonstrated similarly.
Remark 3.1 The assimilation of the numerical right flux of the kth Bridge FV to a numerical inflow condition for subdomain would require a stability study similar to that developed in section 3.4. Anyway, an empirical explanation of the good functioning (i.e. stability) of the method consists in the presence of two continuity conditions, of on and of the flux on the left face of first FV of .
The stability analysis of a parabolic initial-boundary value problem is very similar to that of a hyperbolic one, indeed there is no need to check for admissible solutions of the resolvent equation that satisfy the homogeneous boundary condition for see section 3.4.
3.6. Convergence
The convergence of the Fastest method is established on the Lax-Richtmeyer equivalence theorem
| [41] | Strikwerda, J. C.: Finite difference schemes and partial differential equations. Wadsworth & Brooks/Cole Advanced Books & Software, Pacific Grove, California, USA (1989). |
[41]
. Fastest is a one-step scheme, consistent for well-posed initial value problem (
34), conditionally stable and therefore convergent. Moreover, for smooth initial condition
, the order of accuracy of the solution is equal to the order of accuracy of the scheme.
Remark 3.2 From (
49) the Fastest scheme is second order accurate in time while the accuracy with respect to the space is third order in the aforementioned case 3, second order in cases 1 and 5 and first order in cases 2 and 4 respectively. To achieve a higher space accuracy, the second and third spatial derivatives of the truncation errors can be approximate by Generalized Finite Difference (GFD) formulae
(see
| [44] | Reali, M., Dassie, G., Pennati, V. A.: Direct general finite difference techniques for elliptic problems defined on bounded or unbounded 2-D domains. Lewis, R. W. et al. (ed.). Numerical Methods for Transient and Coupled Problems, pp. 43-58. Wiley. (1987). |
[44]
) and then, multiplied for the suitable factors, to be added to the
value. Since the stencils of the GFD formulae are with four nodes, the derivative approximations result to be of second and first order respectively. Therefore, it is possible to obtain a second order in time and third order in space method.
4. Dynamically Locally Self h-Adaptive Method and Pick & Roll Technique
4.1. h-Adaptive FV Methods
An extensive literature exists regarding the h-adaptive FD or FV methods, with or without domain transformations, enabling to improve the accuracy of solutions of fluid-dynamic problems
| [45] | Corti, S., De Biase, L., Pennati, V. A.: A multistep three dimensional generalized finite difference technique. Sixth International Conference on Numerical methods in Thermal problems. Pineridge Press, Swansea, U. K. (1989). |
| [46] | Kelly, D. W., Mills, R. J., Reizes, J. A., Miller, A. D.: A posteriori error estimates in finite difference techniques. J. Comput. Phys. 74, 214-232 (1988). https://doi.org/10.1016/0021-9991(88)90077-0 |
| [47] | Pennati, V., Corti, S.: Generalized finite-differences solution of 3D elliptical problems involving Neumann boundary conditions. Commun. Numer. Meth. Engng. 10, 43-58 (1994). https://doi.org/10.1002/cnm.1640100106 |
| [48] | Thompson, J. F., Soni, B. K., Weatherill, N. P.: Handbook of grid generation. CRC press (1998). |
[45-48]
. However, the numerical solution of partial differential equation problems by high order FV methods, defined on irregular grids, remains still challenging
| [23] | Nishikawa, H.: The QUICK Scheme is a Third-Order Finite-Volume Scheme with Point-Valued Numerical Solutions. arXiv preprint arXiv:2006.15143 [math. NA]. (2020). |
[23]
. A self h-adaptive method requires the definition of two factors: the so-called error indicators and the techniques that efficiently modify the discretization of the domain
Ω. In our adaptive technique the error indicators are calculated on three suitable nodes, respectively two on the left (
left flags LF1 and LF2) and one on the right (
right flag RF) of each critical region. The differences between the initial and the adjourned numerical solutions are calculated on these nodes and, whenever predetermined values are not respected, a new partition is generated.
4.2. Pick & Roll Technique
In order to save computational cost, the novel partition enables to dynamically halves or doubles the FV diameters according to the belonging to critical or favorable regions. The process, named Pick & Roll, may be considered a movement of FV in accordance with an adequate number of FV moves ideally from the right to the left hand.
Algorithm 4.1.
Suppose to consider the subdomain with FV of diameter Dj and the three flag nodes LF1, LF2 and RF. Define the numerical solution calculated on partition at time step , as A numerical solution is considered "acceptable" if each of the three flags comply with certain conditions described further on.
If meets the acceptability conditions, then the solution at the next time step can be calculated by the same partition used to calculate the accepted solution .
The conditions of unacceptability are:
is external to or, if internal, there are less than twelve FV between it and the boundary of . A new partition is generated by adding four FV with diameter Dj to the right boundary of and by interpolation of the missing values, then a new solution is calculated. This second solution is in turn verified with respect to the acceptability and consequently, two events may occur:
the second solution is acceptable and thus the transient can proceed to calculate the solution ;
the second solution is not acceptable. Then a new partition 2 is created by adding other four FV with diameter Dj to the right boundary of and by interpolation of the missing values. Thus, a new solution is calculated. The transient can proceed to calculate the solution .
is external to and the solution is not acceptable. A new partition is created by adding four FV with diameter Dj to the left boundary of , the missing values are interpolated and a new solution calculated. Thus, the transient can proceed to calculate the solution to next time step by means of the partition . Since the velocity direction is from the left to the right, this event is not frequent.
is internal to and more than twelve FV are present between LF1 and the left boundary of . The solution is not acceptable and four FV with diameter Dj are subtracted from the left boundary of , the missing values are interpolated and a new solution calculated. The transient can proceed to calculate the solution . Considering the direction of the velocity, this event is frequent.
Two 1D hyperbolic problems (i.e. the advancing step and the isolated wave tests) are solved in Section 7 to test the efficiency of new method. Since it is known the location of the singularities as well as the larger variations of the analytical solutions by the initial conditions, it is possible to determine where the domains have FV with the smallest diameter. For the two analyzed tests, the domain is partitioned into five subdomains with the central subdomains having FV with the smallest diameter.
Table 1. Diameters. Di of the FV belonging to the subdomains Ωi, i=1, …, 5 and of Bridge FV (BFVj), j=1,2,3,4.
D1=0.04 | D2=0.02 | D3=0.01 | D4=0.02 | D5=0.04 |
BFV1=0.03 | BFV2=0.015 | BFV3=0.015 | BFV4=0.03 | |
In order to optimize the adaptive process, some of the FV belonging to the previous partition are transformed to limit the increase of the total number of FV.
For example, let’s suppose that after a time interval from the beginning of the transient the error indicator RF lies externally to , consequently the h-adaptive process adds four FV to the right boundary of The four FV are obtained from the following process: the first FV of is subtracted from (i.e. picked) and added (i.e. rolled) to like two FV of diameter Then the two first FV of diameter of are picked and rolled to like four FV of diameter
Similarly, if is external to , the last FV of with diameter is halved, picked and rolled to like two FV of diameter , then the final two FV of are halved, picked and rolled like four FV of diameter at the left boundary of . Again, if is internal to and more than twelve FV are present between LF1 and the left boundary of , the first four FV of are picked and rolled to like two FV of diameter , then first two FV of are then picked and rolled to like a FV of diameter .
The efficiency of the Pick & Roll process lies in the fact that the number of FV belonging to the subdomains and is constant, the number of FV belonging to decreases, the number of FV belonging to increases while the number of FV of changes in relation to the flags , and . In conclusion, a significant increase of the total number of FV derived from each partition is not expected. Numerical tests corroborate this prediction.
4.3. Data Organization
The application of the above mentioned techniques is efficient if an appropriate organization of the data is respected. In particular, the data determined by the initial partition are stored in two matrices as follows: 1) the topological matrix contains the first and last node as well as the number of the nodes of each subdomain, the progressive node number of the Bridge FV and lastly the code regarding the grid modification (reduction or enlargement) of the next subdomain. 2) The geometrical matrix contains, for each subdomain, the abscissa of first and last node as well as the abscissa of the left face of the first FV and of the right face of the last FV, respectively. Moreover, contains the node abscissa of the Bridge FV, the grid modification factor of the next subdomain and the abscissas of the left and right face of Bridge FV.
The matrices NOD and ABSNF allow to generate the partitions defined by the h-adaptive processes. The data relating to the events examined above are codified in the matrices: when four FV are added to the right of boundary, when four FV are subtracted to the left of boundary, when four FV are added to the left of boundary. The Appendix reports the matrices , and used in the problems 1 and 2.
6. Generalization of Fastest to 2D and 3D Problems
The extension of Fastest to two and three dimensions, when the FV are generated by structured grids with constant grid spacing, is a straightforward procedure.
6.1. 2D Generalization
The analogous of the formula (
7) in two dimensions is
(96)
where
and with the top (
) and bottom (
) faces added to the right and left faces of the one dimension case. For example, let consider two dimensional case where the convection is cross the left face, and the velocity components
and
are arranged as shown in
Figure 5.
Figure 5. Two-dimensional five-node stencil to estimate the left face value using Fastest (velocity component u positive).
The two dimensional flux, in the direction normal to the
middle point of the face l, is approximated by Fastest in
(97)
where the first term is the usual one dimensional profile Fastest and the second term is the
transverse curvature (see
| [11] | Leonard, B. P.: Simple high-accuracy resolution program for convective modelling of discontinuities. Int. J. Numer. Meth. Fluids. 8, 1291-1318 (1988). https://doi.org/10.1002/fld.1650081013 |
[11]
) representing the effects of transverse transport in a two dimensional flow.
Let reorder the five nodes profile (
97) in
(98)
where .
If the velocity components are in opposite directions, a five nodes stencil specular to the previous one with respect to the face itself has to be used. This leads ultimately to use thirteen nodes for all the velocity directions on all four faces.
6.2. 3D Generalization
The three dimensional profile to calculate the convective term on the left control volume face, involves
two transverse curvature terms, see
Figure 6 for ingoing flux
(99)
With outgoing velocity from the face, seven nodes stencil specular to that above with respect to the face itself, has to be used. Appropriate rotations and translations of the stencil allow its application to the other faces of the FV and ensue the 3D integration formula
(100)
Figure 6. Three-dimensional seven-node stencil to estimate the left face value using Fastest (velocity component positive).
where and where = right, = left, = top, = bottom, = forth, = back faces respectively.
As previously stated by Leonard et al., the high approximation of the convective flux normal to the FV face is highly important, even if the accuracy may be pursued adding the curvature terms
| [17] | Leonard, B. P., Mokhtari, S.: Beyond first-order upwinding: The ultra-sharp alternative for non-oscillatory steady-state simulation of convection. Int. J. Numer. Meth. Eng., 30, 729-766 (1990). https://doi.org/10.1002/nme.1620300412 |
[17]
. Thus five and seven nodes are sufficient for a good approximation of the flux in
and
problems, respectively. A study developed by Deponti corroborates the same conclusions
| [49] | Deponti, A.: Mass and thermal flows in Alpine glaciers. Application to Lys Glacier (Monte Rosa, Italian Alps). Doctoral dissertation, University of Milano–Bicocca. Italy (2003). |
[49]
. One-dimensional studies based on
are not directly applicable to two- and three-dimensional flows, nevertheless numerical experiences have shown how the stabilization of the profile along the main-stream direction prevents numerical oscillations. Therefore, the one-dimensional
NVD studies can be appropriately applied even in two- and three-dimensional cases.
Remark 6.1 The generalization of h-adaptive Fastest solutions for 2D and 3D problems may appear to be challenging. However, taking in consideration structured grids, the adaptive partitions for domains both 2D and 3D can be obtained fairly easily using topologic, geometric and translation matrices
| [12] | De Biase, L., Feraudi, F., Pennati, V. A.: A finite volume method for the solution of convection-diffusion 2D problems by a quadratic profile with smoothing. Int. J. Num. Meth. Heat Fluid Flow. 6, 3-24 (1996). https://doi.org/10.1108/09615539610123414 |
| [13] | Deponti, A., Pennati, V. A., De Biase, L.: A fully 3D finite volume method for incompressible Navier–Stokes equations. Int. J. Num. Meth. Fluids. 52, 617-638 (2006). https://doi.org/10.1002/fld.1190 |
[12, 13]
. Finally, the missing values of
ξ and v on new nodes and faces can be estimated using parametric transformations of the FV clusters in a unit reference square and defining the related polynomial basis functions.
7. Numerical Tests
Five problems, with known analytical solution, are here solved in order to verify the properties of the new method.
7.1. Advection Equation (Advancing Step)
The first proposed problem concerns the 1D advection equation
with velocity , boundary condition of Dirichlet at inflow and numerical boundary condition at outflow. The analytical solution is represented by the "jump" function and the initial condition is obtained from
(102)
This classic 1D advection problem is solved to quantify the amount of numerical viscosity of the method in presence of singularities. Let consider the domain
[0,10] divided in five non-overlapping subdomains
interspersed by four Bridge FV. Initially, the subdomain
has 18 volumes with diameter 0.04,
10 volumes with diameter 0.02,
35 volumes with diameter 0.01,
10 volumes with diameter 0.02 and
210 volumes with diameter 0.04, respectively.
Figure 7 and
Figure 8 shown the results obtained for a transient of 4000 steps with
0.0005, which exhibit a very low
numerical viscosity. To note, the new method
does not generate wiggles since the local
monotonicity is guaranteed by definition itself and dynamically locally self h-adaptive partitions may be applied.
Figure 9. Solution of an advection problem regarding an "isolated wave" function at first step and 2000th step with velocity u=1 and Δt= 0.0005. The data relevant to the subdomains at the final step are: Ω1=[0.02; 2.74],Ω2=[2.77; 297], Ω3=[2.985; 3.395], Ω4=[3.41; 3.59], Ω5=[3.62; 9.98].Each subdomain Ωk=[XLk; XRk] has XLk= abscissa of left face of the firs FV of , abscissa of right face of the last FV of Ωk.
7.2. Advection Equation (Isolated Wave)
A numerical experience still concerning the 1D advection equation carried out by Leonard
| [11] | Leonard, B. P.: Simple high-accuracy resolution program for convective modelling of discontinuities. Int. J. Numer. Meth. Fluids. 8, 1291-1318 (1988). https://doi.org/10.1002/fld.1650081013 |
[11]
, Pennati et al.
| [37] | Pennati, V. A., Marelli, M., De Biase, L. M.: FAST - A generalized FV solution of convection-diffusion problems by means of monotonic v-splines profiles. Int. J. Num. Meth. Heat Fluid Flow. 6, 3-30 (1996). https://doi.org/10.1108/eb017549 |
[37]
and Cordero et al.
| [50] | Cordero, E., De Biase, L., Pennati, V. A.: A new finite volume method for the solution of convection–diffusion equations: analysis of stability and convergence. Commun. Numer. Meth. Engng. 13, 923-940 (1997). |
[50]
is here presented. It involves analyzing the accuracy of the numerical solution by considering the analytical solution with a continuously turning gradient and with a single local maximum. The analytical solution is represented by the "isolated wave" function with velocity
boundary conditions of Dirichlet at inflow and numerical boundary condition at outflow. The initial condition is deduced from the function (
103)
(103)
Let consider the domain
[0,10] initially partitioned as in problem 1. The solutions obtained at the first and the 2000th time step, respectively, executing a transient of 2000 steps with
= 0.0005, are shown in
Figure 9. A zoom of the solution to the FV of subdomains
,
and the beginning of
, is illustrated in
Figure 10. It is thus possible to verify the accuracy of the new method and in particular the small reduction of the wave amplitude (e.g. the maximum error at step 2000 is 0.073), even in presence of a solution with continuous changes in gradient. As a result of the efficiency of the Pick & Roll technique, the numbers of FV belonging to
and
at the 2000th time step, are respectively 109 and 302.
7.3. Steady State Boundary Values Problems
It is considered the numerical solution of a steady state boundary values problem previously presented
by Leonard et al.
| [17] | Leonard, B. P., Mokhtari, S.: Beyond first-order upwinding: The ultra-sharp alternative for non-oscillatory steady-state simulation of convection. Int. J. Numer. Meth. Eng., 30, 729-766 (1990). https://doi.org/10.1002/nme.1620300412 |
[17]
, Pennati et al.
| [37] | Pennati, V. A., Marelli, M., De Biase, L. M.: FAST - A generalized FV solution of convection-diffusion problems by means of monotonic v-splines profiles. Int. J. Num. Meth. Heat Fluid Flow. 6, 3-30 (1996). https://doi.org/10.1108/eb017549 |
[37]
, Cordero et al.
| [50] | Cordero, E., De Biase, L., Pennati, V. A.: A new finite volume method for the solution of convection–diffusion equations: analysis of stability and convergence. Commun. Numer. Meth. Engng. 13, 923-940 (1997). |
[50]
,
expressed by the equation (
104)
where the velocity is , the diffusive coefficient can assume either the values 0.002 or 0.001, and the source term is
(105)
with Dirichlet boundary conditions:
. It is worth mentioning that the test takes into account the presence of the source term, which is of particular interest when dealing with convection-diffusion problems. It can represent either a real 1D source term or the effects of transverse transport in 2D or 3D flows. To note that most of the classical schemes give accurate solutions only if no source term is present. In presence of the source term (
105), the solution assumes three different behaviors on the domain: quadratic, constant and exponential. The first problem is solved with Peclet number
Pe = 5 and
0.002 while the second with
=10 and
0.001
. Let consider the domain
[0,1] partitioned in three non-overlapping subdomains
,
and
, interspersed by two Bridge FV. The subdomain
has 18 volumes with diameter 0.04,
has 4 volumes with diameter 0.02 and
has 13 volumes with diameter 0.01. The numerical solutions are obtained by iterative processes, simulating transients with
0.002 parameter that allows for achieving the steady states, i.e. the convergence to the analytical solutions.
The
error norm
assumes, after 1000 steps, the values
0.000578 and
0.000501 in the first and second problem, respectively.
Figure 11 shows the solution for 1000 steps with
Pe=10 and
=0.001. It is notable that the numerical and analytical solutions are very close (in both the tests) and the absolute absence of oscillations. For comparisons with the results obtained from other methods see
| [17] | Leonard, B. P., Mokhtari, S.: Beyond first-order upwinding: The ultra-sharp alternative for non-oscillatory steady-state simulation of convection. Int. J. Numer. Meth. Eng., 30, 729-766 (1990). https://doi.org/10.1002/nme.1620300412 |
| [37] | Pennati, V. A., Marelli, M., De Biase, L. M.: FAST - A generalized FV solution of convection-diffusion problems by means of monotonic v-splines profiles. Int. J. Num. Meth. Heat Fluid Flow. 6, 3-30 (1996). https://doi.org/10.1108/eb017549 |
| [50] | Cordero, E., De Biase, L., Pennati, V. A.: A new finite volume method for the solution of convection–diffusion equations: analysis of stability and convergence. Commun. Numer. Meth. Engng. 13, 923-940 (1997). |
[17, 37, 50].
Figure 11. Graphical solution of the steady state problem with Pe = 10 and = 0.001 error norm 5.01E-4.
7.4. Distribution of a Pollutant in a River
A study of the distribution of a pollutant in a river, developed by Kengni Jotsa in
| [4] | Kengni Jotsa, A. C.: Solution of the 2D Navier-Stokes equations by a new FE fractional step method. Doctoral dissertation, Università degli Studi dell’Insubria, Como, Italy. (2012). Available: http://hdl.handle.net/11383/2090232 Accessed 30 June 2024 |
[4]
, concerns the solution of the convection–diffusion-reaction equation (
106)
(106)
where is the concentration of the pollutant and the velocity is:
(107)
Figure 12. Solution of a convection-diffusion-reaction problem for the distribution of a pollutant c in a river after 10800s.
The source function is
(108)
with F= , the diffusion coefficient = 0.001and the reaction coefficient 0.0115.
The analytical solution of the problem (
106) is
The initial and boundary conditions of Dirichlet at inflow and Neumann at outflow are deduced from the analytical solution. The approximation of the diffusive term is by classical FD schemes. Let partition the domain
[0,3800] with 949 equal FV and be
4
s for a transient of 2700 steps. Despite the fact that the velocity varies both in space and time and the h-adaptivity strategy is not applied, the graphical results illustrated in
Figure 12, appears to be very accurate with the maximum error equal to 1.13E-2.
7.5. 1D Model for Shallow Water Flows
The fifth problem concerns the incompressible fluid-dynamic theory of the long waves
| [51] | Cunge, J. A., Holly, F. M., Verwey, A.: Practical Aspects of Computational River Hydraulics. Pitman, London (1980). |
[51]
. The partial differential equation system consists of a momentum equation, where the unit width discharge
is the dependent variable, and of the continuity equation (or mass conservation), where the water height
relative to a reference level is the dependent variable (
is here replaced by the elevation
of the free surface)
(110)
where , is the diffusion coefficient, is the gravity acceleration, is the bottom slope and is the bottom friction effects depending on the Strickler parameter
The solution of the above system by Ambrosi et al.
and Kengni Jotsa et al.
| [53] | Kengni Jotsa, A. C., Pennati, V. A., Di Guardo, A., Morselli, M.: Shallow Water 1D Model for Pollution River Study. Pure and Applied Mathematics Journal. 6, 76-88 (2017). https://doi.org/10.11648/j.pamj.20170602.13 |
[53]
is based on a fractional step procedure for time advancing, which allows that the physical contributions are decoupled. The non linear convective term presented in the first equation of (
110) is linearized at first order "freezing" velocity at the previous time step. The spatial discretization of the equations is by equal FV, so that the numerical solution is second order in space. In detail, the fractional step consists in
with(112)
with(113)
(114)
with(115)
and with
bottom depth respect to a reference level. To obtain the equation (
114), of Helmotz type (see Kengni Jotsa et al.
| [53] | Kengni Jotsa, A. C., Pennati, V. A., Di Guardo, A., Morselli, M.: Shallow Water 1D Model for Pollution River Study. Pure and Applied Mathematics Journal. 6, 76-88 (2017). https://doi.org/10.11648/j.pamj.20170602.13 |
[53])
.
Algorithm 7.1.
The four numerical steps are:
1)
let obtain calculated , solve explicitly the advection equation (112) by Fastest, assigning Dirichlet boundary condition at inflow and a numerical boundary extrapolation at outflow2)
let obtain solve the equation (113), assigned the bottom slope , the diffusion parameter and the Strickler friction parameter 3)
let obtain solve the implicit equation (114), assigning homogeneous Neumann boundary condition at inflow and homogeneous Dirichlet boundary condition at outflow, by the Thomas solver (to note, the matrix of the system has the diagonally dominant property and is well-conditioned)4)
let obtain solve the equation (115) with the updated elevation and finally, update the values of .A shallow water problem with known analytical solution has been solved by means of the above scheme by Kengni Jotsa et al.
| [53] | Kengni Jotsa, A. C., Pennati, V. A., Di Guardo, A., Morselli, M.: Shallow Water 1D Model for Pollution River Study. Pure and Applied Mathematics Journal. 6, 76-88 (2017). https://doi.org/10.11648/j.pamj.20170602.13 |
[53]
and Vignoli et al.
| [54] | Vignoli, G., Titarev, V. A., Toro, E. F.: ADER schemes for the shallow water equations in channel with irregular bottom elevation. J. Comput. Phys. 227, 2463-2480 (2008). https://doi.org/10.1016/j.jcp.2007.11.006 |
[54]
. Let defined
A=2
,
,
,
,
, the expression of the elevation, the discharge and the water height, respectively are
ξ(x,t)=0.2*C*D, q(x,t) = 0.9 - 0.2*B*E, h(x,t) = 3 +ξ(x,t)(116)
giving rise to the source function
f(x,t)=5.886*A*B*C+0.3924*A*B**D+. (117)
Figure 13. Solution of a 1D Shallow Water problem elevation after 10800.
Figure 14. Solution of a 1D Shallow Water problem unit discharge after 10800s.
The physical parameters are:
0.00001 and
9.81, and the slope and friction effects are considered null. Let partition the domain
[3800] in 1899 equal FV and be
1
s. The initial and boundary conditions are obtained by the analytical solution (
116).
Figure 13 and
Figure 14 show graphically the elevation
and the unit discharge
, at the end of a transient of 10800
s. The values of error norms
and
are respectively 0.2405 and 0.0054 for
0.2864 and 0.0095 for
. A large number of numerical tests have been carried out with optimal results (here omitted for sake of brevity).
The system of equations (
110) assumes importance for a generalization to shallow water 2D and 3D problems, as well as to study the propagation of moderately long waves while considering their dispersion (
e.g. Boussinesq equations), and finally for the simulation of flows in
Open Channel problems
| [53] | Kengni Jotsa, A. C., Pennati, V. A., Di Guardo, A., Morselli, M.: Shallow Water 1D Model for Pollution River Study. Pure and Applied Mathematics Journal. 6, 76-88 (2017). https://doi.org/10.11648/j.pamj.20170602.13 |
[53]
.