Disclosure of Invention
The invention provides a physical modeling method, a system and equipment of a three-dimensional random pore structure model, and aims to solve the problem that the porosity characteristics of a porous medium region are difficult to describe in physical modeling.
In order to achieve the above object, an embodiment of the present invention provides a physical modeling method of a three-dimensional random pore structure model, including:
step 1, establishing a three-dimensional porous medium region physical model, carrying out mesh division on the three-dimensional porous medium region physical model by using a structured hexahedral mesh, and outputting a first mesh file containing node position information and an element-node corresponding relation;
step 2, the three-dimensional porous medium area consists of a framework and gaps, the positions of the gaps are random, grid elements representing the framework are removed, the grid elements representing the gaps are reserved, and a second grid file containing void ratio and pore size information is reconstructed;
and 3, importing the second network file into ANSYS ICEM software, identifying and removing an isolated grid by adopting a Flood-fill/Make _ constraint consistency function, and generating a surface grid by utilizing a grid checking function to ensure that the volume element at the outermost layer is covered by the curved surface grid.
Wherein, the step 1 specifically comprises:
and carrying out meshing division on the three-dimensional porous medium region physical model by using a structured hexahedral mesh, wherein the size of the mesh represents the size of a pore diameter, an Abaqus software is used for modeling a mesh file which can be output and contains node position information, each mesh unit consists of one element and eight nodes, the total number of the elements in the output mesh file is Nt, and the elements represent the positions of gaps.
Wherein, the step 2 specifically comprises:
the number of elements representing the gaps is equal to the product of the bed porosity and the total number of elements, wherein the positions of the gaps are random and are described by non-repeated random numbers in a preset range;
and retrieving and retaining elements representing the gap positions in the grid file and node position information of the elements, and combining the gap element file and the node file to obtain a reconstructed grid file.
The embodiment of the invention also provides a physical modeling system of the three-dimensional random pore structure model, which comprises the following steps:
the model establishing module is used for establishing a three-dimensional porous medium region physical model, performing grid division on the three-dimensional porous medium region physical model by using a structured hexahedral grid, and outputting a first grid file containing node position information and an element-node corresponding relation; the three-dimensional porous medium region consists of a framework and gaps, and the positions of the gaps are random;
the reconstruction module is used for removing the grid elements representing the framework, reserving the grid elements representing the gaps, and reconstructing a second grid file containing void ratio and aperture size information;
and the grid generating module is used for importing the second network file into ANSYS ICEM software, identifying and removing an isolated grid by adopting a Flood-file/Make _ constraint consistency function, and generating a surface grid by utilizing a grid checking function to ensure that the outermost volume element is covered by the curved surface grid.
The model establishing module is specifically used for carrying out meshing on the three-dimensional porous medium region physical model by using a structured hexahedral mesh, the size of the mesh represents the size of a pore diameter, an Abaqus software is used for modeling a mesh file which can be output and contains node position information, each mesh unit consists of one element and eight nodes, the total number of the elements in the output mesh file is Nt, and the elements represent the positions of gaps.
Wherein the reconstruction module comprises:
and the retrieval module is used for retrieving and reserving elements representing the gap positions in the grid file and node position information thereof, and obtaining the reconstructed grid file by combining the gap element file and the node file.
The embodiment of the present invention further provides a physical modeling apparatus for a three-dimensional random pore structure model, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the physical modeling method for the three-dimensional random pore structure model according to the above-mentioned embodiment.
The scheme of the invention has the following beneficial effects:
the physical modeling method, the system and the equipment of the three-dimensional random pore structure model are composed of a framework and randomly distributed gaps, a few isolated gaps are removed from the built three-dimensional random pore structure model, most of the gaps are mutually communicated, the real structural characteristics of the interior of a three-dimensional porous medium are faithfully reflected, the problem that the porosity characteristics of a porous medium region are difficult to describe in physical modeling is solved, the porous medium region with different internal structural characteristics can be obtained by carrying out grid modeling based on the void ratio and the average pore diameter parameter, meanwhile, the isolated gaps can be removed by a grid repairing means, and further, a grid model can be provided for computational fluid mechanics simulation of the porous medium region.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The invention provides a physical modeling method, a system and equipment of a three-dimensional random pore structure model, aiming at the problem that the porosity characteristics of a porous medium region are difficult to describe in the existing physical modeling.
The embodiment of the invention provides a physical modeling method of a three-dimensional random pore structure model, which comprises the following steps:
step 1, establishing a three-dimensional porous medium region physical model, carrying out mesh division on the three-dimensional porous medium region physical model by using a structured hexahedral mesh, and outputting a first mesh file containing node position information and an element-node corresponding relation;
step 2, the three-dimensional porous medium area consists of a framework and gaps, the positions of the gaps are random, grid elements representing the framework are removed, the grid elements representing the gaps are reserved, and a second grid file containing void ratio and pore size information is reconstructed;
and 3, importing the second network file into ANSYS ICEM software, identifying and removing an isolated grid by adopting a Flood-fill/Make _ constraint consistency function, and generating a surface grid by utilizing a grid checking function to ensure that the volume element at the outermost layer is covered by the curved surface grid.
Wherein, the step 1 specifically comprises:
and carrying out meshing division on the three-dimensional porous medium region physical model by using a structured hexahedral mesh, wherein the size of the mesh represents the size of a pore diameter, an Abaqus software is used for modeling a mesh file which can be output and contains node position information, each mesh unit consists of one element and eight nodes, the total number of the elements in the output mesh file is Nt, and the elements represent the positions of gaps.
Wherein, the step 2 specifically comprises:
the number of elements representing the gaps is equal to the product of the bed porosity and the total number of elements, wherein the positions of the gaps are random and are described by non-repeated random numbers in a preset range;
and retrieving and retaining elements representing the gap positions in the grid file and node position information of the elements, and combining the gap element file and the node file to obtain a reconstructed grid file.
The physical modeling method of the three-dimensional random pore structure model of the invention constructs a grid model for a porous medium area formed by randomly filling filler particles in a fixed bed reactor with the diameter of 60mm and the height of 600mm, and specifically comprises the following steps: (1) constructing a structured grid model of the three-dimensional fixed bed reactor: a structured finite element mesh model was constructed in the Abaqus software based on the mean pore size parameter (d ═ 5mm), as shown in fig. 1A. The mesh file is output with an inp suffix where each Node and Element has their own number, 8 nodes around each Element, 23353 total nodes and 20760 total elements. The position information of the node and the correspondence between the node and the element are shown in fig. 1B and 1C. And splitting the grid file into an Element file and a Node file, and reserving the Element file and the Node file for standby.
(2) Framework and void separation: the porous medium region is composed of a skeleton and voids, and the positions of the voids are represented by the positions of the elements. Assuming that the bed porosity is 50%, the total number Np of voids is 20760 × 0.5 — 10380. Since the locations of the voids in the porous media region are random, the number of voids may be represented by a non-repeating random number sequence between 1 and 20760. The non-repetitive random number sequence is generated by Matlab software, exported as a text file and used as an index file. Then, based on the index file, the Python language writing program is used for searching and reserving elements representing the gap positions in the Element file, and other truncated elements represent the skeleton, as shown in fig. 2. And finally, combining the gap element file and the node position information file to obtain a reconstructed grid file.
(3) Mesh repair and surface mesh reconstruction: for a three-dimensional mesh that can be applied to computational fluid dynamics software identification and computation, the outermost volume element should be covered by a surface mesh, and boundary conditions need to be imposed on the surface mesh connected to the volume element. And importing the grid file obtained by reconstruction into ANSYS ICEM software, and identifying and removing isolated grids by adopting a Flood-file/Make _ constraint consistency function. Isolated voids often exist in the reconstructed model, as shown in FIG. 3A, which cause subsequent calculations to not converge and errors in the calculation process. Therefore, the isolated gaps shown in fig. 3B need to be deleted before numerical simulation. The finally generated grid model of the gap structure of the porous medium area of the fixed bed is shown in FIG. 3C, and numerical simulation calculation is only carried out in the gap.
The embodiment of the invention also provides a physical modeling system of the three-dimensional random pore structure model, which comprises the following steps: the model establishing module is used for establishing a three-dimensional porous medium region physical model, performing grid division on the three-dimensional porous medium region physical model by using a structured hexahedral grid, and outputting a first grid file containing node position information and an element-node corresponding relation; the three-dimensional porous medium region consists of a framework and gaps, and the positions of the gaps are random; the reconstruction module is used for removing the grid elements representing the framework, reserving the grid elements representing the gaps, and reconstructing a second grid file containing void ratio and aperture size information; and the grid generating module is used for importing the second network file into ANSYS ICEM software, identifying and removing an isolated grid by adopting a Flood-file/Make _ constraint consistency function, and generating a surface grid by utilizing a grid checking function to ensure that the outermost volume element is covered by the curved surface grid.
The model establishing module is specifically used for carrying out meshing on the three-dimensional porous medium region physical model by using a structured hexahedral mesh, the size of the mesh represents the size of a pore diameter, an Abaqus software is used for modeling a mesh file which can be output and contains node position information, each mesh unit consists of one element and eight nodes, the total number of the elements in the output mesh file is Nt, and the elements represent the positions of gaps.
Wherein the reconstruction module comprises:
and the retrieval module is used for retrieving and reserving elements representing the gap positions in the grid file and node position information thereof, and obtaining the reconstructed grid file by combining the gap element file and the node file.
The embodiment of the present invention further provides a physical modeling apparatus for a three-dimensional random pore structure model, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the physical modeling method for the three-dimensional random pore structure model according to the above-mentioned embodiment.
The physical modeling method of the three-dimensional random pore structure model further comprises the following specific embodiments: the pressure drop characteristics of the random packing structure were determined by numerical simulation of fluid flow behavior using commercially available software (ANSYS Fluent 16.2). Single phase flow systems were selected as the subject of the study. Air (ρ 1.225kg/m3, μ 1.7894 × 10-5pa.s) was introduced at a constant rate from the bottom of the reactor and discharged at a constant pressure from the top of the column. All other boundary conditions are set as "walls" except for the velocity inlet and pressure outlet. Slip-free boundary conditions are defined for the reactor wall and framework surfaces. The gas velocity in the porous medium region ranges from 0.001 to 0.003m/s, and the fluid flow is laminar.
The pressure drop of the porous media region is related to the flow rate, particle size and bed porosity according to the classical Ergun equation. For laminar flow, the pressure drop calculation is as follows:
in equation (1), Δ P is the pressure drop, L is the tube length, v is the fluid velocity, d
pIs the particle size of the particles,
is the shape factor and ε is the bed voidage. Here, three-dimensional random pore structures were characterized in terms of porosity and pore size, and the influence of flow rate (0.001m/s, 0.0015m/s, 0.002m/s, 0.0025m/s, 0.003m/s), bed porosity (50%, 60%, 70%, 80%) and pore size (2mm, 3mm, 4mm, 5mm) on pressure drop characteristics was examined.
The effect of inlet velocity on pressure drop for different pore sizes is shown in fig. 4: (A) d is 2 mm; (B) d is 3 mm; (C) d is 4 mm; (D) d is 5 mm.
Void fraction function under different pore sizes
The effect on pressure drop is shown in fig. 5: (A) d is 2 mm; (B) d is 3 mm; (C) d is 4 mm; (D) d is 5 mm.
The trend of pressure drop with inlet velocity and bed porosity conforms to the classical Ergun equation (R)2>0.99), indicating the accuracy of the model.
The physical modeling method, the system and the equipment of the three-dimensional random pore structure model are composed of a framework and randomly distributed gaps, a few isolated gaps are removed from the built three-dimensional random pore structure model, most of the gaps are mutually communicated, the real structural characteristics of the interior of a three-dimensional porous medium are faithfully reflected, the problem that the porosity characteristics of a porous medium region are difficult to describe in physical modeling is solved, the porous medium region with different internal structural characteristics can be obtained by carrying out grid modeling based on the void ratio and the average pore diameter parameter, meanwhile, the isolated gaps can be removed by a grid repairing means, and further, a grid model can be provided for computational fluid mechanics simulation of the porous medium region.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.