CN115471971B - Basin simulation stage data processing method and device and computer readable storage medium - Google Patents

Basin simulation stage data processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN115471971B
CN115471971B CN202111034299.9A CN202111034299A CN115471971B CN 115471971 B CN115471971 B CN 115471971B CN 202111034299 A CN202111034299 A CN 202111034299A CN 115471971 B CN115471971 B CN 115471971B
Authority
CN
China
Prior art keywords
data
simulation
stage
stratum
basin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111034299.9A
Other languages
Chinese (zh)
Other versions
CN115471971A (en
Inventor
彭成
盛秀杰
金之钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Petroleum and Chemical Corp
Sinopec Exploration and Production Research Institute
Original Assignee
China Petroleum and Chemical Corp
Sinopec Exploration and Production Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Petroleum and Chemical Corp, Sinopec Exploration and Production Research Institute filed Critical China Petroleum and Chemical Corp
Publication of CN115471971A publication Critical patent/CN115471971A/en
Application granted granted Critical
Publication of CN115471971B publication Critical patent/CN115471971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/18Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
    • G08B13/189Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
    • G08B13/194Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
    • G08B13/196Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/22Electrical actuation
    • G08B13/24Electrical actuation by interference with electromagnetic field distribution
    • G08B13/2491Intrusion detection systems, i.e. where the body of an intruder causes the interference with the electromagnetic field
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B3/00Audible signalling systems; Audible personal calling systems
    • G08B3/10Audible signalling systems; Audible personal calling systems using electric transmission; using electromagnetic transmission

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a basin simulation stage data processing method, a basin simulation stage data processing device and a computer readable storage medium, wherein the method comprises the following steps: initializing a plurality of stratum data, and storing each layer of initialized stratum data into a plurality of parts corresponding to the participated simulation stage; in the simulation process: aiming at the current simulation stage, extracting and loading stratum data needed by the corresponding current simulation stage from stored stratum data, and performing superposition simulation based on stratum simulation results completed in the previous simulation stage; when finite element calculation is carried out, the stratum data related variables participating in matrix calculation are assigned to a pre-defined temporary structure body, calculation is carried out, the memory occupied by the current simulation stage is released, and the related variables in the temporary structure body are assigned back to the current stage data after the calculation is completed; after the current simulation stage is finished, the complete version simulation result and the simplified version simulation result of the current simulation stage are respectively stored.

Description

Basin simulation stage data processing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of software development in computer technology, and in particular, to a basin simulation phase data processing method and apparatus, and a computer readable storage medium.
Background
Basin simulation is based on a physicochemical geological mechanism, and the formation and evolution of the oil and gas-containing basin and the generation, migration and aggregation of hydrocarbons are quantitatively simulated by a computer in time and space to reveal the nature of the oil and gas law of the basin.
Basin numerical modeling has evolved very rapidly over the last decade and has progressed rapidly. The widespread use of basin simulation techniques has led to the development of basin analysis towards quantification, dynamics and graphic automation. Basin simulation techniques today have not only been an expression of geologic processes, but are also an indispensable tool for the study of various kinetic parameters. Thus, there is a great deal of attention from basin analysts and petroleum geologist.
As a long-term technical problem, basin simulation faces difficulties and challenges in many aspects such as accurate solution of simulation algorithm, consideration of geological factors such as fault and diagenetic effects, intermittent mutation process recovery of oil and gas migration, reconstruction of paleo-hydrodynamic process and the like. The application of the three-dimensional geological attribute modeling and structure modeling technology is enhanced, and the sub-key stage interactive simulation guided by the oil and gas transportation aggregation rule conforming to the geological rule is realized, so that the method is a main direction of basin simulation technology development in the future. In addition, the recent advances in the disciplines of oil and gas geology, math geology, computers, etc. and new techniques to integrate into basin simulation will also greatly promote the progress of the technology.
The foreign basin simulation software is commercialized to a high degree, such as TEMISPACK (French Petroleum institute), basinMod (American PLATTERIVER company), petroMod (German organic institute), and the like. The domestic basin simulation software is researched and developed in the 90 s of the last century to reach the ancient cooking vessel, and the researched and developed related software reaches more than 10, such as BASIMS (China oil exploration and development institute), PRES (China sea oil research center), BIAS (original earth software company), GEMDASS, PASS and the like. There is a gap between the country and the foreign in terms of basin simulation of the overall level of commercial software, and efforts are continually made to deal with this.
Domestic software has no software interface with two largest petroleum exploration and development software companies (GeoQuest, landmark) in the world, so that input data (interpretation results of earthquakes and well logging) of basin simulation cannot be directly and automatically input from GeoQuest or Landmark, and the efficiency and the integrity of the input data are affected. The current complete basin simulation system is organically composed of 6 models, namely a ground history model, heat Shi Moxing, diagenetic Shi Moxing, a hydrocarbon generation history model, hydrocarbon removal Shi Moxing (primary migration) and hydrocarbon transportation and accumulation history model (secondary migration), and related documents are published in 2009 3 rd of petroleum industry computer application in 30 years review and hope of basin simulation technology. Basin simulation software systems have one-, two-and three-dimensional systems, and simulation study content encompasses not only traditional "five-history" -ground history, heat history, hydrocarbon generation history, hydrocarbon removal history, and aggregation history, but also adds to many non-traditional study content. Relevant literature is published in China oil exploration 2006, stage 6, see basin simulation technology for its role in oil and gas resource evaluation.
In the basin simulation process, because of the huge basin data volume and great expenditure on data storage and calculation, some space and efficiency optimization are needed to meet the simulation requirement. The sum of data in each stage of basin simulation can reach several hundred GB bytes, so that the stage data storage and loading method needs to be optimized as much as possible, how to ensure enough memory, and the data access efficiency is improved, which has important significance for basin simulation.
For example, in basin simulation, data of the same stratum can appear in multiple stages, and in the basin simulation initialization process, the data of the same stratum only needs to be initialized and stored in multiple copies, and the data corresponds to multiple stages, so that the stratum is prevented from being initialized in each stage, which is not done in the prior art. Meanwhile, when a certain stage is simulated, data in other stages should be compressed and stored, otherwise, the data in all the next stages cannot be contained at the same time, and when finite element calculation is performed, the data in the current stage is preferably compressed because of large calculation space overhead, and is recovered after calculation is completed, which is not well supported by the prior art. For different user requirements, if the result is required to be used in other computers, the stage data storage of the file mode is required to be provided, and for the situation that only the result is required to be checked locally, only the stage data is required to be stored in the compressed memory mode so as to improve the reading speed, and the requirements are not considered in the prior art.
Disclosure of Invention
The invention aims to provide a basin simulation stage data processing method and device and a computer readable storage medium, which can reduce memory occupation and improve data acquisition efficiency.
In order to achieve the above object, the present invention provides a basin simulation phase data processing method, comprising: initializing a plurality of stacked stratum data forming a basin model, compressing each layer of initialized stratum data and storing the data into a plurality of parts, wherein each part corresponds to a participated simulation stage;
Beginning to perform stratum simulation of each stage, wherein the simulation of each simulation stage comprises superposition simulation of newly added stratum data of the current simulation stage and stratum data of the previous simulation stage;
In the simulation process:
For the current simulation stage, extracting and loading stratum data needed by the corresponding current simulation stage from the stored stratum data, and performing superposition simulation based on stratum simulation results completed in the previous simulation stage;
The simulation stage comprises finite element calculation, wherein when the finite element calculation is carried out, relevant variables of formation data participating in matrix calculation are assigned to a pre-defined temporary structure body, calculation is carried out, memory occupied by the current simulation stage is released, and after calculation is completed, relevant variables in the temporary structure body are assigned back to the current stage data;
after the current simulation stage is finished, the complete version simulation result and the simplified version simulation result of the current simulation stage are respectively stored, wherein the simplified version simulation result comprises data related to final result display.
As an alternative, each stratum data comprises point data and volume data, the point data comprises top surface point data and bottom surface point data, and two adjacent strata, wherein the top surface point data of the lower layer and the bottom surface point data of the upper layer are shared repeated data; when loading data, the data is only loaded once for common repetition.
Alternatively, a first buffer and a second buffer are defined for storing the point data and the volume data, respectively, required for the current simulation stage.
As an alternative, a first pointer variable and a second pointer variable are defined, wherein in the simulation process, the first pointer variable is used for storing all point data and volume data which do not participate in calculation in the current simulation stage, and the second pointer variable is used for storing data which do not participate in calculation in the current simulation stage and are only relevant to final result display.
Alternatively, after initialization, the method further includes:
Serializing all data of each stratum and serializing data variables related to display results;
When a stratum is not the top layer in the current simulation stage, top surface point data of the stratum are not serialized; after serialization, each stratum data and the data variable related to the display result are respectively compressed and then stored in the corresponding simulation stage.
Alternatively, the storing the data in multiple copies includes storing the data in a file or storing the data in a memory;
The storage in the file comprises that after the first file is stored, the other files are stored in a copying mode; the storing in the memory includes storing the memory storing the first file into the pointer variable of other simulation stages after storing the first file into the memory.
Alternatively, the data is stored in a file by: and writing data by using a non-cache mode in windows.
Alternatively, for the current simulation stage, after assigning the formation simulation result completed in the previous simulation stage to the current simulation stage, the data of each formation in the previous simulation stage is released.
The present invention also provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the basin simulation phase data processing method described above.
The invention also provides a basin simulation stage data processing device, which comprises: at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the basin simulation phase data processing method described above.
The invention has the beneficial effects that:
According to the method, when each layer of stratum data is initialized, each layer of stratum data is stored into a plurality of parts, so that the data of each stratum is prevented from being initialized at each stage; when a certain stage is simulated, superposition simulation is performed based on the stratum simulation result completed in the previous simulation stage, and only the simulation data of the stage is loaded, so that the space is saved; during finite element calculation, assigning stratum data related variables participating in matrix calculation to a predefined temporary structure body, and clearing the memory of the current simulation stage to ensure the memory overhead of matrix calculation; after the simulation is finished, only parameter variables related to the result are reserved so as to improve the reading speed of the result data; the memory reuse is used in the switching simulation stage to reduce the memory allocation time when the result is checked; outputting the simplified version simulation calculation result for later direct viewing.
The invention has other features and advantages which will be apparent from or are set forth in detail in the accompanying drawings and the following detailed description, which are incorporated herein, taken in conjunction with the accompanying drawings and the detailed description, which illustrate certain principles of the invention.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings.
FIG. 1 is a flow chart of a basin simulation phase data management method in accordance with an embodiment of the present invention;
FIG. 2 is a diagram of basin simulation phase data structures in accordance with an embodiment of the present invention;
FIG. 3 is a diagram of basin simulation phase data organization in accordance with an embodiment of the present invention;
FIG. 4 is a diagram of a basin simulation phase data store and read related interface in accordance with an embodiment of the present invention;
FIG. 5 is a phase data compression format arrangement diagram according to one embodiment of the invention;
FIG. 6 is a data diagram of a certain stage of simulation of a basin in accordance with an embodiment of the present invention;
FIG. 7 is a diagram of simulated inter-phase data transfer according to an embodiment of the present invention;
Detailed Description
The following describes embodiments of the present invention in detail with reference to the drawings and examples, thereby solving the technical problems by applying the technical means to the present invention, and realizing the technical effects can be fully understood and implemented accordingly. It should be noted that, as long as no conflict is formed, each embodiment of the present invention and each feature of each embodiment may be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.
Additionally, the steps illustrated in the flowcharts of the figures may be performed in a computer system, such as a set of computer executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
According to the basin simulation phase data management method, the realization flow of the basin simulation phase data organization structure is basin simulation phase data storage and reading, basin simulation phase data acquisition and phase-to-phase data acquisition are achieved, and phase data memory efficiency is controlled in the basin simulation process.
According to the invention, a basin simulation phase data processing method comprises the following steps: initializing a plurality of stacked stratum data forming a basin model, compressing each layer of initialized stratum data and storing the data into a plurality of parts, wherein each part corresponds to a participated simulation stage;
Beginning to perform stratum simulation of each stage, wherein the simulation of each simulation stage comprises superposition simulation of newly added stratum data of the current simulation stage and stratum data of the previous simulation stage;
In the simulation process:
For the current simulation stage, extracting and loading stratum data needed by the corresponding current simulation stage from the stored stratum data, and performing superposition simulation based on stratum simulation results completed in the previous simulation stage;
The simulation stage comprises finite element calculation, wherein when the finite element calculation is carried out, relevant variables of formation data participating in matrix calculation are assigned to a pre-defined temporary structure body, calculation is carried out, memory occupied by the current simulation stage is released, and after calculation is completed, relevant variables in the temporary structure body are assigned back to the current stage data;
after the current simulation stage is finished, the complete version simulation result and the simplified version simulation result of the current simulation stage are respectively stored, wherein the simplified version simulation result comprises data related to final result display.
In one embodiment, each stratum data comprises point data and volume data, the point data comprises top surface point data and bottom surface point data, and two adjacent strata, the top surface point data of the lower layer and the bottom surface point data of the upper layer are shared repeated data; when loading data, the data is only loaded once for common repetition.
In one embodiment, a first cache and a second cache are defined for storing the point data and the volume data, respectively, required for the current simulation stage.
In one embodiment, a first pointer variable is defined for storing all point data and volume data that are not involved in the calculation of the current simulation stage and a second pointer variable is defined for storing data that are not involved in the calculation of the current simulation stage and are only relevant to the final result display during the simulation.
In one embodiment, after the initializing, further comprising:
Serializing all data of each stratum and serializing data variables related to display results;
When a stratum is not the top layer in the current simulation stage, top surface point data of the stratum are not serialized; after serialization, each stratum data and the data variable related to the display result are respectively compressed and then stored in the corresponding simulation stage.
In one embodiment, the storing as multiple copies includes storing the data in a file or storing the data in a memory;
The storage in the file comprises that after the first file is stored, the other files are stored in a copying mode; the storing in the memory includes storing the memory storing the first file into the pointer variable of other simulation stages after storing the first file into the memory.
In one embodiment, for the current simulation stage, the formation simulation results completed in the previous simulation stage are assigned to the current simulation stage, and then the data of each formation in the previous simulation stage are released.
FIG. 1 is a flow chart of a basin simulation phase data processing method in accordance with an embodiment of the present invention. Referring to fig. 1:
Step one, basin simulation stage data organization structure;
step two, basin simulation stage data storage and reading;
Step three, basin simulation in-phase and inter-phase data acquisition;
and step four, controlling the stage data memory efficiency in the basin simulation process.
In the first step, the input basic data is a set of basin simulation stage data, and each stage data is composed of an upper geological horizon mesh surface, a lower geological horizon mesh surface and a cube (cube) in the middle, and represents one stratum. The simulation phase data specifically includes: top point data (topvertexes), bottom point data (botvertexes), and volume data (cubes). The point data and the volume data structures each contain a number of parameter variables representing the geological parameters associated with the formation and volume in the basin simulation. The first variable compresscache, the second variable compresscache _mini is used to store temporary compression of phase data that is not currently involved in the calculation. First cache vertexreusemem and second cache cubereusemem are defined as a whole to store the memory space opened by the current stage data.
In the second step, in the basin simulation flow, when the stage advances, the previous stage data needs to be stored and the current stage data needs to be read, and in order to accelerate the stage data storage and reading process, a series of memory and efficiency optimization methods are designed, which mainly comprise serialization, compression decompression, storage and reading interfaces and storage and reading modes.
In the third step, in the basin simulation process, the simulation is carried out in a stage-by-stage mode, and the required operation is mainly carried out in a stage unit, so that the method involves reading all stratum data in the current stage, storing all stratum data in the previous stage, copying the stratum data in the previous stage to the same stratum in the current stage, and the like, and the efficiency of the data acquisition in the stages is optimized for a public plane, and the data acquisition in the stages adopts a step transmission data mode.
In step four, for phase data management in the basin simulation process, the following aspects are realized in several memory and efficiency controls: initial default data are stored in each stage, only stage data required by current calculation are loaded, a simplified temporary structure body is defined during finite element calculation, buffer space reuse is used during result display switching stage, and mini version output of results is simulated.
Compared with the prior art, the invention has the following advantages:
1. According to the method provided by the invention, the simulation data of each stage basin is compressed, and only the data of the stage required by the current calculation is loaded, so that various simplified data structures and memory reuse methods are provided, the space overhead is reduced, and the data acquisition efficiency is improved;
2. According to the method disclosed by the invention, the optimization of the data in the basin simulation stage and the data acquisition mode between stages is realized, and the method has value for improving basin simulation space and efficiency.
The data processing method is described in a specific embodiment.
Step S110
First, step S110 is performed, where the input basic data is a set of basin simulation stage data, and each stage data is composed of two geological horizon mesh planes, an upper geological horizon mesh plane, and a middle cube (cube), which represents one stratum.
As shown in fig. 2, the upper and lower grids represent the top and bottom data of a formation at a certain simulation stage, and a plurality of cube are formed between the upper and lower grids to represent the related data of the formation. The simulation phase data specifically includes: top point data (topvertexes) such as e, f, g, h, bottom point data (botvertexes) such as a, b, c, d, and volume data (cubes), wherein the top point data and bottom point data have the same data structure. Each simulation phase data includes a plurality of objects of the above three data, forming upper and lower stratigraphic grids and intermediate data. The point data and the volume data structures each contain a number of parameter variables representing the geological parameters associated with the formation and volume in the basin simulation.
Because the geological parameter variables are of various types, the sizes of single point data and volume data objects can exceed 1 Mbyte, the total size of one stage data exceeds 100 Mbytes, hundreds of stage data are corresponding to the total simulation process, and the total size exceeds tens of GB bytes, the stage data which does not participate in calculation currently need to be temporarily compressed in the calculation process, and the first pointer variable compresscache and the second pointer variable compresscache _mini are used for storage. Wherein compresscache stores all point data and volume data compressed data of the current simulation stage, and compresscache _mini stores all point and volume data of the current simulation stage and variable compressed data only related to final result display.
As shown in FIG. 3, the entire basin simulation flow continues with the progress of the simulation phases, with each formation being deposited with a phase data structure corresponding to each phase, so each simulation phase includes a set of phase data corresponding to a set of formations. The data structure of a geologic horizon at a certain stage is shown in the lower left hand corner of the figure. In addition, when the final result is displayed, it is a common operation to switch each simulation stage, and to avoid frequent application and release of the memory, the first cache vertexreusemem and the second cache cubereusemem are defined as a whole to store the memory space opened by the data in the current stage.
Step S111
Next, step S111 is performed to store and read the analog phase data. In the basin simulation flow, when the stage advances, the previous stage data needs to be stored and the current stage data needs to be read, and a series of memory and efficiency optimization methods are designed for accelerating the process.
1. Serialization
As shown in fig. 4, the basin simulation phase data is first serialized and serialized recovered, where serialization refers to sequentially arranging the parameter values in the data structure into a continuous memory, and serialized recovery refers to recovering the continuous memory into the parameter variable values in the data structure. And (3) respectively serializing each point data and each volume data in the basin simulation stage data, wherein the serialization function is serializedata, and in addition, a mini-version serialization function serializedata _mini is provided, so that only relevant parameters are displayed in the serialization structure body and the final result. The serialization recovery function was restoreserializedata, in addition to restoreserializedata _mini, only the parameters in the structure that were relevant to the final result display were recovered.
2. Compression/decompression
After serializing all point data and volume data, the data are combined and then compressed, and the compression function is a compression, which is realized by adopting a compression open source provided by a more common zlib. The decompression function uncompress corresponding thereto represents the decompression of these compressed data back to the serialized point and volume data set.
The specific structural arrangement in the compression process is shown in fig. 5, and the serialized aggregate data includes the number of top points, the number of bottom points, the number of volumes, the serialized data of each vertex, the serialized data of each bottom point, and the serialized data of each volume. Wherein, when the stratum represented by the data of this stage is not the top layer in the current stage, the number of top surface points is 0, the top surface points are not serialized and are not put in the set. The reason for this is that in each simulation stage, the top and bottom surfaces of the formation adjacent to each other are common, so that only one part is needed, i.e. all the bottom surfaces and the top surface of the topmost layer are sufficient.
The method comprises the steps of compressing point data and volume data sets, wherein after the compression is successful, data arrangement is shown in the upper right of the figure, and the data arrangement comprises the number of top surface points, the number of bottom surface points, the number of volumes, a successful compression mark 0, the length of data before compression, the length of data after compression, the data after compression and memory patch bytes; when compression fails, the data arrangement is shown in the lower right of the figure, and comprises the number of top surface points, the number of bottom surface points, the number of volumes, compression failure marks-1, the data after each top surface point is serialized, the data after each bottom surface point is serialized, the data after each volume is serialized and memory patch bytes.
For the compressed data, there are two processing modes, one is to store and read through a file, and to store and read the serial data of whether the serial data is mini version through the file name with the suffix of 'mini'; the other is stored directly as a memory, i.e. the compressed data is saved to compresscache or compresscachmini of the phase data. For FILE storage and reading, non-cache mode FILE reading and writing in windows is used, so that memory growth during FILE reading and writing is avoided, when a related access interface is called, a parameter type is removed from file_FLAG_NO_ BUFFERING, and in addition, the data size accessed in the mode is required to be integral multiple of the size of a hard disk sector, such as integral multiple of 512K bytes, so that the compressed data needs to be filled with a part of bytes according to the situation for filling; for the memory mode, the memory stuff byte is empty.
And the decompression is to judge whether the compression mark is successful or not according to the read data, if the compression mark is unsuccessful, the decompression is directly carried out on the uncompressed data, if the decompression is successful, the decompression is carried out on the serialized point body integrated data.
3. Storage and read interface
And performing corresponding storage and reading operations on the serialized and compressed data, wherein the relevant interfaces comprise storage, reading, storage as a plurality of interfaces and the like as shown on the right side of fig. 4.
The storage is divided into a single storage (savetofile, savetomem) and multiple storages (savetomultifile, savetomultimem) because the same geological layer is calculated in each simulation stage, e.g., the bottommost layer, which occurs in each stage, the penultimate layer, which occurs in each stage after the second stage begins, etc. After assigning initial values to the phase data, the data for a horizon is stored as a plurality of sets as its initial state in each simulation phase. For a plurality of files, after the first file is stored, the rest files are directly copied; for a plurality of memories, after the first file is saved, the memory is saved to compresscache or compresscachmini of other simulation stages. savetofile, savetomem include a stage, a layer, and ismini, wherein ismini is used for distinguishing whether the file is a mini version, and whether the file corresponding to the mini version is correspondingly provided with a "_mini" suffix, and the corresponding memory is compresscach or compresscachmini; savetomultifile, savetomultimem include stages, layers.
The reading is divided into a reading from a memory (loadfrommem) and a reading from a file (loadfromfile), wherein the reading from the memory is compresscache or compresscachmini, and the reading from the file corresponding to the stage data is the reading data. loadfrommem, loadfromfile include a stage, a layer, and ismini, reusemem, wherein ismini is used to distinguish whether the file is a mini version, and whether the file corresponding to the mini version is provided with a "_mini" suffix, and the corresponding memory is compresscache or compresscachmini. reusemem indicates whether two sets of caches vertexreusemem and cubereusemem are used, when used, the point generated after decompression of the read data does not open up new memory space, but rather vertexreusemem and cubereusemem are used. When reading, whether the point and the volume data exist or not is firstly judged, and if the point and the volume data exist, the reading is directly returned to be unnecessary.
The flush cache space (clearmemory) refers to the top-side point data (topvertexes), bottom-side point data (botvertexes), and volume data (pipes) of the flush stage data to free up memory. clearmemory the incoming parameters include phase, layer, reusemem. When reusemem is true, it indicates that the memory cache is used, and no operation is performed at this time, otherwise, the point-to-volume data memory of the stratum corresponding to the corresponding stage is released.
In summary, basin analog segment data storage and reading interfaces share the following: savetomem, savetofile, savetomultimem, savetomultifile, loadfrommem, loadfromfile, clearmemory.
4. Storage and read modes
The storage and the reading of the phase data are respectively a memory mode, a file mode, a memory+file mode, an existing file mode and an existing file+memory mode. The interfaces for store and read calls in the various modes are shown in table 1.
TABLE 1
Wherein, the memory mode refers to storing compressed phase data by compresscache, compresscache _mini; the file mode refers to storing compressed stage data by utilizing files, distinguishing whether file names are provided with 'mini' suffixes or not for the compressed data of mini and non-mini versions, wherein each stage data corresponds to one file, after basin simulation is finished, final stage data are stored in the files, and then simulation results can be checked by directly utilizing the files without basin simulation, so that multiple utilization is realized.
The file+memory mode refers to a priority memory mode, and the file mode is reused, for example, when implementing the read function, the interface called in table 1 is called loadfrommem first, then called loadfromfile, so as to read from the memory first, if the read is not completed, the read from the file is not completed, then conditional savetomem refers to compresscache, compresscache _mini of storing the data read from the file into the memory when the read is completed, so that the data can be read when the read is completed later. When the storage function is implemented, savetofile and savetomem are called, and the file and the memory are all saved.
The existing file mode and the existing file+memory mode refer to that the file corresponding to each stage data exists and is the final calculation result, namely, the basin simulation complete process is performed before and the result is saved or output into each stage data file. At this time, most calculation flows simulated by the basin can be skipped, and mainly the functions of reading and clearing the cache at the final display can be called. Wherein the read function is similar to the file mode and the file + memory mode.
Step S112
In the basin simulation process, simulation is carried out stage by stage, and the required operation is mainly carried out in stage units, and involves reading all stratum data of the current stage, storing all stratum data of the previous stage, copying stratum data of the previous stage to the same stratum of the current stage and the like.
The data of the stratum in one stage is shown in fig. 6, wherein the top surface of stratum 1 and the bottom surface of stratum 2 are coplanar, the top surface of stratum 2 and the bottom surface of stratum 3 are coplanar, the top surface of stratum 3 and the bottom surface of stratum 4 are coplanar, the data of the stratum in one stage is loaded by respectively loading the data of the stratum 4, and as stratum 123 is not the top surface stratum, the data of the top surfaces are not loaded according to the previous rule, then, the top surface of stratum 1 is assigned by the bottom surface of stratum 2, the top surface of stratum 2 is assigned by the bottom surface of stratum 3, the top surface of stratum 3 is assigned by the bottom surface of stratum 4, the assignment is realized by adopting a pointer reference mode, the same memory is shared, and the loading of the data of each stratum is realized.
When in storage, the top surface of each non-top stratum is not stored, and the common surface is only stored once. When the cache is cleared, the top surface of the non-top stratum only needs to be cleared, the memory pointed by the pointer does not need to be really released, and the top stratum only needs to be cleared for the memory corresponding to the top surface.
Regarding inter-stage data transfer, as shown in fig. 7, as stages advance, new strata are deposited continuously, existing strata are sunk continuously, and when the current stage is simulated, some data need to be acquired from the previous stage, namely, the same stratum is subjected to assignment of the data of the previous stage to the current stage, so that the basin simulation flow is completed. The specific method is that firstly, each stratum data of the present stage is loaded according to the method, then, for each non-top stratum, the data is obtained from the previous stage on the left side, namely, each parameter value of the point and the volume data of the previous stage of the same stratum is assigned to the present stage. Each stratum of the previous stage is then cleared of the cache.
Step S113
For phase data management in the basin simulation process, the following aspects are realized in several memory and efficiency controls:
1. initial default data storage to each stage
The initial individual strata have some default data to be used as initial values, and some default initial call calculation functions to be executed in advance, so that the same data needs to be generated and stored in multiple sets because the same stratum can occur in multiple stages. In this case, the previous interfaces stored in a plurality of interfaces are used, and the data of one horizon is stored in a plurality of sets as the initial state of the data in each simulation stage. The same initial value assignment process and the same initial call calculation function call are avoided.
2. Only loading the data of the stage required by the current calculation
In the basin simulation process, when the basin simulation process is carried out to a certain stage, loading current stage data, acquiring a result of a previous stage from the same stratum at the left side, assigning values to the current stage, and releasing the data of the previous stage. And other phase data which are not currently required are stored as files or compressed memory, so that the memory overhead is saved. In addition, for the same-stage data, the part of the common plane is only allocated with one memory, and the upper stratum and the lower stratum share the common plane, so that the calculation result can be synchronously changed, and meanwhile, the memory space is saved.
3. Definition of reduced temporary structure during finite element calculation
In the basin simulation process, one step is finite element matrix calculation, all point data are needed to be combined together to form a matrix, and the memory overhead of matrix calculation is high, so that a simplified point structure body vertex_basic and a simplified point structure body cube_basic are defined for storing variables related to matrix calculation. Firstly, all point data and volume data of the current stage are assigned to the vertex_basic and the cube_basic, then the memory of the current stage is released, and only the simplified structure data of the current stage is left at the moment. After the calculation is finished, loading the current stage data, and then assigning the related variables in the calculated vertex_basic and cube_basic back to the current stage data.
4. Using cache space reuse in the handoff phase of the result display
After the basin simulation calculation is finished, the result display is carried out, and the simulation stage is switched during the common operation, so that the stage data loading and the memory cache clearing are required to be frequently invoked. At this time, vertexreusemem and cubereusemem defined previously are used to store the data in the current stage, so that the memory space is not required to be opened again each time, the memory space is not required to be really released when the memory cache is cleared, and the data acquisition speed is improved. vertexreusemem and cubereusemem are a set of pointer objects, point pointers and volume pointers, respectively, each time new point data and volume data are needed, pointers are obtained from vertexreusemem and cubereusemem, and when the number needed is greater than the number of currently existing pointers, new pointer objects are added and added to vertexreusemem and cubereusemem.
5. Mini version output of simulation results
For the simulation result obtained by calculation, in order to facilitate the subsequent reuse, a simulation data output function is provided. What the output calls is the previous savetofile interface, and the parameter ismini is true, indicating that the mini version is output, i.e. only variable data related to the result display is output. The next time, the basin simulation can be directly performed by using the existing compressed file or the existing compressed file and using the compressed memory mode, and the specific calculation of the basin simulation can be skipped at this time, so that the result display is directly performed.
Thus, the basin simulation stage data management method is completed in the implementation process.
According to the method, when each layer of stratum data is initialized, each layer of stratum data is stored into a plurality of parts, so that the data of each stratum is prevented from being initialized at each stage; when a certain stage is simulated, superposition simulation is performed based on the stratum simulation result completed in the previous simulation stage, and only the simulation data of the stage is loaded, so that the space is saved; during finite element calculation, assigning stratum data related variables participating in matrix calculation to a predefined temporary structure body, and clearing the memory of the current simulation stage to ensure the memory overhead of matrix calculation; after the simulation is finished, only parameter variables related to the result are reserved so as to improve the reading speed of the result data; the memory reuse is used in the switching simulation stage to reduce the memory allocation time when the result is checked; outputting the simplified version simulation calculation result for later direct viewing.
Another embodiment of the present invention provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the basin simulation phase data processing method described above.
A computer-readable storage medium according to an embodiment of the present disclosure has stored thereon non-transitory computer-readable instructions. When executed by a processor, perform all or part of the steps of the methods of embodiments of the present disclosure described above.
The computer-readable storage medium described above includes, but is not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or removable hard disk), media with built-in rewritable non-volatile memory (e.g., memory card), and media with built-in ROM (e.g., ROM cartridge).
An embodiment of the present invention further provides a basin simulation phase data processing apparatus, including: at least one processor; and
A memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the basin simulation phase data processing method described above. The memory is for storing non-transitory computer readable instructions. In particular, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like.
The processor may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device to perform the desired functions. In one embodiment of the present disclosure, the processor is configured to execute the computer readable instructions stored in the memory.
It should be understood by those skilled in the art that, in order to solve the technical problem of how to obtain a good user experience effect, the present embodiment may also include well-known structures such as a communication bus, an interface, and the like, and these well-known structures are also included in the protection scope of the present disclosure.
The foregoing description of embodiments of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described.

Claims (10)

1. A method of basin simulation phase data processing, the method comprising:
Initializing a plurality of stacked stratum data forming a basin model, compressing each layer of initialized stratum data and storing the data into a plurality of parts, wherein each part corresponds to a participated simulation stage;
Beginning to perform stratum simulation of each stage, wherein the simulation of each simulation stage comprises superposition simulation of newly added stratum data of the current simulation stage and stratum data of the previous simulation stage;
In the simulation process:
For the current simulation stage, extracting and loading stratum data needed by the corresponding current simulation stage from the stored stratum data, and performing superposition simulation based on stratum simulation results completed in the previous simulation stage;
The simulation stage comprises finite element calculation, wherein when the finite element calculation is carried out, relevant variables of formation data participating in matrix calculation are assigned to a pre-defined temporary structure body, calculation is carried out, memory occupied by the current simulation stage is released, and after calculation is completed, relevant variables in the temporary structure body are assigned back to the current stage data;
after the current simulation stage is finished, the complete version simulation result and the simplified version simulation result of the current simulation stage are respectively stored, wherein the simplified version simulation result comprises data related to final result display.
2. The basin simulation phase data processing method of claim 1, wherein each stratum data comprises point data and volume data, the point data comprises top point data and bottom point data, and two adjacent strata, the top point data of a lower layer and the bottom point data of an upper layer are common repeated data; when loading data, the data is only loaded once for common repetition.
3. The basin simulation phase data processing method of claim 2, wherein a first cache and a second cache are defined for storing the point data and the volume data, respectively, required for the current simulation phase.
4. The basin simulation phase data processing method of claim 1, wherein a first pointer variable for storing all point data and volume data that do not participate in the calculation of the current simulation phase and a second pointer variable for storing data that do not participate in the calculation of the current simulation phase and are related only to the final result display are defined during the simulation.
5. The basin simulation phase data processing method of claim 2, further comprising, after initializing:
Serializing all data of each stratum and serializing data variables related to display results;
When a stratum is not the top layer in the current simulation stage, top surface point data of the stratum are not serialized; after serialization, each stratum data and the data variable related to the display result are respectively compressed and then stored in the corresponding simulation stage.
6. The basin simulation phase data processing method of claim 1, wherein the storing as multiple copies includes storing data in a file or storing data in a memory;
The storage in the file comprises that after the first file is stored, the other files are stored in a copying mode; the storing in the memory includes storing the memory storing the first file into the pointer variable of other simulation stages after storing the first file into the memory.
7. The basin simulation phase data processing method of claim 6, wherein the data is stored in a file in a manner that: and writing data by using a non-cache mode in windows.
8. The basin simulation phase data processing method according to claim 1, wherein the data of each stratum of the previous simulation phase is released after assigning the stratum simulation result completed by the previous simulation phase to the current simulation phase for the current simulation phase.
9. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the basin simulation phase data processing method of any one of claims 1-8.
10. A basin simulation phase data processing apparatus, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the basin simulation phase data processing method of any one of claims 1-8.
CN202111034299.9A 2021-06-10 2021-09-03 Basin simulation stage data processing method and device and computer readable storage medium Active CN115471971B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110650548 2021-06-10
CN2021106505480 2021-06-10

Publications (2)

Publication Number Publication Date
CN115471971A CN115471971A (en) 2022-12-13
CN115471971B true CN115471971B (en) 2024-05-07

Family

ID=84364932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111034299.9A Active CN115471971B (en) 2021-06-10 2021-09-03 Basin simulation stage data processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115471971B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149706B (en) * 2023-10-27 2024-03-19 山东大学 Large-scale parallel optimization method and system for seismic simulation data

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101598797A (en) * 2009-07-16 2009-12-09 北京航空航天大学 A kind of method that realizes rugged topography remote sensing scene simulation
CN102369459A (en) * 2009-04-01 2012-03-07 雪佛龙美国公司 Method and system for conducting geologic basin analysis
EP2447467A1 (en) * 2010-10-28 2012-05-02 IFP Energies nouvelles Method for exploiting an oil deposit based on production data and seismic data history matching
CN102509022A (en) * 2011-11-18 2012-06-20 武汉大学 Method for quickly constructing raster database facing to Virtual Earth
EP2631685A2 (en) * 2012-02-22 2013-08-28 Service Pétroliers Schlumberger Building faulted grids for a sedimentary basin including structural and stratigraphic interfaces
CN103309621A (en) * 2012-12-12 2013-09-18 珠海金山网络游戏科技有限公司 Method for reading data from sectional compression packages
CN103454399A (en) * 2012-06-05 2013-12-18 中国石油化工股份有限公司 Simulation experiment device and method for hot-press hydrocarbon generation and discharge based on basin evolution history
CN105784965A (en) * 2014-12-24 2016-07-20 中国石油天然气股份有限公司 Geologic evolution test method based on simulation experiments and system thereof
CN105869208A (en) * 2016-03-28 2016-08-17 天津城建大学 Method for simulating seismic oscillation of sedimentary basin in 3D saturated space
CN107015530A (en) * 2015-11-18 2017-08-04 欧姆龙株式会社 Analogue means and analogy method
CN107727834A (en) * 2016-07-21 2018-02-23 张军龙 A kind of Water Soluble Gas transported simulation experimental method
CN108241774A (en) * 2016-12-23 2018-07-03 恩格尔奥地利有限公司 For simulating the method for forming process
CN109870358A (en) * 2019-03-12 2019-06-11 东北石油大学 Multiple stiffness block more phases are multi-faceted to stretch-compression deformation physical simulation experiment method
CN109979005A (en) * 2019-03-20 2019-07-05 华北理工大学 A kind of PHYSICAL MODELING OF IN method and apparatus of the garden basin brush structure origin cause of formation
CN110568149A (en) * 2018-06-05 2019-12-13 中国石油化工股份有限公司 Fine and rapid quantitative simulation method for hydrocarbon generation and discharge history of sedimentary basin hydrocarbon source rock
CN111008472A (en) * 2019-12-02 2020-04-14 东华理工大学 Discrete element-based splitting basin extension process simulation method
CN111209680A (en) * 2020-01-13 2020-05-29 中国石油大学(北京) Simulation method, device and equipment for uniform stretching of flexible substrate
CN111624674A (en) * 2020-06-09 2020-09-04 中国地质大学(北京) Simulation system for evolution of deposition sequence formation
CN111666586A (en) * 2020-04-30 2020-09-15 平安科技(深圳)有限公司 Shared library file simulation method and device, computer equipment and storage medium
CN112526103A (en) * 2020-11-02 2021-03-19 中国石油天然气股份有限公司 Quantitative evaluation method and system for quasi-synbiotic karst of carbonate reservoir

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2979152B1 (en) * 2011-08-17 2013-08-23 IFP Energies Nouvelles METHOD FOR CONSTRUCTING A GEOLOGICAL MODEL COMPRISING A STRATIGHAPHIC UNIT DEPOSITION.

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102369459A (en) * 2009-04-01 2012-03-07 雪佛龙美国公司 Method and system for conducting geologic basin analysis
CN101598797A (en) * 2009-07-16 2009-12-09 北京航空航天大学 A kind of method that realizes rugged topography remote sensing scene simulation
EP2447467A1 (en) * 2010-10-28 2012-05-02 IFP Energies nouvelles Method for exploiting an oil deposit based on production data and seismic data history matching
CN102509022A (en) * 2011-11-18 2012-06-20 武汉大学 Method for quickly constructing raster database facing to Virtual Earth
EP2631685A2 (en) * 2012-02-22 2013-08-28 Service Pétroliers Schlumberger Building faulted grids for a sedimentary basin including structural and stratigraphic interfaces
CN103454399A (en) * 2012-06-05 2013-12-18 中国石油化工股份有限公司 Simulation experiment device and method for hot-press hydrocarbon generation and discharge based on basin evolution history
CN103309621A (en) * 2012-12-12 2013-09-18 珠海金山网络游戏科技有限公司 Method for reading data from sectional compression packages
CN105784965A (en) * 2014-12-24 2016-07-20 中国石油天然气股份有限公司 Geologic evolution test method based on simulation experiments and system thereof
CN107015530A (en) * 2015-11-18 2017-08-04 欧姆龙株式会社 Analogue means and analogy method
CN105869208A (en) * 2016-03-28 2016-08-17 天津城建大学 Method for simulating seismic oscillation of sedimentary basin in 3D saturated space
CN107727834A (en) * 2016-07-21 2018-02-23 张军龙 A kind of Water Soluble Gas transported simulation experimental method
CN108241774A (en) * 2016-12-23 2018-07-03 恩格尔奥地利有限公司 For simulating the method for forming process
CN110568149A (en) * 2018-06-05 2019-12-13 中国石油化工股份有限公司 Fine and rapid quantitative simulation method for hydrocarbon generation and discharge history of sedimentary basin hydrocarbon source rock
CN109870358A (en) * 2019-03-12 2019-06-11 东北石油大学 Multiple stiffness block more phases are multi-faceted to stretch-compression deformation physical simulation experiment method
CN109979005A (en) * 2019-03-20 2019-07-05 华北理工大学 A kind of PHYSICAL MODELING OF IN method and apparatus of the garden basin brush structure origin cause of formation
CN111008472A (en) * 2019-12-02 2020-04-14 东华理工大学 Discrete element-based splitting basin extension process simulation method
CN111209680A (en) * 2020-01-13 2020-05-29 中国石油大学(北京) Simulation method, device and equipment for uniform stretching of flexible substrate
CN111666586A (en) * 2020-04-30 2020-09-15 平安科技(深圳)有限公司 Shared library file simulation method and device, computer equipment and storage medium
CN111624674A (en) * 2020-06-09 2020-09-04 中国地质大学(北京) Simulation system for evolution of deposition sequence formation
CN112526103A (en) * 2020-11-02 2021-03-19 中国石油天然气股份有限公司 Quantitative evaluation method and system for quasi-synbiotic karst of carbonate reservoir

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于复合方法的天水盆地宽频带地震动模拟;付长华;吴健;郭祥云;胡刚;王涛;刘甲美;;地质力学学报(第06期);全文 *
有限元数值模拟法基本原理及其在地质构造变形研究中的应用综述;向用发;卢玺;徐宇浩;樊其志;;四川地质学报(第04期);全文 *
有限元数值模拟龙门山断裂带地震循环的地壳变形演化;尹力;罗纲;;地球物理学报(第04期);全文 *
西藏札达盆地控盆断裂有限元数值模拟;段岩;孟宪刚;邵兆刚;朱大岗;;地质通报(第10期);全文 *

Also Published As

Publication number Publication date
CN115471971A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN108009008B (en) Data processing method and system and electronic equipment
CN101916299B (en) Three-dimensional spatial data storage and management method based on file system
CN106383695B (en) The acceleration system and its design method of clustering algorithm based on FPGA
CN108229670A (en) Deep neural network based on FPGA accelerates platform
US11170555B2 (en) Graphics processing systems
US11210821B2 (en) Graphics processing systems
CN115471971B (en) Basin simulation stage data processing method and device and computer readable storage medium
US20100057755A1 (en) File system with flexible inode structures
US8180736B2 (en) Methods for improving file system performance
CN114175640B (en) Vectorized hash table
CN116433864B (en) Coal face three-dimensional geological implicit modeling method and device
CN114328779A (en) Geographic information cloud disk based on cloud computing efficient retrieval and browsing
CN113806300A (en) Data storage method, system, device, equipment and storage medium
JP2023543004A (en) Merge update method, device, and medium for R-tree index based on Hilbert curve
CN105630410B (en) The method for managing file storage area using non-volatile random read-write storage chip dynamic
CN106844491A (en) A kind of write-in of ephemeral data, read method and write-in, reading device
US11210847B2 (en) Graphics processing systems
CN110863818A (en) Description method and device for residual oil/gas distribution
CN105468824A (en) Parametric simulation method based on moon ascender assembly
EP3526680A1 (en) Durable multiversion b+-tree
Roumelis et al. Bulk-loading and bulk-insertion algorithms for xBR^+-trees xBR+-trees in Solid State Drives
CN104268146A (en) Static B+-tree index method suitable for analytic applications
CN109597865B (en) Massive geographic information data storage and retrieval method based on embedded platform
CN107908755A (en) A kind of snapshot document processing method and processing device
Du et al. Out‐of‐Core Simplification and Crack‐Free LOD Volume Rendering for Irregular Grids

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant