CN110909504A - Buried pipeline parametric analysis method - Google Patents

Buried pipeline parametric analysis method Download PDF

Info

Publication number
CN110909504A
CN110909504A CN201911200108.4A CN201911200108A CN110909504A CN 110909504 A CN110909504 A CN 110909504A CN 201911200108 A CN201911200108 A CN 201911200108A CN 110909504 A CN110909504 A CN 110909504A
Authority
CN
China
Prior art keywords
ansys
buried pipeline
pipeline
interface
result
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.)
Pending
Application number
CN201911200108.4A
Other languages
Chinese (zh)
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.)
Fuzhou University
Original Assignee
Fuzhou University
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 Fuzhou University filed Critical Fuzhou University
Priority to CN201911200108.4A priority Critical patent/CN110909504A/en
Publication of CN110909504A publication Critical patent/CN110909504A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a buried pipeline parametric analysis method. Firstly, a parameterization design language provided by ANSYS software is utilized to represent the whole process of finite element analysis of the buried pipeline by an APDL command stream, so as to realize parameterization of the whole analysis process. And then, carrying out background packaging on ANSYS by using VB, wherein the VB can automatically generate a corresponding APDL command stream file only by inputting effective calculation parameters related to pipelines, roads, loads and the like in a VB interface, calling ANSYS in the background to carry out Batch calculation of Batch, and finally returning ANSYS calculation results to the user in the forms of graphs, tables and the like through a VB result display interface to realize the visualization of the whole analysis process. The invention parameterizes and visualizes the complicated simulation analysis process of the buried pipeline, not only reduces the requirement on user finite element knowledge, but also saves a large amount of time required by steps of modeling, grid division and the like, and greatly improves the working efficiency of designers particularly for the analysis of the sequential buried pipeline.

Description

Buried pipeline parametric analysis method
Technical Field
The invention relates to a buried pipeline parameter analysis method which is mainly suitable for the field of long-distance oil and gas pipeline transportation.
Background
The pipeline transportation has the characteristics of large transportation amount, small occupied area, low cost, capability of realizing comprehensive automation and the like, is widely applied to the fields of municipal administration, water conservancy, energy and the like, and becomes an essential infrastructure in modern life. The buried pipeline has the advantages of saving ground space, reducing natural and artificial damages and the like, and has more remarkable advantages. However, many of the early-built oil and gas pipelines have been in service for many years and have entered the period of multiple accidents. The buried pipeline has complex operation environment and more types of bearing loads, and under the combined action of the pipeline structure dead weight, the earth covering pressure, the pipeline internal pressure, the temperature load, the road traffic load and other loads, accidents such as fatigue failure, deformation instability, even brittle fracture and the like easily occur, so that huge economic loss and casualties are caused. The pipeline is buried underground, so that the pipeline is extremely hidden, and the overhaul work is difficult to carry out. Therefore, there is a need to enhance structural analysis of buried pipelines.
The buried pipeline structure analysis often involves complex problems of geometric nonlinearity, material nonlinearity, contact nonlinearity and the like, so that the pipeline-soil-load coupling system is difficult to solve, and the problem is difficult to solve through a conventional analytic method. ANSYS is common large-scale general finite element analysis software at present, can be used for solving the problems of structure, heat, fluid, electromagnetism, acoustics or mutual coupling and the like, and is widely applied to various fields of petrochemical industry, mechanical manufacturing, aerospace and the like. However, in the finite element analysis process, operations such as entity modeling and mesh division need to take a lot of time, and particularly for large and complex finite element models or sequence products, the process is complicated and the efficiency is low. The APDL is an interpretative language special for ANSYS, and can realize parameterization of the whole finite element analysis process by adopting a variable parameterization mode. By simply modifying the parameters, the sequential products with different sizes and different loads can be repeatedly analyzed, and the analysis efficiency is greatly improved. However, the finite element has a high technical threshold, and the problems of insufficient graphical interactivity, insufficient intuition in the analysis process and the like exist in the APDL, so that the parametric command of the finite element analysis can be further encapsulated by using a VB visualization technology, and the ANSYS is secondarily developed. The buried pipeline parametric analysis method can conveniently and quickly perform structural simulation analysis on the buried pipeline, not only reduces the requirement on user finite element knowledge, but also greatly improves the working efficiency of designers.
Disclosure of Invention
The invention aims to provide a buried pipeline parametric analysis method, which parameterizes and visualizes the whole process of buried pipeline simulation analysis, reduces the threshold of using finite elements, improves the efficiency of buried pipeline structure analysis in actual engineering and reduces the cost.
In order to achieve the purpose, the technical scheme of the invention is as follows: a buried pipeline parametric analysis method comprises the following steps:
step S1, starting a VB program, and compiling a buried pipeline parametric analysis system interface;
s2, inputting parameters required by buried pipeline simulation calculation in a VB parameter input interface;
step S3, converting the parameters obtained from VB into APDL language which can be identified by ANSYS, and generating corresponding buried pipeline simulation analysis input command stream files;
step S4, the VB background calls an ANSYS batch processing program and executes the generated input command stream file;
and step S5, returning the ANSYS calculation result to the VB interface.
Further, the buried pipeline parametric analysis system interface in step S1 is specifically: a user login interface, a main interface, a parameter input interface and a result display interface; the user login interface is used for user identification, and all users can log in the system for operation after correctly inputting user names and passwords; the main interface comprises main menus of files, settings, data, results, reports, help and the like, and a user can select the type of the buried pipeline to be analyzed or perform related settings on the interface.
Further, the parameters required by the simulation calculation of the buried pipeline in the step S2 include information of three aspects, namely pipeline information, road information and load information, wherein the pipeline information includes pipeline structure parameters and pipeline material attribute parameters, the road information includes material attribute parameters of each layer of a road, and the load information includes load parameters such as pipeline internal pressure, pipeline temperature difference, vehicle speed and wheel pressure; the input parameters need to ensure that ANSYS can effectively complete the mechanical simulation analysis of the buried pipeline.
Further, the method for converting the parameters obtained from the VB into the APDL language recognizable by ANSYS in step S3 includes: utilizing VB language to correspond parameters input by a user on a VB interface with parameters of an ANSYS command stream, generating a corresponding txt file through a VB text interface for storing APDL commands corresponding to the input parameters, and finally embedding the file into an input command stream file for buried pipeline simulation analysis, wherein key VB codes are as follows:
Open "E: \Pipeline.txt" For Output As #1
Print #1, "*SET,D,"; Format(Text1.Text, "0.000")
wherein, the 'E: \ pipeline.txt' is an APDL command stream file corresponding to the stored input parameter, the 'SET' is a command for assigning values to the parameters named by the user in ANSYS, and finally, the 'input', 'Pipeline', 'txt', 'E:', '0' statement is added in the input command stream file of ANSYS, so that the data transmission between VB and ANSYS can be realized.
Further, the method for calling the ANSYS batch processing program in the VB background in step S4 is as follows: calling ANSYS through a shell () function in VB, wherein the function is used for executing an executable file comprising a x.exe file; and after the ANSYS background is started, automatically reading the generated input command stream file, performing batch processing calculation, and realizing interface connection between VB and ANSYS. The key VB codes are as follows:
Dim X
X = Shell("D:\ANSYS\……\ansys140.exe -b -p ane3fl -dir D:\PipelineAnalysis -j Pipeline -i input.log -o output.log")
wherein: "D: \ ANSYS \ … … \ ANSYS140. exe" is an ANSYS installation path, "-b" is a Simulation Environment for setting ANSYS is ANSYS Batch, "-p" is a product feature code corresponding to ANSYS License, here, ane3fl is used, which is a feature code of a Multiphsis module, "-dir" is a setting work path, "-j" is a setting project file name, "-i" is a command stream file input by ANSYS, and "-o" is a result file output by ANSYS, generally a:.
Further, in step S5, in order to directly view and visually display the buried pipeline simulation result in the VB, a corresponding post-processing command needs to be written in the input command stream file, and the data result to be viewed is stored in the working directory; in addition, in order to comprehensively view the result, the result display interface comprises two categories of straight pipe calculation results and bent pipe calculation results, and each category comprises four parts of viewing graphic results, viewing text results, viewing node result data and generating analysis reports. The method specifically comprises the following steps:
(1) and viewing a graph result: the checking graphical result interface is provided with a checking button of basic mechanical indexes such as displacement, stress and the like, and in order to enable a user familiar with ANSYS operation to further check and analyze a calculation result, the checking graphical result interface is also provided with an ANSYS platform button. The part is mainly to load a graph result obtained by ANSYS post-processing into an Image control of a VB form by using a LoadPicture function in the VB. The key APDL command stream is as follows:
/SHOW,JPEG,,0
PerTLE, content of display in Model! define the Picture header
/POST1
PLNSOL, U, SUM, 0, 1.0! shows a shifted cloud
/SHOW,CLOSE
FINISH
/rename, Pipeline000.jpg, 'D: \\ Pipelineanalysis \ model _ weiyi. jpg' | Picture renaming
The key VB codes are as follows:
Image1.Picture = LoadPicture("D:\PipelineAnalysis\model_weiyi.jpg ")
wherein "D: \ Pipelineanalysis" is the ANSYS working path set.
(2) And viewing the text result: the view text results interface can view an ANSYS results output file that details all executed commands of the ANSYS and related information in the computing process. In addition, the maximum displacement and the maximum stress value of the buried pipeline, the node number corresponding to the maximum displacement and the maximum stress value and the like can be obtained. This section primarily utilizes the RichTextBox control in VB, which overcomes the limitation of the maximum number of characters that a standard TextBox control can enter, which is about 32 KB. The key APDL commands are as follows:
CMSEL, S, CM _ PIPELINE | selecting all nodes of a PIPELINE
CMPLOT
NSORT,S,EQV,
GET, MAX _ SESV, SORT,0, MAX!extracting maximum stress value of pipeline
*CFOPEN,D:\PipelineAnalysis\NodalSolu.txt
CFWRITE, MAX-SEQV = MAX _ SEQV | write the maximum stress value to the file
*CFCLOS
The key VB codes are as follows:
Dim readtext As String
Open "D:\PipelineAnalysis\NodalSolu.txt " For Input As #1
While Not EOF(1)
line Input #1, readtext' read nodal solu
RichTextBox1.Text = RichTextBox1.Text&readtext&vbCrLf
Wend
Close #1
(3) And viewing node result data: when ANSYS calculation results are analyzed, node result data are required to be inquired, but the number of nodes of a finite element model of the buried pipeline is large, if manual inquiry operation is carried out through a GUI interface, the operation is extremely complicated, and the node data are inconvenient to record and store. In addition, the operator sometimes needs to process numerous result data by using software such as Origin, and in this case, ANSYS is further needed to output the node result in a text manner so that the data processing software can further process the node result to obtain the target result.
The get command plays a significant role in ANSYS information retrieval, particularly for batch output of results at post-processing stages. For example, the key APDL command that acquires the node number of the pipe and the displacement value corresponding thereto by using the get command and writes the obtained value into the displacement _ result.txt file is as follows:
*cfopen,displacement_result,txt
*do,j,1,node_num,1
*SET,which_node,A(j)
*get,u_usum,node,which_node,u,sum
*vwrite,which_node,u_usum
(1f10.0,1PE15.5)
*enddo
*cfclose
then, all APDL commands for realizing the node result data output are written into the node _ result and txt, the "/INPUT, the node _ result, txt and D:" PipelineAnalysis "," 1 "commands are added to the post-processing part of the INPUT command stream file of the ANSYS for Batch processing calculation, the extraction and the output of the node result data can be realized, and the node result data can be automatically stored into the display _ result.
In order to visually display the text result in a VB form interface for an operator to check, the part mainly utilizes an MSFlexgrid control in the VB, the control can display and operate grid data, and the problem that the MSHFlexgrid control displays read-only data is solved. The key VB codes are as follows:
y = Array ("," node "," X coordinate "," Y coordinate "," Z coordinate "," X-direction stress "," Y-direction stress "," Z-direction stress "," stress intensity "," equivalent stress ")' header information of the MSFlexGrid table is set
For k = 0 To 9
MSFlexGrid1.TextMatrix(0, k) = y(k)
Next k
Dim j As Integer
For j = 1 To row _ num' corresponding To display node data in MSFlexGrid table unit
MSFlexGrid1.TextMatrix(j, 1) = node_num(j - 1)
……
MSFlexGrid1.TextMatrix(j, 9) = s_seqv(j - 1)
Next j
(4) And (3) generating an analysis report: in practical engineering, besides the need of checking and analyzing the simulation results of ANSYS, an operator also needs to write corresponding analysis reports in some cases. For a particular unit, there are specific requirements for report format and content. However, for the analysis of the sequential products with different sizes or loads, the content of the analysis report is not very different, and if each report is repeatedly written, the workload is large and the efficiency is low. Therefore, in order to save time and static force of an operator so as to be better put into other work, parameters input in a VB interface and result pictures stored in ANSYS analysis are replaced to the required position in a report by utilizing the searching and replacing of VB and the label function of Word, data transmission between the VB and the Word is completed, and the automatic and parameterized generation of the analysis report is realized. After corresponding data is input according to the prompt of the interface, a complete structural analysis report can be automatically generated by clicking a 'generate analysis report' button. The key VB codes are as follows:
DimoWord As Object' definition Word Object
Dim oDoc As Object
Set oWord = CreateObject("Word.Application")
oWord.Visible = Flase
Set oDoc = oWord. documents. open ("D: \ PipelineAnalysis \ buried pipeline analysis report template. docx")
Document text = straight tube calculation result form text1 text
' insertion of values in reports
Saveas (straight tube calculation result form. straight tube report position Text & "\\ straight tube calculation result form. straight tube report name Text &". docx ")' report is saved to the custom path.
Compared with the prior art, the invention has the following beneficial effects: the secondary development is carried out on the ANSYS through Visual Basic visualization technology and ANSYS parameterization technology, the compiled parameter analysis system of the buried pipeline is simple, clear, convenient and fast, a user only needs to input related information such as pipelines, roads, loads and the like on a VB foreground interface, the system can automatically complete finite element simulation calculation of the buried pipeline at the background, and an analysis result is returned to the user. The system not only reduces the requirement on finite element knowledge of an operator, but also can realize finite element analysis of a series of buried pipelines under different models and different working conditions, saves a large amount of time such as modeling and grid division, greatly improves the efficiency of analyzing the structure of the buried pipeline in actual engineering, and reduces the cost.
Drawings
Fig. 1 is a development flow diagram of a buried pipeline parametric analysis system of an embodiment of the present invention.
Fig. 2 is a parameter input interface diagram of a buried pipeline parametric analysis system in an embodiment of the present invention.
Fig. 3 is a diagram of a setup window of a buried pipeline parametric analysis system in accordance with an embodiment of the present invention.
Figure 4 is a graphical result diagram of a buried pipeline parametric analysis system of an embodiment of the present invention.
Fig. 5 is a text result diagram of a buried pipeline parametric analysis system of an embodiment of the present invention.
Fig. 6 is a node result data diagram of a buried pipeline parametric analysis system according to an embodiment of the present invention.
Fig. 7 is a diagram of a generated analysis report of a buried pipeline parametric analysis system of an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is specifically explained below with reference to the accompanying drawings.
The invention provides a buried pipeline parametric analysis method, which is provided with a buried pipeline parametric analysis system, and the development process of the system is shown in figure 1. The buried pipeline parametric analysis method specifically comprises the following steps:
and step S1, starting a VB program, and compiling a buried pipeline parametric analysis system interface. The system interface specifically comprises: the system comprises a user login interface, a main interface, a parameter input interface and a result display interface. The user login interface is used for user identification, and all users can log in the system for operation and use after correctly inputting user names and passwords. The main interface mainly comprises main menus of files, settings, data, results, reports, help and the like, and a user can select the type of the buried pipeline to be analyzed or perform related settings.
And step S2, inputting parameters required by buried pipeline simulation calculation on a VB visual interface. The required parameters mainly comprise information of three aspects, namely pipeline information, road information and load information, wherein the pipeline information comprises pipeline structure parameters and pipeline material attribute parameters, the road information comprises material attribute parameters of each layer of a road, and the load information comprises load parameters such as pipeline internal pressure, pipeline temperature difference, vehicle speed and wheel pressure; the parameter input interface is shown in fig. 2, and the input parameters need to ensure that ANSYS can effectively complete the mechanical simulation analysis of the buried pipeline.
And step S3, converting the parameters obtained from VB into APDL language which can be identified by ANSYS. Corresponding parameters input by a user on a VB interface with parameters of an ANSYS command stream, generating a corresponding txt text file through the VB text interface, storing an APDL command corresponding to the input parameters, and embedding the file into an input command stream of the simulation analysis of the buried pipeline. The key VB codes are as follows:
Open "E: \Pipeline.txt" For Output As #1
Print #1, "*SET,D,"; Format(Text1.Text, "0.000")
wherein "E: \ pipeline.txt" is an APDL command stream file that holds input parameters, and if the specified file does not exist, a new file is created. "SET" is the command in ANSYS that assigns values to the user named parameters. Finally, adding the "/input ', ' Pipeline ', ' txt ', ' E: \ ', ' 0 ' sentences in the input command stream file of ANSYS, and realizing the data transmission between VB and ANSYS.
And step S4, the VB background calls an ANSYS batch processing program and executes the generated APDL command. ANSYS may be called in VB by a shell () function that executes an executable file including a x. After the ANSYS background is started, the APDL command stream file is automatically read in, and batch processing calculation is carried out, so that the interface connection between VB and ANSYS can be realized. The key VB codes are as follows:
Dim X
X = Shell("D:\ANSYS\……\ansys140.exe -b -p ane3fl -dir D:\PipelineAnalysis -j Pipeline -i input.log -o output.log")
wherein: "D: \ ANSYS \ … … \ ANSYS140. exe" is a native ANSYS installation path, "-b" is a Simulation Environment for setting ANSYS is ANSYS Batch, "-p" is a product feature code corresponding to ANSYS License, here, ane3fl is used, the feature code is a feature code of a Multiphsics module, "-dir" is a set working path, "-j" is a set engineering file name, "-i" is an APDL file input by ANSYS, and "-o" is a result file output by ANSYS, generally a:.
In order to make the developed buried pipeline parametric analysis system have universality among different user computers, ANSYS and files need to be set, a setting window is shown in FIG. 3, namely, an ANSYS starting program and a working directory need to be further parameterized, and key VB codes are as follows:
Dim X
x = Shell (ansys sets form. ansys start program. Text & "-b-p ane3 fl-dir" & file sets form. work directory. Text & "-j" & file sets form. item name. Text & "-i" & file sets form. work directory. Text & "& input.log" & "-o" & file sets form. work directory. Text & "& input.log", 1)
And step S5, returning the ANSYS calculation result to the VB interface. In order to directly view and visually display the buried pipeline simulation result in the VB, a corresponding post-processing command needs to be written in an input command stream file, and a data result needing to be viewed is stored in a working directory. In addition, in order to comprehensively view the result, the result display interface comprises two categories of straight tube calculation results and bent tube calculation results, and each category comprises four parts of viewing graphic results, viewing text results, viewing node result data and generating analysis reports. The following mainly takes the straight pipe calculation result as an example, and explains the implementation of the above four functions, specifically as follows:
(1) and viewing a graph result: the view graphic result interface is provided with a view button of basic mechanical indexes such as displacement, stress and the like, and in order to enable a user familiar with ANSYS operation to further view and analyze a calculation result, the view graphic result interface is also provided with a switch-in ANSYS platform button, and the interface is shown in FIG. 4. The part is mainly to load a graph result obtained by ANSYS post-processing into an Image control of a VB form by using a LoadPicture function in the VB. For example, looking at the overall displacement of the pipe and soil during static analysis, the key APDL command flow is as follows:
/SHOW,JPEG,,0
PerTLE, content of display in Model! define the Picture header
/POST1
PLNSOL, U, SUM, 0, 1.0! shows a shifted cloud
/SHOW,CLOSE
FINISH
/rename, Pipeline000.jpg, 'D: \\ Pipelineanalysis \ model _ weiyi. jpg' | Picture renaming
The key VB codes are as follows:
Image1.Picture = LoadPicture("D:\PipelineAnalysis\model_weiyi.jpg ")
wherein "D: \ Pipelineanalysis" is the ANSYS working path set.
(2) And viewing the text result: the view text results interface can view an ANSYS results output file that details all executed commands of the ANSYS and related information in the computing process. In addition, the maximum displacement and the maximum stress value of the buried pipeline and the node number corresponding to the maximum displacement and the maximum stress value can be obtained, as shown in fig. 5. This section primarily utilizes the RichTextBox control in VB, which overcomes the limitation of the maximum number of characters that a standard TextBox control can enter, which is about 32 KB. For example, the key APDL commands to obtain the maximum stress of a pipe are as follows:
CMSEL, S, CM _ PIPELINE | selecting all nodes of a PIPELINE
CMPLOT
NSORT,S,EQV,
GET, MAX _ SESV, SORT,0, MAX!extracting maximum stress value of pipeline
*CFOPEN,D:\PipelineAnalysis\NodalSolu.txt
CFWRITE, MAX-SEQV = MAX _ SEQV | write the maximum stress value to the file
*CFCLOS
The key VB codes are as follows:
Dim readtext As String
Open "D:\PipelineAnalysis\NodalSolu.txt " For Input As #1
While Not EOF(1)
line Input #1, readtext' read nodal solu
RichTextBox1.Text = RichTextBox1.Text&readtext&vbCrLf
Wend
Close #1
(3) And viewing node result data: when ANSYS calculation results are analyzed, node result data are required to be inquired, but the number of nodes of a finite element model of the buried pipeline is large, if manual inquiry operation is carried out through a GUI interface, the operation is extremely complicated, and the node data are inconvenient to record and store. In addition, the operator sometimes needs to process numerous result data by using software such as Origin, and in this case, ANSYS is further needed to output the node result in a text manner so that the data processing software can further process the node result to obtain the target result.
The get command plays a significant role in ANSYS information retrieval, particularly for batch output of results at post-processing stages. For example, the key APDL command that acquires the node number of the pipe and the displacement value corresponding thereto by using the get command and writes the obtained value into the displacement _ result.txt file is as follows:
*cfopen,displacement_result,txt
*do,j,1,node_num,1
*SET,which_node,A(j)
*get,u_usum,node,which_node,u,sum
*vwrite,which_node,u_usum
(1f10.0,1PE15.5)
*enddo
*cfclose
then, all APDL commands for realizing the node result data output are written into the node _ result and txt, the "/INPUT, the node _ result, txt and D:" PipelineAnalysis "," 1 "commands are added to the post-processing part of the INPUT command stream file of the ANSYS for Batch processing calculation, the extraction and the output of the node result data can be realized, and the node result data can be automatically stored into the display _ result.
In order to visually display the text result in a VB form interface for an operator to view, the part mainly utilizes an MSFlexGrid control in the VB, the control can display and operate grid data, and the problem that the MSHFlexGrid control displays read-only data is solved, as shown in FIG. 6. The key VB codes are as follows:
y = Array ("," node "," X coordinate "," Y coordinate "," Z coordinate "," X-direction stress "," Y-direction stress "," Z-direction stress "," stress intensity "," equivalent stress ")' header information of the MSFlexGrid table is set
For k = 0 To 9
MSFlexGrid1.TextMatrix(0, k) = y(k)
Next k
Dim j As Integer
For j = 1 To row _ num' corresponding To display node data in MSFlexGrid table unit
MSFlexGrid1.TextMatrix(j, 1) = node_num(j- 1)
……
MSFlexGrid1.TextMatrix(j, 9) = s_seqv(j - 1)
Next j
(4) And (3) generating an analysis report: in practical engineering, besides the need of checking and analyzing the simulation results of ANSYS, an operator also needs to write corresponding analysis reports in some cases. For a particular unit, there are specific requirements for report format and content. However, for the analysis of the sequential products with different sizes or loads, the content of the analysis report is not very different, and if each report is repeatedly written, the workload is large and the efficiency is low. Therefore, in order to save time and static force of an operator so as to be better put into other work, parameters input in a VB interface and a result picture stored in ANSYS analysis are replaced to a position required in a report by using the searching and replacing of VB and the label function of Word, data transmission between the VB and the Word is completed, the automatic and parametric generation of an analysis report is realized, and an analysis report generating interface is shown in FIG. 7. After corresponding data is input according to the prompt of the interface, a complete structural analysis report can be automatically generated by clicking a 'generate analysis report' button. The key VB codes are as follows:
DimoWord As Object' definition Word Object
Dim oDoc As Object
Set oWord = CreateObject("Word.Application")
oWord.Visible = Flase
Set oDoc = oWord. documents. open ("D: \ PipelineAnalysis \ buried pipeline analysis report template. docx")
Document text = straight tube calculation result form text1 text
' insertion of values in reports
Saveas (straight tube calculation result form. straight tube report position Text & "\\ straight tube calculation result form. straight tube report name Text &". docx ")' report is saved to the custom path.
The above are preferred embodiments of the present invention, and all changes made according to the technical scheme of the present invention that produce functional effects do not exceed the scope of the technical scheme of the present invention belong to the protection scope of the present invention.

Claims (6)

1. A buried pipeline parametric analysis method is characterized by comprising the following steps:
step S1, starting a VB program, and compiling a buried pipeline parametric analysis system interface;
s2, inputting parameters required by buried pipeline simulation calculation in a VB parameter input interface;
step S3, converting the parameters obtained from VB into APDL language which can be identified by ANSYS, and generating corresponding buried pipeline simulation analysis input command stream files;
step S4, the VB background calls an ANSYS batch processing program and executes the generated input command stream file;
and step S5, returning the ANSYS calculation result to the VB interface.
2. The buried pipeline parametric analysis method according to claim 1, wherein the buried pipeline parametric analysis system interface in the step S1 is specifically: a user login interface, a main interface, a parameter input interface and a result display interface; the user login interface is used for user identification, and all users can log in the system for operation after correctly inputting user names and passwords; the main interface includes files, settings, data, results, reports and a main help menu, where the user can select the type of buried pipeline to be analyzed or make relevant settings.
3. The buried pipeline parametric analysis method of claim 1, wherein the parameters required for the simulation calculation of the buried pipeline in the step S2 include information of three aspects, namely pipeline information, road information and load information, wherein the pipeline information includes pipeline structure parameters and pipeline material attribute parameters, the road information includes material attribute parameters of each layer of the road, and the load information includes pipeline internal pressure, pipeline temperature difference, vehicle speed and wheel pressure load parameters; the input parameters need to ensure that ANSYS can effectively complete the mechanical simulation analysis of the buried pipeline.
4. The buried pipeline parametric analysis method of claim 1, wherein the method for converting the parameters obtained from the VB into the APDL language recognizable by ANSYS in the step S3 is as follows: and finally, embedding the file into an input command stream file of buried pipeline simulation analysis to realize data transmission between VB and ANSYS.
5. The buried pipeline parametric analysis method of claim 1, wherein the method for calling ANSYS batch processing program by VB background in step S4 is as follows: calling ANSYS through a shell () function in VB, wherein the function is used for executing an executable file comprising a x.exe file; and after the ANSYS background is started, automatically reading the generated input command stream file, performing batch processing calculation, and realizing interface connection between VB and ANSYS.
6. The buried pipeline parametric analysis method according to claim 1, wherein in step S5, in order to directly view and visually display the simulation result of the buried pipeline in VB, a corresponding post-processing command needs to be written in an input command stream file, and a data result to be viewed is stored in a working directory; in addition, in order to comprehensively view the result, the result display interface comprises two categories of straight pipe calculation results and bent pipe calculation results, and each category comprises four parts of viewing graphic results, viewing text results, viewing node result data and generating analysis reports.
CN201911200108.4A 2019-11-29 2019-11-29 Buried pipeline parametric analysis method Pending CN110909504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911200108.4A CN110909504A (en) 2019-11-29 2019-11-29 Buried pipeline parametric analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911200108.4A CN110909504A (en) 2019-11-29 2019-11-29 Buried pipeline parametric analysis method

Publications (1)

Publication Number Publication Date
CN110909504A true CN110909504A (en) 2020-03-24

Family

ID=69820672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911200108.4A Pending CN110909504A (en) 2019-11-29 2019-11-29 Buried pipeline parametric analysis method

Country Status (1)

Country Link
CN (1) CN110909504A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783245A (en) * 2020-06-23 2020-10-16 武汉钢铁有限公司 Parametric analysis system of finite element program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715123A (en) * 2015-04-09 2015-06-17 华东交通大学 VB-based parametric design method for crane roller
CN104778310A (en) * 2015-03-27 2015-07-15 广东石油化工学院 Stress calculation and safety assessment method for spherical tank on differential settlement ground
CN107145686A (en) * 2017-06-06 2017-09-08 中国核电工程有限公司 A kind of method that utilization AutoCAD creates support ANSYS finite element analysis models

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778310A (en) * 2015-03-27 2015-07-15 广东石油化工学院 Stress calculation and safety assessment method for spherical tank on differential settlement ground
CN104715123A (en) * 2015-04-09 2015-06-17 华东交通大学 VB-based parametric design method for crane roller
CN107145686A (en) * 2017-06-06 2017-09-08 中国核电工程有限公司 A kind of method that utilization AutoCAD creates support ANSYS finite element analysis models

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
钱春香 等: "《混凝土体积稳定性和抗裂性理论与技术》", 东南大学出版社 *
魏巍 等: "管道应力计算机参数化分析平台开发研究", 《应用奇葩》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783245A (en) * 2020-06-23 2020-10-16 武汉钢铁有限公司 Parametric analysis system of finite element program

Similar Documents

Publication Publication Date Title
US10162611B2 (en) Method and apparatus for business rule extraction
US9904746B2 (en) System and method for autogenerating simulations for process control system checkout and operator training
US8577652B2 (en) Spreadsheet-based graphical user interface for dynamic system modeling and simulation
US20130218924A1 (en) Method of providing data included in building information modeling data file, recording medium therefor, system using the method, and method of providing data using building information modeling server
US20120226967A1 (en) Spreadsheet-Based Graphical User Interface for Modeling of Products Using the Systems Engineering Process
CN103678120A (en) Automatic web-application testing method based on modeling
Moyroud et al. Introduction to QGIS
Dobesova Visual programming language in geographic information systems
US7958073B2 (en) Software and methods for task method knowledge hierarchies
US20060136471A1 (en) Differential management of database schema changes
JP7055064B2 (en) Database migration support system and program
CN114741360A (en) Automobile part file reconstruction method and device, terminal equipment and storage medium
CN110909504A (en) Buried pipeline parametric analysis method
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
CN116932393A (en) Model checking method based on rule engine and low-code rule modeling
CN111008011A (en) System builder for power platform application development
Lawhead QGIS Python Programming Cookbook
CN113190304B (en) File information display method and device, computer equipment and storage medium
Bocevska et al. An example of application design using solidworks application programming interface
CN114281797A (en) Method for quickly creating basic level data aggregation warehouse based on agile low-code platform
KR100656559B1 (en) Program Automatic Generating Tools
US11526336B2 (en) Community-oriented, cloud-based digital annealing platform
Crain Simulation with GPSS/H
CN110637522B (en) Control law gain model automatic generation method and system
CN116804982A (en) Modeling processing method and system for multi-source shaft data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324