Recognition of Standard Formulas for Engineering Structure Design and Automatic Generation of Calculation Programs
A calculation program and formula recognition technology, applied in calculation, software design, program code conversion, etc., can solve problems such as increased difficulty, multiple versions, and multiple content
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] like figure 2 As shown, the first portion of the code generation method provided in this embodiment includes the following steps:
[0047] For a specification of Word format, first use the P program to format it;
[0048] Then use open source software DOC2TEX to convert the specification of the Word format into plain text format;
[0049]Further, use the program to process the specification of the obtained plain text format, delete some extra renewal of keywords and symbols;
[0050] Finally, use the program to scan the full text, mainly looking for the "$" keyword, and list the formula one one by one.
Embodiment 2
[0052] like image 3 As shown, the second portion of the code generation method provided in this embodiment includes the following steps:
[0053] For all formulas in the already obtained specification, use the program to scan, mainly looking for "\" keywords, and various special symbols outside the bracket, the upper mark, the subscript number, listing the variable names used in the formula one by one;
[0054] Then, the formula is connected to the variable name in the database; for each new variable name, set the formula to the variable name in the database in the database. ;
[0055] Finally, use the program to scan the full text, mainly looking for the variable name of the library in text, and contact the text near the variable name in the database; for the length of the length, may be other variable names or The variable name of the substring of the text needs to be identified by the characters before and after it.
Embodiment 3
[0057] like Figure 4 As shown, the third portion of the code generation method provided in this embodiment includes the following steps:
[0058] All formulas in the specification have been obtained, and the program is rewritten, and the format of the programming language used to comply with the proposed computing program is rewritten;
[0059] Through logical relationships, such as the left side of the formula is often an output variable, the right side of the formula is often an input variable, and the logical relationships of all formulas;
[0060] According to the logical relationship, the input variable, output variable, intermediate variables are organized;
[0061] Generate source code for computing programs using a certain programming language based on the logical relationships of known variables and formulas;
[0062] Compile the source code generated by the above steps to generate a calculation program.
[0063] In summary, the engineering structure design standard formu...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


