A virtual prototype modeling verification method based on hierarchical diagnosis and feedback correction

By establishing an object mapping table and performing hierarchical diagnosis in Adams multibody dynamics simulation software, the semantic mapping, execution, and verification discontinuity issues in the virtual prototype modeling process were resolved, ensuring the accuracy of simulation results and the integrity of the model structure, and enabling the reuse of experience across tasks.

CN123157328APending Publication Date: 2026-11-24CHINA UNIV OF MINING & TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611395557.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In the virtual prototype modeling process of the existing Adams multibody dynamics simulation software, the semantic mapping gap between natural language and database objects, the execution gap of the execution environment, and the verification gap of model simulation results have not been effectively resolved, resulting in the model structure being easily destroyed and the simulation results being inaccurate.

Method used

A hierarchical diagnosis and feedback correction method is adopted. An object mapping table between natural language objects and internal database objects of the target simulation software is established through a large language model. The database object paths are verified item by item. Engineering evidence is collected in the real execution environment for hierarchical diagnosis, and the final executable script is generated and local corrections are made.

Benefits of technology

This ensures that database object references are accurate and that simulation results meet theoretical requirements, reduces the risk of model structure corruption, improves the accuracy of simulation results, and enables the reuse of experience across tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157328A_ABST
    Figure CN123157328A_ABST
Patent Text Reader

Abstract

This invention discloses a virtual prototype modeling verification method based on hierarchical diagnosis and feedback correction, comprising: acquiring engineering task input and encapsulating it into an initial engineering task data package; performing task planning using a large language model to generate a task planning sequence and establishing an object mapping table between natural language objects and objects in the target simulation software's internal database; generating candidate executable scripts based on the task planning sequence and the object mapping table; importing the scripts into a real execution environment for simulation; collecting engineering evidence generated during real execution; performing hierarchical diagnosis based on the engineering evidence, sequentially diagnosing the syntax layer, object layer, constraint layer, unit layer, and physical result layer; for states that fail verification, generating local corrections only for the current failure level and updating the script for iterative verification; and for states that pass verification, outputting the final executable script, model file, and engineering evidence. This invention improves the verification efficiency and process traceability of virtual prototype modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of virtual prototype modeling and multibody system kinematics simulation technology, specifically a virtual prototype modeling verification method based on hierarchical diagnosis and feedback correction. Background Technology

[0002] Multibody system kinematics and virtual prototyping technology are widely used in the design of complex mechanical systems such as industrial machinery, equipment systems, and robots. Adams is a professional multibody system dynamics simulation software. Its modeling process involves the creation, hierarchical referencing, and parameter configuration of database objects such as Part, Marker, Joint, Motion, Coupler, and Measure, and requires handling technical details such as reference coordinates, constraint directions, angles, and angular velocity units. Because software database objects typically have multi-level naming structures, names in natural language such as "sun gear," "driven gear," or "angular velocity measurement object" cannot directly correspond to complete object paths.

[0003] In the prior art, Chinese patent CN118034659B discloses a method for automatically generating CAE simulation programs, which uses a large language model to generate simulation code. However, the CAE software targeted by this method (such as Abaqus and ANSYS) adopts a file-based input format, and its object references use a flat numbering system, which does not require handling the path mapping and verification of multi-level database objects. The execution environment also does not require manual confirmation of database objects item by item in the graphical interface. In contrast, professional multibody dynamics software such as Adams adopts a collaborative operation mode between the graphical interface and the internal database. Script commands directly manipulate database objects in memory, and object references must use complete hierarchical paths. Moreover, the same natural language name may have multiple candidate options in the database, which must be verified item by item through interface tools such as DatabaseNavigator. In addition, the execution of candidate scripts in the real environment is also affected by software version, plug-in status, command import method, and local file directory; the model's ability to complete the simulation does not necessarily mean that the result is correct. Incorrect constraint direction, incorrect unit conversion, or incorrect measurement axis can all lead to numerical distortion. The above problems do not exist in the CAE software environment characterized by file-based input. Therefore, the CN118034659B solution cannot be directly migrated to the virtual prototype modeling scenario of Adams-like professional multibody dynamics simulation software.

[0004] Furthermore, existing Adams modeling technologies (such as CN108984845B and CN109190266B) all rely on manual completion of all modeling operations, without addressing script generation and closed-loop verification for large language models. Scripts, logs, models, and screenshots from each round are stored in a scattered manner, lacking a unified state determination and evidence archiving mechanism. Verified model structures are easily destroyed during modifications, and experience gained from individual tasks is difficult to transfer to new modeling tasks. Summary of the Invention

[0005] The purpose of this invention is to provide a virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction, so as to solve the problems mentioned in the background art.

[0006] To achieve the above objectives, the present invention provides the following technical solution:

[0007] A virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction includes:

[0008] (1) Obtain the engineering task input and encapsulate the engineering task input into an initial engineering task data packet;

[0009] (2) The initial engineering task data package is planned by the large language model to generate a task planning sequence containing multiple operation units with sequential dependencies;

[0010] (3) Establish an object mapping table between natural language objects and internal database objects of the target simulation software based on the large language model;

[0011] (4) Generate candidate executable scripts for the current round based on the task planning sequence and the object mapping table;

[0012] (5) Import the candidate executable script into the actual execution environment of the target simulation software, and run the simulation task after the operator confirms the database object path;

[0013] (6) Collect engineering evidence generated during the execution of candidate executable scripts in the actual execution environment;

[0014] (7) Perform layered diagnosis on the candidate executable scripts based on the engineering evidence. The layered diagnosis is performed in the order of syntax layer, object layer, constraint layer, unit layer and physical result layer. The current layer can only enter the next layer after it passes the verification. Determine the engineering status of the candidate executable scripts in the current round based on the layered diagnosis results. For the state that fails the verification, only generate a local correction amount for the current failure level and update the candidate executable scripts. Then jump to step (5) for iterative verification. For the state that passes the verification, output the final executable script, the final model file and the engineering evidence.

[0015] As a further aspect of the present invention: the engineering task input in step (1) includes mechanism model parameters, motion and drive parameters, simulation and verification parameters, and submission specifications.

[0016] As a further aspect of the present invention: the task planning in step (2) further includes: performing theoretical verification on the initial engineering task data package by the large language model, the theoretical verification including verification of geometric parameters and assembly relationship, motion and coordinate verification, verification of the uniqueness of theoretical target, verification of unit consistency and verification of measurement object consistency; if any verification fails, a parameter supplementation request is generated and the process returns to step (1).

[0017] As a further aspect of the present invention: the object mapping table in step (3) includes object name, object type, complete database path and path verification status; the path verification status includes: pending planning status, verified status, pending verification status and invalid status.

[0018] As a further solution of the present invention: the generation of candidate executable scripts in step (4) adopts the principle of minimum script priority and step-by-step stacking of modules. First, the minimum smoke test script for verifying the script import link is generated. Then, according to the passed pre-operation units, the model creation module, component and geometric model creation module, reference coordinate system and kinematic pair creation module, object information export and path verification module, drive input module, measurement object module, motion constraint module, simulation setting module and result saving module are stacked in sequence.

[0019] As a further aspect of the present invention: the operator confirming the database object path in step (5) includes: the operator verifying the complete path of the database object item by item through the database object tree or database navigator of the target simulation software; if the script execution is interrupted, the error message is recorded and log evidence is collected.

[0020] As a further aspect of the present invention: the engineering evidence in step (6) includes: running logs, model files, interface screenshots, measurement results, script static self-check records, software message window information, actual simulation termination time, and actual simulation steps; the engineering evidence establishes an independent storage directory for each iteration according to standardized archiving rules; for engineering evidence that has not been generated, the reason for its absence is marked in the evidence directory.

[0021] As a further aspect of the present invention: the engineering state in step (7) includes a basic execution abnormal state, a partial completion state, and a verification passed state; the basic execution abnormal state is that there is an abnormality in the syntax layer or the object layer; the partial completion state is that the syntax layer and the object layer pass verification, but there is an abnormality in the constraint layer, the unit layer, or the physical result layer; the verification passed state is that the syntax layer, the object layer, the constraint layer, the unit layer, and the physical result layer all pass verification, and the simulation process is complete, the target output meets the theoretical requirements, and the engineering evidence is complete.

[0022] As a further aspect of the present invention: the generation of local correction amounts only for the current failure level in step (7) includes: when there is an anomaly in the syntax layer, correcting the command format; when there is an anomaly in the object layer, reconfirming and binding the real object path; when there is an anomaly in the constraint layer, adjusting the constraint topology while retaining the verified model; when there is an anomaly in the unit layer, correcting the unit conversion relationship; when there is an anomaly in the physical result layer, correcting the measurement object or related configuration according to the running results.

[0023] As a further aspect of the present invention, it also includes: storing the project directory, script management method, object path confirmation method, status determination method, unit processing method, and project evidence archiving rules formed in the completed task as a template configuration, which is used for subsequent virtual prototype modeling and verification tasks to call.

[0024] Compared with the prior art, the beneficial effects of the present invention are:

[0025] 1. This invention addresses the semantic mapping gap between natural language and simulation software database objects in existing technologies. By establishing an object mapping table that includes object name, type, complete path, and verification status, and manually verifying each path in a real software environment, this invention ensures that every database object referenced by the script is accurate, thereby eliminating the semantic mapping gap.

[0026] 2. This invention addresses the execution gap between candidate scripts and the actual execution environment. It imports candidate scripts into a real Adams / View environment for execution, collects engineering evidence such as running logs, model files, and interface screenshots, and uses the actual execution results rather than static script text as the judgment basis. This allows the correct execution of the script to be verified by the real environment, thereby eliminating the execution gap.

[0027] 3. This invention addresses the verification gap that exists when a model can run but the simulation results are physically incorrect. This invention performs layered diagnosis in five levels: syntax layer, object layer, constraint layer, unit layer, and physical result layer. Only after passing the current layer can the next layer be entered, accurately locating the cause of failure and ensuring that the simulation results are correct not only at the syntax and object levels, but also at the constraint topology, unit conversion, and physical output levels, thereby eliminating the verification gap.

[0028] 4. This invention addresses the problems of scattered storage of scripts, logs, models, and screenshots across iterations, difficulties in error localization, and the susceptibility of verified structures to corruption. It establishes an independent storage directory for each iteration and performs localized corrections only at the current failure level for states that fail verification, while retaining all verified model objects and script structures. This achieves precise error localization, avoids overall reconstruction, and forms a traceable and complete chain of engineering evidence. After the first task is completed, the object mapping management method, state determination rules, unit processing flow, and evidence archiving specifications can be encapsulated as template configurations for subsequent tasks, reducing the completion time of subsequent tasks to one-fifth of the first task and enabling cross-task experience reuse. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of the hierarchical diagnosis and closed-loop correction mechanism of the present invention;

[0030] Figure 2 This is a schematic diagram of the interactive interface of the present invention.

[0031] Figure 3 This is a framework diagram for the collaborative implementation of artificial-in-the-loop in this invention;

[0032] Figure 4 This is a flowchart of the closed-loop execution algorithm of the present invention;

[0033] Figure 5 A diagram illustrating the phased progress of the human-machine collaborative modeling task;

[0034] Figure 6 This is a simplified flowchart of the overall process of the present invention;

[0035] Figure 7 This is a virtual prototype modeling diagram of the differential planetary gear train in an embodiment of the present invention;

[0036] Figure 8 This is a virtual prototype modeling diagram of a flat belt drive in an embodiment of the present invention;

[0037] Figure 9 This is a simulation result data diagram of the differential planetary gear train in an embodiment of the present invention;

[0038] Figure 10 This is a simulation result data diagram of the flat belt drive in an embodiment of the present invention.

[0039] In the diagram: 1. Sun gear; 2. Ring gear; 3. Planet gears; 4. Driving gear; 5. Driven gear; 6. Tensioner. Detailed Implementation

[0040] The technical solution of this application will be further described in detail below with reference to specific embodiments.

[0041] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0042] like Figures 1 to 6 As shown, a virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction includes the following steps:

[0043] The large-scale natural language reasoning model receives and organizes the task requirements proposed by the designers, forming the initial engineering task data needed for subsequent task parsing and script generation. Simultaneously, it decomposes the complete task into operational units with sequential dependencies, forming a task plan based on the large-scale code generation model. The large-scale code generation model reads the software version, project directory, existing models, and historical execution evidence, retrieves native help documentation matching the current software version, and organizes command formats and database object path rules. It also establishes a mapping relationship between natural language and software objects, generating candidate command scripts for the current round based on the task plan, mechanism parameters, object mapping, and previous execution evidence, and performing static checks. The human operator imports the candidate command scripts into the real Adams / View environment, observes the message window, and confirms the actual execution status of the scripts. They verify key objects and their complete paths through the database object tree, database navigator, exported command files, and model interface. After confirming the correctness of the drivers, constraints, units, and measurement objects, they run the simulation and save the original model and software output.

[0044] By collecting command scripts, runtime logs, model files, database object information, interface screenshots, measurement curves, simulation time, simulation steps, and manual confirmation records generated in the current round, an independent set of engineering evidence is formed. Based on this engineering evidence, the command syntax, database objects, constraint relationships, unit configurations, and physical results are examined sequentially to determine the current execution status. For FAIL or PARTIAL statuses, only the command structure, object mapping, constraint topology, or unit settings are modified for the current failure level, while the verified model objects and script structures are retained, proceeding to the next round of real software verification. For PASS statuses, the final CMD script, model, and complete engineering evidence chain are output after verification.

[0045] Specifically, step one: obtain the engineering task input and encapsulate the engineering task input into an initial engineering task data packet.

[0046] This step addresses the lack of a clearly defined input between the natural language requirements and the execution of the Adams software in virtual prototyping tasks. The natural language inference large model receives task requirements from the designers and forms an engineering task data package that can be used for subsequent code generation, large model script generation, and Adams execution.

[0047] The task information is generally divided into four categories. The first category is mechanism model parameters, including the characteristic dimensions, axial direction, assembly constraints, and initial position coordinates of each component, used to determine the geometry and initial assembly state of the virtual prototype. The second category is motion and drive parameters, including the input angular velocity or linear velocity of the active component, the drive application position, the kinematic pairs acted upon by the drive, and the direction of the reference coordinate system, used to define the motion boundary conditions of the mechanism. The third category is simulation and verification parameters, including the simulation termination time, simulation steps, solver type, target measurement object, and theoretical target output, used to configure the simulation process and determine the basis for result verification. The fourth category is submission specifications, including CMD script files, BIN model files, running logs, interface screenshots, measurement curves, result description documents, and version record lists, used to form a complete and traceable chain of engineering evidence.

[0048] Encapsulate the task information into an initial project task data package:

[0049] ;

[0050] Where X0 is the initial engineering task data packet, R is the task requirement description, and P... g For the set of parameters of the mechanism model, P d P is the set of motion and driving parameters. s Q represents the set of simulation and verification parameters, and Q represents the submission specifications.

[0051] The initial project task data package X0 is passed to the subsequent task parsing and code generation stages, serving as the input basis for requirement understanding, task decomposition, theoretical verification, help document retrieval, object path organization, and CMD script generation.

[0052] Step 2: The large language model performs task planning on the initial engineering task data package to generate a task planning sequence containing multiple operation units with sequential dependencies.

[0053] This step receives the initial engineering task data package output from step one. The natural language reasoning model performs theoretical verification, task decomposition, and planning operation process, forming a task planning sequence that is then passed to subsequent steps.

[0054] The natural language reasoning model reads the initial engineering task data package X0 output from step one and identifies information such as the type of organization, modeling objectives, simulation requirements, and submission specifications.

[0055] First, verify the geometric assembly conditions of the mechanical system:

[0056] ;

[0057] Among them, P g For the set of parameters of the mechanism model; g geom (·) represents the residual function describing the geometric assembly constraints of the mechanism; its specific form is determined by the type of mechanism. g This is the allowable assembly error threshold.

[0058] When the above equation holds true, it is determined that the current mechanism meets the geometric assembly requirements, and the theoretical output generalized velocity of the target component is obtained based on the motion and drive parameters:

[0059] ;

[0060] in, The input generalized velocity vector for the active component. The theoretical output of the generalized velocity vector for the target component, P g For the set of parameters of the mechanism model, It is a kinematic mapping function, the specific form of which is determined by the type of mechanism and its kinematic constraints.

[0061] The obtained theoretical output serves as the benchmark for verifying subsequent simulation results.

[0062] The theoretical verification process includes the following steps: verification of geometric parameters and assembly relationships to confirm that the component dimensions, positions, orientations, and assembly conditions meet the modeling requirements; verification of motion and coordinates to clarify the input type, direction, driving position, and reference frame definition; verification of the uniqueness of the theoretical objective to ensure the completeness of output parameters and avoid multiple or no solutions; verification of unit consistency to unify physical units and clarify Adams default unit conversions; and verification of measurement object consistency to confirm that the output quantity corresponds to the same component, the same degree of freedom, and the same physical quantity as the measurement object. If the theoretical verification passes, the process proceeds to the task decomposition stage; if it fails, a parameter supplementation request is generated, and the process returns to step one.

[0063] The task decomposition adopts a phase dependency structure, and each operation unit constitutes a task planning sequence:

[0064] ;

[0065] Wherein, Π represents the task planning sequence, a1 represents the software environment and project directory check, a2 represents the minimum CMD command smoke test, a3 represents the basic model establishment, a4 represents the verification of Part, Marker and Joint objects, a5 represents the establishment of Motion-driven and Measure measurements, a6 represents the establishment of kinematic constraints, a7 represents the simulation time and step settings, a8 represents the simulation run and evidence saving, and a9 represents the comparison of theoretical results and state determination.

[0066] For i = 2, 3, ..., 9, only a i-1 After verifying and producing verifiable engineering evidence, a i Only then can it enter the effective execution state.

[0067] Step 3: Establish an object mapping table between natural language objects and internal database objects of the target simulation software using the large language model.

[0068] This step receives the initial engineering task data packet X0 output from step one and the task planning sequence Π output from step two. The code generation large model reads the software environment, existing project files, and historical execution evidence, retrieves the local help documents corresponding to each operation stage, establishes candidate mapping relationships between natural language objects and software objects, and distinguishes path states, providing object references and command format basis for generating candidate CMD scripts in step four.

[0069] The code generation model first reads the initial project task data package X0 and the task planning sequence Π, and then reads the available project context information according to the current iteration round. In the first execution round, the project context mainly includes the software version environment, project directory structure, file naming rules, local help documentation, and submission specifications; in subsequent iterations, it also includes the CMD script from the previous round. t-1 Precedence Run Log L t-1 There is already a BIN model file B. t-1 Screenshots of the interface, object tree information, and hierarchical diagnostic results; for historical files that do not currently exist, the corresponding input is set to an empty set.

[0070] The engineering environment verification includes the following steps: working directory read / write check to confirm directory permissions and proper writing of temporary files and logs; script path compliance check to verify that script paths meet the path specifications corresponding to the target software version and operating system; software version matching check to ensure that the Adams version is consistent with the command format and help documentation; and generation of a minimal CMD smoke test specification based on the version to verify the import chain functions such as model creation, message output, log generation, and model saving, which at least include model creation, unit setting, message output, model saving, and log writing. If the verification passes, the object retrieval phase begins; if it fails, the error is recorded and the environment is returned for correction.

[0071] Database objects are categorized into types such as Part, Marker, Joint, and Motion, and expanded to include Contact and Geometry objects as needed. The code generates a large model that combines the native Adams help documentation, exported CMD files, DatabaseNavigator, and the software object tree to record the complete path, type, component to which it belongs, and purpose of each object. Critical object paths must be confirmed by the actual object tree, DatabaseNavigator, or exported CMD files. Based on the above search results, an object mapping table is obtained:

[0072] ;

[0073] Where, n i τ is the name of the natural language object. i For object type, p i v is the complete database path obtained from the actual software. i This indicates the path verification status for this object.

[0074] The path verification status is divided into the following four types: pending planning, the object has not yet been created; verified, the object and the complete path have been confirmed by the software; pending verification, the object or path has not yet been confirmed by the software; invalid, the object or path is unavailable.

[0075] Initial D -1 When set to an empty set, M0 is configured as follows: objects to be created by the candidate command script are marked as "to be planned"; objects automatically generated by the software modeling module and whose complete paths have not yet been confirmed are marked as "to be verified"; objects confirmed by the database object tree, database navigator, or exported command file are marked as "verified"; objects confirmed to be non-existent, of mismatched type, or with invalid paths are marked as "invalid" and are prohibited from being referenced in the candidate command script.

[0076] After the initial candidate command script is executed, runtime logs, model files, database object information, interface evidence, and manual confirmation records are collected to form usable engineering evidence D0. Based on the actual object path and execution results, M0 is updated to M1. In subsequent iterations (round t), the initial engineering task data package X0 and task planning sequence Π are kept unchanged, and the object mapping table M is updated according to the previous round. t and the available engineering evidence set D t-1 This round of engineering input I t Upon completion of this round of execution, engineering evidence D will be formed. t And update the object mapping table to M. t+1 This constitutes the input for the next round of engineering.

[0077] Step 4: Generate candidate executable scripts for the current round based on the task planning sequence and the object mapping table.

[0078] This step generates candidate CMD scripts based on the current iteration state. According to the stage dependencies of each operation unit in the task planning sequence, candidate CMD scripts are constructed according to the principle of prioritizing the smallest script and gradually stacking modules. Static consistency checks are then performed on the script text.

[0079] First, a minimal CMD smoke test script is generated to verify the script import entry point, model creation, log output, and model saving process. Then, based on the passed prerequisites, the following modules are generated sequentially: model creation and global unit setting module, basic component and geometric model creation module, Marker reference coordinate system and Joint kinematic pair creation module, object information export and path verification module, Motion-driven input module, Measure object module, Coupler or other motion constraint module, simulation and solver setting module, and BIN model, runtime log, and measurement result saving module. Interface screenshots and manual object verification requirements are not automatically determined by the script but are written into the subsequent real software execution list.

[0080] During script generation, the corresponding processing method is determined based on the mapping status of each object in the object mapping table of step three. For objects in the "To be planned" state, the corresponding object creation command is generated, and a database object is created according to the preset naming rules; for objects in the "verified" state, their complete database path verified by real software is written into the driver, constraint, or measurement commands; for objects in the "to be verified" state, transitional scripts required for object creation, model saving, database object information export, or object path verification are generated; for objects in the "invalid" state, continued reference in the current candidate script is prohibited, and the object is added to the local correction and remapping list. Candidate CMD script generation mapping relationship:

[0081] ;

[0082] ;

[0083] Among them, C t Let G be the candidate CMD script for round t, and let I be the code generation and processing logic. t Let X0 be the initial project task data package, Π be the task planning sequence, and D be the input for the t-th round of the project. t-1 As evidence of the previous round of engineering work, M t For the object mapping in round t.

[0084] Step 5: Import the candidate executable script into the actual execution environment of the target simulation software. After the operator confirms the database object path, the simulation task is run.

[0085] The operator imports the candidate script generated in step four into the specified version of the Adams / View environment, and completes the actual execution and engineering confirmation based on the software message window, DatabaseNavigator, object tree, and model interface.

[0086] The operator opens a session of the specified version of the Adams / View standalone software and loads the candidate script C for round t through the software's built-in CMD script import entry. t And view the output of the software message window in real time. First, verify the basic loading status of the script to confirm that the candidate script has actually been executed to the predetermined stage. If the script execution is interrupted, record the error message and jump to step six to complete the log evidence collection. Then, the operator opens DatabaseNavigator, Database Object Tree or exports CMD file to confirm each database object involved in the script.

[0087] After the verification is completed, the simulation solver is manually started to run the simulation task. During the simulation, the software message window and the solution status are continuously observed. If near-singular constraints, solver interruptions or other abnormalities occur, the time of the abnormality and the software return information should be recorded. After the simulation ends, the operator saves the current BIN model and retains the original software outputs such as the software message window, database object tree, model 3D interface, measurement curves and results window.

[0088] Step Six: Collect engineering evidence generated during the execution of the candidate executable script in the real execution environment.

[0089] This step collects engineering evidence generated during the actual software execution in round t, based on candidate script versions and manual verification records. The collected evidence includes candidate CMD scripts, script static self-check records, version change descriptions, software message windows and runtime logs, BIN model files, DatabaseNavigator or database object tree information, exported CMD files, screenshots of the model's 3D interface, measurement result interfaces, raw measurement curve data, actual simulation termination time, actual simulation steps, and manual verification records. For script interruptions during syntax parsing, object creation, or constraint establishment phases, only log, model, and interface evidence actually generated up to the interruption point is collected; ungenerated BIN models, measurement curves, or result files are set to an empty set, and the reason for the absence is indicated in the evidence directory and manual verification records.

[0090] Following standardized engineering evidence archiving rules, an independent storage directory is established for each iteration. This directory contains file categories such as scripts, logs, models, screenshot evidence, measurement results, and manual verification records. Evidence generated in the current iteration does not overwrite files from previous iterations. After evidence collection is complete, the operation logs, manual verification records, and object verification evidence are analyzed to extract fault features relevant to subsequent tiered diagnostics.

[0091] The evidence set for the t-th round of engineering, D t :

[0092] ;

[0093] Among them, C t For the t-th round of CMD script, L t For the Adams runtime log of round t, B t For the t-th round BIN model, F t For the screenshot evidence of round t, y t For the measurement results of the target component in round t, T t Let N be the actual simulation duration for round t. t Let O be the actual number of simulation steps in round t. t This is the record of manual confirmation for round t.

[0094] When the theoretical target output is not zero, the simulation results are evaluated using relative error:

[0095] ;

[0096] Where, δ t Let y be the relative error of the t-th simulation round. t For the measurement results of the target component in round t, y * This is the theoretical target result.

[0097] When the theoretical target output is zero, the simulation results are evaluated using absolute error:

[0098] ;

[0099] Where δ*t is the absolute error of the t-th simulation, y t For the measurement results of the target component in round t, y * This is the theoretical target result.

[0100] Step 7: Perform layered diagnostics on the candidate executable scripts based on the engineering evidence. The layered diagnostics are performed sequentially in the order of syntax layer, object layer, constraint layer, unit layer, and physical result layer. The current layer can only proceed to the next layer after it passes the verification. Determine the engineering status of the candidate executable scripts in the current round based on the layered diagnostic results. For states that fail verification, generate local corrections only for the current failure level and update the candidate executable scripts, then jump to Step 5 for iterative verification. For states that pass verification, output the final executable script, the final model file, and the engineering evidence.

[0101] Based on the set of engineering evidence obtained in step six, a hierarchical diagnosis is performed on the current candidate script and the corresponding virtual prototype model, and local corrections, state updates and iterative control are implemented based on the diagnosis results.

[0102] First, the runtime logs, object information, model files, measurement results, and manual verification records are parsed. Diagnosis is performed sequentially according to the syntax layer, object layer, constraint layer, unit layer, and physical result layer to obtain the layered error status corresponding to the candidate script in round t.

[0103] ;

[0104] Among them, e s,t e o,t e c,t e u,t e p,t These represent faults at the syntax layer, object layer, constraint layer, unit layer, and physical result layer, respectively.

[0105] When a fault occurs in any layer, the corresponding variable is set to 1; when the layer passes verification, the corresponding variable is set to 0. Total layered errors E t for:

[0106] ;

[0107] Among them, E t e represents the total number of stratified errors. s,t e o,t e c,t e u, t, e p,t These represent faults at the syntax layer, object layer, constraint layer, unit layer, and physical result layer, respectively. When a fault exists at any layer, the corresponding variable is set to 1; if the layer passes validation, the corresponding variable is set to 0.

[0108] The candidate script status is determined based on the current failure level, and only local corrections are performed for the current failure level. The next round of verification proceeds while maintaining the already verified content unchanged. When there are anomalies in command syntax or database objects, the script is classified as having an execution anomaly. When the script can complete loading and simulation calculations, but there are anomalies in constraint relationships, unit configurations, or simulation results, it is classified as having a partially completed state. When all diagnostic layers meet the preset requirements, and the simulation process is complete, the target output meets theoretical requirements, and the engineering evidence is complete, the script is classified as having passed verification.

[0109] ;

[0110] Among them, S t For the engineering state function, e s,t e o,t e c,t e u,t e p,t These represent faults at the syntax layer, object layer, constraint layer, unit layer, and physical result layer, respectively. When a fault exists at any layer, the corresponding variable is set to 1; if the layer passes validation, the corresponding variable is set to 0.

[0111] State function S t It is mainly used to describe the script diagnostic status. The final PASS output also needs to simultaneously verify the simulation duration, number of steps, error and evidence file integrity. Only when all of them are satisfied can the model be considered to have passed the final verification.

[0112] For candidate scripts that fail validation, generate corresponding local correction values ​​based on the hierarchical error status in round t:

[0113] ;

[0114] Where, ΔC t Let F(·) be the local correction amount generated for the candidate script in round t; F(·) is the preset local correction mapping relationship, and E t This represents the total number of stratified errors.

[0115] The local corrections are then added to the candidate script for round t to generate the candidate script for round t+1.

[0116] ;

[0117] Among them, C t For the candidate script in round t, C t+1 To implement the candidate script for round t+1 formed after local correction, ΔC t This represents the local correction amount generated for the candidate script in round t; the symbol "+" indicates that, while retaining the content that has passed verification, the command, parameter, or object references in the candidate script corresponding to the current failure level are updated.

[0118] This step performs local corrections on the currently identified failure levels while preserving the validated model objects and script structures. Specifically, when command syntax is abnormal, the command format is corrected; when database objects are abnormal, the real objects are reconfirmed and bound; when constraint relationships are abnormal, the constraint relationships are adjusted while preserving the validated model; when unit configuration is abnormal, unit conversion relationships are corrected; and when simulation results are abnormal, the measurement objects or related configurations are corrected based on the results. Compared to regenerating the complete CMD script or re-checking all model objects after each execution failure, the candidate script in round t+1 only needs to adjust the failed parts, without needing to reconstruct the complete model content, thus reducing the time spent on irrelevant script modifications and repeated verifications.

[0119] When the hierarchical diagnosis results indicate that the failure is caused by the candidate script generation stage, the next round of candidate scripts is generated according to the local correction amount in equation (14); when the failure is caused by the task input, task planning, engineering context, object mapping, real software execution or engineering evidence collection stage, the diagnosis results and correction requirements are sent back to the corresponding preceding steps for re-execution, and the next round of candidate scripts is generated based on the updated information.

[0120] After completing the local correction, the candidate scripts from round t+1 are re-imported into the real software environment for verification, and the hierarchical error state is re-determined based on the new round of running evidence. If the candidate scripts still do not meet the verification pass conditions, the local correction amount continues to be generated and the next iteration begins; if the candidate scripts meet the verification pass conditions, the iteration terminates, and the final script file, model file, and engineering evidence covering the entire iteration process are output, completing the virtual prototype modeling verification.

[0121] Closed-loop execution algorithm process verification

[0122] like Figure 1 As shown, the code generates a large model based on the project input I. t The t-th version of the CMD script is generated and manually imported into a real Adams / View environment for execution. The logs and simulation results returned by the software are categorized into syntax errors, object errors, constraint errors, unit errors, and physical result errors, forming an error state vector, and the execution status is determined.

[0123] ;

[0124] ;

[0125] ;

[0126] ;

[0127] ;

[0128] If the current script does not meet the pass conditions, a local correction value is generated based on the error type, resulting in version t+1 of the script, which is then re-executed.

[0129] ;

[0130] .

[0131] When the total error is zero, and the simulation time, number of steps, and target output all meet the preset requirements, the iteration terminates and is judged as PASS. After verification, the final CMD script, model, and complete engineering evidence chain are output.

[0132] Phased progress and abnormal rollback verification

[0133] like Figure 5 As shown, the task decomposition of the large-scale natural language reasoning model adopts a stage-dependent structure, with each operation unit constituting a task planning sequence:

[0134] .

[0135] The reference progress curve represents the expected progress trend of the task being executed sequentially from a1 to a9 under the ideal condition that each operation unit passes on the first attempt. It does not include the final progress corresponding to final acceptance, evidence integrity review and PASS confirmation. The actual progress curve represents the effective completion degree after actual software execution and engineering evidence confirmation.

[0136] In operation units a1 and a2, the actual progress experienced a temporary stagnation due to the need to confirm the software environment, project directory, and CMD import link. In operation unit a3, the progress experienced its first setback, indicating that some command parameters or model settings needed to be corrected. In operation unit a4, after the paths of key Part, Marker, and Joint objects were confirmed by the actual software, subsequent scripts obtained reliable object references, and the actual progress rapidly increased. In operation unit a5, the actual progress experienced a brief plateau as the Motion-driven and Measure measurement objects needed confirmation of binding relationships and measurement directions. In operation unit a6, a second setback occurred after the kinematic constraints were established due to issues with constraint topology, directional relationships, or solution stability. Operation unit a7 set and verified the simulation termination time, simulation steps, solver, and unit conversion. After entering operation unit a8, the actual simulation run simultaneously generated multiple engineering evidences, including logs, models, screenshots, and measurement curves, significantly improving the actual progress. In operation unit a9, the theoretical results were compared and the status was determined. When all diagnostic levels and the final pass conditions were met, the actual progress reached 100%.

[0137] In the actual progress curve, the horizontal segment indicates that the current operation unit is awaiting feedback from the real software, object verification, or manual confirmation; the downward segment indicates that subsequent engineering evidence overturns previous assumptions, requiring a return to the corresponding preceding operation unit for local correction; and the rapidly rising segment indicates that the engineering evidence generated in the current stage simultaneously verifies multiple existing model modules. The trends between the actual progress and the reference progress are generally similar, with some differences reflecting the non-linear progression characteristics formed by evidence confirmation, error rollback, local correction, and re-verification during the virtual prototype's real modeling process.

[0138] Example 1: Geometric Modeling Verification of Differential Planetary Gear Train

[0139] like Figure 7 As shown, this embodiment performs geometric modeling verification on a virtual prototype of a differential planetary gear train. This includes a sun gear 1, a ring gear 2, and planet gears 3. The software environment is Adams / View2020 Chinese environment.

[0140] The parameters of the differential planetary gear train model are: number of teeth z of the sun gear 1. s =20, number of teeth on planetary gear z p =20, number of teeth on the internal gear ring (2 teeth) z r =60, the module of each gear m=2mm, the pressure angle is 20°, the tooth width is 12mm, and the displacement coefficient is 0; the common center of the sun gear 1, the internal gear ring 2 and the planet carrier is O=(0,0,0)mm; the initial centers of the two planet gears 3 are O1=(0,40,0) and O2=(0,-40,0)mm respectively, and the revolution radius is 40mm; the rotation axis of all components is parallel to the Z-axis, and when viewed from the +Z direction, counterclockwise rotation is defined as the positive direction.

[0141] The model verification results from the real software show that the established differential planetary gear train contains 5 components, 5 revolute pairs, and 3 coupling constraints. There are no over-constraint equations. The connection relationships and degree-of-freedom configurations between the components meet the model solution requirements. The geometric positions and actual tooth profiles conform to the preset assembly relationships. The key database objects and their hierarchical paths can be correctly identified. This verifies the effectiveness of this method in constructing and verifying geometric assembly relationships, mapping of real database objects, and kinematic constraint topology during the virtual prototype modeling of gear transmission mechanisms.

[0142] Example 2: Geometric Modeling Verification of Flat Belt Drive

[0143] like Figure 8 As shown, this embodiment performs geometric modeling verification on a virtual prototype of a flat belt drive mechanism. This includes the driving pulley 4, the driven pulley 5, and the tensioning pulley 6. The software environment is Adams / View2020 Chinese environment.

[0144] The model parameters of the flat belt drive mechanism are: diameter D of the driving pulley 4.a =75mm, driven wheel 5 diameter D b =75mm, tensioner wheel diameter D 6 t =30mm, the center distance a between the driving wheel 4 and the driven wheel 5 is 400mm, and the center coordinate of the driving wheel 4 is O. a =(0,0,0)mm, the center coordinate of driven wheel 5 is O b =(400,0,0)mm, the center coordinate of tensioner 6 is O. t =(200,-50,0)mm; the width of the flat strip is 20mm and the thickness is 2mm; the rotation axis of all components is parallel to the Z-axis, and when viewed from the +Z direction, counterclockwise rotation is defined as the positive direction.

[0145] The actual software verification results show that the geometric dimensions and initial positions of the driving wheel 4, driven wheel 5, tensioning arm, and tensioning wheel 6 meet the preset assembly requirements. The flat belt contour is closed, with no obvious breaks, intersections, or suspended parts. The corresponding real database objects and their hierarchical paths for each component can be correctly identified, and the connection relationships, degrees of freedom, and constraint topology between components meet the model solution requirements. The modeling results verify the effectiveness of this method in constructing and verifying geometric assembly relationships, real database object mapping, revolute joint connection relationships, and equivalent kinematic constraint topology during the virtual prototype modeling of the flat belt drive mechanism.

[0146] Example 3: Simulation Verification of Differential Planetary Gear Train

[0147] like Figure 9 As shown, this embodiment performs a complete simulation verification of the virtual prototype of the differential planetary gear train. The software environment is Adams / View2020 Chinese environment, and the differential planetary gear train model that has passed the geometric modeling verification in Embodiment 1 is used as the simulation basis.

[0148] The simulation input parameters are: angular velocity ω for sun gear 1. s =30deg / s, input angular velocity ω for internal gear ring 2 r = -50deg / s. Rotational coupling constraints are set between sun gear 1, internal gear ring 2, and planet carrier, with constraint coefficients of 20, 60, and -80, respectively. Rotational coupling constraints are set between sun gear 1 and the two planet gears 3 and planet carrier, with constraint coefficients of 20, 20, and -40, respectively. All angular velocity drives are applied to the revolute pairs confirmed by real software. The input end is converted from angle to radian unit, and the measurement end is converted from radian to angle unit. The angular velocity of the planet carrier around the Z-axis is used as the target output. The simulation termination time is 5.000s, and the simulation steps are 1000 steps.

[0149] The candidate command scripts were manually imported into the real software environment to confirm that the angular velocity drive of sun gear 1 and internal gear ring 2, the three rotational coupling constraints, and the planet carrier angular velocity measurement object were all established on the correct database objects. The simulation was then started, and the runtime log, model file, object information, and measurement results were saved. The simulation results show that the planet carrier angular velocity stabilizes at ω. c =30deg / s, the rotation direction and angular velocity values ​​are consistent with the theoretical target, and the relative error is 0. The simulation process was executed completely to the specified termination time and simulation steps. The software did not report any blocking command syntax errors, database object errors, constraint solving errors, or unit interpretation errors. The measurement curve remained stable during the simulation, and the physical output met the theoretical verification requirements. The above results verify the effectiveness of the proposed method in performing closed-loop verification of motion drive, real database objects, rotational coupling constraints, unit conversion, and theoretical output in the virtual prototype simulation of gear transmission mechanisms.

[0150] Example 4: Simulation Verification of Flat Belt Drive

[0151] like Figure 10 As shown, this embodiment performs a complete simulation verification of a virtual prototype of a flat belt drive mechanism. The software environment is Adams / View2020 Chinese environment, and the flat belt drive model that has passed geometric modeling verification in Embodiment 2 is used as the simulation basis.

[0152] The input angular velocity of the driving wheel 4 is ω1 = 30 deg / s; the visualization flat belt is only used to display the mechanism structure, does not generate contact force, and does not participate in the dynamic solution; the simulation termination time is 5.000s, and the simulation steps are 1000 steps. The angular velocity drive of the driving wheel 4 is applied to the rotating pair of the driving wheel 4, which has been confirmed by the actual software, and the input end performs unit conversion from angle to radian; the angular velocity measurement object of the driven wheel 5 is established on the reference object at the center of the driven wheel, measuring its angular velocity around the global Z-axis, and the output end performs unit conversion from radian to angle.

[0153] Candidate command scripts were manually imported into the real software environment to confirm that the angular velocity drive of the driving wheel 4, the rotational coupling constraint between the driving wheel 4 and the driven wheel 5, and the angular velocity measurement object of the driven wheel 5 were all bound to the correct database objects. The model was then run, and the running log, model file, interface evidence, and measurement curves were saved. Simulation results from the real software showed that the angular velocity of the driven wheel 5 stabilized at ω² = 30 deg / s, the two pulleys rotated in the same direction, conforming to the theoretical motion relationship of a flat belt drive with equal diameter and no slippage. The relative error between the measured angular velocity and the theoretical target was 0. The software did not report any disruptive command syntax errors, database object errors, constraint solving errors, or unit interpretation errors. The angular velocity measurement curve of the driven wheel 5 remained stable throughout the simulation. These results validate the effectiveness of this method in constructing and verifying a closed loop for motion drive, rotational pair object mapping, transmission coupling relationship, unit conversion, and theoretical output during the equivalent kinematic simulation of a flat belt drive mechanism.

[0154] Example 5: Verification of Cross-Task Process Reuse Effect

[0155] This embodiment records the task completion time required for the differential planetary gear train task and the flat belt drive task from the start of the engineering task to reaching the PASS state and completing the engineering evidence preservation, in order to verify the process reuse effect of the present invention in subsequent virtual prototype modeling tasks.

[0156] As the first complex mechanism modeling task, the differential planetary gear train needs to complete the following steps in sequence: confirmation of software environment and engineering catalog, testing of minimum CMD script, establishment of real tooth profile and basic model, verification of key database objects, binding of Motion and Measure, establishment of kinematic constraints and Coupler relationship, unit conversion verification, simulation operation and final engineering evidence collection. The task completion time is approximately 220 minutes.

[0157] After completing the first task, the validated project directory, CMD script version management method, software command entry point, object path confirmation method, FAIL / PARTIAL / PASS status determination method, unit processing method, and project evidence archiving rules will be retained and reused for subsequent flat belt drive tasks. Subsequent tasks will not rebuild complete project specifications; instead, they will follow the validated process to complete basic model creation, key object verification, motion relationship establishment, and result verification. The task completion time is approximately 44 minutes.

[0158] The time relationship between the two tasks is as follows:

[0159] ;

[0160] Where T1 is the completion time of the first differential planetary gear train task, T2 is the completion time of the flat belt drive task after reusing the existing engineering process, and RT This translates to a reduction in time for cross-task process reuse.

[0161] In the two virtual prototyping tasks of this embodiment, R T The completion time is 80%. After reusing the engineering process formed by the preceding tasks, the completion time of subsequent tasks is approximately 1 / 5 of that of the first task. This demonstrates that the present invention effectively reduces the cost of repetitive construction and verification in the virtual prototype modeling process and improves the efficiency of cross-task modeling and verification by reusing engineering processes, reusing object mapping experience, script management, hierarchical diagnosis, and unit processing mechanisms. Since the two types of mechanisms have different complexities, this time reduction rate is used to characterize the efficiency improvement effect brought about by process reuse in this embodiment, rather than to illustrate the general performance improvement of tasks with the same complexity under strictly controlled variable conditions.

[0162] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these should also be considered within the scope of protection of the present invention. These will not affect the effectiveness of the implementation of the present invention or the practicality of the patent.

Claims

1. A virtual prototype modeling verification method based on hierarchical diagnosis and feedback correction, characterized in that, include: (1) Obtain the engineering task input and encapsulate the engineering task input into an initial engineering task data packet; (2) The initial engineering task data package is planned by the large language model to generate a task planning sequence containing multiple operation units with sequential dependencies; (3) Establish an object mapping table between natural language objects and internal database objects of the target simulation software based on the large language model; (4) Generate candidate executable scripts for the current round based on the task planning sequence and the object mapping table; (5) Import the candidate executable script into the actual execution environment of the target simulation software, and run the simulation task after the operator confirms the database object path; (6) Collect engineering evidence generated during the execution of candidate executable scripts in the actual execution environment; (7) Perform layered diagnosis on the candidate executable scripts based on the engineering evidence. The layered diagnosis is performed in the order of syntax layer, object layer, constraint layer, unit layer and physical result layer. The current layer can only enter the next layer after it passes the verification. Determine the engineering status of the candidate executable scripts in the current round based on the layered diagnosis results. For the state that fails the verification, only generate a local correction amount for the current failure level and update the candidate executable scripts. Then jump to step (5) for iterative verification. For the state that passes the verification, output the final executable script, the final model file and the engineering evidence.

2. The virtual prototyping modeling verification method based on hierarchical diagnosis and feedback correction of claim 1, wherein, The engineering task inputs in step (1) include mechanism model parameters, motion and drive parameters, simulation and verification parameters, and submission specifications.

3. The virtual prototyping modeling verification method based on hierarchical diagnosis and feedback correction of claim 1, wherein, The task planning in step (2) further includes: performing theoretical verification on the initial engineering task data package by the large language model. The theoretical verification includes verification of geometric parameters and assembly relationships, motion and coordinates, uniqueness of theoretical targets, unit consistency and measurement object consistency. If any verification fails, a parameter supplementation request is generated and the process returns to step (1).

4. The virtual prototyping modeling verification method based on hierarchical diagnosis and feedback correction of claim 1, wherein, The object mapping table in step (3) includes object name, object type, complete database path and path verification status; the path verification status includes: pending planning status, verified status, pending verification status and invalid status.

5. The virtual prototyping modeling verification method based on hierarchical diagnosis and feedback correction of claim 1, wherein, In step (4), the generation of candidate executable scripts for the current round adopts the principle of prioritizing the smallest script and gradually stacking modules. First, the smallest smoke test script for verifying the script import link is generated. Then, based on the passed pre-operation units, the model creation module, component and geometric model creation module, reference coordinate system and kinematic pair creation module, object information export and path verification module, drive input module, measurement object module, motion constraint module, simulation setting module and result saving module are stacked in sequence.

6. The virtual prototyping modeling verification method based on hierarchical diagnosis and feedback correction of claim 1, wherein, The step (5) of having the operator confirm the database object path includes: the operator verifying the complete path of the database object item by item through the database object tree or database navigator of the target simulation software; if the script execution is interrupted, the error message is recorded and log evidence is collected.

7. The virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction according to claim 1, characterized in that, The engineering evidence mentioned in step (6) includes: running logs, model files, interface screenshots, measurement results, script static self-check records, software message window information, actual simulation termination time, and actual simulation steps; the engineering evidence is stored in an independent directory for each iteration according to standardized archiving rules; for engineering evidence that has not been generated, the reason for its absence is marked in the evidence directory.

8. The virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction according to claim 1, characterized in that, The project status in step (7) includes a basic execution exception status, a partial completion status, and a verification pass status; the basic execution exception status is that there is an exception in the syntax layer or the object layer; the partial completion status is that the syntax layer and the object layer pass verification, but there is an exception in the constraint layer, the unit layer, or the physical result layer; The verification pass status is defined as the syntax layer, object layer, constraint layer, unit layer, and physical result layer all passing verification, and the simulation process being complete, the target output meeting theoretical requirements, and the engineering evidence being complete.

9. The virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction according to claim 1, characterized in that, The step (7) of generating local corrections only for the current failure level includes: when there is an anomaly in the syntax layer, correcting the command format; when there is an anomaly in the object layer, reconfirming and binding the real object path; when there is an anomaly in the constraint layer, adjusting the constraint topology while retaining the verified model; when there is an anomaly in the unit layer, correcting the unit conversion relationship; when there is an anomaly in the physical result layer, correcting the measurement object or related configuration based on the running results.

10. The virtual prototype modeling and verification method based on hierarchical diagnosis and feedback correction according to claim 1, characterized in that, Also includes: The project directory, script management method, object path confirmation method, status judgment method, unit processing method, and project evidence archiving rules generated in the completed tasks are stored as template configurations. These template configurations are used for subsequent virtual prototype modeling and verification tasks.

Citation Information

Patent Citations

  • A Modeling and Simulation Method for ATC Virtual Prototype Considering Chain Drives Based on Adams

    CN108984845B

  • A Simplified Modeling Method for Multi-rigid-body Dynamics Based on ADAMS Software

    CN109190266B

  • Method, system and medium for automatically generating CAE simulation program

    CN118034659B