Construction method and application of permeability assessment model for geotechnical materials
By reconstructing the rock and soil model through CT scanning and MATLAB software, combined with the parametric input module and finite element analysis, it solves the high cost and complexity problems in the evaluation of the seepage characteristics of the rock and soil mass, and achieves rapid and visual seepage characteristics evaluation. Improved the effectiveness of engineering design and disaster prevention.
Patent Information
- Application Number
- CN202410853289.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The existing technology involves high-cost and cumbersome physical test methods in the evaluation of rock and soil seepage characteristics, and the operation of numerical simulation software is complex, resulting in low work efficiency and difficulty in achieving rapid evaluation.
Obtain 2D slices of rock and soil through CT scanning, use MATLAB software for 3D reconstruction, generate a digital model, and set up a parameterized input module to segment pores and matrix, and build a permeability assessment model for rock and soil materials, using finite element Analyze and perform single-phase and two-phase seepage simulation calculations.
It realizes fast, visual and efficient numerical calculation for the assessment of seepage characteristics of geotechnical materials, improves the safety and durability of design and construction, and improves the prediction ability of potential disaster risks in disaster prevention.
Smart Images

Figure CN118410684B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rock and soil material permeability model construction, and in particular to a construction method and application of a rock and soil material permeability assessment model. Background Art
[0002] Seepage phenomenon is common in actual engineering projects, and is often accompanied by adverse effects such as instability of the main body of the engineering structure and seepage deformation. Clarifying the seepage characteristics of rock and soil is of great significance to the design and construction of engineering projects and disaster prevention and mitigation work. At present, the research on the seepage characteristics of rock and soil is mostly focused on the macro scale. The permeability coefficient is measured by experimental means to characterize the seepage characteristics of rock and soil. However, the experimental research cost is high, the operation is cumbersome and difficult, and the accuracy cannot meet the needs of the project in general, which is not conducive to repeatable testing. Therefore, it is particularly necessary to evaluate the seepage characteristics of rock and soil at the pore scale. There are two main methods for studying seepage at the pore scale: physical experiments and numerical simulations. Among them, although the physical experimental research method can qualitatively study some mesoscopic mechanisms of the seepage characteristics of rock and soil, it lacks scientific theories to make a precise quantitative description of it. In recent years, with the continuous development of computer technology, numerical calculation methods have largely overcome the shortcomings of experimental methods. Computers are used to characterize the mesoscopic pore structure of rock and soil, and the entire dynamic process of water seepage in the rock and soil is calculated, which has the advantages of repeatability, convenience and visualization. However, most finite element software requires operators to have certain professional knowledge and usage skills, which is not conducive to the rapid evaluation and calculation of rock and soil seepage characteristics. This will inevitably lead to staff spending a lot of time on software learning, greatly reducing work efficiency, and some of them also have the disadvantage of not being able to operate visually. Summary of the invention
[0003] In view of this, the main purpose of the present invention is to provide a method for constructing a permeability assessment model for geotechnical materials, comprising the following steps:
[0004] Through CT scanning, several 2D scanning slices of the rock and soil body in various directions are obtained. Based on the several 2D scanning slices, 3D reconstruction is performed using MATLAB software to obtain a real rock and soil model;
[0005] A parameter set for controlling the generation of a rock-soil medium in a real rock-soil model is set, a first distribution of particles exceeding a set particle size in the rock-soil is obtained based on 2D scanning slices in all directions, a first initial parameter of the parameter set is determined according to the first distribution, and an isotropic first particle cluster of the rock-soil is generated;
[0006] Based on the isotropic first particle cluster of the rock and soil body, and according to the second distribution of particles less than or equal to the set particle size in the rock and soil body, and referring to the isotropic 2D scanning slices of the rock and soil body, the second initial parameters of the second particle cluster in the rock and soil body are determined, and a digital model of the rock and soil body based on the first particle cluster of the rock and soil body is generated;
[0007] Configure the parameterized input module of the digital model of the geotechnical body to customize the size of the digital model of the geotechnical body according to actual needs;
[0008] And a parametric segmentation module of the digital model of the rock and soil body is configured to segment the pores and matrix in the digital model of the rock and soil body, so as to obtain a calculation model of the rock and soil materials, and the permeability of the rock and soil materials is evaluated based on the calculation model of the rock and soil materials.
[0009] Furthermore, the method of 3D reconstruction of the real rock and soil model using MATLAB software includes:
[0010] The first step is to adopt im2bw The function performs binarization on the selected i 2D scan slices to generate a 2D point array containing only 0-1;
[0011] The second step is to use cat and squeeze The function loads 1-i binary images into a 3D array along the depth direction and generates a 3D calculation model;
[0012] The third step is to generate a 3D computational model for digital storage and form a 0-1 three-dimensional matrix for subsequent data reading.
[0013] Furthermore, the parameter set controlling the generation of the rock mass medium includes: pore distribution probability p c , pore growth probability p d , pore probability density p imq and porosity n , the matrix region of the rock mass is set as the growth phase, and the pore region is set as the non-growth phase.
[0014] Furthermore, a parameter set for controlling the generation of the rock mass medium is generated as follows:
[0015] ① According to the set pore distribution probability p c Randomly arrange the solid phase and the pore distribution probability p c Less than the set porosity n ;
[0016] ② In space, according to the set pore growth probabilityp d Allow the distributed solid phase units to grow along adjacent points in several directions;
[0017] ③ Repeat steps ① and ② until the growth phase reaches the initially set porosity n When , the growth stops and the parameter set that controls the generation of the rock and soil medium is obtained.
[0018] Furthermore, the first initial parameter includes: a first distribution probability determined by the first distribution p c1 , the first porosity n 1 , Growth probability p d1-dm ,in m is an integer greater than or equal to 2.
[0019] Furthermore, the second initial parameters include:
[0020] The second distribution probability determined by the second distribution p c2 ; Refer to the CT scan slices of the rock and soil body to determine the growth probability p d1-dm Main tilt direction, auxiliary tilt direction, and determine growth probability p d1-dm , and anisotropic second porosity n 2 ,in m is an integer greater than or equal to 2.
[0021] Furthermore, the parameterized input module includes:
[0022] Model size setting unit, used to set the model length l , model width b , model height h ;
[0023] an association unit connected to the parameter set by which the porosity is set n , pore distribution probability p c , pore growth probability p d ;
[0024] And the property setting unit is used to define the basic properties of geotechnical materials, the basic properties of seepage objects, the basic properties of boundary conditions and the basic properties of model mesh division.
[0025] Furthermore, the basic properties of geotechnical materials include: matrix phase density ;
[0026] The basic properties of the seepage object include: water phase density , gas phase density , dynamic viscosity of water phase , gas phase dynamic viscosity ;
[0027] The basic properties of boundary conditions include: inlet and outlet water pressure P in and P out , water-gas interfacial tension F st ;
[0028] The basic properties of model meshing include: mesh size ξ .
[0029] The present invention also provides an application, including a geotechnical material calculation model for realizing permeability evaluation of geotechnical materials obtained by the construction method for the permeability evaluation model of geotechnical materials, and by performing finite element analysis on the geotechnical material calculation model, the simulation calculation of the single-phase seepage process and the simulation calculation of the two-phase seepage process of the permeability of the geotechnical material calculation model are realized.
[0030] Furthermore, the simulation calculation method of the single-phase seepage process includes:
[0031] The description of the single-phase seepage process can be achieved by using the improved Navier-Stokes (NS) equation, and the control equation is as follows:
[0032] Formula (1);
[0033] In formula (1), ρ is the fluid density, in kg·m -3 ; p is pressure, unit is Pa; I is the identity matrix; μ is the dynamic viscosity of the fluid, in Pa·s; F is the body force, unit is N·m -3 ; u is the flow velocity, in m·s -1 ; g is the acceleration due to gravity, in m·s -2 .
[0034] Furthermore, the simulation calculation method of the two-phase permeation process includes:
[0035] The level set finite element method is used to calculate the two-phase permeability process. The level set interface determines the fluid interface by tracking the contour lines of the level set function. Φ =0.5 determines the position of the interface and controls the contour line Φ The transfer and reinitialization equations are as follows:
[0036] Formula (2);
[0037] In formula (2), are reinitialization parameters, in units of m·s and m. To ensure high stability during the calculation of the level set equation, is the interface area mesh size half of The value is the maximum velocity that occurs in the model. At the same time, since the level set function is a smooth step function, the fluid density can be determined by formula (3): ρ and fluid dynamic viscosity μ :
[0038] Formula (3)
[0039] In formula (3), is the density of the water phase, is the dynamic viscosity of the water phase, is the gas phase density and is the gas phase dynamic viscosity.
[0040] The beneficial effects of this application are:
[0041] This application builds a calculation model for geotechnical materials and performs numerical calculations on the seepage characteristics of geotechnical materials, which can help designers and builders better understand the seepage characteristics of a certain type of geotechnical medium, which is crucial for planning and designing infrastructure projects such as dams, bridges, tunnels and roads. With a deep understanding of the seepage characteristics of geotechnical materials, designers can better select such materials and determine structural parameters to improve the safety and durability of the project.
[0042] In terms of disaster prevention and management, geological disasters (such as landslides and debris flows) are often closely related to hydrological seepage deformation. By simulating the seepage behavior of rock and soil bodies, potential disaster risks can be better predicted, so that preventive measures can be taken to protect life and property safety.
[0043] This application is developed on the basis of COMSOL by using the MATLAB programming language to realize the digitization of geotechnical material models and realize joint simulation modeling with AVIZO, CAD, MATLAB and other software. Material settings are performed on the digital model of geotechnical bodies through parametric input, including boundary condition settings, mesh generation, finite element numerical calculations, and custom differential methods to analyze the corresponding velocity field, pressure field, resistance field, and local detail data and other permeability characteristics. It can realize the automatic sorting and export of help document viewing and calculation result reports. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The following drawings are only used to illustrate and explain the present invention, and are not used to limit the scope of the present invention, wherein:
[0045] Figure 1 is a schematic diagram of a real rock and soil model in the present invention;
[0046] Figure 2 For the present invention Figure 1 A cross-sectional view of
[0047] Figure 3 The pore growth probability is set in the present invention p d Schematic diagram of the model that allows the distributed solid phase units to grow along adjacent points in 19 directions;
[0048] Figure 4 This is a digital model diagram of random rock and soil materials considering anisotropy in the present invention;
[0049] Figure 5 For the present invention Figure 4 A cross-sectional view of
[0050] Figure 6 This is a porous medium model diagram of rock and soil materials of the present invention;
[0051] Figure 7 is a distribution diagram of rock and soil pore flow velocity in the present invention;
[0052] Figure 8 is a graph showing the variation trend of volume flow rate with applied pressure difference in the present invention;
[0053] Fig. 9 It is a rock and soil pore model diagram in the present invention;
[0054] Fig.10 is the water vapor phase distribution diagram in the model of the present invention;
[0055] Fig.11 It is a curve diagram showing the change of volume fraction of the model water phase, gas phase and the total phase over time in the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution, design method and advantages of the present invention clearer, the present invention is further described in detail by specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0057] Embodiment 1:
[0058] Reference Figures 1 to 5 A method for constructing a permeability assessment model for geotechnical materials comprises the following steps:
[0059] Through CT scanning, several 2D scanning slices of the rock and soil body in various directions are obtained. Based on the several 2D scanning slices, 3D reconstruction is performed using MATLAB software to obtain a real rock and soil model;
[0060] A parameter set for controlling the generation of a rock-soil medium in a real rock-soil model is set, a first distribution of particles exceeding a set particle size in the rock-soil is obtained based on 2D scanning slices in all directions, a first initial parameter of the parameter set is determined according to the first distribution, and an isotropic first particle cluster of the rock-soil is generated;
[0061] Based on the isotropic first particle cluster of the rock and soil body, and according to the second distribution of particles less than or equal to the set particle size in the rock and soil body, and referring to the isotropic 2D scanning slices of the rock and soil body, the second initial parameters of the second particle cluster in the rock and soil body are determined, and a digital model of the rock and soil body based on the first particle cluster of the rock and soil body is generated;
[0062] Configure the parameterized input module of the digital model of the geotechnical body to customize the size of the digital model of the geotechnical body according to actual needs;
[0063] And a parametric segmentation module of the digital model of the rock and soil body is configured to segment the pores and matrix in the digital model of the rock and soil body, so as to obtain a calculation model of the rock and soil materials, and the permeability of the rock and soil materials is evaluated based on the calculation model of the rock and soil materials.
[0064] In the above, a method for determining the optimal volume unit size of a 3D model is adopted, and the originality of the internal pore structure of the in-situ rock and soil body is considered, the center position data of the CT scan slice is selected to ensure the maximum simulation accuracy, and continuous i slices at the center position with good pore connectivity are selected when MATLAB software is used for 3D reconstruction. The method for 3D reconstruction of the real rock and soil body model using MATLAB software includes:
[0065] The first step is to adopt im2bw The function performs binarization on the selected i 2D scan slices obtained by CT scanning to generate a 2D point array containing only 0-1;
[0066] The second step is to use cat and squeeze The function loads 1-i binary images into a 3D array along the depth direction and generates a 3D calculation model. The result is as follows Figure 1 and Figure 4 As shown, Figure 1 is a schematic diagram of a real rock and soil model in the present invention, Figure 1 The red color in the figure represents the rock matrix, and the blue color represents the pore area; Figure 4 This is a digital model diagram of random rock and soil materials considering anisotropy in the present invention. Figure 4 The blue color represents the rock matrix, and the yellow color represents the pore area.
[0067] The third step is to generate a 3D computational model for digital storage and form a 0-1 three-dimensional matrix for subsequent data reading.
[0068] Furthermore, the parameter set controlling the generation of the rock mass medium includes: pore distribution probability p c , pore growth probability p d , pore probability density p imq and porosity n , the matrix region of the rock mass is set as the growth phase, and the pore region is set as the non-growth phase.
[0069] Furthermore, a parameter set for controlling the generation of the rock mass medium is generated as follows:
[0070] ①According to the set pore distribution probability p c Randomly arrange the solid phase and the pore distribution probability p c Less than the set porosity n ;
[0071] ② In space, according to the set pore growth probability p d Let the distributed solid phase units grow along the adjacent points in several directions, refer to Figure 3 , according to the set pore growth probability p d Allow the distributed solid phase units to grow along adjacent points in 19 directions;
[0072] ③ Repeat steps ① and ② until the growth phase reaches the initially set porosity n When , the growth stops and the parameter set that controls the generation of the rock and soil medium is obtained.
[0073] Furthermore, the first initial parameter includes: a first distribution probability determined by the first distribution pc1 , the first porosity n 1 , Growth probability p d1-dm ,in m is an integer greater than or equal to 2.
[0074] Furthermore, the second initial parameters include:
[0075] The second distribution probability determined by the second distribution p c2 , refer to the CT scan slices of the rock and soil body to determine the growth probability p d1-dm Main tilt direction, auxiliary tilt direction, and determine growth probability p d1-dm , and anisotropic second porosity n 2 ,like Figure 3 As shown, m is an integer greater than or equal to 2.
[0076] Reference Figure 3 , according to the set growth probability p d The distributed solid phase units are allowed to grow along adjacent points in 19 directions; further explaining the above, the present application determines the first initial parameter and the first distribution probability according to the distribution of large aggregates of real rock and soil bodies (CT slices). p c1 , the first porosity n 1 , Growth probability p d1-d18 , generating isotropic large clusters of rock and soil particles. Based on the isotropic initial large clusters of rock and soil particles, the second initial parameters are determined according to the small and medium particle clusters of the rock and soil, and the second distribution probability p c2 , refer to the 2D slices of the real rock mass CT scan to determine the growth probability p d1-18 Main tilt direction, auxiliary tilt direction, determine growth probability p d1-18 , and determine the anisotropic second porosity n 2 (The same as the porosity of real rock and soil).
[0077] Furthermore, the parameterized input module includes:
[0078] Model size setting unit, used to set the model length l , model width b , model height h ;
[0079] an association unit connected to the parameter set by which the porosity is set n , pore distribution probability p c , pore growth probability p d ;
[0080] And the property setting unit is used to define the basic properties of geotechnical materials, the basic properties of seepage objects, the basic properties of boundary conditions and the basic properties of model mesh division.
[0081] Furthermore, the basic properties of geotechnical materials include: matrix phase density ;
[0082] The basic properties of the seepage object include: water phase density , gas phase density , dynamic viscosity of water phase , gas phase dynamic viscosity ;
[0083] The basic properties of boundary conditions include: inlet and outlet water pressure P in and P out , water-gas interfacial tension F st ;
[0084] The basic properties of model meshing include: mesh size ξ .
[0085] The present invention also provides an application, including a geotechnical material calculation model for realizing permeability evaluation of geotechnical materials obtained by the construction method for the permeability evaluation model of geotechnical materials, and by performing finite element analysis on the geotechnical material calculation model, the simulation calculation of the single-phase seepage process and the simulation calculation of the two-phase seepage process of the permeability of the geotechnical material calculation model are realized.
[0086] Furthermore, the simulation calculation method of the single-phase seepage process includes:
[0087] The description of the single-phase seepage process can be achieved by using the improved Navier-Stokes (NS) equation, and the control equation is as follows:
[0088] Formula (1);
[0089] In formula (1), ρ is the fluid density, in kg·m -3 ; p is pressure, unit is Pa;I is the identity matrix; μ is the dynamic viscosity of the fluid, in Pa·s; F is the body force, unit is N·m -3 ; u is the flow velocity, in m·s -1 ; g is the acceleration due to gravity, in m·s -2 .
[0090] Furthermore, the simulation calculation method of the two-phase permeation process includes:
[0091] The level set finite element method is used to calculate the two-phase permeability process. The level set interface determines the fluid interface by tracking the contour lines of the level set function. Φ =0.5 determines the position of the interface and controls the contour line Φ The transfer and reinitialization equations are as follows:
[0092] Formula (2);
[0093] In formula (2), are reinitialization parameters, in units of m·s and m. To ensure high stability during the calculation of the level set equation, is the interface area mesh size half of The value is the maximum velocity that occurs in the model. At the same time, since the level set function is a smooth step function, the fluid density can be determined by formula (3): ρ and fluid dynamic viscosity μ :
[0094] Formula (3);
[0095] In formula (3), is the density of the water phase, is the dynamic viscosity of the water phase, is the gas phase density and is the gas phase dynamic viscosity.
[0096] In the above, in the process of model construction of the present invention, the required parameter size can be input according to the required model size or considering the calculation efficiency of the model, so as to realize the customized construction of the model. The specific model parameters include: model length l , model width b , model height h , porosity n , pore distribution probability p c, pore growth probability p d . Parametric modeling can maximize the efficiency of model construction. Before the numerical calculation of the seepage characteristics of geotechnical materials, it is necessary to input some basic properties of geotechnical materials, water, gas, etc. to define them. The details are as follows: ① Basic properties of geotechnical materials: matrix phase density ; ② Basic properties of seepage objects: water phase density , gas phase density , dynamic viscosity of water phase , gas phase dynamic viscosity ; ③ Basic properties of boundary conditions: inlet and outlet water pressure P in and P out , water-gas interfacial tension F st; ④ Model mesh division: mesh size ξ .
[0097] The present invention can realize parameterized input of the above basic parameters, and can quickly input them regardless of the working conditions, which can greatly improve the modeling efficiency of the staff.
[0098] The present application has the ability to parametrically segment the digital model of rock and soil. Based on the above digital modeling process, a digital model with 0-1 can be formed, which is actually a three-dimensional matrix composed of 0-1, 0 represents pores, and 1 represents matrix. Therefore, it can be parametrically segmented to form a pore model containing only 0, which can be used for subsequent simulation calculation of the seepage process in the pores of rock and soil materials. This can improve the efficiency of numerical calculations and relieve the operating pressure of computers.
[0099] The finite element analysis is performed on the constructed geotechnical material calculation model. The present invention can simultaneously realize the simulation calculation of the permeability of the geotechnical material calculation model under single-phase / two-phase conditions, including: 1) simulation calculation of the single-phase water seepage process; 2) simulation calculation of the two-phase water-gas permeation process.
[0100] 1) Simulation calculation method of single-phase water seepage process:
[0101] The description of the single-phase water seepage process can be achieved by using the improved Navier-Stokes (NS) equation, and the control equation is as follows:
[0102] Formula (1);
[0103] In formula (1), ρ is the fluid density, in kg·m -3 ; p is pressure, unit is Pa; Iis the identity matrix; μ is the dynamic viscosity of the fluid, in Pa·s; F is the body force, unit is N·m -3 ; u is the flow velocity, in m·s -1 ; g is the acceleration due to gravity, in m·s -2 .
[0104] 2) Simulation calculation method of two-phase water-gas seepage process:
[0105] The level set finite element method is used to calculate the two-phase water-gas seepage process. The level set interface determines the fluid interface by tracking the contour lines of the level set function. Φ =0.5 determines the position of the interface and controls the contour line Φ The transfer and reinitialization equation is (2):
[0106] Formula (2)
[0107] In formula (2), are reinitialization parameters, in units of m·s and m. To ensure high stability during the calculation of the level set equation, is the interface area mesh size half of The value is the maximum velocity that occurs in the model. At the same time, since the level set function is a smooth step function, the fluid density can be determined by formula (3): ρ and fluid dynamic viscosity μ :
[0108] Formula (3)
[0109] In formula (3), is the density of the water phase, is the dynamic viscosity of the water phase, is the gas phase density and is the gas phase dynamic viscosity.
[0110] 3) The specific calculation steps are as follows:
[0111] The constructed geotechnical medium calculation model is directly imported or converted into a calculation domain with the help of MATLAB-COMSOL interface and imported into COMSOL. The corresponding size parameters are set, and the initial interface position of the water phase or gas phase is set with the polygon vector function. The calculation model is divided according to the single-phase water and two-phase water-gas situations.
[0112] The material properties required for simulation are added to each part of the geotechnical porous media geometric model. This patent mainly uses water phase and gas phase as examples to explain in detail. The displacement phase is added as water, and the displaced phase is added as air. In the case of single-phase water, only a single water phase needs to be added.
[0113] The level set module and laminar flow module are used for multi-physics field coupling calculation. The constitutive relations of the displacing phase and the displaced phase are both Newtonian flows, and the surface tension is included in the momentum equation. The boundary condition is an impermeable layer, and the wall is a no-slip condition. The water phase enters the pore area from the upper boundary, takes the initial interface as the boundary, displaces the gas phase through water pressure, flows out to the lower boundary, and maintains a constant water pressure difference in the pore area.
[0114] Use the built-in "free triangle mesh" function to mesh the model, and set the type and size to fluid dynamics and ultra-fine. If the meshing is unsuccessful, that is, because the pore structure of the rock and soil porous media model is relatively complex or the homogeneity is poor, the mesh size needs to be adjusted and a coarse mesh should be used to mesh it.
[0115] Use the phase initialization solver and the transient solver together to solve the problem. The time step of the solver is: range(0,1e-6,1.0), unit is s. Click calculate. After calculation, the dynamic visualization distribution diagram of the two-phase seepage process, velocity field distribution, pressure field distribution, resistance field distribution and data distribution curve diagram are obtained.
[0116] This application uses the APP developer function in COMSOL to package and build an APP for the modeling process. The APP icon, startup interface, and running interface are designed and packaged independently. The system mainly includes three areas: parameter input area, operation area, and result visualization display area. Among them, the first area mainly includes model import, material property setting, boundary condition selection, and pressure difference parameter input; the second area mainly includes buttons such as "model construction", "grid division", "result calculation", "report document export", and "help document viewing"; the third area is mainly a model visualization display. After calculation, the dynamic distribution diagram of the seepage process of rock and soil materials, velocity field distribution, resistance field distribution, and local detail data curves are obtained.
[0117] The specific process of building the APP is as follows:
[0118] 1) Main window settings: add 3 sub-items in the menu bar under the main window and set them as Save, Save As and Exit respectively. The shortcut links are CTRL+S, CTRL+SHIFT+S and CTRL+E.
[0119] 2) Create forms for corresponding functions, and complete the overall layout planning of the APP running interface in the main form. Create four forms in the form window, of which the first form is used as the main form for the overall construction and layout design of the APP window. To prevent too many forms, the parameter input area, operation area, and result visualization display area are arranged on it; the other three forms are the collection form, information form, and APP main function introduction form. The information form, APP main function introduction form, and main form are combined into several forms, and the main form is displayed as the default window.
[0120] 3) Program writing and adding corresponding functions. The required input parameters and simulation process have been completed before. Now you can directly link to the APP and add corresponding functions to the parameter input area, operation area, and result visualization display area.
[0121] ①The function of "parameter input area" is to select the required parameters under the global definition command for linking.
[0122] First, you can implement the parameter initialization function by adding a Method and entering the following program statements:
[0123] / / / **** Reset all input parameters to default values. Change solutionState to "nosolution"**** / / /
[0124] / / / **** Initialize the parameters in the "Material" column. **** / / /
[0125] model.param().set("muo_w", "1.01e-3[Pa*s]");
[0126] model.param().set("ruo_w", "1000[kg / m^3]");
[0127] model.param().set("muo_g", "1.79e-5[Pa*s]");
[0128] model.param().set("ruo_g", "1.209[kg / m^3]");
[0129] model.param().set("f_st", "4.80[N*m^-1]");
[0130] model.param().set("Pin", "110[Pa]");
[0131] model.param().set("Pout", "10[Pa]");
[0132] / / / *** Initialize the "Information" column. *** / / /
[0133] solutionState = "nosolution";
[0134] In addition, the boundary condition selection area needs to be inserted into the "Select Input" and linked to the previous modeling process in the "Display" mode and displayed in the image window of the main form.
[0135] ② The function of "operation area" realizes the relevant operations under the ROOT command of the selected model. The specific implementation statements are as follows:
[0136] / / / ******** Model construction**** / / /
[0137] useGraphics(model.component("comp1").geom("geom1"), "graphics1");
[0138] / / / ******** Grid division**** / / /
[0139] useGraphics(model.component("comp1").mesh("mesh1"), "graphics1");
[0140] model.component('comp1').mesh('mesh1').create('ftri1', 'FreeTri'); / / / *****Detailed division**** / / /
[0141] model.component('comp1').mesh('mesh1').feature('size').set('table', 'cfd');
[0142] model.component('comp1').mesh('mesh1').feature('size').set('hauto',2);
[0143] model.component('comp1').mesh('mesh1').run;
[0144] model.component('comp1').mesh('mesh1').feature('size').set('table', 'default');
[0145] model.component('comp1').mesh('mesh1').run;
[0146] model.component('comp1').mesh('mesh1').feature('size').set('table', 'cfd');
[0147] model.component('comp1').mesh('mesh1').feature('size').set('custom',false);
[0148] model.component('comp1').mesh('mesh1').run;
[0149] / / / *****Calculation**** / / /
[0150] model.study("std1").run();
[0151] useGraphics(model.result("pg1"), "graphics1");
[0152] playSound("success.wav");
[0153] model.study.create('std1'); / / / *****Solver run**** / / /
[0154] model.study('std1').setGenConv(true);
[0155] model.study('std1').create('phasei', 'PhaseInitialization');
[0156] model.study('std1').feature('phasei').set('solnum', 'auto');
[0157] model.study('std1').feature('phasei').set('notsolnum', 'auto');
[0158] model.study('std1').feature('phasei').set('ngen', '5');
[0159] model.study('std1').feature('phasei').activate('spf', true);
[0160] model.study('std1').feature('phasei').activate('pf', true);
[0161] model.study('std1').create('time', 'Transient');
[0162] model.study('std1').feature('time').set('initstudy','std1');
[0163] model.study('std1').feature('time').set('initialtime', '0');
[0164] model.study('std1').feature('time').set('useinitsol', 'on');
[0165] model.study('std1').feature('time').set('notsolnum', 'auto');
[0166] model.study('std1').feature('time').activate('spf', true);
[0167] model.study('std1').feature('time').activate('pf', true);
[0168] / / / ***** Dynamic Visualization Distribution Map of Seepage Process **** / / /
[0169] useGraphics(model.result("pg2"), "main1 / graphics1");
[0170] / / / ******** Resistance field distribution**** / / /
[0171] useGraphics(model.result("pg3"), "main1 / graphics1");
[0172] model.result('pg5').feature('surf1').set('expr', 'sqrt(d(tpf1.p,x)^2+d(tpf1.p,y)^2++d(tpf1.p,z)^2) / if(spf3.U<1[m / s],1[m / s],spf3.U)');
[0173] model.result('pg5').feature('surf1').set('descractive', true);
[0174] model.result('pg5').run;
[0175] / / / ****Help document view**** / / /
[0176] fileOpen("embedded: / / / A numerical calculation APP for evaluating theseepage characteristics of geotechnical materials-Help Document.pdf");
[0177] / / / ******** Create and save simulation report in Microsoft Word format. **** / / /
[0178] if (!solutionState.equals("solutionexists"))
[0179] {
[0180] alert("New input data. Please calculate first to update the result.");
[0181] }
[0182] else {
[0183] model.result().report("rpt1").run();
[0184] }
[0185] ③ The function of "result visualization display area" realizes the relevant visualization display under the selected result command, and basic functions such as image zooming, reducing, and printing can be added under the toolbar command.
[0186] 4) APP construction and packaging is completed. At this point, all buttons and related functions have been packaged, compiled and processed through the compiler function, and the corresponding APP icon and startup interface can be set according to your own needs, and finally the APP file in EXE format that can be used by the three major systems of Windows, Linux and macOS is output.
[0187] 5) Hardware requirements for operation.
[0188] Operating system: Windows, Linux or macOS;
[0189] Hardware configuration: Intel Core i5-6700 @3.60GHz 8G RAM;
[0190] System type: 32 / 64-bit operating system;
[0191] Network environment: No network required.
[0192] This application constructs a geotechnical material calculation model for realizing the permeability evaluation of geotechnical materials. By performing numerical calculations on the seepage characteristics evaluation of geotechnical materials, designers and builders can better understand the seepage characteristics of a certain type of geotechnical medium, which is crucial for planning and designing infrastructure projects, such as dams, bridges, tunnels and roads. With a deep understanding of the seepage characteristics of geotechnical materials, designers can better select such materials and determine structural parameters to improve the safety and durability of the project.
[0193] In terms of disaster prevention and management, geological disasters (such as landslides and debris flows) are often closely related to hydrological seepage deformation. By simulating the seepage behavior of rock and soil bodies, potential disaster risks can be better predicted, so that preventive measures can be taken to protect life and property safety.
[0194] This application can be developed on the basis of COMSOL by using MATLAB programming language to realize the digitization of geotechnical material models and realize joint simulation modeling with AVIZO, CAD, MATLAB and other software. It can realize parameterized input to set materials for digital models, including boundary condition setting, mesh generation, finite element numerical calculation, and custom differential method to analyze the corresponding velocity field, pressure field, resistance field and local detail data and other permeability characteristics. It can realize the automatic sorting and exporting functions of help document viewing and calculation result report.
[0195] Embodiment 2:
[0196] This example verifies the above-mentioned geotechnical material calculation model and simulation method for realizing the permeability evaluation of geotechnical materials.
[0197] (1) Authenticity verification of single-phase flow APP numerical calculation results:
[0198] In order to verify the correctness of the numerical simulation results of this software, Figure 6 The porous media model of geotechnical materials is shown in the figure to verify whether the seepage in the pore model conforms to Darcy's law. The fluid is driven by pressure, enters the pore area from the upper boundary, flows out to the lower boundary, and maintains a constant pressure difference in the pore area. The velocity size changes in the entire pore area are as follows: Figure 7 As shown (taking 0.1 KPa pressure difference as an example). Figure 7 It can be seen that there are some high-speed areas on the seepage path. The average velocity of the entire area is 2.04×10 -3 m / s. By changing the pressure difference at the model boundary, the corresponding volume flow rate is calculated and studied parametrically. Figure 8 Indicates the trend of volume flow rate with applied pressure difference, from Figure 8 It can be observed that the flow rate changes linearly with the applied pressure difference, the fitting degree is good, which conforms to Darcy's law and verifies the correctness of the numerical simulation results of the software.
[0199] 2) Authenticity verification of two-phase flow APP numerical calculation results:
[0200] In order to verify the correctness of the numerical simulation results of this APP, Fig. 9 The three-dimensional geotechnical material pore model shown in the figure is used as the object, and the volume conservation method is used to take the water-gas two-phase seepage in the geotechnical material model as an example to verify whether the result is correct. Since the volume of the pore area of the geotechnical medium is constant, the total volume of the gas phase and the water phase is constant at each moment. The total volume of the pore model is 2.25 mm 3 The volume fraction is defined as the volume of the gas phase or water phase in the pore area under normal temperature and pressure conditions.
[0201] t = 0, the gas phase exists in the area below the initial interface, and the water phase exists in the area above the initial interface. The water phase enters the pore area from the upper boundary, takes the initial interface as the boundary, displaces the gas phase through water pressure, flows out to the lower boundary, and maintains a constant water pressure difference in the pore area (such as Fig.10 shown), in Fig.10 In the figure, red represents the gas phase filling the rock and soil, blue represents the water phase invading, and the gradient color at the junction of red and blue represents the contact between the water and gas phases. Fig.11 The volume fraction of the model water phase, gas phase and the total phase changes with time. Fig.11 It can be observed that the total volume of the water phase and the gas phase in the model remains constant over time and is equal to the total volume fraction, which conforms to the law of conservation of volume and verifies the correctness of the numerical simulation results of the APP.
[0202] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used in this application is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed in this application.
Claims
1. A method for constructing a permeability assessment model for geotechnical materials, characterized in that: The steps include: Through CT scanning, several 2D scanning slices of the rock and soil body in various directions are obtained. Based on the several 2D scanning slices, 3D reconstruction is performed using MATLAB software to obtain a real rock and soil model; A parameter set for controlling the generation of a rock-soil medium in a real rock-soil model is set, a first distribution of particles exceeding a set particle size in the rock-soil is obtained based on 2D scanning slices in all directions, a first initial parameter of the parameter set is determined according to the first distribution, and an isotropic first particle cluster of the rock-soil is generated; Based on the isotropic first particle cluster of the rock and soil body, and according to the second distribution of particles less than or equal to the set particle size in the rock and soil body, and referring to the isotropic 2D scanning slices of the rock and soil body, the second initial parameters of the second particle cluster in the rock and soil body are determined, and a digital model of the rock and soil body based on the first particle cluster of the rock and soil body is generated; Configure the parameterized input module of the digital model of the geotechnical body to customize the size of the digital model of the geotechnical body according to actual needs; and configuring a parametric segmentation module of the digital model of the rock and soil body to segment the pores and matrix in the digital model of the rock and soil body, thereby obtaining a calculation model of the rock and soil material, and evaluating the permeability of the rock and soil material based on the calculation model of the rock and soil material; The method for 3D reconstruction of the real rock and soil model using MATLAB software includes: The first step is to adopt im2bw The function performs binarization on the selected i 2D scan slices to generate a 2D point array containing only 0-1; The second step is to use cat and squeeze The function loads 1-i binary images into a 3D array along the depth direction and generates a 3D calculation model; The third step is to digitally store the generated 3D computational model and form a 0-1 three-dimensional matrix for subsequent data reading; The digitization of geotechnical material models is achieved through secondary development based on COMSOL using the MATLAB programming language. The secondary development process is as follows: Use the APP developer function in COMSOL to package and build the APP for the modeling process, and independently design the packaged APP icon, startup interface, and running interface, which include three areas: parameter input area, operation area, and result visualization display area; The first division includes model import, material property setting, boundary condition selection and pressure difference parameter input; The second area contains the "Model Construction", "Meshing", "Result Calculation", "Report Document Export" and "Help Document View" buttons; The third division is the model visualization display. After calculation, the dynamic distribution diagram of the seepage process of rock and soil materials, velocity field distribution, resistance field distribution and local detail data curves are obtained; Through the secondary development process, joint simulation modeling with AVIZO, CAD, and MATLAB software is realized. Material settings are performed on the digital model of rock and soil through parametric input, including boundary condition settings, mesh generation, finite element numerical calculations, and custom differential methods to analyze the corresponding velocity field, pressure field, resistance field, and local detail data penetration characteristics. It can also realize the functions of automatically organizing and exporting help documents and calculation result reports; The specific process of building the APP is as follows: 1) Main window settings: add three sub-items to the menu bar under the main window and set them to Save, Save As and Exit respectively; 2) Create a form for the corresponding function, and complete the overall layout planning of the APP running interface in the main form. Create 4 forms in the form window, of which the first form is used as the main form for the overall layout design of the APP window. In order to prevent too many forms, the parameter input area, operation area, and result visualization display area are arranged on it; the other 3 forms are the collection form, information form, and APP main function introduction form. The information form, APP main function introduction form, and main form are combined into several forms, and the main form is displayed as the default window; 3) Program writing, add corresponding functions, directly link the required input parameters and simulation process to the APP, and add corresponding functions to the parameter input area, operation area, and result visualization display area; The calculation expression of the pore seepage resistance field expr of geotechnical materials is: 。 2. The method for constructing a permeability assessment model for geotechnical materials according to claim 1, characterized in that: The set of parameters that control the generation of the geotechnical medium includes: Porosity distribution probability p c , pore growth probability p d , pore probability density p imq and porosity n , the matrix region of the rock mass is set as the growth phase, and the pore region is set as the non-growth phase.
3. The method for constructing a permeability assessment model for geotechnical materials according to claim 1 or 2, characterized in that: The parameter set controlling the generation of the geotechnical medium is generated as follows: ① According to the set pore distribution probability p c Randomly arrange the solid phase and the pore distribution probability p c Less than the set porosity n ; ② In space, according to the set pore growth probability p d Allow the distributed solid phase units to grow along adjacent points in several directions; ③ Repeat steps ① and ② until the growth phase reaches the initially set porosity n When , the growth stops and the parameter set that controls the generation of the rock and soil medium is obtained.
4. The method for constructing a permeability assessment model for geotechnical materials according to claim 1, characterized in that: The first initial parameter includes: a first distribution probability determined by the first distribution p c1 , the first porosity n 1 , Growth probability p d1-dm ,in m is an integer greater than or equal to 2.
5. The method for constructing a permeability assessment model for geotechnical materials according to claim 1, characterized in that: The second initial parameters include: The second distribution probability determined by the second distribution p c2 , refer to the CT scan slices of the rock and soil body to determine the growth probability p d1-dm Main tilt direction, auxiliary tilt direction, and determine growth probability p d1-dm , and anisotropic second porosity n 2 ,in m is an integer greater than or equal to 2.
6. The method for constructing a permeability assessment model for geotechnical materials according to claim 2, characterized in that: The parameterized input module includes: Model size setting unit, used to set the model length l , model width b , model height h ; an association unit connected to the parameter set by which the porosity is set n , pore distribution probability p c , pore growth probability p d , pore probability density p imq ; And the property setting unit is used to define the basic properties of geotechnical materials, the basic properties of seepage objects, the basic properties of boundary conditions and the basic properties of model mesh division.
7. The method for constructing a permeability assessment model for geotechnical materials according to claim 6, characterized in that: The basic properties of geotechnical materials include: matrix phase density ; The basic properties of the seepage object include: water phase density , gas phase density , dynamic viscosity of water phase , gas phase dynamic viscosity ; The basic properties of boundary conditions include: inlet and outlet water pressure P in and P out , water-gas interfacial tension F st ; The basic properties of model meshing include: mesh size .
8. An application of a geotechnical material calculation model for realizing permeability assessment of geotechnical materials, which is constructed based on the method for constructing a geotechnical material permeability assessment model as described in any one of claims 1 to 7, and realizing simulation calculation of single-phase seepage process and two-phase seepage process of the permeability of the geotechnical material calculation model by performing finite element analysis on the geotechnical material calculation model.
9. The use according to claim 8, characterized in that: The simulation calculation method of the single-phase seepage process includes: The description of the single-phase seepage process can be described by the improved Navier-Stokes equation, and the control equation is as follows: Formula (1); In formula (1), ρ is the fluid density, kg·m -3 ; p is pressure, Pa; I is the identity matrix; μ is the fluid dynamic viscosity, Pa·s; F is the body force, N·m -3 ; u is the flow rate, m·s -1 ; g is the acceleration due to gravity, m·s -2 .
10. The use according to claim 8, characterized in that: The simulation calculation method of the two-phase permeation process includes: The level set finite element method is used to calculate the two-phase permeability process. The Level Set interface determines the fluid interface by tracking the contour lines of the level set. Φ =0.5 determines the position of the interface and controls the contour line Φ The transfer and reinitialization equations are as follows: Formula (2); In formula (2), is the flow rate, , , All are re-initialization parameters, unit and ,use is the interface area mesh size h c half of The value is the maximum velocity that occurs in the model. At the same time, since the level set function is a smooth step function, the fluid density can be determined by formula (3): ρ and fluid dynamic viscosity μ : Formula (3); In formula (3), is the density of the water phase, is the dynamic viscosity of the water phase, is the gas phase density, is the gas phase dynamic viscosity.
