Cross‑scale calculation method and system for heat and mass transfer in porous media, device and medium
By using a cross-scale computational method, porous media are divided into macroscopic units and iteratively solved using a machine learning model. This resolves the contradiction between accuracy and efficiency in the simulation of thermal and mass transport in porous media, and enables high-precision and rapid simulation of thermal and mass transport processes.
Patent Information
- Application Number
- PCT/CN2025/114370
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-13
- Filing Date
- 2025-08-13
- Publication Date
- 2026-11-19
AI Technical Summary
Existing methods for simulating thermal and mass transport in porous media present a contradiction between computational accuracy and efficiency. Macroscale simulations lack parameter support, resulting in high uncertainty, while pore-scale simulations are computationally intensive and inefficient, making it difficult to meet the accuracy and scale requirements of practical applications.
A cross-scale computational method is adopted to divide the porous structure into macroscopic units. The solution and iteration are performed by a machine learning surrogate model. Combined with the coupled calculation of macroscopic and pore-scale physical fields, the macroscopic transport parameters are updated until convergence, thereby realizing the simulation of cross-scale heat and mass transport processes.
It improves the calculation accuracy and speed of thermal and mass transport processes in porous media, reduces memory usage, has a wide range of applications, and meets the scale requirements of practical applications.
Smart Images

Figure CN2025114370_19112026_PF_FP_ABST
Abstract
Description
Methods, systems, equipment and media for cross-scale calculation of heat and mass transport in porous media
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202510613656.9, filed by Tsinghua University on May 13, 2025, entitled "Method, System, Device and Medium for Multiscale Calculation of Thermal and Mass Transport in Porous Media". Technical Field
[0003] This application relates to the field of porous media heat and mass transport technology, and in particular to a method, system, device and medium for cross-scale calculation of porous media heat and mass transport. Background Technology
[0004] Thermo-mass transport processes in porous media are widespread in nature and engineering, with important applications in fluid transport within biological tissues, energy resource development and utilization, and aerospace thermal protection. Accurate descriptions of these processes are crucial for the optimized design and precise control of practical applications. Currently, two main simulation methods are commonly used in the field of thermo-mass transport in porous media: macroscopic-scale simulation and pore-scale simulation.
[0005] Macroscale simulations characterize the influence of intrinsic heat and mass transport processes in pore fluids using macroscopic transport parameters and study these processes using a volume-averaged approach. Compared to pore-scale simulations, macroscale simulations are computationally less complex and more efficient. However, due to the complex heterogeneous solid framework structure and multiphase fluid interface interactions in real porous media, macroscale simulation methods lack a basis for setting macroscopic transport parameters, resulting in high uncertainty in the simulation results and making it difficult to meet the accuracy requirements of practical applications.
[0006] Pore-scale simulation, which involves meshing the solid framework structure and studying the intrinsic heat and mass transport processes of fluids within pores, is a high-precision simulation method. However, due to the need for detailed mesh generation of micropores, pore-scale simulation is computationally intensive and inefficient. With current computer hardware, it typically only achieves a scale span of three orders of magnitude in one spatial dimension. In practical applications, however, the spatial scale span of heat and mass transport processes in porous media can reach six to twelve orders of magnitude in one dimension, making this high-precision pore-scale simulation method insufficient to meet the scale span requirements of real-world applications. Summary of the Invention
[0007] In view of this, it is necessary to provide a method, system, device and medium for cross-scale calculation of thermal and mass transport in porous media to address the above-mentioned technical problems. This method has the advantages of high calculation accuracy and fast calculation speed for thermal and mass transport processes in porous media, and low memory usage, thus having relatively low requirements for computing hardware and a wide range of applications.
[0008] In a first aspect, this application provides a method for multi-scale calculation of thermal and mass transport in porous media, including:
[0009] Determine the porous structure, heat and mass transport physical processes, and boundary conditions of porous media;
[0010] The porous structure is divided into multiple macroscopic units, and initial values are assigned to the macroscopic transport parameters. The following steps are repeated until the macroscopic transport parameters converge.
[0011] Solving for physical fields on a macroscopic scale;
[0012] Based on the macroscopic physical field, the pore-scale boundary conditions of each macroscopic unit are determined, and the pore-scale physical field is obtained based on the pore-scale boundary conditions and porous structure of each macroscopic unit.
[0013] The macroscopic transport parameters are updated based on the pore-scale physical field.
[0014] In some examples, dividing the porous structure into multiple macroscopic units includes:
[0015] The porous structure is divided into multiple macroscopic units by equal-interval and uniform division.
[0016] In some examples, the macroscale includes a volume-average scale or a Darcy scale, and the macroscale physical field includes some or all of the saturation field, the volume-average velocity field, the volume-average pressure field, and the volume-average temperature field.
[0017] The process of solving the macroscopic physical field includes: inputting the macroscopic transport parameters and boundary conditions into a macroscopic flow solver or a pre-trained macroscopic physical field solving machine learning proxy model, and obtaining the solution results of the macroscopic physical field output by the macroscopic flow solver or the macroscopic physical field solving machine learning proxy model.
[0018] In some examples, determining the pore-scale boundary conditions for each macroscopic unit based on the macroscopic-scale physical field includes:
[0019] Based on the macroscopic physical field, the pore-scale boundary conditions of the macroscopic unit are obtained by interpolation.
[0020] In some examples, obtaining the pore-scale physical field based on the pore-scale boundary conditions and porous structure of each macroscopic unit includes:
[0021] Each macroscopic unit is traversed, and a pre-trained pore-scale physical field solving machine learning proxy model is invoked within each macroscopic unit to obtain the pore-scale physical field through the pore-scale physical field solving machine learning proxy model.
[0022] In some examples, updating the macroscopic transport parameters based on the pore-scale physical field includes:
[0023] Obtain the current-cycle calculated macroscopic transport parameters equivalent to the pore-scale physical field, and update the macroscopic transport parameters based on the current-cycle calculated macroscopic transport parameters.
[0024] In some examples, it also includes:
[0025] Obtain the deviation values between the macroscopic transport parameters calculated in this round and those calculated in the previous round;
[0026] If the deviation value is less than a predetermined threshold, then the macroscopic transport parameter is determined to have converged.
[0027] Secondly, a multi-scale computational system for thermal and mass transport in porous media is provided, comprising:
[0028] The determination module is used to determine the porous structure, heat and mass transport physical processes, and boundary conditions of porous media.
[0029] A partitioning module is used to divide the porous structure into multiple macroscopic units;
[0030] The calculation module is used to assign initial values to the macroscopic transport parameters and repeat the following steps until the macroscopic transport parameters converge: solve the macroscopic physical field; determine the pore-scale boundary conditions of each macroscopic unit based on the macroscopic physical field, and obtain the pore-scale physical field based on the pore-scale boundary conditions and porous structure of each macroscopic unit; update the macroscopic transport parameters based on the pore-scale physical field.
[0031] Thirdly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the multi-scale calculation method for thermal and mass transport in porous media described in the first aspect and any possible implementation of the first aspect.
[0032] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the porous medium thermal and mass transport cross-scale calculation method described in the first aspect and any possible implementation thereof.
[0033] The embodiments of this application, after determining the porous structure, heat and mass transport physical processes, and boundary value conditions of the porous medium, divide the porous structure into multiple macroscopic units and assign initial values to the macroscopic transport parameters. Then, iteratively executes the following steps: solving the macroscopic physical field, determining the pore-scale boundary conditions for each macroscopic unit, obtaining the pore-scale physical field, and updating the macroscopic transport parameters based on the pore-scale physical field. The iterative process stops when the macroscopic transport parameters converge, thus completing the cross-scale calculation of heat and mass transport in porous media. This method offers advantages such as high computational accuracy and fast computation speed for the heat and mass transport processes of porous media, while also having low memory usage, resulting in relatively low requirements for computing hardware and a wide range of applications. Attached Figure Description
[0034] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0035] Figure 1 is a flowchart of the multi-scale calculation method for thermal and mass transport in porous media provided in the embodiments of this application;
[0036] Figure 2 is a schematic diagram of the multi-scale calculation method for thermal and mass transport in porous media provided in the embodiments of this application;
[0037] Figure 3 is a flowchart of a multi-scale calculation method for thermal and mass transport in porous media provided in another embodiment of this application;
[0038] Figure 4 is a structural block diagram of the porous medium thermal and mass transport multi-scale calculation system provided in the embodiments of this application;
[0039] Figure 5 is a structural block diagram of the computer device provided in the embodiments of this application. Detailed Implementation
[0040] The present application will now be described in further detail with reference to the embodiments and accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the application. Furthermore, it should be noted that, for ease of description, only the parts relevant to the application are shown in the accompanying drawings.
[0041] It should be noted that, unless otherwise specified, the embodiments and features of the embodiments in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0042] The following describes in detail, with reference to the accompanying drawings, a method, system, apparatus, and medium for cross-scale calculation of thermal and mass transport in porous media according to embodiments of this application.
[0043] This application presents a method, system, equipment, and medium for cross-scale calculation of thermal and mass transport in porous media, which solves the problem of incompatibility between accuracy and efficiency in existing calculation methods for thermal and mass transport in porous media, and can achieve high-precision prediction of thermal and mass transport processes at the scale of practical applications.
[0044] Figure 1 is a flowchart of a method for calculating the thermal and mass transport across scales in porous media according to an embodiment of this application. As shown in Figure 1, the method for calculating the thermal and mass transport across scales in porous media according to an embodiment of this application includes the following steps:
[0045] S101: Determine the porous structure, heat and mass transport physical processes, and boundary conditions of the porous medium.
[0046] That is, to determine the porous structure of the porous medium to be calculated, the physical processes of heat and mass transport within the porous medium, and the boundary conditions.
[0047] In a specific example, the physical processes typically include a series of physical processes related to the heat and mass transport of porous media, such as, but not limited to: heat-fluid coupling processes, single-phase and multiphase flow processes, purely thermal conduction processes, steady-state processes, and transient processes. Furthermore, the effects of fluid-structure interaction, phase change, chemical reactions, and multi-component transport processes can be incorporated into these physical processes.
[0048] In one embodiment of this application, the boundary conditions include, but are not limited to, initial conditions and boundary conditions.
[0049] S102: Divide the porous structure into multiple macroscopic units, assign initial values to the macroscopic transport parameters, and repeat the following steps until the macroscopic transport parameters converge.
[0050] The porous structure is divided into macroscopic units, for example, a three-dimensional porous structure is divided into N units. x ×N y ×N z The porous structure is divided into multiple macroscopic units, which can be achieved by using equally spaced and uniform macroscopic unit division. Here, x, y, and z represent the x, y, and z directions in three-dimensional coordinates, respectively.
[0051] Assigning initial values to macroscopic transport parameters means assigning initial values to macroscopic transport parameters for iteration. These macroscopic transport parameters include, but are not limited to, absolute permeability, relative permeability, macroscopic capillary pressure, and equivalent thermal conductivity.
[0052] S103: Solve for physical fields on a macroscopic scale.
[0053] In one embodiment of this application, the macroscopic scale includes the volume-average scale or the Darcy scale, and the macroscopic scale physical field includes some or all of the saturation field, the volume-average velocity field, the volume-average pressure field, and the volume-average temperature field.
[0054] Solving macroscopic-scale physical fields can be achieved, for example, by inputting the macroscopic transport parameters and boundary conditions into a pre-trained macroscopic-scale physical field solving machine learning surrogate model, and obtaining the solution results of the macroscopic-scale physical fields output by the machine learning surrogate model. In other words, macroscopic-scale physical fields can be solved using a developed and trained macroscopic-scale physical field solving machine learning surrogate model. Of course, macroscopic-scale physical fields can also be solved using existing numerical simulation methods. For example, macroscopic transport parameters and boundary conditions can also be input into a macroscopic-scale seepage solver to obtain the solution results of the macroscopic-scale physical fields output by the macroscopic-scale seepage solver.
[0055] S104: Based on the macroscopic physical field, determine the pore-scale boundary conditions of each macroscopic unit, and obtain the pore-scale physical field based on the pore-scale boundary conditions and porous structure of each macroscopic unit.
[0056] In one embodiment of this application, determining the pore-scale boundary conditions of each macroscopic unit based on the macroscopic-scale physical field includes: interpolating the pore-scale boundary conditions of the macroscopic unit based on the macroscopic-scale physical field.
[0057] In other words, downscaling is performed to determine the pore-scale boundary conditions for each macroscopic unit. For example, pore-scale boundary conditions can be determined based on macroscopic-scale physical field interpolation. In this example, the pore-scale boundary conditions can be calculated by a machine learning surrogate model of the pore scale of adjacent units, thereby improving the accuracy of downscaling.
[0058] Based on the pore-scale boundary conditions and porous structure of each macroscopic unit, the pore-scale physical field is obtained, including: traversing each macroscopic unit and calling a pre-trained pore-scale physical field solving machine learning proxy model within each macroscopic unit, so as to obtain the pore-scale physical field through the pore-scale physical field solving machine learning proxy model.
[0059] Specifically, the process iterates through each macroscopic unit, calling a pre-trained pore-scale physical field solver machine learning surrogate model (i.e., the machine learning surrogate model) within each macroscopic unit to obtain the pore-scale physical field. The inputs to the pore-scale physical field solver machine learning surrogate model include the porous structure within the macroscopic unit, the boundary conditions of the heat and mass transport process, and fluid property parameters. The output of the pore-scale physical field solver machine learning surrogate model is the pore-scale physical field corresponding to the heat and mass transport process.
[0060] In one embodiment of this application, the pore-scale physical field includes, but is not limited to, phase field, velocity field, pressure field, temperature field, and component concentration field.
[0061] S105: Update the macroscopic transport parameters based on the pore-scale physical field.
[0062] Updating the macroscopic transport parameters can be achieved, for example, by obtaining the current-cycle calculated macroscopic transport parameters equivalent to the pore-scale physical field, and updating the macroscopic transport parameters based on these current-cycle calculated macroscopic transport parameters. In other words, upscaling is performed to obtain macroscopic transport parameters equivalent to the pore-scale physical field.
[0063] In the above description, steps S103 to S105 are executed iteratively. The iteration ends once the macroscopic transport parameters converge. Therefore, convergence can be determined by obtaining the deviation between the current and previous calculations of the macroscopic transport parameters. If the deviation is less than a predetermined threshold, the convergence of the macroscopic transport parameters is confirmed. That is, determining whether the macroscopic transport parameters have converged is as follows: if the deviation between the current and previous calculations is less than a predetermined threshold, the cross-scale calculation at that time step is considered converged. Otherwise, the process returns to step S103 for the next iteration until the macroscopic transport parameters converge. The calculation process from steps S103 to S105 includes a two-way information transfer process between the overall and local scales, characterizing the interaction between scales. Through coupled iterative calculations at the pore scale and the macroscopic scale, the equivalence of the macroscopic-scale heat and mass transport process and the pore-scale heat and mass transport process is ensured.
[0064] The multi-scale calculation method for thermal and mass transport in porous media according to embodiments of this application, after determining the porous structure, thermal and mass transport physical processes, and boundary value conditions of the porous medium, divides the porous structure into multiple macroscopic units and assigns initial values to the macroscopic transport parameters. Then, iteratively executes the following steps: solving the macroscopic physical field, determining the pore-scale boundary conditions for each macroscopic unit, obtaining the pore-scale physical field, and updating the macroscopic transport parameters based on the pore-scale physical field. The iteration stops when the macroscopic transport parameters converge, thus completing the multi-scale calculation of thermal and mass transport in porous media. This method has the advantages of high calculation accuracy and fast calculation speed for thermal and mass transport processes in porous media, and low memory usage, resulting in relatively low requirements for computing hardware and a wide range of applications.
[0065] In a specific application, Figure 2 illustrates a schematic diagram of the multi-scale calculation method for thermal and mass transport in porous media according to an embodiment of this application. Figure 3, in conjunction with Figure 2, illustrates a flowchart of the multi-scale calculation method for thermal and mass transport in porous media in a specific application. The steps, as shown in Figures 2 and 3, are as follows: Determine the porous structure, physical processes, and boundary conditions to be calculated; divide the porous structure into macroscopic units; assign initial values to the macroscopic transport parameters for iteration; solve for the macroscopic-scale physical field; perform downscaling design to determine the pore-scale boundary conditions for each macroscopic unit; call a machine learning proxy model to obtain the pore-scale physical field; perform upscaling calculation to obtain macroscopic transport parameters equivalent to the pore-scale physical field; determine whether the macroscopic transport parameters have converged. If converged, the iterative calculation ends; otherwise, return to the step of solving for the macroscopic-scale physical field.
[0066] As shown in Figure 3, for transient problems, the process also includes advancing to the next time step and returning to the solution of the macroscopic physical field, performing coupled iterative calculations within that time step, and so on, until the required time step is reached.
[0067] The multi-scale calculation method for thermal and mass transport in porous media presented in this application offers high computational accuracy. By employing multi-scale coupled calculations, it predicts macroscopic transport processes, directly reflecting the influence of intrinsic thermal and mass transport processes within pores. Its computational accuracy surpasses existing macroscopic simulation methods based on empirical correlations. Furthermore, it boasts high computational efficiency and low memory consumption. By dividing large-scale porous structures into macroscopic units and coupling calculations between the pore scale and the macroscopic scale, the original large-scale fully coupled equation system solution problem is transformed into a solution problem within multiple small macroscopic units, significantly reducing memory usage and improving the computational speed of thermal and mass transport processes in porous media.
[0068] Figure 4 is a structural block diagram of a multi-scale computational system for thermal and mass transport in porous media according to an embodiment of this application. As shown in Figure 4, the multi-scale computational system for thermal and mass transport in porous media according to an embodiment of this application includes: a determination module 410, a partitioning module 420, and a computation module 430, wherein:
[0069] Module 410 is used to determine the porous structure, heat and mass transport physical processes, and boundary conditions of the porous medium.
[0070] The dividing module 420 is used to divide the porous structure into multiple macroscopic units;
[0071] The calculation module 430 is used to assign initial values to the macroscopic transport parameters and repeat the following steps until the macroscopic transport parameters converge: solve the macroscopic physical field; determine the pore-scale boundary conditions of each macroscopic unit based on the macroscopic physical field, and obtain the pore-scale physical field based on the pore-scale boundary conditions and porous structure of each macroscopic unit; update the macroscopic transport parameters based on the pore-scale physical field.
[0072] The determination module 410 determines the porous structure of the porous medium to be calculated, the physical processes of heat and mass transport in the porous medium, and the boundary conditions.
[0073] In a specific example, the physical processes typically include a series of physical processes related to the heat and mass transport of porous media, such as, but not limited to: heat-fluid coupling processes, single-phase and multiphase flow processes, purely thermal conduction processes, steady-state processes, and transient processes. Furthermore, the effects of fluid-structure interaction, phase change, chemical reactions, and multi-component transport processes can be incorporated into these physical processes.
[0074] In one embodiment of this application, the boundary conditions include, but are not limited to, initial conditions and boundary conditions.
[0075] Module 420 performs macroscopic unit division on the porous structure, for example, dividing a three-dimensional porous structure into N units. x ×N y ×N z The porous structure is divided into multiple macroscopic units, which can be achieved by using equally spaced and uniform macroscopic unit division. Here, x, y, and z represent the x, y, and z directions in three-dimensional coordinates, respectively.
[0076] The calculation module 430 assigns initial values to the macroscopic transport parameters, that is, it assigns initial values for the macroscopic transport parameters during iteration. Among them, the macroscopic transport parameters include, but are not limited to, absolute permeability, relative permeability, macroscopic capillary pressure, and equivalent thermal conductivity.
[0077] Solve for physical fields on a macroscopic scale.
[0078] In one embodiment of this application, the macroscopic scale includes the volume-average scale or the Darcy scale, and the macroscopic scale physical field includes some or all of the saturation field, the volume-average velocity field, the volume-average pressure field, and the volume-average temperature field.
[0079] Solving macroscopic-scale physical fields can be achieved, for example, by inputting the macroscopic transport parameters and boundary conditions into a pre-trained macroscopic-scale physical field solving machine learning surrogate model, and obtaining the solution results of the macroscopic-scale physical fields output by the machine learning surrogate model. In other words, macroscopic-scale physical fields can be solved using a developed and trained macroscopic-scale physical field solving machine learning surrogate model. Of course, macroscopic-scale physical fields can also be solved using existing numerical simulation methods. For example, macroscopic transport parameters and boundary conditions can also be input into a macroscopic-scale seepage solver to obtain the solution results of the macroscopic-scale physical fields output by the macroscopic-scale seepage solver.
[0080] In one embodiment of this application, determining the pore-scale boundary conditions of each macroscopic unit based on the macroscopic-scale physical field includes: interpolating the pore-scale boundary conditions of the macroscopic unit based on the macroscopic-scale physical field.
[0081] In other words, downscaling is performed to determine the pore-scale boundary conditions for each macroscopic unit. For example, pore-scale boundary conditions can be determined based on macroscopic-scale physical field interpolation. In this example, the pore-scale boundary conditions can be calculated by a machine learning surrogate model of the pore scale of adjacent units, thereby improving the accuracy of downscaling.
[0082] Based on the pore-scale boundary conditions and porous structure of each macroscopic unit, the pore-scale physical field is obtained, including: traversing each macroscopic unit and calling a pre-trained pore-scale physical field solving machine learning proxy model within each macroscopic unit, so as to obtain the pore-scale physical field through the pore-scale physical field solving machine learning proxy model.
[0083] Specifically, the process iterates through each macroscopic unit, calling a pre-trained pore-scale physical field solver machine learning surrogate model (i.e., the machine learning surrogate model) within each macroscopic unit to obtain the pore-scale physical field. The inputs to the pore-scale physical field solver machine learning surrogate model include the porous structure within the macroscopic unit, the boundary conditions of the heat and mass transport process, and fluid property parameters. The output of the pore-scale physical field solver machine learning surrogate model is the pore-scale physical field corresponding to the heat and mass transport process.
[0084] In one embodiment of this application, the pore-scale physical field includes, but is not limited to, phase field, velocity field, pressure field, temperature field, and component concentration field.
[0085] Updating the macroscopic transport parameters can be achieved, for example, by obtaining the current-cycle calculated macroscopic transport parameters equivalent to the pore-scale physical field, and updating the macroscopic transport parameters based on these current-cycle calculated macroscopic transport parameters. In other words, upscaling is performed to obtain macroscopic transport parameters equivalent to the pore-scale physical field.
[0086] In the above description, the steps of solving the macroscopic-scale physical field and updating the macroscopic transport parameters based on the pore-scale physical field are performed iteratively. The iteration ends when the macroscopic transport parameters converge. Therefore, convergence can be determined by obtaining the deviation between the current and previous calculations of the macroscopic transport parameters. If the deviation is less than a predetermined threshold, the convergence of the macroscopic transport parameters is confirmed. That is, determining whether the macroscopic transport parameters have converged is: if the deviation between the current and previous calculations is less than a predetermined threshold, the cross-scale calculation at that time step is considered converged. Otherwise, the process returns to solving the macroscopic-scale physical field and proceeds to the next iteration until the macroscopic transport parameters converge. The iterative calculation process of solving the macroscopic-scale physical field and updating the macroscopic transport parameters based on the pore-scale physical field includes a two-way information transfer process between the global and local scales, characterizing the interaction between scales. Through coupled iterative calculations at the pore and macroscopic scales, the equivalence of macroscopic-scale and pore-scale heat and mass transport processes is ensured.
[0087] The multi-scale computational system for thermal and mass transport in porous media according to embodiments of this application, after determining the porous structure, thermal and mass transport physical processes, and boundary value conditions of the porous medium, divides the porous structure into multiple macroscopic units and assigns initial values to the macroscopic transport parameters. Then, it iteratively executes the following steps: solving the macroscopic physical field, determining the pore-scale boundary conditions for each macroscopic unit, obtaining the pore-scale physical field, and updating the macroscopic transport parameters based on the pore-scale physical field. The iterative process stops when the macroscopic transport parameters converge, thus completing the multi-scale computation of thermal and mass transport in porous media. This system offers advantages such as high computational accuracy and fast computation speed for thermal and mass transport processes in porous media, while also having low memory usage, resulting in relatively low requirements for computing hardware and a wide range of applications.
[0088] Specific limitations regarding the multi-scale computational system for porous media thermal and mass transport can be found in the limitations of the aforementioned multi-scale computational method for porous media thermal and mass transport, and will not be repeated here. Each module of the aforementioned multi-scale computational system for porous media thermal and mass transport can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0089] In one embodiment, a computer device is provided. Figure 5 is a structural block diagram of the computer device provided in this embodiment. The computer device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned embodiment of the multi-scale calculation method for thermal and mass transport in porous media. For example, it executes: determining the porous structure, thermal and mass transport physical processes, and boundary value conditions of the porous medium;
[0090] The porous structure is divided into multiple macroscopic units, and initial values are assigned to the macroscopic transport parameters. The following steps are repeated until the macroscopic transport parameters converge.
[0091] Solving for physical fields on a macroscopic scale;
[0092] Based on the macroscopic physical field, the pore-scale boundary conditions of each macroscopic unit are determined, and the pore-scale physical field is obtained based on the pore-scale boundary conditions and porous structure of each macroscopic unit.
[0093] The macroscopic transport parameters are updated based on the pore-scale physical field.
[0094] This application also provides a computer-readable storage medium storing a computer program. When the processor executes the computer program, it implements the aforementioned embodiment of the multi-scale calculation method for thermal and mass transport in porous media. For example, it executes the following: determining the porous structure, physical processes of thermal and mass transport in the porous medium, and boundary value conditions.
[0095] The porous structure is divided into multiple macroscopic units, and initial values are assigned to the macroscopic transport parameters. The following steps are repeated until the macroscopic transport parameters converge.
[0096] Solving for physical fields on a macroscopic scale;
[0097] Based on the macroscopic physical field, the pore-scale boundary conditions of each macroscopic unit are determined, and the pore-scale physical field is obtained based on the pore-scale boundary conditions and porous structure of each macroscopic unit.
[0098] The macroscopic transport parameters are updated based on the pore-scale physical field.
[0099] This application provides a computer program product including instructions that, when executed, cause the method described in this application embodiment to be performed. For example, the various steps of the multi-scale calculation method for thermal and mass transport in porous media shown in FIG1 can be performed, such as determining the porous structure of the porous medium, the physical processes of thermal and mass transport, and the boundary conditions.
[0100] The porous structure is divided into multiple macroscopic units, and initial values are assigned to the macroscopic transport parameters. The following steps are repeated until the macroscopic transport parameters converge.
[0101] Solving for physical fields on a macroscopic scale;
[0102] Based on the macroscopic physical field, the pore-scale boundary conditions of each macroscopic unit are determined, and the pore-scale physical field is obtained based on the pore-scale boundary conditions and porous structure of each macroscopic unit.
[0103] The macroscopic transport parameters are updated based on the pore-scale physical field.
[0104] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0105] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0106] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for computing thermal mass transport across scales in a porous medium, the method comprising: include: Determine the porous structure, heat and mass transport physical processes, and boundary conditions of porous media; The porous structure is divided into multiple macroscopic units, and initial values are assigned to the macroscopic transport parameters. The following steps are repeated until the macroscopic transport parameters converge. Solving for physical fields on a macroscopic scale; Based on the macroscopic physical field, the pore-scale boundary conditions of each macroscopic unit are determined, and the pore-scale physical field is obtained based on the pore-scale boundary conditions and porous structure of each macroscopic unit. The macroscopic transport parameters are updated based on the pore-scale physical field.
2. The method of claim 1, wherein, The process of dividing the porous structure into multiple macroscopic units includes: The porous structure is divided into multiple macroscopic units by equal-interval and uniform division.
3. The method of claim 1, wherein, The macroscopic scale includes the volume-average scale or the Darcy scale, and the macroscopic scale physical field includes some or all of the saturation field, the volume-average velocity field, the volume-average pressure field, and the volume-average temperature field. The process of solving the macroscopic physical field includes: inputting the macroscopic transport parameters and boundary conditions into a macroscopic flow solver or a pre-trained macroscopic physical field solving machine learning proxy model, and obtaining the solution results of the macroscopic physical field output by the macroscopic flow solver or the macroscopic physical field solving machine learning proxy model.
4. The method of claim 1, wherein, The step of determining the pore-scale boundary conditions for each macroscopic unit based on the macroscopic-scale physical field includes: Based on the macroscopic physical field, the pore-scale boundary conditions of the macroscopic unit are obtained by interpolation.
5. The method of claim 1, wherein, The process of obtaining the pore-scale physical field based on the pore-scale boundary conditions and porous structure of each macroscopic unit includes: Each macroscopic unit is traversed, and a pre-trained pore-scale physical field solving machine learning proxy model is invoked within each macroscopic unit to obtain the pore-scale physical field through the pore-scale physical field solving machine learning proxy model.
6. The method of claim 1-5, wherein, The step of updating the macroscopic transport parameters based on the pore-scale physical field includes: Obtain the current-cycle calculated macroscopic transport parameters equivalent to the pore-scale physical field, and update the macroscopic transport parameters based on the current-cycle calculated macroscopic transport parameters.
7. The method of claim 1, wherein, Also includes: Obtain the deviation values between the macroscopic transport parameters calculated in this round and those calculated in the previous round; If the deviation value is less than a predetermined threshold, then the macroscopic transport parameter is determined to have converged.
8. A system for porous media thermal mass transport cross-scale calculation, comprising: include: The determination module is used to determine the porous structure, heat and mass transport physical processes, and boundary conditions of porous media. A partitioning module is used to divide the porous structure into multiple macroscopic units; The calculation module is used to assign initial values to the macroscopic transport parameters and repeat the following steps until the macroscopic transport parameters converge: solve the macroscopic physical field; determine the pore-scale boundary conditions of each macroscopic unit based on the macroscopic physical field, and obtain the pore-scale physical field based on the pore-scale boundary conditions and porous structure of each macroscopic unit; update the macroscopic transport parameters based on the pore-scale physical field.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the multi-scale calculation method of heat and mass transport in porous media according to any one of claims 1-7.
10. A computer readable storage medium comprising a memory and a computer program stored on the memory and executable on a processor, characterized in that, The program is executed by the processor to implement the multi-scale calculation method of heat and mass transport in porous media according to any one of claims 1-7.
