1. Introduction
Construction and design in areas with permafrost soils require special treatment. The thawing and freezing of such soils can cause land-surface deformations, which lead to the destruction of various structures and buildings [
1,
2,
3]. At the same time, the buildings themselves can serve as a source of heat and contribute to the thawing of the foundations. For these reasons, they should be built on pile foundations [
4,
5,
6]. Another way to stabilize the soil is artificial ground freezing [
7,
8,
9]. Mathematical modeling can be of great help at the design stage or correction of existing faults. It accurately predicts the effects of certain construction technologies on specific areas of the ground. However, the mathematical models must consider the problem’s multiphysics nature. Therefore, the development of accurate multiphysical models (such as thermo-mechanics) and efficient algorithms for their solution play a vital role.
Many works develop mathematical models and frameworks to analyze soil thawing and heaving processes. A three-phase finite-element model for porous materials consisting of the solid skeleton, liquid water, and crystal ice was presented by Zhou and Meschke in [
2]. The resulting model was designed to describe the behavior of water-infiltrated soft soils upon freezing. In [
10,
11], Zhang and Michalowski presented a thermo-hydro-mechanical (THM) model for describing frost heave and thaw settlement. The model uses the porosity rate function to simulate the growth of ice lenses as an average growth in porosity. A coupled THM modeling framework based on liquid saturation degree and effective stress was derived by Tounsi et al. in [
12]. In [
13], a thermal-hydraulic-mechanical coupling model with water–ice phase change was presented by Li et al. A multi-phase-field poromechanics model simulating the ice lenses’ growth and thaw, as well as the resultant frozen heave and thaw settlement in multi-constituent frozen soils, was presented by Suh and Sun in [
14]. In [
15], Vasilyeva et al. developed a simplified version of the model presented by Zhang in [
10]. In this model, soil deformations occur due to porosity growth caused by ice and water density differences.
Note that most applied problems of thermo-mechanics with phase change cannot be solved analytically. Consequently, it is necessary to apply numerical methods to solve them. One of the most popular methods in the field of thermo-mechanics is the finite element method [
16,
17,
18]. This method is also widely used for solving problems with phase change [
19,
20]. One of the primary advantages of the finite element method is its suitability for solving problems set in complex geometric domains. However, the numerical solution of applied problems of thermo-mechanics with a phase change has several challenges.
It is widely known that mathematical models of problems with phase change are nonlinear. The coefficients of such models depend on the solution itself. Consequently, for the numerical solution of such problems, it is necessary to use linearization methods. Among the most popular linearization methods are the iterative Newton [
21] and Picard [
22] methods. Another way is linearization from the previous time step, corresponding to one Picard iteration. This method can be reasonable because the solution usually does not change much in one time step in problems with phase change.
It is worth noting that there are often various heterogeneities in applied problems. These can be both geometric heterogeneities and soil heterogeneities. For accurate numerical simulation of the processes occurring in heterogeneous media, it is necessary to use very fine grids. They, in turn, lead to a significant increase in the size of the discrete problem; numerical homogenization and multiscale methods are widely used to reduce it [
23,
24,
25]. These techniques make it possible to solve heterogeneous problems on coarse grids with reasonable accuracy.
The Generalized Multiscale Finite Element Method (GMsFEM) developed by Efendiev et al. in [
25] has demonstrated its high efficiency for various problems in heterogeneous media with high contrast. The GMsFEM has been implemented for the pore-scale simulation of Li-ion batteries by Vasilyeva et al. in [
26], for the Brinkman equation by Galvis et al. in [
27], for shale gas transport by Akkutlu et al. in [
28], for the scattering problem by Kalachikova et al. in [
29], for a strain-limiting nonlinear elasticity model by Fu et al. in [
30], and for transport and flow problems in perforated domains by Chung et al. in [
31]. The method’s main idea is to construct multiscale basis functions by solving local spectral problems. These basis functions take into account different heterogeneities of the medium. Moreover, it is possible to use more than one basis function in a coarse grid node. This method has been successfully implemented for problems with phase change, e.g., by Vasilyeva et al. in [
32] and Ammosov et al. in [
33].
However, to account for changes in the properties of the medium caused by phase transition, it is necessary to update the information while solving the problem. The Residual-Driven Online Generalized Multiscale Finite Element Method has been developed by Chung et al. in [
34] to consider such nonlinear features. It has already been successfully implemented for the heat transfer problem with phase change by Spiridonov et al. in [
35] and the poroelasticity problem without phase change by Tyrylgin et al. in [
36]. This paper implemented the online approach for the thermo-mechanical problem with phase change.
The aim of this paper was to develop an efficient online multiscale approach for a thermo-mechanical model with phase change. In this work, a modified version of the thermo-mechanical model presented by Vasilyeva et al. in [
15] was considered. As in the previous thermo-mechanical model, in the modified model, the mechanical deformations of the medium result from changes in porosity caused by phase transition. However, the proposed modified version also considers changes in the mechanical properties of a medium. Note that such changes can play a significant role, since the mechanical properties of frozen soil may be very different from those of thawed soil. The mathematical model is described by a system of differential equations for temperature and displacements. For this model, a finite-element approximation was developed on a fine grid. For handling the nonlinearity of the problem, the linearization from the previous time step was used.
Two multiscale approaches are presented to reduce the size of the discrete problem. They are based on the Generalized Multiscale Finite Element Method (GMsFEM). In the first approach, multiscale basis functions are constructed without considering the mathematical model’s nonlinearity. This approach was applied to the previous thermo-mechanical model by Ammosov et al. in [
33]. On the other hand, the second approach uses a residual-driven online enrichment of the multiscale space while solving the problem. Such enrichment allows us to take into account changes in the mechanical and thermal properties of the medium caused by the phase transition.
To verify the model and the multiscale approaches, a two-dimensional model problem was considered. This problem simulates the heaving process of heterogeneous soil with a stiff inclusion caused by phase change. The numerical results show that the solution of the problem corresponds to the simulated process. The multiscale approaches approximate the fine-grid solution well. However, the online approach has better accuracy.
The paper’s novelty is that the Residual-Driven Online Generalized Multiscale Finite Element Method was developed for the proposed thermo-mechanical model. This online multiscale method has not yet been implemented for thermo-mechanical models with phase change. However, the online enrichment of the multiscale space can be valuable for considering the nonlinear nature of phase change.
This paper has the following structure.
Section 2 briefly outlines the concepts on which the model is based. In
Section 3, the thermo-mechanical model with phase change is presented.
Section 4 describes the finite-element approximation on a fine grid. In
Section 5, an offline multiscale model reduction approach is presented.
Section 6 describes an algorithm for the online enrichment of the offline approach. In
Section 7, the numerical results are presented. Finally,
Section 8 summarizes the work.
3. Mathematical Model
In this section, a modified version of the thermo-mechanical model proposed by Vasilyeva et al. in [
15] is presented. As in the previous model, the mechanical deformations of the medium result from changes in porosity caused by phase transition. However, the changes in the medium’s mechanical properties are also considered in this modification. The section presents a system of equations for temperature and displacements and describes boundary conditions. The methods of calculation of nonlinear coefficients are considered.
The thermo-mechanical model with phase is described by the following system of equations for temperature
T and displacements
u in
The following formula is used for calculating the volumetric heat capacity
:
where
,
, and
denote solid, ice, and water specific heat capacities, respectively.
The heat conductivity
is computed using a logarithmic law as proposed by Michalowski et al. in [
37]:
where
,
, and
denote solid, ice, and water heat conductivity coefficients, respectively.
In the displacements equation,
and
denote Lamé parameters that can be calculated using Poisson’s ratio
and the elastic modulus
:
One can see that the elastic modulus
E depends on the temperature
T. Therefore, changes in the elastic properties of the medium caused by phase transition are considered. The following formula is used for expressing the elastic modulus
:
where
and
are ice and solid elastic modules, respectively.
Note that
represents the thermal expansion caused by porosity change:
Then, the heat of phase change
can be expressed as follows:
where
L is the latent heat of fusion of water per unit mass.
One can see that the presented mathematical model incorporates essential soil-specific properties such as the volumetric heat capacity
, heat conductivity
, elastic modulus
, porosity
, water content
, and fraction volumes of solid, ice, and water
,
, and
, respectively. For example, the porosity
is expressed through the water content
using the Formula (
1). While the ice, water, and solid fraction volumes
,
, and
are expressed through the porosity
and water content
as presented in (
3). Then, the volumetric heat capacity
and heat conductivity
depend on the water, ice, and solid fraction volumetric
,
,
as in (
5) and (
6), respectively. At the same time, the elastic modulus
is expressed through the water content
using the Formula (
7). Furthermore, the thermal expansion
depends on the porosity
as in (
8). Finally, the heat of phase change
depends on the porosity
and water content
as in (
9).
Finally, the system of equations (
4) is supplemented with the following initial conditions:
and boundary conditions
where
n is the outward unit normal vector to
;
,
,
, and
denote the left, right, bottom, and top boundaries of
and
(see
Figure 1);
is a stress tensor defined as follows:
Here, is a deformation tensor and is a unit matrix.
Figure 1.
Illustration of the computational domain with boundaries.
Figure 1.
Illustration of the computational domain with boundaries.
5. Offline Coarse-Grid Approximation
This section presents an offline multiscale model reduction technique based on the GMsFEM for the thermo-mechanical model. This multiscale approach can significantly decrease computational costs, but it does not consider the problem’s nonlinearity and can be inaccurate. In the section, a general description of GMsFEM is given. Then, the construction of multiscale basis functions for temperature and displacements is described. Finally, an algorithm for solving the problem on a coarse grid using the computed basis functions is given.
The Generalized Multiscale Finite Element Method (GMsFEM) is a general approach for performing multiscale simulations in complex heterogeneous media. The main idea of the GMsFEM is to construct multiscale basis functions via solving local spectral problems. Such basis functions can handle various fine-scale heterogeneities of the media and allow us to solve problems on a coarse grid. Moreover, one can use more than one basis function per coarse-grid element. This feature is essential for solving complex problems in heterogeneous media with high contrast. The resulting computational macroscopic model has similarities with multicontinuum models since it involves multiple macroscopic parameters.
One can divide the algorithm of the GMsFEM into offline and online stages. In the offline stage, our multiscale basis functions that can consider the heterogeneities of the medium are constructed. The basis functions are computed in local domains
of a coarse grid
. The local domain
consists of coarse-grid cells
containing a coarse-grid node
, i.e.,
(see
Figure 2). The offline stage has the following steps.
Offline Stage
Generate the coarse grid .
For each local domain , compute snapshot functions and construct a snapshot space.
For each local domain , compute multiscale basis functions via solving local spectral problems on the snapshot space and construct a multiscale space.
Build a projection matrix into the multiscale space.
Figure 2.
Coarse grid , coarse cell , and local domain .
Figure 2.
Coarse grid , coarse cell , and local domain .
In the online stage, our fine-grid system is projected to the coarse grid using the obtained projection matrix and solves the coarse-grid problem. Note that one can reconstruct the solution on the fine grid. The online stage can be divided into the following steps.
Online Stage
For the current time step, project the fine-grid system to the coarse grid using the multiscale projection matrix.
Solve the coarse-grid problem.
Reconstruct the solution on the fine grid.
Move to the next time step.
Since the heat and mechanics problems are solved sequentially, multiscale basis functions for temperature and displacements are constructed separately. In the next subsection, the basis functions construction algorithms for both fields are presented. It is supposed that the coarse grid and local domains have been constructed. Therefore, the algorithm starts with the snapshot functions calculation. Note that, wherever possible, the subscript i in the notation of the local domain will be omitted for simplicity of presentation.
5.1. Construction of Multiscale Basis Functions for Temperature
To construct snapshot functions for temperature, one needs to solve the following local problems. For each local domain
, find
such that
with the following Dirichlet boundary conditions
where
, and
is a set of all fine-grid nodes on
. Note that one has to solve
local problems, where
denotes a count of the fine-grid nodes on
. After that, a snapshot space and a snapshot projection matrix are constructed for each local domain
The obtained snapshot projection matrices are used for constructing multiscale basis functions. One needs to solve the following local spectral problems. For each local domain
, find
such that
where
The resulting eigenvalues are sorted in ascending order and select the eigenvectors corresponding to the first
eigenvectors. Then, these eigenvectors are projected back to the original space as follows:
To obtain conforming basis functions, the resulting eigenvectors are multiplied by a partition of unity function
. This function is linear and continuous in
, equal to 1 in
and 0 in other coarse-grid nodes.
where
is a count of coarse-grid nodes.
Finally, an offline multiscale space and its projection matrix are constructed as follows:
Examples of the obtained multiscale basis functions are presented in
Figure 3.
5.2. Construction of Multiscale Basis Functions for Displacements
As for temperature, one needs to solve local problems to obtain snapshot functions. However, the local problems should be solved for each direction of displacements. For each local domain
and
, find
such that
with Dirichlet boundary conditions
where
,
,
is the
l-th column of the identity matrix
. Therefore, one has to solve
local problems. Then, a snapshot function space and its projection matrix are built for each local domain
and direction
as follows:
Multiscale basis functions are also constructed separately for each direction of displacements. For this purpose, one needs to solve the following local spectral problems. For each local domain
and
, find
such that
where
Next, the resulting eigenvalues are sorted in ascending order and select the eigenvectors corresponding to the first
eigenvalues. As for temperature, the eigenvectors are projected back using the snapshot projection matrix,
Then, the resulting eigenvectors are multiplied by the partition of unity function
to obtain conforming basis functions,
Finally, the multiscale space and its projection matrix are built as follows:
Figure 4 and
Figure 5 present examples of the obtained multiscale basis functions in
and
directions, respectively.
5.3. Coarse-Grid System
Using the resulting projection matrices for temperature and displacements, one can project the discrete system from a fine grid to a coarse grid. Moreover, the solution can be projected back to the fine grid. Let us take a closer look at all these procedures.
One can write the discrete problems on the coarse grid in the following way. For ,
Find the vector of temperature nodal values
such that
where the matrices and vectors are as follows:
Find the vector of displacements nodal values
such that
where the matrix and vectors are obtained as follows:
One can reconstruct the fine-grid solutions as follows:
As mentioned before, this multiscale model reduction approach does not consider the nonlinearity caused by phase change. For this purpose, an online enrichment technique will be considered in the next section.
6. Online Enrichment of Offline Coarse-Grid Approximation
The thermo-mechanical model with phase change is nonlinear because the coefficients depend on temperature. The multiscale method described in the previous section does not account for the coefficient changes, which can be a source of errors. In this section, a residual-driven online multiscale approach is presented that can consider media changes.
The section begins with a general description of the online multiscale approach. Then, the constructions of online multiscale basis functions for temperature and displacements are presented. Finally, an algorithm for solving the problem using the online multiscale approach is given.
The residual-driven online multiscale approach can update information about the medium while solving the problem. For this purpose, it computes additional online multiscale basis functions and enriches the offline space. Since calculating these basis functions for each time step can be expensive, it is preferable to update online basis functions every five to ten time steps. One can also enrich the offline space adaptively for some local domains with a large residual, as described by Chung et al. in [
34,
38]. The online enrichment algorithm can be outlined as follows:
Online Stage
Generate the coarse-grid system for the current time step.
Solve the coarse-grid system.
Compute online multiscale basis functions, enrich the offline multiscale space, repeatedly solve the problem for the current time step.
Move to the next time step.
Since temperature and mechanics problems are solved sequentially, their online multiscale basis functions are computed separately.
One has to solve the following local problems for calculating online multiscale basis functions for temperature. For each local domain
, find
such that
Here,
, and the residual term
is defined as follows:
where the subscript
denotes the multiscale solution.
Next, the obtained functions are multiplied by the partition of unity functions,
Finally, the multiscale space is enriched using the obtained online basis functions,
where
k is the number of online iterations for the current time step.
As for temperature, one has to solve the local problems for calculating online multiscale basis functions. For each local domain
, find
such that
where
, and the residual term
has the following form:
For obtaining conforming basis functions, the resulting functions are multiplied by the partition of unity functions as follows:
Next, these basis functions are multiplied by
to obtain the online basis functions corresponding to each direction,
At the end, the multiscale space is enriched with these online basis functions,
where
k is the number of online iterations for the current time step. Examples of the online basis functions for temperature and displacements are depicted in
Figure 6. Finally, the detailed algorithm of our multiscale approach with online residual-driven enrichment is presented in the next paragraph.
One can define the following steps of the proposed multiscale algorithm with online residual-driven enrichment. For each time step ,
Next, the numerical results of the proposed multiscale model reduction approaches will be presented.
7. Numerical Results
This section presents numerical results to test the thermo-mechanical model and the proposed multiscale approaches. A two-dimensional model problem simulating the heaving process of heterogeneous soil with a stiff inclusion was considered. First, the numerical solution of the problem on fine and coarse grids was carried out, and the distributions of solutions are given. Then, the relative errors were calculated to check the efficiency of the multiscale approaches. Finally, the relative errors were plotted over time.
The numerical implementation of the fine-grid and multiscale methods was based on the FEniCS computational package [
22]. For visualizing the results, the program ParaView was used [
39]. The graphical package Matplotlib was used to visualize the error plots [
40].
The two-dimensional model problem defined in
was considered. As a fine grid, a uniform grid with 10,201 vertices and 20,000 triangular cells was used. The coarse grid consisted of 121 vertices and 100 rectangular cells.
Figure 7 depicts the computational domain and grids.
The model problem was simulated for
with 50 time steps. A heterogeneous soil with a stiff inclusion was considered. For this purpose, the heterogeneous coefficients
,
,
,
, and
were used (see
Figure 8). Poisson’s ratio was set as
, and the remaining coefficients were as follows:
Ice properties:, , , and .
Water properties:, , and .
Phase change properties:, , and .
Figure 8.
Distributions of , , , , and .
Figure 8.
Distributions of , , , , and .
For initial conditions,
and
were set. The boundary conditions (
11) were used with
,
, and
. The corresponding boundaries of the domain are depicted in
Figure 7.
In all the figures of the numerical results, the online multiscale approach results are depicted with an enrichment periodicity equal to five.
Figure 9 presents temperature distributions at different points in time. From top to bottom, a fine-grid solution, multiscale solutions using four offline basis functions and using two online and four offline basis functions are depicted, respectively. In the pictures, the white line is the isoline of 0, which corresponds to the phase change temperature. As one can see, all the pictures are very similar, which indicates that our multiscale approaches approximate the fine-grid solution well. However, the isoline of 0 is smoother in the multiscale solution with online enrichment than without it.
In terms of the simulated process, the solutions behave correctly. Initially, the ground is in a thawed state. Then, freezing begins at the top boundary caused by interaction with the low environmental temperature. This leads to a phase change process. One can see that the isoline of 0 becomes lower the longer the freezing takes place. The ground-freezing process is heterogeneous, especially in the area of stiff inclusion.
Figure 10 presents distributions of displacements in the
and
directions and the magnitude of displacements (from left to right) at the last moment. It depicts the fine-grid solution, the multiscale solutions using four offline basis functions and using two online and four offline basis functions (from top to bottom). One can see that all the results are similar to those in the temperature case. However, the differences are more noticeable in the results of the offline multiscale solution.
Note that a warp scale factor of two is used to show the medium’s deformations more clearly. One can observe that the primary displacement occurs in the direction; at the same time, the closer to the top boundary it is, the stronger the displacements are. This phenomenon is explained by the fact that deformations occur due to changes in porosity caused by phase transition. As expected, the displacements in the stiff inclusion region are much smaller than in the rest of the domain. In general, the soil heaving process is displayed correctly.
Figure 11 shows the distributions of porosity, heat conductivity, and elastic modulus (from left to right) at the last moment. Only the coefficients of the fine-grid solution are depicted here since the errors of the coefficients of the multiscale solutions are caused by the temperature errors. The distributions of the fine-grid coefficients are presented to observe the influence of phase change on them. One can see that all the coefficients changed because of the phase transition, but the most visible change occurred with the elastic modulus. This phenomenon is because the mechanical properties of ice are very different from those of the soil. Therefore, one can clearly trace the hardening process. Note that the interface of changes in mechanical properties corresponds to the isoline of 0 (see
Figure 9).
Next, let us consider the errors of the proposed multiscale approaches. The fine-grid solution was used as the reference one. Two types of error were considered:
and energy error. The first shows the error of the solution fields themselves, and the second reflects the error in calculating the gradients. The following formulas were used to calculate the relative
errors:
and the relative energy errors
where the subscript
corresponds to a multiscale solution (offline or online), and the fields without subscripts denote the fine-grid solutions.
Table 1 contains the relative
and energy errors at the last moment of time for all fields. The left part corresponds to the update of the online basis functions every five time steps. The right part shows the errors when updating every 10 time steps. The table contains errors for different numbers of offline and online basis functions per coarse-grid node.
Let us consider the results without using online basis functions. One can see that the errors decrease as the number of basis functions increases. Thus, one observes convergence on basis functions. In general, the errors are minor, especially for temperature. For example, when using 12 basis functions, the error is less than %, and the energy error is slightly more than %; however, the errors of displacements are noticeably larger. For example, for the same number of basis functions, the error is about 4%, and the energy error is more than 5%. This phenomenon is explained by the fact that phase change strongly influences the mechanical properties of the medium.
Next, let us consider the results when using online basis functions updated every five time steps. Adding one or two online basis functions can significantly improve accuracy. For example, if one adds two online basis functions to four offline basis functions, one obtains the following results—the relative error decreases from about % to % for temperature. At the same time, its relative energy error decreases from about 7% to %. For displacements, the error drops from about % to %, and the energy error decreases from about % to %. Note that these results are better than when using even eight offline basis functions. Thus, one obtains better accuracy with fewer degrees of freedom.
Then, let us analyze the errors when updating the online basis functions every 10 time steps. As with updating every five time steps, the online basis functions significantly improve the method’s accuracy. The errors are comparable to updating every five time steps, but slightly larger on average. More frequent updates have a noticeable effect with fewer offline basis functions. For example, if one adds two online basis functions to two offline basis functions, one obtains the following results compared to updating once every five time steps—the relativity error in temperature is % instead of %, and the energy error is % instead of %. For displacements, one gets the error equal to % instead of % and the energy error equal to % instead of %. In general, updating every 10 time steps has comparable errors. This phenomenon can be explained by the fact that the solution does not change significantly quickly in such problems.
To see the dynamics of the error, the error graphs in time steps were plotted.
Figure 12 shows the error dynamics for four offline basis functions with and without online basis functions. The online basis functions are updated every five time steps. Above are the
errors, and below are the energy errors. One can see that the errors decrease with each time the online basis functions are updated. In general, the errors fall or remain at about the same level.
Figure 13 shows the error dynamics when updating the online basis functions every 10 time steps. Above are the
errors, and below are the energy errors. As with the update every five time steps, the errors fall with each update of the online basis functions. In general, the errors also either fall or remain at about the same level.
The results show that the online basis functions can significantly improve the accuracy of the multiscale method.
8. Conclusions
In this paper, a thermo-mechanical model with phase transition considering changes in mechanical properties of the medium was presented. For this model, a finite-element approximation on a fine grid was developed. To reduce the size of the discrete problem, multiscale approaches were proposed. An offline multiscale approach based on the Generalized Multiscale Finite Element Method (GMsFEM) was presented. Since the problem is nonlinear, a residual-driven online multiscale approach was also developed.
A two-dimensional model problem of heterogeneous soil heaving with a stiff inclusion was considered. In numerical simulations, the effect of soil heaving caused by the phase transition was observed. Displacements were more substantial the closer they were to the top boundary. However, as expected, the stiff inclusion region displacements were smaller than in the rest of the upper domain. The phase transition interface moved downward as the soil froze. There were changes in the thermal and mechanical properties of the medium corresponding to the phase transition interface. Therefore, the numerical simulation correctly described soil heaving.
Next, offline and online multiscale approaches were considered. In general, both approaches successfully approximated the fine-grid solution with significantly reduced degrees of freedom. The offline multiscale approach can be applied to this problem, but it requires more degrees of freedom for accurate approximation. At the same time, adding online basis functions can significantly improve accuracy with fewer degrees of freedom. Updating online basis functions every five time steps achieved better accuracy than updating every 10 time steps (especially for fewer offline basis functions). However, updating every 10 time steps also provided good accuracy. This phenomenon is because the solution does not change too strongly between time steps. Thus, the online multiscale approach is recommended for the thermo-mechanical model since it provides better accuracy with fewer degrees of freedom.
In terms of applications, the proposed thermo-mechanical model can be used to analyze the stability of structures in permafrost zones. The model problem in the numerical results was motivated by the real-world problems of simulating the behavior of piles during soil frost heaving. Furthermore, the developed online multiscale approach can be used to reduce computational costs when simulating heterogeneous soils.
In future works, more complex mathematical models with phase change, taking into account salinity and filtration, will be considered.