A modeling method, device and electronic equipment for tunnel crossing a fault zone

By using python module and GUI commands in FLAC3D software, interactive modeling of interactive windows is implemented, and the complexity of three-dimensional parameter modeling through fault zone tunnels is solved, the modeling efficiency and user experience are improved, and it is suitable for asymmetric models. .

CN116227004BActive Publication Date: 2024-11-08CHINA THREE GORGES CORPORATION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310384494.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-11-08
Estimated Expiration
2043-04-11

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively reduce the complexity of three-dimensional parameter modeling of tunnels through fault zones. Especially when dealing with asymmetric models, the interactive modeling capability is weak, it requires relying on command flow drivers, and the operation is not friendly, and third-party software Compatibility issues make data export time consuming, and repetitive model building increases workload.

Method used

By using the python module in the FLAC3D software to read python scripts, run GUI commands, and pop up interactive windows, including model diagrams and parameter controls, users can directly input modeling parameters, generate FLAC3D command streams, and realize interactive modeling of three-dimensional models , no need for programming and third-party software dependencies.

Benefits of technology

It significantly reduces user learning costs and modeling complexity, improves modeling efficiency, reduces the workload of modifying command flow, and realizes interactive modeling in FLAC3D software, suitable for modeling of cross-fault zone tunnels of asymmetric structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116227004B_ABST
    Figure CN116227004B_ABST
Patent Text Reader

Abstract

The present invention discloses a modeling method, device and electronic device for a tunnel through a fault zone, the method comprising: when FLAC3D software is opened, a python script is read through a python module in the FLAC3D software to run a GUI command, and an interactive window pops up in the FLAC3D software; wherein the python script is pre-created and saved in the path of the FLAC3D software, the script includes an initial command stream and a GUI command, and the interactive window includes a model schematic map and a plurality of parameter controls; the modeling parameters input by the user are received through the parameter controls in the interactive window; the initial command stream in the python script is read through the python module, and the modeling parameters are added to the initial command stream to obtain a FLAC3D command stream; the FLAC3D command stream is returned to the parser of the FLAC3D software through the python module, and the FLAC3D command stream is parsed by the parser to obtain a three-dimensional model of the tunnel through the fault zone. The technical solution provided by the present invention reduces the complexity of three-dimensional parameter modeling of the tunnel through the fault zone and improves the modeling efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of civil engineering, and in particular to a modeling method, device and electronic equipment for a tunnel passing through a fault zone. Background Art

[0002] With the restrictions of topographic and geological conditions of new projects, the problem of long and large tunnels crossing active fault zones in the project area has become increasingly prominent. Fault movement has a significant adverse effect on tunnel structures, but the current tunnel-related specifications mainly adopt avoidance measures for active faults, and the research on related design methods is relatively weak. Due to the complexity of actual projects and the uncertainty of active faults, the mechanical response of tunnel structures under the influence of fault movement is currently mostly studied through numerical simulation. It is necessary to carry out a large number of comparative calculations and analyses of factors such as fault direction, fault dip, fault width, and tunnel diameter. Therefore, designers need to establish numerical calculation models with different geometric dimensions for different schemes during the simulation analysis process.

[0003] FLAC3D software, which is widely used in civil engineering, water conservancy, transportation and other fields, is a geotechnical engineering simulation finite difference software with powerful nonlinear analysis capabilities. FLAC3D software has a built-in unit grid creation method and provides a series of basic graphics elements with specific shapes. It can modify and combine geometric parameters and can be used to analyze tunnel problems across fault zones. However, the software's interactive modeling capabilities are weak and it needs to rely on command stream drive. It requires designers to master the programming language of FLAC3D and model by writing command streams, which not only affects the modeling efficiency to a certain extent, but is also not user-friendly for designers.

[0004] This problem is currently generally solved by importing modeling from third-party software. For example, patent document 202110050040.7 proposes a FLAC3D pre-processing method and equipment for parametric modeling of tunnels. The modeling idea is to first draw the corresponding cross-sectional diagram based on the cross-sectional feature information of the tunnel, and then use the Extrusion function of the FLAC3D software to perform normal stretching to generate a three-dimensional entity of the tunnel. The numerical simulation grid is generated by meshing, and at the same time, the OpenGL graphics development function library is used to establish a visualization framework for the three-dimensional entity, so that the shape drawing and meshing of the tunnel can be completed in the interface. Although this method uses the OpenGL graphics development function library to establish an interface mode and improves the interactive ability of the FLAC3D software pre-processing, it is only applicable to symmetrical models that can be stretched along the normal direction. It cannot meet the needs of asymmetric models with fault dip and strike characteristics in tunnel projects crossing active faults, and it also places additional requirements on the user's ability to use OpenGL. For example, patent document 202010872578.1 proposes a FLAC3D complex modeling method based on Rhino 6 software. A proportional model is established based on actual data through the three-dimensional modeling software Rhino 6. The model grid is refined by the Griddle plug-in and output into a ".FLAC3D" format file, which is then imported into the FLAC3D software for calculation and use. Although this method has the advantages of interactive operation function and strong three-dimensional reproduction ability, it also puts forward additional requirements on the use ability of other software, and requires the model established by the third-party software to be exported with the help of the plug-in to generate a grid data file that meets the requirements of the calculation software. In the process of exporting the data file, data may be missing due to compatibility issues between software. In addition, the larger the amount of model data, the longer it takes to export the model. For the problem of tunnels crossing the fault zone in this application, a large number of calculations and analyses of scheme comparison requirements are required. The repeated establishment of the same type of model will increase the workload. In addition, patent document 202210654158.5 provides a method for monitoring the status of an underground power pipeline channel, which requires modeling through FLAC3D. However, the calculation control, parameter calling, modeling and result export of the overall method are developed and implemented in python software. Finally, the file exported by the python software is input into FLAC3D for modeling. The function of interactive assignment within the software is not implemented, and the generated pipeline models are all symmetrical models, which can be quickly implemented through symmetry or stretching commands, but are difficult to implement for models including faults in this application.

[0005] In summary, a new modeling method is urgently needed to reduce the complexity of three-dimensional parameter modeling of tunnels crossing fault zones. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a modeling method, device and electronic device for a tunnel crossing a fault zone, thereby reducing the complexity of three-dimensional parameter modeling of a tunnel crossing a fault zone.

[0007] According to a first aspect, an embodiment of the present invention provides a modeling method for a tunnel crossing a fault zone, the method comprising: when FLAC3D software is opened, a python script is read through a python module in the FLAC3D software, a GUI command is run, and an interactive window pops up in the FLAC3D software; the FLAC3D software is installed in a current device, the python script is pre-created and saved in a path of the FLAC3D software, the python script includes an initial command stream and the GUI command, the interactive window includes a model schematic map and a plurality of parameter controls, the model schematic map is used to display the modeling required for modeling The geometric meaning represented by the parameter, the parameter control is marked with prompt information for prompting the user to input the corresponding modeling parameters, and the initial command stream is a command stream without modeling parameters; the modeling parameters input by the user are received through the parameter control in the interactive window; the initial command stream in the python script is read through the python module, and the modeling parameters are added to the initial command stream to obtain a FLAC3D command stream; the FLAC3D command stream is returned to the parser of the FLAC3D software through the python module, and the FLAC3D command stream is parsed by the parser to obtain a three-dimensional model of a tunnel crossing a fault zone.

[0008] Optionally, the established three-dimensional model of a tunnel crossing a fault zone is a cube model, and the modeling parameters input by the user are received through the parameter controls in the interactive window, including: receiving basic modeling parameters input by the user through multiple first parameter controls in the first display page of the interactive window; the basic modeling parameters include tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model transverse / vertical range, model grid encryption range and model file name, the model longitudinal range represents the length of the cube model, the model transverse / vertical range represents half of the width and height of the cube model, and the model grid encryption range indicates that grid encryption is required near the tunnel The first display page includes a first model schematic map, in which the geometric meanings of the tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model lateral / vertical range and model grid encryption range are drawn; based on the basic modeling parameters, several key points of the cube model are determined, and the key point coordinates of each key point are calculated; when the next step instruction is received, the second display page is switched to be displayed in the interactive window, and the grid modeling parameters input by the user are received through multiple second parameter controls in the second display page, and the grid modeling parameters are used to determine the number and proportion of grids divided at each position of the cube model.

[0009] Optionally, determining several key points of the cube model based on the basic modeling parameters includes: dividing several initial grids in the direction of the longitudinal range of the model according to the tunnel diameter, the model grid encryption range and the horizontal / vertical range of the model; obtaining the intersection points of the two end faces and two fault planes of the cube model with the several initial grids respectively, and using the obtained intersection points as the key points.

[0010] Optionally, adding the modeling parameters to the initial command stream to obtain a FLAC3D command stream includes: replacing variable symbols at corresponding positions in the initial command stream with the basic modeling parameters, the key point coordinates and the mesh modeling parameters to obtain the FLAC3D command stream.

[0011] Optionally, if the model lateral / vertical range is not received or the received model lateral / vertical range is less than 7 times the tunnel diameter, the model lateral / vertical range is automatically corrected to a value rounded to 7 times the tunnel diameter.

[0012] Optionally, the grid modeling parameters include: the radial grid number of the tunnel, the longitudinal grid number and grid ratio of the upper / lower plate model, the longitudinal grid number and grid ratio of the fault zone model, the circumferential grid number of the model grid encryption range, and the grid number and grid ratio of the model horizontal / vertical range excluding the remaining part of the model grid encryption range.

[0013] Optionally, the python script is pre-created and saved in a path containing .prj files within the FLAC3D software.

[0014] According to a second aspect, an embodiment of the present invention provides a modeling device for a tunnel crossing a fault zone, characterized in that the device comprises: an interactive window pop-up module, which is used to read a python script through a python module in the FLAC3D software when the FLAC3D software is opened, run a GUI command, and pop up an interactive window in the FLAC3D software; the FLAC3D software is installed in the current device, the python script is pre-created and saved in the path of the FLAC3D software, the python script includes an initial command stream and the GUI command, and the interactive window includes a model schematic map and multiple parameter controls, the model schematic map is used to display the geometric meaning represented by the modeling parameters required for modeling. Meaning, the parameter control is marked with prompt information for prompting the user to input the corresponding modeling parameters, and the initial command stream is a command stream without modeling parameters; a modeling parameter receiving module is used to receive the modeling parameters input by the user through the parameter control in the interactive window; a FLAC3D command stream generating module is used to read the initial command stream in the python script through the python module, and add the modeling parameters to the initial command stream to obtain the FLAC3D command stream; a model generating module is used to return the FLAC3D command stream to the parser of the FLAC3D software through the python module, and parse the FLAC3D command stream through the parser to obtain a three-dimensional model of a tunnel crossing a fault zone.

[0015] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method described in the first aspect or any optional implementation manner of the first aspect by executing the computer instructions.

[0016] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect or any optional implementation manner of the first aspect.

[0017] The technical solution provided by this application has the following advantages:

[0018] The technical solution provided by the present application pre-creates a python script, writes the initial command stream and GUI commands into it, and saves the python script in the path of the FLAC3D software. When the FLAC3D software is opened, the python script is read through the python module in the FLAC3D software, and the GUI command is run, so that an interactive window pops up in the FLAC3D software, including a model schematic map and multiple parameter controls in the interactive window. The model schematic map is used to show the geometric meaning of the modeling parameter representation required for modeling, so as to prompt the user to enter the role of the modeling parameter. The parameter control is marked with prompt information to prompt the user to enter the corresponding modeling parameter in which parameter control; then the modeling parameter input by the user is received through the parameter control in the interactive window; then the initial command stream in the python script is read through the python module, and the modeling parameters are added to the initial command stream to form a complete FLAC3D command stream; finally, the FLAC3D command stream is returned to the parser of the FLAC3D software through the python module, and the FLAC3D command stream is parsed by the parser to obtain a three-dimensional model of a tunnel crossing the fault zone. Based on the above solution, the function of displaying interactive windows and configuring modeling parameters within the FLAC3D software is realized. Users do not need to use command stream modeling, nor do they need to use third-party software to form a visual model framework and then import it into the FLAC3D software. This significantly reduces the user's learning cost and the workload of modifying the FLAC3D command stream, significantly improves modeling efficiency, and reduces the complexity of FLAC3D software modeling. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:

[0020] Figure 1 A schematic diagram showing the steps of a modeling method for a tunnel crossing a fault zone in one embodiment of the present invention is shown;

[0021] Figure 2 A schematic diagram of a first display page of an interactive window in one embodiment of the present invention is shown;

[0022] Figure 3 A schematic diagram of a second display page of an interactive window in one embodiment of the present invention is shown;

[0023] Figure 4 A schematic diagram of initial grid division of a tunnel to be established through a fault zone in one embodiment of the present invention is shown;

[0024] Figure 5 A schematic diagram showing key points of a tunnel to be built across a fault zone in one embodiment of the present invention is shown;

[0025] Figure 6 A schematic diagram of a three-dimensional model of a tunnel crossing a fault zone in one embodiment of the present invention is shown;

[0026] Figure 7 A schematic structural diagram of a modeling device for crossing a fault zone tunnel in one embodiment of the present invention is shown;

[0027] Figure 8 A schematic structural diagram of an electronic device in one embodiment of the present invention is shown. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0029] See also Figure 1 In one embodiment, a modeling method for a tunnel through a fault zone includes the following steps:

[0030] Step S101: when the FLAC3D software is opened, the python script is read through the python module in the FLAC3D software, the GUI command is run, and an interactive window pops up in the FLAC3D software; the FLAC3D software is installed in the current device, the python script is pre-created and saved in the path of the FLAC3D software, the python script includes an initial command stream and GUI commands, the interactive window includes a model schematic map and multiple parameter controls, the model schematic map is used to display the geometric meaning represented by the modeling parameters required for modeling, the parameter controls are marked with prompt information, which is used to prompt the user to input the corresponding modeling parameters, and the initial command stream is a command stream without writing modeling parameters.

[0031] Specifically, considering that the FLAC3D software has a pre-installed python module, the FLAC3D software can recognize and read the python programming language. Based on this function, the embodiment of the present invention proposes a method for generating an interactive window in the FLAC3D software through a python script, which expands the FLAC3D software itself, thereby reducing the difficulty of modeling. The method provided by the embodiment of the present invention is run through the FLAC3D software, and the FLAC3D software can be installed in electronic devices such as computers and servers, and is not specifically limited here. First, this embodiment needs to pre-configure a python script, and the script needs to include an initial command stream and a GUI command, wherein the GUI command is a window generation command written in the python programming language. When the FLAC3D software reads and runs the GUI command through the python module, it can parse the programmed window style, so that a window generated based on python pops up in the FLAC3D software. Only the function of popping up a window in the FLAC3D software is not enough to realize the interactive modeling solution in the FLAC3D software, so the embodiment of the present invention also adds a model schematic map and multiple parameter controls in the interactive window that pops up based on the GUI command. As Figure 2As shown, the model schematic map is a pre-drawn map used to show the geometric meaning represented by the modeling parameters required for modeling. For example: the three-dimensional model of the tunnel through the fault zone pre-created in this embodiment is a cube model, where L represents the length of the cube model. A simple cube model is pre-drawn in the model schematic map, and L is marked in its length direction, so as to prompt the user to enter the modeling parameters including the length of the cube model, and prompt the user to enter the specific position of the modeling parameter L on the model to be built. The embodiment of the present invention only takes this as an example. The overall shape of the three-dimensional model of the tunnel through the fault zone can also be a cylinder, an ellipsoid, etc., which is not specifically limited here. The parameter control is a space where the user can trigger and enter the modeling parameters, including but not limited to an input box, a drop-down box, etc. For example, if the parameter control is an input box, the user needs to move the mouse cursor to the position of the input box and enter a specific modeling parameter in the input box through the keyboard, such as the length L of the cube; if the parameter control is a drop-down box, the user needs to click the drop-down box with the mouse, and display several commonly used modeling parameters in the displayed drop-down options for the user to choose. In this embodiment, the parameter control uses an input box. Since there are many parameter controls on the interactive window, prompt information is marked next to the parameter controls to prompt the user to enter the corresponding modeling parameters to prevent the user from entering the modeling parameters in the wrong position. Each parameter control has a one-to-one correspondence with each initial command stream in the python script, so that the modeling parameters entered by the user can be correctly added to the initial command stream. The initial command stream is the original command stream that does not contain the modeling parameters. Assuming that the Chinese meaning of the command stream is to set the model length, the initial command stream can be understood as "set the model length to XXX", in which the variable XXX needs to be replaced by the modeling parameters entered by the user. Finally, the configured python script is saved in the path of the FLAC3D software so that the FLAC3D software reads the python script when it is opened, and first reads the GUI command to pop up the interactive window.

[0032] It is worth noting that in this embodiment, the python script is pre-created and saved in the path containing the .prj file in the FLAC3D software. Specifically, after opening the FLAC3D software, the embodiment of the present invention creates a .prj file in the target path, copies the python script to the .prj file path, and then the command stream files, data files, result files, and model status files generated are automatically saved in the path, which is convenient for users to uniformly manage and view, and improve the user experience.

[0033] Step S102: receiving modeling parameters input by the user through the parameter controls in the interactive window.

[0034] Step S103: read the initial command stream in the python script through the python module, and add the modeling parameters to the initial command stream to obtain the FLAC3D command stream.

[0035] Step S104: returning the FLAC3D command stream to the parser of the FLAC3D software through the python module, and parsing the FLAC3D command stream through the parser to obtain a three-dimensional model of the tunnel crossing the fault zone.

[0036] Specifically, when the interactive window is opened, the user enters the modeling parameters in each parameter control according to the prompts of the model schematic map in the interactive window. The python module receives the modeling parameters entered by the user through each parameter control in the interactive window. When the user clicks the "Confirm" control, the FLAC3D software reads the initial command stream in the python script through the python module, and then adds the modeling parameters received by the python module to the initial command stream, replacing the unknown variables therein, and obtains a complete FLAC3D command stream. Finally, the parser of the FLAC3D software parses the FLAC3D command stream to generate a three-dimensional model of a tunnel crossing the fault zone.

[0037] Based on the solution provided by the embodiment of the present invention, the function of displaying an interactive window and configuring modeling parameters in the FLAC3D software is realized. The user does not need to use command stream modeling, nor does the user need to form a visual model framework through third-party software and then import the framework file into the FLAC3D software. The user does not need to learn the programming method of the FLAC3D command stream, nor does the user need to learn the operation method of the third-party software. The user only needs to input the modeling parameters according to the prompts of the model schematic map when the FLAC3D software is opened. This significantly reduces the user's learning cost, reduces the complexity of FLAC3D software modeling, and improves modeling efficiency.

[0038] Specifically, in one embodiment, the three-dimensional model of the tunnel crossing the fault zone established by the modeling method proposed in the embodiment of the present invention is a cube model, and the above step S102 specifically includes the following steps:

[0039] Step 1: In the first display page of the interactive window, basic modeling parameters input by the user are received through multiple first parameter controls; the basic modeling parameters include tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model transverse / vertical range, model grid encryption range and model file name, the model longitudinal range represents the length of the cube model, the model transverse / vertical range represents half of the width and height of the cube model, the model grid encryption range represents the area range near the tunnel that needs to be grid encrypted, the first display page includes a first model schematic map, and the first model schematic map draws the geometric meanings of the tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model transverse / vertical range and model grid encryption range.

[0040] Specifically, traditional interactive modeling methods are often used to model symmetrical structures, which can be achieved by simply stretching and symmetry commands, but there is no good interactive modeling solution for asymmetrical structures. This embodiment proposes an interactive modeling solution for asymmetrical tunnels crossing fault zones. First, the interactive window displayed in the embodiment of the present invention is divided into two display pages that pop up twice. The first display page includes multiple first parameter controls for receiving basic modeling parameters input by the user. Specifically, Figure 2 As shown, this embodiment creates a three-dimensional model of a tunnel crossing a fault zone based on a cube, so that the geometric meanings of the tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model transverse / vertical range, and model grid encryption range are drawn in the first model schematic map displayed on the first display page, which is used to prompt the user that the basic modeling parameters that need to be entered in the first parameter control include tunnel diameter D, fault dip α, fault zone width w, fault strike angle β, model longitudinal range L, model transverse / vertical range H1, model grid encryption range H0, and model file name. The above basic modeling parameters can determine the cube size, specific shape of the cube, specific position of the fault zone cutting into the tunnel, cutting direction of the fault zone, and fault zone width of the tunnel model crossing the fault zone.

[0041] It is worth noting that in this embodiment, the value of the model horizontal / vertical range H1 is set to meet the Saint-Venant principle. If the model horizontal / vertical range is not received or the received model horizontal / vertical range is less than 7 times the tunnel diameter, the model horizontal / vertical range is automatically corrected to a value rounded up to 7 times the tunnel diameter, thereby ensuring the reliability of the model. In addition, the input range of the fault dip angle α and the fault strike angle β is 0 to 90°.

[0042] Step 2: Determine several key points of the cube model based on basic modeling parameters, and calculate the key point coordinates of each key point.

[0043] Specifically, after determining the basic size and shape of the tunnel model through the fault zone through step 1, a number of position points are further extracted from the cube model of the determined shape, which are referred to as key points in this embodiment. The key point coordinates of each key point are calculated to determine the spatial position of the generated model. The FLAC3D command stream generated by the key point coordinates can accurately create the tunnel model through the fault zone within the preset spatial range of the FLAC3D software, ensuring that the fault zone is located at the preset position of the tunnel, and the relative position of the fault zone and the tunnel does not deviate.

[0044] Step 3: When the next step instruction is received, the second display page is switched to be displayed in the interactive window, and the mesh modeling parameters input by the user are received through multiple second parameter controls in the second display page. The mesh modeling parameters are used to determine the number and proportion of mesh divisions at each position of the cube model.

[0045] Specifically, FLAC3D software is mainly used for finite difference calculations, so at the end of modeling, the cube model whose position is determined in step 2 above needs to be meshed. Figure 3 As shown, the interactive window provided by the embodiment of the present invention also includes a second display page. After the user clicks Next, the interactive window switches from the first display page to the second display page. The second display page includes a plurality of second parameter controls for receiving mesh modeling parameters input by the user. The mesh modeling parameters are used to determine how many grids should be divided at each position of the tunnel model crossing the fault zone and the specific size of each grid, so as to facilitate the FLAC3D software to perform finite difference calculations according to different stress conditions at different positions of the tunnel model crossing the fault zone, and realize stress-strain analysis of the tunnel crossing the fault zone. Similarly, the second display page also includes a second model schematic map for prompting the geometric meaning of the mesh modeling parameters input by the user.

[0046] Specifically, in one embodiment, it is worth noting that the grid modeling parameters include: radial grid shares of the tunnel, longitudinal grid shares and grid ratio of the upper / lower wall model, longitudinal grid shares and grid ratio of the fault zone model, circumferential grid shares of the model grid encryption range, and grid shares and grid ratio of the model horizontal / vertical range excluding the remaining part of the model grid encryption range. Specifically, as Figure 3As shown, the user can refer to the prompt of the second model schematic map and input the radial grid number s1 of the tunnel, the longitudinal grid number s2 and grid ratio r2 of the upper / lower wall model, the longitudinal grid number s3 and grid ratio r3 of the fault zone model, the vertical grid number s4 and grid ratio r4 of the model, the horizontal grid number s5 and grid ratio r5 of the model, the circumferential grid number s6 of the model grid encryption range, and the grid number s7 and grid ratio r7 of the remaining part of the model grid encryption range after the horizontal / vertical range of the model is removed. Among them, the grid number indicates the number of grids that need to be divided at the corresponding position, and the grid ratio refers to the ratio of the size of adjacent grid units at the corresponding position. For example, if the grid ratio is set to 1, it means that the size of each grid is the same, and if the grid ratio is set to 0.8, it means that the next grid is 0.8 times the size of the previous grid, and the grids show a variable distribution. If s1, s2, s3, s4, and s5 are not entered, the default value is set to 10 in this embodiment. If r2, r3, r4, and r5 are not entered, the default value is set to 1 in this embodiment. The values ​​of s6 and s7 need to be much larger than s1 to s5. Although the denser the grid, the more accurate the calculation, considering that a large number of grids leads to a sharp increase in the amount of calculation, which affects the analysis efficiency, the embodiment of the present invention only encrypts the number of grids s6 and nearby s7 in the model grid encryption range, and reduces the total number of units to improve the calculation efficiency while ensuring the calculation accuracy. At the same time, by setting the number of grids and the grid ratio, the customization degree of the modeling method proposed in the embodiment of the present invention is further enhanced, the application is more flexible, and the user experience is improved.

[0047] Finally, the embodiment of the present invention reads the initial command stream in the python script through the python module, and replaces the variable symbols at the corresponding positions in the initial command stream with the above-mentioned basic modeling parameters, key point coordinates and mesh modeling parameters to obtain a complete FLAC3D command stream, so that the command stream generated by FLAC3D execution can accurately generate a three-dimensional model of an asymmetric structure of a tunnel crossing a fault zone.

[0048] Specifically, in one embodiment, the above step 2 specifically includes the following steps:

[0049] Step 4: Divide the model into several initial grids in the longitudinal direction according to the tunnel diameter, model mesh refinement range and model horizontal / vertical range.

[0050] Step 5: Obtain the intersection points of the two end faces and two fault planes of the cube model with several initial grids, and use the obtained intersection points as key points.

[0051] Specifically, in order to extract the key points of the model from the cubic model to be established, this embodiment considers dividing the cubic model along the longitudinal range of the model according to the tunnel diameter D, the model grid encryption range H0 and the model horizontal / vertical range H1, and roughly meshing the cubic model to obtain a number of initial grids. Afterwards, the two end faces of the model are determined according to the longitudinal range of the model, and the two fault planes are determined according to the fault dip, the fault zone width and the fault strike angle. The two end faces and the two fault planes intersect with the aforementioned initial grids respectively. The overall grid model is composed of two basic shape grids: hexagonal blocks and cylindrical tunnel peripheral gradient radial grids, such as Figure 4 As shown in the figure, a total of 51 blocks are divided, and the grids are divided into 4 groups, namely hanging wall, fault zone, footwall and tunnel, among which V1-V16 are hanging wall, V18-V33 are fault zones, V35-V50 are footwall, V17, V34 and V51 are tunnels, and V6, V7, V10, V11, V23, V24, V27, V28, V40, V41, V44 and V45 are grid encryption areas.

[0052] Through the above initial grid division, the two end faces and the two fault planes intersect with the aforementioned initial grids to obtain several intersection points, such as Figure 5 P1~P28, P1'~P28', P1"~P28", P1"'~P28"' in the figure are selected, and the obtained intersection points are used as key points. By calculating the coordinates of each key point, the basic shape grid can be accurately generated in the modeling space of the FLAC3D software. On the one hand, the number of key points extracted in this embodiment is small, and the statistical difficulty is small; on the other hand, the key points can fully describe the body shape of the three-dimensional model of the tunnel crossing the fault zone to be established, thereby improving the modeling accuracy.

[0053] Specifically, in order to facilitate further understanding of the technical solution provided by the present application, in a specific application scenario, the modeling process of a tunnel crossing a fault zone according to the technical solution provided by an embodiment of the present invention is as follows:

[0054] 1. According to the parameter range of the engineering data, the design parameter comparison scheme is selected. For example, the model parameter values ​​of calculation scheme 1 are tunnel excavation diameter 8.5m, fault zone width 100m, fault dip 60°, fault strike 75°, model vertical / lateral range is 70m (greater than 7 times the tunnel diameter), and model longitudinal range is 600m.

[0055] 2. Open the FLAC3D software, create the create_model.prj file in the target path, copy the python script to the create_model.prj file path, and read the python script file in the FLAC3D software. An interactive window for defining the geometric dimensions of the model appears, and the first display page is displayed. According to the first model schematic in the interactive window, enter the tunnel diameter D = 8.5m, fault dip α = 60°, fault strike β = 75°, fault width w = 100m, model grid encryption range H0 = 20m, model vertical / horizontal range H1 = 70m and longitudinal range L = 600m in the input box according to the calculation scheme, and name the model file "fault_model_1". Click the "Confirm-Assign" button to complete the parameter assignment and coordinate calculation, and click the "Next-Next" button to enter the second display page for defining the model grid division.

[0056] 3. On the second display page of defining the model grid division, enter the radial grid number s1=64 for the tunnel, the longitudinal grid number s2=66 for the upper / lower wall model and the grid ratio r2=1, the longitudinal grid number s3=50 for the fault zone model and the grid ratio r3=1, the vertical grid number s4=5 and the grid ratio r4=0.8, the horizontal grid number s5=6 and the grid ratio r5=1.2 in the input box according to the second model schematic map, define the number of grid divisions and the grid ratio, click the "Generate" button to generate a three-dimensional grid model of the tunnel crossing the fault zone, which can be viewed directly in the FLAC3D software view pane, as shown in the figure. Figure 6 As shown, the grid cells are divided into four groups: hanging wall, footwall, faults and tunnels.

[0057] 4. The model mesh data is output and saved as the "fault_model_1.f3grid" file in the create_model.prj file path, which contains the mesh node information, unit information and grouping information of the model.

[0058] 5. After clearing the mesh model and inputting parameters, return to the first display page of the interactive window and re-enter the modeling.

[0059] Through the above steps, the technical solution provided by the present application pre-creates a python script, writes the initial command stream and GUI commands into it, and saves the python script in the path of the FLAC3D software. When the FLAC3D software is opened, the python script is read through the python module in the FLAC3D software, and the GUI command is run, so that an interactive window pops up in the FLAC3D software, including a model schematic map and multiple parameter controls in the interactive window. The model schematic map is used to show the geometric meaning represented by the modeling parameters required for modeling, so as to prompt the user to enter the role of the modeling parameters. The parameter control is marked with prompt information to prompt the user to enter the corresponding modeling parameter in which parameter control; then the modeling parameters entered by the user are received through the parameter control in the interactive window; then the initial command stream in the python script is read through the python module, and the modeling parameters are added to the initial command stream to form a complete FLAC3D command stream; finally, the FLAC3D command stream is returned to the parser of the FLAC3D software through the python module, and the FLAC3D command stream is parsed by the parser to obtain a three-dimensional model of a tunnel crossing the fault zone. Based on the above solution, the function of displaying interactive windows and configuring modeling parameters within the FLAC3D software is realized. Users do not need to use command flow modeling, nor do they need to use third-party software to form a visual model framework and then import it into the FLAC3D software. This significantly reduces the user's learning cost, significantly improves modeling efficiency, and reduces the complexity of FLAC3D software modeling.

[0060] like Figure 7 As shown, this embodiment also provides a modeling device for crossing a fault zone tunnel, the device comprising:

[0061] The interactive window pop-up module 101 is used to read the python script through the python module in the FLAC3D software when the FLAC3D software is opened, run the GUI command, and pop up the interactive window in the FLAC3D software; the FLAC3D software is installed in the current device, the python script is pre-created and saved in the path of the FLAC3D software, the python script includes an initial command stream and a GUI command, the interactive window includes a model schematic map and a plurality of parameter controls, the model schematic map is used to display the geometric meaning represented by the modeling parameters required for modeling, the parameter control is marked with prompt information, and is used to prompt the user to enter the corresponding modeling parameters, and the initial command stream is a command stream without writing the modeling parameters. For details, see the relevant description of step S101 in the above method embodiment, which will not be repeated here.

[0062] The modeling parameter receiving module 102 is used to receive the modeling parameters input by the user through the parameter controls in the interactive window. For details, please refer to the relevant description of step S102 in the above method embodiment, which will not be repeated here.

[0063] The FLAC3D command stream generation module 103 is used to read the initial command stream in the python script through the python module, and add the modeling parameters to the initial command stream to obtain the FLAC3D command stream. For details, please refer to the relevant description of step S103 in the above method embodiment, which will not be repeated here.

[0064] The model generation module 104 is used to return the FLAC3D command stream to the parser of the FLAC3D software through the python module, and parse the FLAC3D command stream through the parser to obtain a three-dimensional model of the tunnel crossing the fault zone. For details, please refer to the relevant description of step S104 in the above method embodiment, which will not be repeated here.

[0065] A modeling device for a tunnel crossing a fault zone provided in an embodiment of the present invention is used to execute a modeling method for a tunnel crossing a fault zone provided in the above embodiment. Its implementation method and principle are the same. For details, please refer to the relevant description of the above method embodiment and will not be repeated here.

[0066] Through the collaborative cooperation of the above-mentioned components, the technical solution provided by this application pre-creates a python script, writes the initial command stream and GUI commands into it, and saves the python script in the path of the FLAC3D software. When the FLAC3D software is opened, the python script is read through the python module in the FLAC3D software, and the GUI command is run, so that an interactive window pops up in the FLAC3D software, including a model schematic map and multiple parameter controls in the interactive window. The model schematic map is used to show the geometric meaning represented by the modeling parameters required for modeling, so as to prompt the user to enter the role of the modeling parameters. The parameter control is marked with prompt information to prompt the user to enter the corresponding modeling parameter in which parameter control; then the modeling parameters entered by the user are received through the parameter control in the interactive window; then the initial command stream in the python script is read through the python module, and the modeling parameters are added to the initial command stream to form a complete FLAC3D command stream; finally, the FLAC3D command stream is returned to the parser of the FLAC3D software through the python module, and the FLAC3D command stream is parsed by the parser to obtain a three-dimensional model of a tunnel crossing the fault zone. Based on the above solution, the function of displaying interactive windows and configuring modeling parameters within the FLAC3D software is realized. Users do not need to use command flow modeling, nor do they need to use third-party software to form a visual model framework and then import it into the FLAC3D software. This significantly reduces the user's learning cost, significantly improves modeling efficiency, and reduces the complexity of FLAC3D software modeling.

[0067] Figure 8 An electronic device according to an embodiment of the present invention is shown, the device includes a processor 901 and a memory 902, which can be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0068] The processor 901 may be a central processing unit (CPU). The processor 901 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0069] The memory 902 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the methods in the above method embodiments. The processor 901 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 902, that is, implementing the methods in the above method embodiments.

[0070] The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 901, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 902 may optionally include a memory remotely arranged relative to the processor 901, and these remote memories may be connected to the processor 901 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0071] One or more modules are stored in the memory 902 , and when executed by the processor 901 , the method in the above method embodiment is executed.

[0072] The specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the above method embodiments, and will not be repeated here.

[0073] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the implemented program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0074] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A modeling method for a tunnel crossing a fault zone, characterized in that: The method comprises: When the FLAC3D software is opened, the python script is read through the python module in the FLAC3D software, the GUI command is run, and an interactive window pops up in the FLAC3D software; the FLAC3D software is installed in the current device, the python script is pre-created and saved in the path of the FLAC3D software, the python script includes an initial command stream and the GUI command, the interactive window includes a model schematic map and a plurality of parameter controls, the model schematic map is used to display the geometric meaning represented by the modeling parameters required for modeling, the parameter control is marked with prompt information, and is used to prompt the user to input the corresponding modeling parameters, and the initial command stream is a command stream without writing the modeling parameters; Receiving modeling parameters input by a user through parameter controls in the interactive window; Reading the initial command stream in the python script through the python module, and adding the modeling parameters to the initial command stream to obtain a FLAC3D command stream; The FLAC3D command stream is returned to the parser of the FLAC3D software through the python module, and the FLAC3D command stream is parsed by the parser to obtain a three-dimensional model of the tunnel crossing the fault zone; The established three-dimensional model of the tunnel crossing the fault zone is a cube model, and the modeling parameters input by the user are received through the parameter controls in the interactive window, including: receiving basic modeling parameters input by the user through multiple first parameter controls in the first display page of the interactive window; the basic modeling parameters include tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model transverse / vertical range, model grid encryption range and model file name, the model longitudinal range represents the length of the cube model, the model transverse / vertical range represents half of the width and height of the cube model, and the model grid encryption range represents the area near the tunnel that needs to be grid encrypted. domain range, the first display page includes a first model schematic map, the first model schematic map draws the geometric meaning of the tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model lateral / vertical range and model grid encryption range; based on the basic modeling parameters, several key points of the cube model are determined, and the key point coordinates of each key point are calculated; when the next step instruction is received, the second display page is switched to display in the interactive window, and the grid modeling parameters input by the user are received through multiple second parameter controls in the second display page, and the grid modeling parameters are used to determine the number and proportion of grids divided at each position of the cube model; Determining the key points of the cube model based on the basic modeling parameters includes: dividing a number of initial grids in the direction of the longitudinal range of the model according to the tunnel diameter, the model grid encryption range and the model horizontal / vertical range; obtaining the intersection points of the two end faces and two fault planes of the cube model with the initial grids respectively, and using the obtained intersection points as the key points; The adding of the modeling parameters to the initial command stream to obtain the FLAC3D command stream includes: using the basic modeling parameters, the key point coordinates and the mesh modeling parameters to replace the variable symbols at corresponding positions in the initial command stream to obtain the FLAC3D command stream.

2. The method according to claim 1, characterized in that If the model transverse / vertical range is not received or the received model transverse / vertical range is less than 7 times the tunnel diameter, the model transverse / vertical range is automatically corrected to a value rounded to 7 times the tunnel diameter.

3. The method according to claim 1, characterized in that: The grid modeling parameters include: the radial grid number of the tunnel, the longitudinal grid number and grid ratio of the upper / lower plate model, the longitudinal grid number and grid ratio of the fault zone model, the circumferential grid number of the model grid encryption range, and the grid number and grid ratio of the model horizontal / vertical range excluding the remaining part of the model grid encryption range.

4. The method according to claim 1, characterized in that: The python script is pre-created and saved in the path containing the .prj file within the FLAC3D software.

5. A modeling device for a tunnel through a fault zone, characterized in that: The device comprises: An interactive window pop-up module is used for reading a python script through a python module in the FLAC3D software, running GUI commands, and popping up an interactive window in the FLAC3D software when the FLAC3D software is opened; the FLAC3D software is installed in the current device, the python script is pre-created and saved in the path of the FLAC3D software, the python script includes an initial command stream and the GUI commands, the interactive window includes a model schematic map and a plurality of parameter controls, the model schematic map is used to display the geometric meaning represented by the modeling parameters required for modeling, the parameter controls are marked with prompt information, and are used to prompt the user to input the corresponding modeling parameters, and the initial command stream is a command stream without writing the modeling parameters; A modeling parameter receiving module is used to receive modeling parameters input by the user through the parameter controls in the interactive window; the established three-dimensional model of the tunnel crossing the fault zone is a cube model, and the modeling parameters input by the user through the parameter controls in the interactive window include: receiving basic modeling parameters input by the user through multiple first parameter controls in the first display page of the interactive window; the basic modeling parameters include tunnel diameter, fault dip, fault zone width, fault strike angle, model longitudinal range, model transverse / vertical range, model grid encryption range and model file name, the model longitudinal range represents the length of the cube model, the model transverse / vertical range represents half of the width and height of the cube model, the model grid encryption range represents the area range near the tunnel that needs to be grid encrypted, the first display page includes a first model schematic map, and the tunnel diameter, fault dip, and fault zone width are drawn in the first model schematic map. , the geometric meaning of the fault zone width, the fault strike angle, the model longitudinal range, the model transverse / vertical range and the model grid encryption range; based on the basic modeling parameters, several key points of the cube model are determined, and the key point coordinates of each key point are calculated; when the next step instruction is received, the second display page is switched to be displayed in the interactive window, and the grid modeling parameters input by the user are received through multiple second parameter controls in the second display page, and the grid modeling parameters are used to determine the number and proportion of grids divided at each position of the cube model; the several key points of the cube model are determined based on the basic modeling parameters, including: according to the tunnel diameter, the model grid encryption range and the model transverse / vertical range, a number of initial grids are divided in the direction of the model longitudinal range; the intersection points of the two end faces and two fault planes of the cube model with the several initial grids are obtained, and the obtained intersection points are used as the key points; A FLAC3D command stream generation module is used to read the initial command stream in the python script through the python module, and add the modeling parameters to the initial command stream to obtain the FLAC3D command stream; the adding the modeling parameters to the initial command stream to obtain the FLAC3D command stream includes: using the basic modeling parameters, the key point coordinates and the mesh modeling parameters to replace the variable symbols at the corresponding positions in the initial command stream to obtain the FLAC3D command stream; The model generation module is used to return the FLAC3D command stream to the parser of the FLAC3D software through the python module, and parse the FLAC3D command stream through the parser to obtain a three-dimensional model of the tunnel crossing the fault zone.

6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 4 by executing the computer instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • FLAC3D complex modeling method based on Rhino 6 software

    CN111968234A

  • Tunnel deformation simulation calculation method and apparatus

    CN112613108A

  • FLAC 3D pretreatment method and device for tunnel parametric modeling

    CN112818443A

  • Shield tunnel excavation process and earth surface deformation three-dimensional finite difference numerical simulation method

    CN114969884A

  • Underground power pipeline channel state monitoring method and system

    CN115099086A