Abstract
In the context of the development of the research project (Boulaaras et al.) which was supported by the Deanship of Scientific Research of Qassim University under the Project No. 1140 during the academic year 2016/1437, this research will introduce a two dimensional mathematical model based on the finite elements spatial method combined with a finite differences time scheme applied to the diffusion equations. This model will be applied in the hypothetical example where the obtained results will be compared with the real experimental data. Such a comparison will allow to predict the soil temperature for different depths and at different time periods according to certain conditions on the weather and take into account the stability conditions of the used numerical method. It’s worthy of note that some of the concreted mathematical problems will be addressed by the experimental scientific theories of functional analysis and then the numerical simulation of the theoretical study will be provided thanks to sophisticated methods with more convergence and stability. This mathematical model would be reduced by means of physical measurement and also in charge of the physical cost.
1. Introduction
In the recent years, many alternative methods have been used to speed up solving partial differential equations explaining natural phenomena. At this regard, Galerkin methods are being used instead of finite difference style methods to resolve the horizontal and vertical fields in numerical model. These methods can be used to solve partial differential systems and the problems of free border as presented in [1,2,3,4,5,6,7], but so far, such works do not use this method directly in the field of values of grid points after the scale partition. Therefore, no improvements was held concerning the accuracy of the solutions of the ordinary differential equation systems. The processes adopted in solving such systems basically consists of two methods: The finite element method, and the spectral method. Finite element method is a numerical method relies on principles inherited from the weak formulation, which implements a discreet mathematical algorithm aiming to find an approximate solution to the problem of free boundary (see [8,9,10]), and well known as Dirichlet conditions or Neumann data. The method of finite elements differs from the spectral method because it is not exhaustive; it allows instead to specify local values. However, it is a specific approximate function defined throughout the region and not just at distinct points (see [11,12,13,14,15,16,17,18,19,20]).
In fact, numerical methods can be used to solve complicated and unsolvable problems by analytical methods. The use of numerical solutions is limited in terms of the relative errors that must appear after doing a given numbers of iterations in the numerical calculations, and which must be estimated on an appropriate way to judge the acceptance or the rejection of the obtained results. Moreover, the numerical method raises questions about the proposed division such as the convergence and the stability of the method in order to ensure the existence and the uniqueness of the solutions of the studied problem. The numerical analysis relies on the description of the methods, which may allow obtaining numerical solutions to mathematical issues that are usually difficult to be solved by the usual analytical methods. On some issues, we cannot find solutions set by direct analytical methods and conventional theories. In such cases we look for algorithms of specific numerical methods to get the almost exact solutions in given points. Computational modeling can provide a very easy way to predict, and in many cases, can significantly reduce the required amount of field testing. The development of a two-dimensional and three-dimensional model which can be applied to some evolutionary partial equations during the second half of the twentieth century, drew on a continuous progress through automated calculation tools based on classical numerical methods such as finite differences.
In this context, and given that the exact analytic solutions are difficult to be obtained, or indeed do not exist, modern numerical methods, such as the finite elements method, are being applied to some diffusion equations describing the behavior of the soil temperature for different depths and at different day-times according to certain conditions on the weather. Thus, the finite element method, which is falling into a more general Galerkin family method, will be applied along this work to solve such diffusion equations in two-dimension case. The method should take into account the stability conditions of the used numerical method, where the expected values are determined from the initial known values through the observations of the temperature source. The computational model of the transport equations consists of two main steps: The first is to present the equation system that governs the behavior of the continuous temperatures in the soil. The second step is to supersede the equations on the continuous variables with equations involving a separate variable of its solution, obtained by an appropriate algorithm. Moreover, we aim into this research to highlight the application of the method to parabolic equation.
The outline of the paper is as follows: In the first section, some necessary notations of the problem by means of detailed finite element methods description are introduced, where the numerical analysis of the heat equations is studied in order to get the weak formulation of the presented problem using the finite deference time scheme combined with Galerkin method. Then, we establish the stability analysis of the given schemes. In the second section, a two-dimensional numerical prediction model that predicts the temperature field for different depths of homogeneous soil and for different times as well as days is presented. By using the finite element approximation of the Lagrange polynomial of order 1, it will be possible to check the effects of the different parameters governing the physics phenomena as well as the effects of the soil characteristics. And finally, we perform experimental measurements of the ground soil temperature in Qassim province in Kingdom of Saudi Arabia which will be used as real data in order to prove the accuracy of the presented numerical method.
2. Finite Element Methods
2.1. Finite Element Methods Description
The finite element method can be defined on by a set of nodes and corresponding base functions
Each base function corresponds to a degree of freedom (dof). most of finite element methods are scalar, which means that but GETFEM support also intrinsic vectorial elements. The map between the reference element and the real element is called geometric transformation and is denoted by
This map is supposed to be polynomial (see [1,13]). The base functions defined on the reference element define a set of base functions on the real element defined by
If the element is said to be equivalent through the geometric transformation (or -equivalent) then the base functions on the real element are just defined by
This is generally the case for Lagrange elements, but not for Hermite elements (when some dof represent the gradient of the unknown). When the element is not equivalent through the geometric transformation then GETFEM allows to define a square matrix depending on the real element (i.e., on the geometric transformation) such that base functions on the real element are defined by
We denote by
the matrix, such that when a function is defined by
One has
where is the vector of the components .
2.1.1. Different Types of d.o.f
To each base function of a finite element method corresponds a degree of freedom (d.o.f.) which is a linear form on this function. Table 1 gives the most significant types of d.o.f.
Table 1.
Most significant types of d.o.f.
2.1.2. Graphical Codification of d.o.f
The graphical codification of d.o.f can be defined as shown in Figure 1.
Figure 1.
Symbols representing degree of freedom types.
2.2. Classical Lagrange Elements on Simplifies
We can define a classical Lagrange element of qualitative dimension and qualitative, degree. This element has only degrees of freedom wich corresponds to the value of the function on a node. The grid of node is the so-called Lagrange grid. Figure 2, Figure 3 and Figure 4 show examples of dimension 1, 2 and 3.
Figure 2.
Examples of classical Lagrange elements on a segment.
Figure 3.
Examples of classical Lagrange elements on a triangle.
Figure 4.
Examples of classical Lagrange elements on a tetrahedron.
The degree number of freedom for a classical Lagrange element of dimension P and degree K is . For example, in dimension 2 (), this value is , in dimension 3 (), this value is
The method specified in GETFEM++ for the numbering of contracts is also illustrated in the Figure 2, Figure 3 and Figure 4. Using another numeration, let
be some indexes such that and .
Thus, we can compute the coordinate of a node as:
where are the vertexes of the simplex (for the particular choice has been chosen). Then each base function, corresponding of each node is defined by
where are the barycenter coordinates, that is to say the polynomials of degree 1 whose value is 1 on the vertex and whose value is 0 on other vertices, we have
Between two elements of the same degrees, d.o.f of the common face are linked, and the element is of class . This means that the global polynomial is continuous. If we try to to link elements of different degrees, we will have some problems with the unbound d.o.f. This is not automatically supported by GETFEM++, so we will have to support it.
For some applications (gradient calculation for example), we do not want d.o.f. of a common face to bind. That’s why there are two versions of the classical Lagrange element (see Table 2, Table 3 and Table 4).
Table 2.
Classical “” Lagrange element.
Table 3.
Discontinuous “” Lagrange element.
Table 4.
Lagrange element on parallelepiped.
Although Lagrange elements are set at random levels, a high degree selection can be a problem for a large number of applications. These elements are recommended for basic interpolation but for p.d.e. Applications, hierarchical elements are best (see corresponding section).
2.3. Other Geometries of Classical Lagrange
The classic Lagrange is obtained in parallel or prisms like a tensorial product of Lagrange elements on simplifies. When two elements are defined, we have on a dimension and the other in dimension , we have the base functions of the tensorial product (on the reference element) as
where and are respectively the base functions of the first and second element (see Figure 5)
Figure 5.
Examples of classical Lagrange elements on dimension 2.
The element on a parallelepiped of dimension P is obtained like the tensorial product of P classical element on the segment. The examples in dimension 2 are shown in Figure 6 and in dimension 3 in Figure 7.
Figure 6.
Examples of classical Lagrange elements on dimension 3.
Figure 7.
Lagrange element on a prism 12 d.o.f. .
A prism in dimension P is the direct product of a simplex of dimension with a segment. The element on this prism is the tensorial product of the classical element on a simplex of dimension with the classical element on a segment. For this coincide with a parallelepiped. Examples in dimension 3 are shown in Figure 7. This is also possible because we do not have the same degree in every dimension (see Figure A10 and Figure 10). An example appears in Figure 8, Figure 9 and Figure 10 and a recapitulation in Table 4.
Figure 8.
Lagrange element on prisms.
Figure 9.
Incomplete element, 8 d.o.f., .
Figure 10.
Incomplete Lagrange on quadrilateral (Quad 8 serendipity element).
2.4. Elements with Hierarchical Basis
The idea behind the hierarchical base is to describe the solution at a different level: the rebound level and the most precise level. In the same estimation, some degrees of freedom represent a corrupt description, others more precise, etc. This corresponds to the precision domains. The hierarchical base contains a base for each of these spaces (this is not the case in classic Lagrange elements when optimizing the grid).
Among the advantages, the condition number of the stiffness matrices can be improved, which allows a local multigrid refinement approach.
Hierarchical Elements with Respect to the Degree
Figure 11.
Hierarchical element on a segment, .
Figure 12.
and Classical Lagrange element on simplifies, prisms and parallelepiped with hierarchical bases.
2.5. Elements with Hierarchical Basis
Some particular choices: will be build with the basis of the , the additional basis of the then the additional basis of the .
will be build with the basis of the , the additional basis of the then the additional basis of the (not with the basis of the , the additional basis of the then the additional basis of the , this possible to build the latter with FEM-GEN-HIERARCHICAL(a,b) (see Figure 13).
Figure 13.
Composite element “FEM-STRUCTURED-COMPOSITE (FEM-PK (2,1,3))”.
2.5.1. Composite Elements
The main interest of composite elements is to build hierarchical elements. But this tool can also be used to build piecewise polynomials.
Figure 14.
Composite of a finite element method on an element with S subdivisions.
2.5.2. Hierarchical Composite Elements
The method principle of Hierarchical composite element “FEM-PK-HIERARCHICAL-COMPOSITE (2,1,3)” and finite element method on a simplex with S subdivisions are demonstrated in Figure 15, Figure 16 and Figure 17.
Figure 15.
Hierarchical composite element “FEM-PK-HIERARCHICAL-COMPOSITE (2,1,3)”.
Figure 16.
Hierarchical composition of a finite element method on a simplex with S subdivisions.
Figure 17.
Hierarchical composite elements.
It is important to use a corresponding composite integration method.
2.6. Specific Elements in Dimension 1
2.6.1. GaussLobatto Element
The polynomials coefficients are pre-computed with Maple, hence they are only available for the following values of . We can remark that for and , this is for the classical and (see Figure 18).
Figure 18.
GaussLobatto element.
2.6.2. Hermite Element
Base functions on the reference element
Note that, this element is close to be -equivalent. The real value of the gradient on vertices are multiplied by the gradient of the geometric transformation. is not equal to identity but is diagonal (see Figure 19 and Figure 20).
Figure 19.
Hermit element on a segment, 4 d.o.f., .
Figure 20.
Hermite element on the segment.
2.6.3. Lagrange Element with an Additional Bubble Function
In the following, Figure 21 is showing Lagrange Element with an Additional Bubble Function, while Figure 22 is showing Lagrange element with an additional internal bubble function.
Figure 21.
Lagrange element on a segment with additional internal bubble function, 3 d.o.f., .
Figure 22.
Lagrange element with an additional internal bubble function.
2.7. Specific Elements in Dimension 2
2.7.1. Elements with Additional Bubble Functions
Figure 23, Figure 24 and Figure 25 are explaining the principle of Elements with Additional Bubble Functions.
Figure 23.
Lagrange element on a triangle with additional internal bubble function. (a) with additional internal bubble function, 4 d.o.f., , (b) with additional internal bubble function, 7 d.o.f., .
Figure 24.
Lagrange element on a triangle with additional internal bubble function on face 0, 4 d.o.f., .
Figure 25.
Lagrange element on a triangle with additional d.o.f. on face 0, 4 d.o.f., .
2.7.2. Non Conforming Element
Figure 26.
non-confirming element on a triangle 3 d.o.f., discontinuous.
Figure 27.
Hermite element on a triangle , 10 d.o.f., .
2.7.3. Hermite Element
We can give the following base functions:
This element is not -equivalent (the matrix is not equal to identity). On the real element linear combinations of and are not used to match the gradient on the corresponding vertex. Idem for the two couples and for the two other vertices (see Figure 28).
Figure 28.
Hermite element on a triangle.
2.7.4. Argyric Element
Figure 29 is defining the Argyric Element.
Figure 29.
Argyric element , 21 d.o.f., .
We can give the following base functions:
On the real element linear combinations of the transformed base functions are used to match the gradient, the normal derivatives and second derivatives and on the faces. We ca note that the use of the matrix (see also the documentation on the finite element kernel [1]) allows to define Argyric element even with nonlinear geometric transformations (see Figure 30).
Figure 30.
Argyric element on a triangle.
2.8. Specific Elements in Dimension 3
2.8.1. Elements with additional Bubble Functions
The Elements with additional Bubble Functions principle is explained in Figure 31, Figure 32 and Figure 33.
Figure 31.
Lagrange element on tetrahedron with additional internal bubble function. (a) with additional bubble function, 5 d.o.f., . (b) with additional bubble function, 11 d.o.f., . (c) with additional bubble function, 21 d.o.f., .
Figure 32.
Lagrange element on tetrahedron with additional internal bubble function on face 0, 5 d.o.f., .
Figure 33.
Lagrange element with an additional internal bubble function on face 0.
2.8.2. Hermite Element
Figure 34 is showing the case of Hermite Element.
Figure 34.
Hermite element on a tetrahedron, , 20 d.o.f., .
Base functions on the reference element:
This element is not -equivalent (the matrix is not equal to identity). On the real element linear combinations of and are used to match the gradient on the corresponding vertex. Idem on the other vertices (see Figure 35).
Figure 35.
Hermite element on a tetrahedron.
2.9. Interpolation of Elements on Different Meshes
To increase the precision, it is not necessary to raise the order of the integration method. It is recommended to keep the normal order and use composite integration methods (see Figure 36 and Figure 37).
Figure 36.
Interpolation of elements on different meshes.
Figure 37.
Use of the composite integration method to increase the precision.
3. Integration Methods
3.1. Integration Methods Description
Integration methods are of two types. Exact integrations of polynomials and approximated integrations (cubature formulas) of any function. Exact integration can only be used if all elements are polynomial and the geometric transformation is linear.
A descriptor on an integration method is available thanks to the function
-- where is a string to be chooser among existing methods.
3.2. Exact Integration Methods
Figure 38.
Newton cotes integration methods.
Figure 39.
Newton cotes integration methods.
Even though a description of an exact integration method exists on parallelepiped or prisms, most of the time geometric transformations on such element are not linear and the exact integration can not be used.
3.3. Newton Cotes Integration Methods
Use “IM_NC ()”, “IM_NC_PARALLELEPIPED ()” and “IM_NC_PRISM ()” to have the Newton cotes integration of order K respectively on simplifies, parallelepiped and prisms.
3.4. Gauss Integration Methods on Dimension 1
Use “IM_GAUSS1D (K)” to have the Gauss-Legendre integration on the segment of order K (with points), and “IM_GAUSSLOBATTO1D (K)” to have Gauss-Lobatto-Legendre integration on the segment of order K (with points). The latter integration method is only available for odd values of K. The gauss-Lobatto integration can be used in conjunction with “FEM_PK_GAUSSLOBATTO1D ()” to perform mass lumping.
3.5. Gauss Integration Methods on Dimension 2
The is illustrated in Table 5.
Table 5.
Gauss integration methods on dimension 2.
4. Implementation of the Finite Element Method
This section discusses guidelines for implementing computer science of the finite element method. We start with the first step: the data of the mesh. We then discuss discretization, construction of equations and finally the resolution.
4.1. Data Structure of a Mesh
The data of a mesh consists at least by giving:
- The list of nodes
- The connectivity table
4.1.1. The List of Nodes
It is characterized by:
- number of nodes.
- The coordinates of each node .
For example:
- Dimension 1:Table with entry of length (see Figure 40).Do not always store this data structure. If the grid is uniform, it is given implicitly by
- Dimension 2: table of coordinatesNumber of nodes:Table with two lines and columns (see Figure 41).
Figure 40.
List of nodes, dimension 1.
Figure 41.
List of nodes, dimension 2.
In the following example: (see Figure 42).
Figure 42.
Distinction of vertices on the boundary of the inner vertex.
4.1.2. Connectivity Table
It is characterized by:
- : number of elements.
- For each element is given: number of the node j of element e.
For example:
- Dimension 1For each elementFor the one-dimensional case, the connectivity table is implicit from the list of vertices. It is therefore useless to store.
- Dimension 2: For a mesh in triangles,: number of triangles.: ,
The order in which the vertex numbers are given is not important (see Figure 43). If we can, we must respect a meaning as here the trigonometric sense. This can facilitate for some problems some programming points.
Figure 43.
Dimension 2: For a mesh in triangles.
Often a reference number is added to introduce a characterization of the equations at the level of each element.
The table in Figure 44 indicates that elements 1 and 3 have the same characteristics, as well as elements 2 and 4.
Figure 44.
Meshes in triangle for 2 dimensions.
4.2. Meshing and Boundary Conditions
We limit ourselves to the case where the dimension of the boundary problem is . For , we assume that is a polygonal domain. We give ourselves a meshing with segments if and with triangles if . We denote by the vertex numbers of that belong to the closure of ; is usually given using vertex reference numbers.
Let examine the following examples (see Figure 45):
Figure 45.
Meshing and boundary conditions.
- Dimension 1 : , ,
- Dimension 2 :
Knowing that is the space of finite elements, we pose
(or else is the subspace of whose nodal values on are zero)
If in dimension two we suppose that the mesh is compatible with the change of type of boundary conditions, i.e., if the junction points of and are vertices of the mesh, we have the following proposition.
Proposition 1.
Under the condition of previous compatibility on the mesh, we have
Proof.
In dimension , there is nothing to prove. In dimension 2, just note that a function of is null on an edge of a triangle if and only if it vanishes at the ends of this edge. □
We will admit the following proposition whose result is intuitive.
Proposition 2.
The spacesandrespectively constitute internal approximations ofand of V.
- Without any restriction if
- Under the following angle condition if Ω is a polygonal domain of
The angle condition expresses that the mesh must not have flattened triangles as in Figure 46.
Figure 46.
Unaccepted flattened triangles from the angle conditions.
This is why often, to refine the meshes, one operates in the following way: one divide each triangle into 4 by joining the middle of its edges (see Figure 47).
Figure 47.
Mesh refining.
4.3. Assembling
The term assembling refers to the process of forming the equations of the linear system resulting from the application of a finite element method. The effectiveness of this process, which is generally not available for other Galerkin methods, participates for a large part to the popularity of the finite element method.
It is recalled to obtain the discrete problems associated with the variational formulations Constructed Using Finite Element Spaces and . We therefore give an approximation of h in . Assuming that the function , one can construct the function by the following the way (of interpolation) by giving its nodal values on the vertices of the mesh
The discrete problem is then written
Base functions were determined by their restriction to every element. They are defined by the conditions
The variational system (2) is then equivalent to a linear system, we interest now to the formation of the coefficients. These coefficients are obtained by the contribution of each element of the mesh. Each of these contributions is described by small matrices: the elementary matrices. The assembling process makes it possible to accumulate all these contributions.
4.4. Elementary Matrices
The restriction of the bilinear form and the linear form to the subspace is described in the basis of by the Total matrices
where (resp ) are the nodal values of (resp ). The assembling process is based on the fact that the integrals.
With the appropriate adaptations for the one-dimensional case, can be decomposed in a sum of integrals on each element
where indicates the sum on the faces (edges in the case ) composing the boundary of and (respectively ) the polynomial expressions of (resp. ) in the element . In the one-dimensional case, the last term of the sums above is given by and respectively.
They are described globally in a direct way as we will see later. Therefore, each of the integrals above depends only on the nodal values of and (or only of ) relative to a node in . So we can describe them using matrices (or only ) where l is the number of nodes per element: in dimension , in dimension . These are the elementary matrices. We gives the list below.
- Elementary Stiffness Matrix
- Elementary Mass Matrix
- Elementary Volume Loading Matrix
- Elementary Stiffness Matrix Concentrated on the Edgewhere is a face (edge in two dimension) on and is the number of nodal values on , and are the respective restrictions of and on .
- Elementary Loading Matrix concentrated on the EdgeMatrices and forces concentrated in dimension are introduced at the initialization or the end of the assembling process.
4.5. Elementary Matrices in One Dimension
We have here .
Taking a mesh compatible with the possible discontinuities of the data, that is, for which data discontinuities are always at the interfaces between two elements, we can assume that
For example, for the function shown in the Figure 48
Figure 48.
Assumptions for data discontinuity.
we have
Then, the particularization of the general situation in the case of the dimension gives
- Elementary stiffness matrixwhere is the element length. Then we havewhere is the mean value of the function on the elementthat we can approach by the trapezes formula or the middle point one
- Condensed mass matrixGenerally, it is sufficient to calculate the integral (4) in an approximate way by the method of trapezeswith , . This gives a diagonal matrix
- Elementary loading MatrixHere again we can use the trapeze formula to approximate the integral (5)with , . This gives the elementary matrix
- Matrices concentrated on the edgeIt is here matrices with a single non-zero coefficient which are given directly fromby
4.6. Elementary Matrices in Dimension Two
We note in the same way as in dimension on the expressions of the restrictions , the matrix whose coefficients are the , and that we can suppose in if the mesh is compatible with the discontinuities of the data.
We can then give the expression of the elementary matrices.
- Elementary stiffness matrixThe following method of determining the elementary matrix is in fact general. She can be used for the determination of any elementary matrix and in the framework of any finite element method. We have by definitionThen if we denote by the mean value of onWe now express and using their polynomial coefficients and a matrix writingWe can then calculateWe then use the relation which makes it possible to connect the polynomial coefficients with the nodal valueswhich can be written in matrix formwhereand likewiseTo express the polynomial coefficients using the nodal values, we calculate the inverse .This inversion is in fact the determination of the basic functions on the element of the finite element. As can be seen, this determination can be made (for this element and for any finite element) in a completely implicit way by programming.Using all previous relationships, we getHence we obtain the elementary stiffness matrix by a simple calculationThe mean value of can be obtained by an approximate integration formula as in dimension onewhere is the value pf at vertix , and value of at the center of gravity of .
- Stiffness Matrix concentrated on the edgeWe usually have the data provided by the mesh (otherwise we can build by programming) from the list of edges on the border, each with a reference number that allows you, among other things, to know if the edge is contained in or does not cover . We can therefore assume that we have the following data: number of edges on the borderAnd for each edge .: number of the first vertex: number of the second vertexthus, We can traverse the edges and calculate the elementary matrix giving the contribution to stiffness concentrated onwhere . If we approach this integral by the trapeze formula, we getwhere is the edge length and , .
- Condensed mass matrix.The condensed mass matrix without using the matrix and by using the integration formula approached from the verticeswhere , , are values of on the vertices of , we have then:The fact that the conditional mass matrix is ​​diagonal will be decisive in some solving problems in dynamics, that is to say, depending also on the time t.
- Elementary loading MatrixWe have the same as for the elementary loading Matrix of volume in dimension onewith , .The elementary loading matrix concentrated on the edge is given in the same way bywith , .
- Assembling. The total stiffness matrix is defined byUsing the decomposition of the integral onand the definition (3) of the elementary stiffness matrix, we obtain the following relation between the total stiffness matrix and the elementary stiffness matricesWe then identify the coefficient of in both members of this realation to getConsequences:This last formula summarizes the assembling process. it has several consequences.
- A coefficient is null if and are not the vertices of a same element. In other words, degrees of freedom and are not coupled (i.e., or the equation relating to depends on the unknown ) only if and belong to the same element.
- To form , simply browse the elements by adding successively the contribution of each elementary matrix to the total matrix with , .
5. Time Dependent Problems
In this section we limit ourselves to introducing the principles underlying the processes of numerical resolution of the problems modeling phenomena evolving during the time. This type of problems is called evolution problems.
5.1. Evolution Problems Models
We give below two typical examples of time-dependent problems. Most of the situations encountered in engineering have the characteristics of one or the other of these two examples.
5.1.1. Model Problems
We assume for simplification that and and we make the fundamental assumption that the matrix is symmetric (and thus positive definite) for almost all . It is further assumed that the data f depends not only on x but also on (i.e., one gives defined on ). We give also a function verifying
The two typical examples of time-dependent problems are put in this way.
- Parabolic problemwhere is the initial data of the problem.
- Hyperbolic problemwhere now the problem requires two initial data and .
5.1.2. Variational Formulation
5.2. Semi-Discretization in Space
5.2.1. Finite Element Method
We use a mesh of :
- In segments if is a segment,
- In triangles if is a polygonal domain of the plane,
- in tetrahedrons if is a polyhedral domain of space.
Consistent with data discontinuities of given data and . We then use the -continuous finite element method to approach respectively and V by and .
The test functions do not depend on time t. They are approached by functions completely determined using their nodal values where is the number of vertices of the mesh (we omit the exponent h to lighten the notation). We note by the column vector formed by the nodal values of
If we suppose that the numerotation of the vertices is such that is numbered by i varying from to , the vector of nodal values not fixed at zeros of is given by
The approximation of the unknown function u is carried out as follows: for all , is approximated by a function . In particular, function is completely determined by functions giving the nodal values of . We also note the function of t defined in
Similarly, the membership of to is characterized by the conditions
so that the only unknown functions to be determined are the components of the vector
Assuming that the initial data are sufficiently regular (actually in ), we can approach them from their values at nodes by a vector that we suppose to check : condition compatibility on the initial data. These nodal values determine functions .
To approach u, we are naturally led to solve the variational problem
whose unknowns are N unknown functions , .
5.2.2. Reduction to a Differential System
In addition to the total stiffness matrix defined by the relation
we form the total mass matrix defined by
where is as above with the column vector formed by nodal values ​​of We also define for all the total loading vector whose components depend on time t are given by the relation
The problem (11) can therefore be written using these notations
where is a vector with components , satisfies conditions (10) and similar conditions
Exactly as in the case of problems not dependent on t, removing the rows and columns of the matrices stiffness, mass and loading corresponding to degrees of freedom blocked at zero, the previous matrix variational system is rewritten
In this system, and respectively denote the matrices: stiffness , mass and final loading.
5.2.3. Matrix Properties of the Differential System
We have assumed that the matrix A of coefficients of the PDE was symmetrical. This leads to the fact that the bilinear form is symmetrical and hence the matrix stiffness K is symmetrical.
The final matrix M is also symmetrical since the form satisfies
then we have the fundamental result for the resolution.
Proposition 3.
Whatever its exact or condensed determination, the matrix mass M is positive definite.
Proof.
We have first, for satisfying the conditions (13)
then, we have
where , are the respective nodal values of and at the vertices of the element and vertices number of . The condition gives then directly that as soon as . □
Remark 1.
The condensed mass matrix is a diagonal matrix
with().
Ifis empty, i.e., if we have a Neumann condition on the whole border Γ, the form is generally positive but undefined. In this case the matrix K is symmetrical and positive but not defined. This is assumed in all the following.
5.3. Time Diagrams
One is thus brought back to solve the differential system 14 which one can carry out using a numerical method of determining the solution at the points of a grid of the interval
or at the points
The system (14) is a differential system whose Lipschitz constant is in . It is then stiff, it can not be solved by any scheme. We briefly describe below a family of diagrams for parabolic problems, the -schemes, and a diagram for the hyperbolic equations, the Neumark scheme.
5.3.1. -Scheme for the Parabolic Equations
These are one-step diagrams integration of the differential system (14). Recall that for the construction of this type of scheme we have to use a numerical integration formula. Indeed, if is differential solution to the system
where designates the vector whose components are derived from components of , we have
or
We then approach the integral of the second member by the numerical integration formula
Then we get the scheme
where
is the vector whose component gives the approximation of the nodal value at moment and with similar notation for This scheme is rewritten by putting all the known terms after m no integration in the second member
The schemes for are conditionally stable. This makes them difficult to use, or even practically useless. In fact, the only interesting scheme of this type is the explicit Euler scheme obtained for
When the mass matrix M is condensed, the calculation of is done by resolution of a diagonal system.
The schemes for , are highly stable schemes. The scheme with the best stability property is the implicit Euler scheme obtained for
For , we obtain the Crank-Nicholson scheme. It is a weakly stable. But it’s the only one that’s a 2nd order scheme. Note that for any scheme with , we must solve at each step of integration a finite element problem
with
It is clear that the direct methods, if the system size is not too large, are most indicated. By decomposition of A using the Gauss algorithm Under the form
With each step of integration, one is thus brought to solve two triangular systems.
5.3.2. Neumark Scheme
It is now a question of solving the order 2 system in time
We limit ourselves to the most used Neumark scheme. It is used on a uniform grid
It is obtained by the following two approximations.
- Order two approximation of the second derivative by a derivation in the sense of centered finite differences
- Order two approximation for the second member to improve stability propertiesThen we get the schemewithWe need two initial data: and , we havelet calculate using Taylor development of order 2we haveBy going back to (16), we can calculate
5.4. Modal Analysis
5.4.1. Resolution of a Differential System by Diagonalization
Recall how to solve the differential system
by diagonalization. Suppose that A is diagonalizable, i.e., that there exists a matrix invertible V and a diagonal matrix diag () such that
This leads to assuming that there exists a basis (of or of ) depending on whether at least one eigenvalues be complex or not) which is actually the family of vectors formed of column vectors of V which are the eigenvectors corresponding to eigenvalues Multiply on the left the system (18) by and make the changed function.
We are brought back to the system
with , , .
This system is decoupled: it is equivalent to the resolution of N decoupled differential equations
It is solved directly. We assume to simplify the discussion and because that will be checked for the case which interests us subsequently that the eigenvalues are real and positive. They are ordered as follows
- System of order 1
- System of order 2withif
5.4.2. Problem with Generalized Eigenvalues
The system (14) is not in the form (18). Since M is symmetric definite positive, we can brought back to it. We decompose M by Cholesky’s algorithm
where R is upper triangular and invertible. Multiply the system (14) by and by R the initial conditions. We write to simplify
Then let’s
and
We are thus brought back to the previous case with
However, since K is symmetrically positive, we have more precise results concerning its eigenvalues and its eigenvectors.
Proposition 4.
There exists a matrixorthogonal, i.e.,
such that
withdiagand
Proof.
Just make sure that A is symmetrical and positive. We have
since and
with , then we get
□
From this proposition we deduce the following theorem.
Theorem 1.
5.4.3. Modal Resolution
From matrices intervening in relations (27) and (28), we write the system (14) in the form
then, let
Each term is called a mode for the problem (14). It requires to be calculated, the determination of the eigenvalue and an eigenvector normalized by the condition
In fact, one does not need to calculate all the terms of the sum (32) to obtain a good approximation of . It suffices to have the first eigenvalues and eigenvectors
To get an approximation of the solution with good accuracy.
6. Application
As an application for this work, experimental measurements of the temperature on the ground and in the soil are held. Such a data is in fact a useful tool to check the accuracy of the so-presented method using the error assessment in accordance with the weather temperatures data in Qassim province. It is worthy of note that Qassim province is one of the the most important region among the thirteen administrative regions of Kingdom of Saudi Arabia, situated in the middle of the country, which has a population of about 1,370,727 and an area of 58,046 km, and known for its massive agricultural production.
6.1. Obtaining Initial Data
- The experimental setup are based on the the weather data on 7–10 March 2017. Temperature measurements are taken in in agricultural ground soil at and 50 cm levels, where the maximum and minimum values of the temperature are recorded.
- It’s known that for any numerical prediction model, the data at the boundaries of the domain are indispensable. Hence, the boundary designating the ground temperature is determined for each 10 min through a linear interpolation along the minimum and the maximum values for a given day, while the boundary is determined by referring to a previous work presented in [21]. The heat storage along the soil depth almost deals with the upper 60 cm layer. However, the experimental data show a deeper dependence of the temperature, i.e., depths exceeding 60 cm seem to be sensitive to climatic variations.It ’s possible to estimate the temperature at 60 cm depth in the soil by studying the variation of the thermal gradient (the experimental data at 60 cm depth is not available) and considered to be a constant value for the whole experiment during 24 h (such an assumption is validated in a previous work), and the results are shown in Figure A1.
- Taking and cm .
- The model will be run to get a value each 10 min along 12 h. The obtained results are then compared with the real data in order to estimate the mean squared error.
- There are two modes of calculations: The first one so-called with initialization, means that the model can be turned while the data is initialized at 6 h, 12 h and 18 h. The second mode is called without initialization, where the model is executed for the whole deadline without any reset of the data.
6.2. Realistic Experience
The ground temperature can be predicted at different levels in the soil for different integration deadlines through the numerical code based on the finite element technique. Hence, two way of simulations are realized. The first way starts the the calculation without initialization and generates the predictions for different times. The second simulation launches the calculation with initialization for each 11 h. Thus, it would be possible to compare the predicted and the experimental values. The quadratic error and equally the mean squared error are calculated for each deadline along the whole simulation and the obtained results are as follows:
6.2.1. Without Initialization
A good agreement can be seen between the predicted and the experimental results for small depths, as shown in Figure A2. However, some differences between prediction and real data seem to appear when the depth increases. We note that the model gives exactly the real temperature for the 25 cm depth.
Taking Figure A3 in consideration, it’s clear that the agreement between the predictions and the experiment is quite good for the shallow depths, and the model regenerates almost the same values of the experiment for the levels between 25 and 30 cm. But on the other hand, Figure A2, Figure A3, Figure A4, Figure A5, Figure A6, Figure A7 and Figure A8 don’t show a good agreement between simulation and experimental data, especially for the too high deadlines, namely 36 h, 48 h and 60 h for the different depths. In fact, the model has a weak overestimation for the temperature for small depths and underestimations for large depths. Thus, the best agreement are gotten for the depths included between 25 and 30 cm, which are still close to the observations, while the comparison for 72 h, 84 h and 96 h prove that the temperatures are not very well reproduced, though it persists to be close to the real data in the range of less than 0.6 C.
Moreover, looking at Figure A9 allows to conclude that the smallest quadratic errors are fitting for the lowest deadlines, which is reasonable from a statistical point of view since the the model starts drifting away from the experimental value when the maturities increase. But if our case is considered, the simulation returns a quite well estimation for the deadlines of 84, 96 and 108 h (see Figure A10). It is worthy of note that the lowest error (0.19) corresponds to the best behavior of the model at the end of 24 h.
6.2.2. With Initialization
According to Figure A11 and Figure A12, the 12-h simulation with initialization does not report notable dissimilarity between the two predictions, where the same behavior of the model is realized with a small overestimation for the little depths and and a slight underestimation for larger depths. This would be checked by means of the the squared error, which reports exactly the same value for both methods. Figure A13, Figure A14 and Figure A15 equally allow the comparison between the simulation and the experimental results for the 24 h and 36 h, where the agreement seems to be good also for the 24 h deadline, with a very good behavior for the model. In spite of the slight overestimation with respect to the the observations thereafter, we can not say that the model diverges completely since the differences are too small, the same previous comments for (Figure A16 and Figure A17). Contrariwise, the predictions show an overestimation and end with a good similarity with the experiment for the 36 h deadline. While for the deadlines 96 and 108 h (Figure A18 and Figure A19), a good correspondence is noticed between the simulation and the data for the deep depths, and small differences of less than 0.6 cm start to appear when the depth decreases for the 96 h deadline. While an unverified aspect is noticed for 108 h deadline where the simulation shows an underestimation for the temperature values for different depths. We note that the statistical results follow a positive evolution between the two simulation modes when comparing the mean squared errors, which varies from 0.46 for the without initialization case till 0.34 for the with initialization case. However, the accordance simulation-real data gets worse for different depths. In fact, the model shows a slight overestimation of the temperature value for the small and the large depths, and returns back realistic values for a depth of 10 cm, but it is still close to the observations, even though the simulation does not report a clear behavior with respect to the deadlines and depths. Both of overestimation and underestimation are seen, while the general behavior remains fairly realistic since the difference between the prediction and the experimental data is considered to be small.
7. Conclusions
The finite element method is proved, thanks to this work, to be a satisfactory tool allowing to describe the temperature variation as a function of the soil depth. The obtained results show that the method provides a highly precise prediction, where the difference between the experimental data and the model estimations does not exceed 0.6 degree, and the simulation code does not diverge even after 108 h of estimation. Eventually, the model will diverge from the realistic data as maturities increase, but far from the case considered into this study, and this should be attributed to the assumptions taken into account: Linear interpolation between minimum and maximum values of the soil temperature, which allows to calculate the temperatures every 10 min; the effects of clouds and dew that may be present during the morning time along the whole deadline and the presence of plants. Hence, the finite element method estimations showed very good agreements between the simulation predictions and the experimental data for the both simulation modes: With and without initialization, and the results were very crucial. It is worthy of note that the agreement between the simulation predictions and the experimental data would be higher if the real measurement have been taken under a greenhouse, a more perfect case excluding the effect of the hydrometeor to the surface temperature variation.
Author Contributions
All authors contributed equally.
Funding
The authors gratefully acknowledges Qassim University, represented by the Deanship of Scientific Research, for the material support of this research under Number 3737-alrasscac-2018-1-14-S during the academic year 1439AH/2018.
Acknowledgments
The authors would like to thank the anonymous referees and the handling editor for their careful reading and for relevant remarks/suggestions which helped them to improve the paper.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A
Appendix A.1. Without Initialization
Figure A1.
Estimation of the temperature at 60 cm depth in the soil.
Figure A2.
Comparison after 24 h (Without Initialization).
Figure A3.
Comparison after 12 h (Without Initialization).
Figure A4.
Comparison after 36 h (Without Initialization).
Figure A5.
Comparison after 48 h (Without Initialization).
Figure A6.
Comparison after 60 h (Without Initialization).
Figure A7.
Comparison after 72 h (Without Initialization).
Figure A8.
Comparison after 84 h (Without Initialization).
Figure A9.
Comparison after 96 h (Without Initialization).
Figure A10.
Comparison after 108 h (Without Initialization).
Appendix A.2. With Initialization
Figure A11.
Comparison after 12 h (With Initialization).
Figure A12.
Comparison after 24 h (With Initialization).
Figure A13.
Comparison after 36 h (With Initialization).
Figure A14.
Comparison after 48 h (With Initialization).
Figure A15.
Comparison after 60 h (With Initialization).
Figure A16.
Comparison after 72 h (With Initialization).
Figure A17.
Comparison after 84 h (With Initialization).
Figure A18.
Comparison after 96 h (With Initialization).
Figure A19.
Comparison after 108 h (With Initialization).
References
- Ainsworth, M. Dispersive and dissipative behavior of high order Discontinuous Galerkin finite element methods. J. Comput. Phys. 2004, 198, 106–130. [Google Scholar] [CrossRef] [Scilit]
- Boulaaras, S.; Guefaifia, R. Existence of positive weak solutions for a class of Kirrchoff elliptic systems with multiple parameters. Math. Meth. Appl. Sci. 2018, 41, 5203–5210. [Google Scholar] [CrossRef] [Scilit]
- Boulaaras, S.; Allahem, A. Existence of positive solutions of nonlocal p(x)-Kirchhoff evolutionary systems via Sub-Super Solutions Concept. Symmetry 2019, 11, 253. [Google Scholar] [CrossRef] [Scilit]
- Batteen, M.L.; Han, Y.-J. On the computational noise of finite-difference schemes used in ocean models. Tellus 1981, 33, 387–396. [Google Scholar] [CrossRef] [Scilit]
- Beckers, J.-M.; Deleersnijder, E. Stability of a fbtcs scheme applied to the propagation of shallow-water inertia-gravity waves on various space grids. J. Comput. Phys. 1993, 108, 95–104. [Google Scholar] [CrossRef] [Scilit]
- Glowinski, R. Numerecal Methods for Nolinear Variational Problems; Springer: Berlin, Germany, 1982. [Google Scholar]
- Guyot, G. Cours de Bioclimatologie, Chapitre II: Echanges de Chaleur et de Masse par Conduction et Convection’; INRA Bioclimatologie, BP: Montfavet, France, 1992. [Google Scholar]
- Boulaaras, B.; Haiour, M. L∞-asymptotic behavior for a finite element approximation in parabolic quasi-variational inequalities related to impulse control problem. Appl. Math. Comput. 2011, 217, 6443–6450. [Google Scholar] [CrossRef] [Scilit]
- Boulaaras, S.; Haiour, M. A General Case for the Maximum Norm Analysis of an Overlapping Schwarz Methods of Evolutionary HJB Equation with Nonlinear Source Terms with the Mixed Boundary Conditions. Appl. Math. Int. Sci. 2015, 9, 1247–1257. [Google Scholar]
- Haiour, M.; Boulaaras, S. Overlapping domain decomposition methods for elliptic quasi-variational inequalities related to impulse control problem. Proc. Math. Sci. 2011, 4, 481–493. [Google Scholar] [CrossRef] [Scilit]
- Boulaaras, S.; Haiour, M. The theta time scheme combined with a finite element spatial approximation of Hamilton-Jacobi-Bellman equation. Computat. Math. Model. 2014, 25, 423–438. [Google Scholar] [CrossRef] [Scilit]
- Ciarlet, P.G. Introductionà L’analyse Numérique Matricielle et à L’optimisation; Masson: Paris, France, 1990. [Google Scholar]
- Allahem, A.; Boulaaras, S.; Zennir, K.; Haiour, M. A new mathematical model of heat equations and its application on the agriculture soil. Eur. J. Pure Appl. Math. 2018, 11, 110–137. [Google Scholar] [CrossRef] [Scilit]
- Cushman-Roisin, B. Introduction to Geophysical Fluid Dynamics; Prentice-Hall: Upper Sadle River, NJ, USA, 1994. [Google Scholar]
- Boulaaras, S.; Haiour, M. The finite element approximation of evolutionary Hamilton–Jacobi–Bellman equations with nonlinear source terms. Indag. Math. 2013, 24, 161–173. [Google Scholar] [CrossRef] [Scilit]
- Haxaire, R. Characterization and Modelisation of Air Flows on a Greenhouse. Ph.D. Thesis, University of Nice, Nice, France, 1999. [Google Scholar]
- Majda, A. Introduction to PDE’s and Waves for the Atmosphere and Ocean; American Mathematical Society: Providence, RI, USA, 2003. [Google Scholar]
- Guefaifia, R.; Boulaaras, S. Existence of positive solution for a class of (p(x), q(x))-Laplacian systems. Rend. Circ. Mater. Palermo Ser. II 2018, 67, 93–103. [Google Scholar]
- Rostand, V.; Le Roux Raviart-Thomas, D.Y.; Douglas, B. Marini finite element approximations of the shallow water equations. Int. J. Numer. Methods Fluids 2007. [Google Scholar] [CrossRef] [Scilit]
- White, L.; Deleersnijder, E. Diagnoses of vertical transport in a three-dimensional finiteelement model of the tidal circulation around an island. Estuar. Coast. Shelf Sci. 2007, 74, 655–669. [Google Scholar] [CrossRef] [Scilit]
- Nebbali, S.R. Makhlouf, D.Ã. Termination de la Distribution du Champ de Temperatures Dans le Sol, par un Modele Semi-Analytique. In Conditions aux Limites Pour les Besoins de Simulation d. une Serre de Cculture; Universite Mouloud Mammeri: Tizi-Ouzou, Algerie, 2000. [Google Scholar]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).






































































