Automatic simulation analysis method and system
By using automated simulation analysis methods and leveraging dictionary libraries and standard macro code libraries to automatically transfer parameters, the problems of repetitive work and high human error rates in injection molding machine template simulation have been solved. This has enabled efficient and accurate simulation analysis, improving product quality and production efficiency.
Patent Information
- Application Number
- CN202511446133.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-11
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2045-10-11
AI Technical Summary
The existing injection molding machine template simulation process suffers from problems such as repetitive work, high human error rate, and inconsistent evaluation standards, resulting in low efficiency and unstable product quality.
By using automated simulation analysis methods, parameters are automatically passed through a dictionary and standard macro code library to automatically parse stress cloud map data and output compliant results. This includes the collaborative work of a preprocessing module, a parameter verification module, a code generation module, a solution control module, and a post-processing module.
It improves the efficiency and accuracy of simulation analysis, reduces human error, and ensures the consistency of the evaluation process and the stability of product quality.
Smart Images

Figure CN120930288A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided engineering analysis, and in particular to an automated simulation analysis method and system. Background Technology
[0002] Currently, simulation analysis of injection molding machine templates is a crucial step in ensuring product quality and production efficiency during the injection molding process. However, current injection molding machine template simulation processes have some significant shortcomings. First, the current simulation process requires engineers to manually and repeatedly build geometric models in structural mechanics analysis software (such as ANSYS). This step accounts for more than 80% of the repetitive work in simulation experiments, wasting a significant amount of time and human resources and significantly increasing labor costs.
[0003] Secondly, due to the complexity and intricacy of simulation experiments, various errors can occur during operation, such as incorrect settings of material properties and boundary conditions. These problems not only affect the accuracy of simulation results but may also lead to design flaws or production failures. Especially in scenarios requiring extensive simulation experiments, the risk of human error is further increased, which not only increases the time and cost of modification and repair but may also seriously affect the final quality of the product.
[0004] Furthermore, FKM (Forschungskuratorium Maschinenbau Strength Analysis and Evaluation) guidelines are typically conducted based on specific rules and guidelines. However, in practice, different engineers may have different understandings and implementation standards, leading to significant differences in evaluation results. This inconsistency in the implementation of evaluation standards not only affects the reliability of simulation test results but also reduces overall work efficiency and the stability of product quality. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide an automated simulation analysis method and system to solve the technical problems in the prior art, such as low efficiency of repetitive operations, high error rate of manual operation, and inconsistent evaluation standards.
[0006] To achieve the above objectives, one aspect of the present invention provides an automated simulation analysis method, comprising: S1: Read the required parameters input from the visual interface and verify the compliance of the parameters; S2: Once compliance verification is passed, call the dictionary library and standard macro code library; S2.1: The dictionary database converts the parameters from the visual interface into actual input values and performs validation. S2.2: The standard code library performs code variable substitution, replacing the placeholder reminders in the code variables with the actual input values mapped by the dictionary library according to the required parameters, and then generating the code. S3: Call the analysis system solver and inject the generation code. After starting the calculation, the program will execute automatically and obtain stress contour map data upon completion. S4: Analyze stress cloud map data and output compliance strength analysis and evaluation calculation results data.
[0007] Based on the above embodiments, in step S1, the parameters include machine model, and / or tonnage, and / or clamping force, and / or opening force, and / or material, and / or template in the default storage location.
[0008] Based on the above embodiments, in step S1, the parameters also include intensity analysis and evaluation parameters.
[0009] Based on the above embodiments, in step S1, the compliance of the verification parameters includes data type checking and / or range verification.
[0010] Based on the above embodiments, in step S2, the standard macro code library is used for geometric modeling and / or mesh generation and / or load setting analysis system parametric design language.
[0011] Based on the above embodiments, in step S3, the injected generation code is to integrate the generation code into the solution process.
[0012] Based on the above embodiments, the dictionary includes a mapping rule table between input parameters and code variables. The mapping rule table is formulated based on a set of rules that associate and transform the variables or fields of the actual input parameters after they have been transformed by the dictionary with the corresponding variables in the standard code library.
[0013] Based on the above embodiments, in step S4, parsing the data includes: The stress cloud map data is analyzed to obtain the first calculation result data. The first calculation result data is fed back to the visualization interface to determine whether there are any calculation result data exceeding the standard, and corresponding prompts are given to remind the user to input the value that needs to be calculated accurately into the visualization interface. When the value is entered again, a second analysis is performed. The second analysis is: based on the first calculation result data, the unqualified data parameters are evaluated for a second time by strength analysis to obtain the calculation result data, which is then viewed in the visualization interface.
[0014] Another aspect of the present invention provides an automated simulation analysis system that applies the above-described automated simulation analysis method, comprising: The preprocessing module is used to read the template parameters input from the visual interface; The parameter validation module verifies the compliance of the input parameters; The code generation module is used to call the pre-stored standard macro code library, perform variable replacement on the template parameters read from the visual interface, replace the placeholder prompts with the actual input values and generate code; The solver control module is used to automatically start the solver of the analysis system and inject the code generated by the code generation module, and to monitor the solver progress and error codes. The post-processing module analyzes the stress cloud map data obtained from the solution control module and generates compliance results according to the strength analysis and evaluation parameter standards.
[0015] Compared with existing technologies, this invention has beneficial effects. This invention can automate parameter transmission through macro code libraries and dictionary libraries, establish standardized strength analysis and evaluation processes, and solve the problems of low efficiency due to repetitive labor and poor reliability of manual operation in existing technologies. Attached Figure Description
[0016] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating the automated simulation analysis method according to an embodiment of the present invention.
[0018] Figure 2 This is a visual interface diagram of an embodiment of the present invention.
[0019] Figure 3 This is a schematic diagram of a preprocessing module according to an embodiment of the present invention.
[0020] Figure 4 This is a schematic diagram of a code generation module according to an embodiment of the present invention.
[0021] Figure 5 This is a schematic diagram of a solution control module according to an embodiment of the present invention.
[0022] Figure 6 This is a schematic diagram of a post-processing module according to an embodiment of the present invention.
[0023] Figure 7 This is a schematic diagram illustrating the re-evaluation of parameter adjustments in one embodiment of the present invention. Detailed Implementation
[0024] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0025] The components of the embodiments of the invention described and shown in the accompanying drawings can typically be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention.
[0026] Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0028] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0029] One aspect of this invention provides an automated simulation analysis method, such as... Figure 1 ,include: S1: Read the required parameters input from the visual interface and verify the compliance of the parameters; S2: Once compliance verification is passed, the dictionary library and standard macro code library are invoked; S2.1: The dictionary database converts the parameters from the visual interface into actual input values and performs validation. S2.2: The standard macro code library performs code variable substitution, replacing the placeholder reminders in the code variables with the actual input values mapped by the dictionary library for the required parameters, and then generating the code. S3: Call the analysis system solver and inject the generation code. After starting the calculation, the program will execute automatically and obtain stress contour map data upon completion. S4: Analyze stress cloud map data and output compliance calculation results.
[0030] As can be seen, the method described in the embodiments of the present invention can achieve automated parameter transmission, automatic parsing of stress cloud map data, and output of compliance results through a dictionary library and a standard macro code library.
[0031] As an optional embodiment, such as Figure 2 The parameters in the visualization interface include machine model, and / or template type, and / or tonnage, and / or FKM.deff (equivalent damage parameter for strength analysis assessment), and / or FKM.Kp (correction factor in fatigue analysis), and / or mold opening force ratio and material.
[0032] In step S1, as Figure 2 , Figure 2 Select machine model PA, tonnage 200, and clamping force 2000KN at position 1. Select the template we want to analyze from the templates in the default storage path and enter the mold opening force 15%. Since this is the first round of initial analysis, set FKM.deff to 250 and FKM.Kp to 1.
[0033] The automated simulation system reads the required parameters input from the visualization interface and verifies the compliance of the parameters, including data type checks and / or range verification. Data type checks can be numerical checks, checking whether the value is a number, not a string, null, etc.; range verification can be based on specification restrictions or physical reasonableness to verify the compliance of the parameters.
[0034] By performing the above operations, we can ensure that the parameters read by the automated simulation system are always compliant and proceed to the next step.
[0035] Specifically, such as Figure 2 In step S2, Figure 2 At position 2, the automated simulation system automatically retrieves the mapping rule table from the "dictionary" based on the input parameters at position 1, finds the matching information, converts it into the actual input value, and feeds it back. Figure 2 There are 2 winning bids.
[0036] The dictionary includes a mapping rule table between input parameters and code variables. The mapping rule table is a set of rules that associate and transform the variables or fields of the actual input parameters after they have been transformed by the dictionary with the corresponding variables in the standard code library. The automated simulation system first calls the dictionary to retrieve the mapping rule table, transforms the interface parameters according to the mapping rule table, and then verifies them.
[0037] Furthermore, the standard macro code library is invoked to replace the placeholder hints with actual input values. The placeholder hints are template tags or variable names used for dynamic replacement; this replacement process is automatically completed by the automated simulation system, replacing the values with actual input values. The standard macro code library includes APDL scripts (parametric design language for analysis systems) for geometric modeling, mesh generation, and load setting. The standard macro code library was developed using extensive Python code editing techniques, undergoing extensive debugging and adjustments based on actual needs. It adopts an object-oriented programming paradigm, improving reusability to over 90%.
[0038] Step S2 is completed automatically by the automated simulation analysis system, requiring no manual operation.
[0039] Furthermore, in step S3, the ANSYS (analysis system) solver is started and the generated code is injected. The automated simulation analysis system automatically integrates the generated code into the solution process and automatically executes the program calculation without manual operation.
[0040] Specifically, step S3 also includes a monitoring system, which includes process response detection, such as 30-second timeout determination, initialization error capture, dynamic memory usage tracking, and error code detection. Further, in step S4, data parsing includes parsing stress cloud map data and generating FKM (Strength Analysis and Assessment) compliance assessment data results.
[0041] The complete simulation analysis process of this invention was executed from S1 to S4, yielding the first FKM compliance assessment data results. The system feeds back the assessment results to the interface and automatically determines whether the data contains any exceedances known to those skilled in the art. Users can open the calculation results to view the actual location, analyze, and determine the values that need to be calculated precisely.
[0042] like Figure 2 As shown, Figure 2 At position 3, the query shows a static strength utilization rate of 110% (the results displayed are from calculations used for strength analysis and evaluation; some data is omitted from the accompanying diagrams in the manual). Clearly, a static strength utilization rate of 110% is impossible. Therefore, the precise calculated values FKM.deff (set to 250) and FKM.Kp (set to 1) need to be entered into... Figure 2 There are 4 winning bids; Figure 2 Click "Start Evaluation" at point 4 (the number in the original text). The system will then perform a second analysis, repeating steps S2 and S3 to generate the calculation results. Users can view the final calculation results in the visualization interface; this completes the process.
[0043] During operation, the automated simulation system reads parameters input from the visual interface (such as machine model, tonnage, clamping force, and opening force, as well as FKM evaluation parameters) to ensure these parameters meet system requirements. It then calls upon the dictionary and standard macro code library to perform variable substitution, specifically replacing placeholders with actual input values. The automated simulation system starts the ANSYS solver and injects the generated code to begin calculations. After calculation, it parses the data and outputs compliant results. The automated simulation system first verifies the compliance of input parameters to ensure data correctness, then performs variable substitution using the dictionary and standard macro code library, and finally starts the ANSYS solver for simulation calculations, automatically outputting compliant simulation results. This improves the efficiency of the injection molding machine template simulation process, eliminating the need for manual repetitive creation of geometric models, setting attributes and conditions, and significantly increasing the speed of a single analysis.
[0044] Another aspect of the present invention provides an automated simulation analysis system that applies the automated simulation analysis method described in the above embodiments, including: The preprocessing module is used to read the template parameters input from the visual interface; The parameter validation module verifies the compliance of the input parameters; The code generation module is used to call the pre-stored standard macro code library, perform variable replacement on the template parameters read from the visual interface, replace the placeholder prompts with the actual input values and generate code; The solver control module is used to automatically start the solver of the analysis system and inject the code generated by the code generation module, and to monitor the solver progress and error codes. The post-processing module analyzes the stress cloud map data obtained from the solution control module and generates compliance results according to the strength analysis and evaluation parameter standards.
[0045] The various modules of the automated simulation system work collaboratively. First, the preprocessing module reads the injection molding machine template parameters input from the visualization interface. Second, the parameter verification module performs compliance checks on the read parameters to ensure that the parameters used in the simulation are valid and error-free. Then, the code generation module calls the dictionary library and standard macro code library, performs variable substitution to replace the placeholder reminders with the actual input values, and generates specific simulation code. The solution control module works by automatically starting the ANSYS solver, injecting the generated code, and monitoring the solution process to ensure the smooth progress of the simulation analysis. If errors are encountered, they are promptly reported. Finally, the post-processing module parses the stress cloud map data, generates compliance results based on the strength analysis and evaluation parameters, and feeds them back to the visualization interface for a clear and intuitive display of the results.
[0046] Example 1: As Figure 2 Taking the "PA200 SPI standard template" as an example 1. Input the required parameters through the visual interface. exist Figure 2 Select machine model PA, tonnage 200, clamping force 2000KN at the first position, select the path of the new implementation template, and enter the mold opening force 15%; since this is the first round of preliminary analysis (it may only be once), set FKM.deff to 250 and FKM.Kp to 1 (the most stringent / largest margin evaluation parameters) in the evaluation parameter position.
[0047] 2. In Figure 2 At point 2, the automated simulation system automatically retrieves the mapping rule table from the "dictionary" based on the input parameters at point 1, finds the matching information, and feeds it back. Figure 2 There are 2 winning bids.
[0048] 3. Generate new code Based on the key information in step 2, call the pre-stored standard macro code library; Perform variable substitution, replacing the placeholder suggestions with the actual input values to obtain the generated code.
[0049] 4. Solve The automated simulation system automatically starts the ANSYS solver and injects the generated code, then automatically executes the program calculations.
[0050] 5. Feedback Results Finally, the calculation results are fed back and returned to the system. Figure 2 There are 3 winning bids.
[0051] like Figure 2 Position 4 indicates an exceedance. Open the calculation results to view the actual location, check and determine the value requiring precise calculation. The static utilization rate is found to be 110% (the results display shows calculation results used for strength analysis and assessment; some data is omitted in the accompanying diagram). Input the value requiring precise calculation into... Figure 2 There are 4 winning bids.
[0052] Click Figure 2 The program will start evaluation at position 4 and return the new calculation results to position 3, thus concluding the process.
[0053] This application provides an automated simulation analysis method and system that, through the design of "standard macro code + variable dictionary," enables input parameters to be automatically converted into generated code, allowing even non-technical personnel to operate it, thus overcoming the technical barrier of traditional methods that require modification of script code. This application integrates preprocessing (parameter input), solver invocation, and post-processing evaluation into a single workflow, forming a closed-loop system that achieves automatic variable replacement and visual interaction, resulting in highly efficient, simple, and error-free operation.
[0054] This application introduces macro code and variable substitution techniques to automate parameter passing. Users only need to input parameters into the visual interface, and the automated simulation system automatically initiates the subsequent workflow, significantly reducing repetitive work and improving efficiency and accuracy. The macro code library also allows for extensive Python code editing, integrating various injection molding machine templates, enabling analysis of multiple injection molding machine template types through the automated simulation analysis system. By establishing a standardized FKM evaluation process, the standardization and consistency of the evaluation process are improved. The developed visual interface design, such as... Figure 2 This lowers the barrier to entry for users, enabling even non-technical personnel to operate and perform simulation analysis. Secondly, the technical solution in this application is largely completed by an automated simulation system, reducing human error and significantly improving efficiency and accuracy. The time required for a single analysis is also correspondingly reduced, decreasing time costs and achieving an integrated and efficient process from parameter input to result evaluation.
[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An automated simulation analysis method, characterized in that, include: S1: Read the required parameters input from the visual interface and verify the compliance of the parameters; S2: Once compliance verification is passed, call the dictionary library and standard macro code library; S2.1: The dictionary database converts the parameters from the visual interface into actual input values and performs validation. S2.2: The standard code library performs code variable substitution, replacing the placeholder reminders in the code variables with the actual input values mapped by the dictionary library according to the required parameters, and then generating the code. S3: Call the analysis system solver and inject the generation code. After starting the calculation, the program will execute automatically and obtain stress contour map data upon completion. S4: Analyze stress cloud map data and output the calculation results of compliance strength analysis and evaluation.
2. The automated simulation analysis method according to claim 1, characterized in that, In step S1, the parameters include machine model, and / or tonnage, and / or clamping force, and / or opening force, and / or material, and / or template in the default storage location.
3. The automated simulation analysis method according to claim 2, characterized in that, In step S1, the parameters also include strength analysis and evaluation parameters.
4. The automated simulation analysis method according to claim 1, characterized in that, In step S1, the compliance of the verification parameters includes data type checking and / or range verification.
5. The automated simulation analysis method according to claim 1, characterized in that, In step S2, the standard macro code library includes a parametric design language for analysis systems for geometric modeling and / or mesh generation and / or load setting.
6. The automated simulation analysis method according to claim 1, characterized in that, In step S3, injecting the generated code means integrating the generated code into the solution process.
7. The automated simulation analysis method according to claim 1, characterized in that, The dictionary includes a mapping rule table between input parameters and code variables. The mapping rule table is a set of rules that associate and transform the variables or fields of the actual input parameters after they have been transformed by the dictionary with the corresponding variables in the standard code library.
8. The automated simulation analysis method according to claim 1, characterized in that, In step S4, the parsed data includes: The stress cloud map data is analyzed to obtain the first calculation result data. The first calculation result data is fed back to the visualization interface to determine whether there are any calculation result data exceeding the standard, and corresponding prompts are given to remind the user to input the value that needs to be calculated accurately into the visualization interface. When the value is entered again, a second analysis is performed. The second analysis is: based on the first calculation result data, the unqualified data parameters are evaluated for a second time by strength analysis to obtain the calculation result data, which is then viewed in the visualization interface.
9. An automated simulation analysis system, characterized in that, The automated simulation analysis method according to any one of claims 1-8 is applied, comprising: The preprocessing module is used to read the template parameters input from the visual interface; The parameter validation module verifies the compliance of the input parameters; The code generation module is used to call the pre-stored standard macro code library, perform variable replacement on the template parameters read from the visual interface, replace the placeholder prompts with the actual input values and generate code; The solver control module is used to automatically start the solver of the analysis system and inject the code generated by the code generation module, and to monitor the solver progress and error codes. The post-processing module analyzes the stress cloud map data obtained from the solution control module and generates compliance results according to the strength analysis and evaluation parameter standards.
Citation Information
Patent Citations
Platform-spanning simulation model development method and system
CN104598240A
Application method of parametric simulation in safety assessment of bridge grab ship unloader
CN104915526A
Automatic code programming method
CN120335783A
MATLAB working condition prediction and ANSYS matching surface creep analysis method
CN120671294A
Truck bogie side frame / swing bolster CAD / CAE (computer-aided design / computer-aided engineering) integration method and system
CN120706192A