A multi-working-condition simulation method and system based on parameter-dependent propagation and trusted execution checking
By employing a multi-condition simulation method based on parameter dependency propagation and trusted execution verification, the problems of unstable parameter mapping and difficulty in verifying simulation results in existing technologies are solved, thereby improving the reliability of simulation results and resource utilization.
Patent Information
- Application Number
- CN202611335784.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing multi-condition simulation technologies suffer from problems such as unstable parameter mapping across scripts or solvers, repeated execution of the entire simulation chain due to minor parameter changes, inability to prove the actual effectiveness of the final solution input after script rewriting, parameter crosstalk caused by shared writable files, and difficulty in reliably verifying simulation results.
A multi-condition simulation method based on parameter dependency propagation and trusted execution verification is adopted. The method binds the condition parameters with the actual execution objects in the simulation through parameter execution contracts, uses parameter dependency graphs to identify affected execution nodes, performs incremental re-execution, and achieves trusted verification of simulation results through consistency verification and condition fingerprinting.
It reduces the waste of computing resources, improves the utilization rate of computing resources, ensures the credibility and reproducibility of simulation results, avoids parameter crosstalk and repeated execution, and realizes the stability of parameter mapping and the credibility audit of results.
Smart Images

Figure CN123179672A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided engineering simulation technology, and more particularly to a multi-condition simulation method and system based on parameter dependency propagation and trusted execution verification. Background Technology
[0002] Multi-condition simulation is a common practice in computer-aided engineering. It addresses physical scenarios such as materials processing, heat conduction, structural mechanics, fluid mechanics, electromagnetic analysis, and multiphysics coupling. Independent simulation tasks are established for different values of geometric parameters, material parameters, process parameters, boundary parameters, or solution control parameters, and the process sequentially completes model preparation, parameter injection, input file generation, solution execution, post-processing, and result saving. This type of multi-condition calculation is widely used in parameter scanning, experimental design, sensitivity analysis, process window analysis, optimization design, digital twin calibration, and data generation for machine learning, and is one of the main methods for obtaining simulation data in engineering research and academic studies.
[0003] In existing multi-condition simulation practices, technicians typically modify model parameters manually for each condition, or use the simulation software's built-in application programming interface (API) to automatically assign parameters. External scripts can also be used to perform batch searches and replacements of model files, template files, or user subroutines. For batch simulation tasks that need to be submitted to high-performance computing clusters, a common practice is to generate complete solver input files sequentially according to the condition, and then submit each condition as an independent job to the computing node. However, in parallel computing environments, multiple conditions may share the same set of writable template files, configuration files, or user subroutines, allowing multiple solver processes to be started simultaneously via parallel scripts. Some technical solutions also attempt to record the input file version and solver version used in each simulation for later traceability of simulation results.
[0004] However, the aforementioned existing technical solutions have several shortcomings. First, the automation method, which relies on the internal interface of specific simulation software, is highly coupled with the software version, object model, and script structure. When the model is migrated to other solvers or the script version changes, adaptation logic needs to be redeveloped. Furthermore, conventional script rewriting can only confirm that the target numbers in the text have been replaced, but cannot prove that the values enter the final solver according to the correct physical units, numerical formats, and actual execution order. The same variable may be assigned multiple times in the script or user subroutine, causing the aforementioned modifications to be overwritten by subsequent assignments. Old environment variables or incorrect input files may also cause the parameters actually used by the solver to be inconsistent with the external parameter table. Such problems are not easy to detect in a timely manner in batch unattended simulations. Second, existing batch simulation processes usually treat each working condition as a complete execution chain. When adjacent working conditions change only a small number of downstream parameters, steps such as geometric modeling, mesh generation, material definition, boundary assembly, and input file export are all re-executed. This results in the repeated generation of intermediate model products unrelated to parameter changes. For models containing complex geometry or large-scale multiphysics assemblies, the above-mentioned repeated preprocessing will result in significant waste of computational resources and input / output overhead. Third, when multiple operating conditions share the same writable template or output directory, parallel submissions are prone to file overwriting, parameter crosstalk, and result mismatch, while completely serial execution will reduce the utilization of computing resources. At the same time, the large number of geometry files, mesh files, input files, and log files accumulated from multi-operating condition simulations lack deterministic correlation mechanisms between parameters, script versions, execution environments, and results. It is difficult to prove which set of actual effective parameters and which version of the model generated a certain result, making it difficult to verify and reproduce the simulation results. Summary of the Invention
[0005] In view of this, the purpose of this invention is to propose a multi-condition simulation method and system based on parameter dependency propagation and trusted execution verification, so as to solve the problems in the prior art such as unstable parameter mapping across scripts or solvers, repeated execution of the entire simulation chain due to a small number of parameter changes, script rewriting cannot prove that the final solution input is truly effective, parameter crosstalk caused by shared writable files, and difficulty in trusted verification of simulation results.
[0006] The technical means employed in this invention are as follows: A multi-condition simulation method based on parameter dependency propagation and trusted execution verification includes the following steps: S1. Obtain a set of working condition parameters for multiple working conditions to be executed. The working condition parameters are used to describe at least one of the geometric parameters, material parameters, process parameters, physical field boundary parameters, or solution control parameters of the physical object to be simulated. S2. Map at least one operating condition parameter to the actual simulation execution object, and establish a physical semantics binding the operating condition parameter to the parameter execution contract of the actual simulation execution object; S3. Compare the current working condition with the baseline working condition or the completed working condition to obtain the set of changed parameters ΔP, and propagate the parameter changes corresponding to ΔP to the downstream execution nodes based on the parameter dependency graph to determine the affected execution nodes; the execution nodes correspond to at least one of generating or updating physical geometry models, meshes, physical field boundary conditions, user subroutines, solver physical input files or solution tasks; S4. Rewrite, regenerate, or recalculate the affected execution nodes, and reuse the intermediate model products that are not identified as affected execution nodes and meet the reuse conditions. S5. Based on the parameter execution contract, perform at least one level of consistency check on the valid assignments in the simulation execution chain and the corresponding operating condition parameters; when the consistency check does not meet the preset conditions, block the current operating condition from entering the corresponding subsequent execution stage. S6. After the necessary parameters pass the consistency check, call the simulation solver to execute the current working condition, and archive at least three of the following items: working condition parameters, parameter execution contract, affected execution nodes, intermediate model product reuse record, solver input, solver log and simulation results. S7. Repeat S2 to S6 for the remaining pending conditions.
[0007] Furthermore, the parameter execution contract includes at least three of the following fields: parameter field name, physical meaning, source unit, target unit, target parameter, target execution object, effective assignment positioning rule, parameter influence stage, unit conversion rule, allowed value range, numerical format rule, comparison tolerance, and result traceability field; the target execution object includes at least one of the following: simulation model script, user subroutine, template file, model object, physical field boundary object, or solver input object.
[0008] Furthermore, the mapping of the operating condition parameters includes at least one of precise field matching, synonym field matching, preset mapping table matching, physical quantity dimension verification, and unit conversion; when the necessary operating condition parameters cannot be uniquely mapped to the actual simulation execution object, or the physical quantity dimensions are inconsistent and there is no preset conversion rule, the submission of the simulation task for the current operating condition is blocked.
[0009] Further, the parameter dependency graph is denoted as G_p=(V,E), and the node set V includes at least three types of nodes: parameter nodes V_p, script or template execution nodes V_s, intermediate model output nodes V_m, solver physical input nodes V_i, and solution task nodes V_q. The directed edge E is used to characterize the dependency relationship that causes the downstream execution object to fail, need to be regenerated, or need to be re-verified when the upstream parameter or execution object changes.
[0010] Furthermore, taking the parameter nodes corresponding to the changing parameter set ΔP as the starting nodes, a downstream reachability search is performed along the outgoing edges of the parameter dependency graph G_p using breadth-first search (BFS) or depth-first search (DFS). The reachable nodes obtained from the search, corresponding to the actual simulation execution objects, are determined as the set of affected execution nodes A. When changes are found in the source script version, simulation software version, or execution environment during the search process, the nodes that fail due to the changes and their downstream reachable nodes are added to the set of affected execution nodes A.
[0011] Furthermore, for intermediate model products that do not belong to the affected execution node set A, execution reuse is determined based on at least two of the following: the subset of generation parameters corresponding to the intermediate model product, the source script or template version, the simulation software version, the solver version, and the execution environment identifier. When the reuse determination meets the preset consistency conditions, the corresponding intermediate model product stored in the physical storage space of the computing device is reused. When the conditions are not met, the intermediate model product and its downstream nodes are added to the affected execution node set A.
[0012] Further, the consistency check includes: performing unit conversion and numerical format processing on the j-th operating condition parameter according to the parameter execution contract to obtain the parameter value v_j for the target execution object; obtaining the valid assignment v_script,j in the script, template, user subroutine, or model object; when the corresponding parameter can be parsed in the solver physical input file, runtime parameter file, or environment variables, further obtaining the valid input value v_input,j of the solver; when |v_j-v_script,j|≤ε_j, and when v_input,j exists, |v_script,j-v_input,j|≤ε_j, it is determined that the j-th operating condition parameter passes the consistency check at the corresponding level, where ε_j is the comparison tolerance corresponding to the j-th operating condition parameter in the parameter execution contract.
[0013] Furthermore, when the same target parameter has multiple candidate assignment positions in a script, template, or user subroutine, the variable definition node, assignment node, scope, and calling relationship are obtained through Abstract Syntax Tree (AST) parsing, and the valid assignment position is determined based on the dominant assignment before the target execution statement; or, when AST parsing cannot be performed, regular expression matching is performed based on variable name, assignment symbol, comment filtering rules, context window, and preset key execution statements, and the last valid assignment that conforms to the rules before the preset key execution statement is determined as the valid assignment position.
[0014] Furthermore, following S6, it also includes steps for reverse tracing of simulation results based on operational condition fingerprints and for credibility auditing: Obtain the result identifier of the simulation result to be audited, and read the historical operating condition fingerprint, operating condition parameters, parameter execution contract, and actual script, template or user subroutine version information associated with the simulation result from the historical archive in the physical storage medium according to the result identifier; Read the current operating condition parameters, parameter execution contract, and actual execution file used for review; standardize the fields corresponding to the historical operating condition fingerprint and regenerate the review operating condition fingerprint. The verification working condition fingerprint is compared with the historical working condition fingerprint, and the parameters, execution files and solution environment corresponding to the historical simulation results are determined to be consistent with the current verification baseline based on the comparison results. When the operating condition fingerprints are inconsistent, locate the parameters, executable file versions, or execution environment items that cause the differences, and output a credibility audit result containing the differences and their corresponding historical records; when the operating condition fingerprints are consistent, mark the simulation results as consistent with the current review baseline.
[0015] This invention also provides a multi-condition simulation system based on parameter dependency propagation and trusted execution verification, including at least one processor, physical storage space, one or more simulation computing nodes, and a scheduling component communicating with the simulation computing nodes, wherein: The workspace management component is used to establish mutually isolated independent execution workspaces for different operating conditions in the physical storage space or isolated file system based on a read-only template baseline, and to limit write operations on scripts, configuration files, user subroutines and output files to the corresponding independent execution workspaces. The dependency analysis component is used to obtain the set of parameters ΔP that change from the current working condition to the baseline working condition, and to determine the affected execution nodes of the corresponding generated or updated physical geometry model, mesh, physical field boundary conditions, user subroutines, solver physical input files or solution tasks based on the parameter dependency graph. An incremental execution component is used to re-execute only the affected execution node on the corresponding simulation calculation node and reuse the unfailed intermediate model product that meets the reuse conditions; A resource monitoring component is used to acquire the status of at least one of the following resources of the simulation computing node: processor resources, graphics processor resources, memory resources, storage input / output resources, and solver license resources. The scheduling component is used to allocate incremental simulation tasks under different operating conditions to one or more simulation computing nodes based on the resources required by the affected execution nodes, the isolation status of the independent execution work area, and the resource status obtained by the resource monitoring component.
[0016] Compared with the prior art, the present invention has the following advantages: This invention establishes a binding relationship between the physical semantics of operating condition parameters and the actual execution object of the simulation through parameter execution contracts, so that parameter injection no longer depends on a single field name or a single software interface, and that parameter mapping, valid assignment identification and consistency verification have a common execution basis.
[0017] This invention uses a parameter dependency graph to convert the set of changing parameters ΔP into the affected range of the corresponding physical geometry model, mesh, physical field boundary conditions, user subroutines, solver physical input files, and solution tasks. It can determine the incremental re-execution chain according to the actual failure relationship, reducing geometric reconstruction, mesh generation, model assembly, and input file generation that are unrelated to the current parameter changes.
[0018] This invention distinguishes between "script text has been rewritten" and "simulation actual execution value has taken effect" through at least one level and optional multi-level consistency checks. It can detect problems such as variable overwriting with the same name, unit conversion errors, old script calls, old configuration residues, and input files not being updated, thereby reducing invalid solutions caused by erroneous parameters.
[0019] This invention performs downstream reachability search on the parameter dependency graph using BFS or DFS, and combines the actual file version and execution environment to determine the reuse of intermediate model products. This allows the graph search results to directly drive the invalidation, reuse, and regeneration of model files in the physical storage space of the computing device, rather than remaining at the level of abstract data processing.
[0020] This invention uses operating condition fingerprinting and reverse tracing methods to form a verifiable association between parameter execution contracts, actual execution files, solution environment and result files. It can reverse identify the actual parameters and execution baseline from historical simulation results and perform credibility audits on version differences.
[0021] This invention improves resource utilization in workstations, servers, HPC clusters, or cloud computing environments by establishing independent execution work areas in physical storage space or isolated file systems and implementing incremental scheduling in conjunction with copy-on-write (CoW) and computing resource status, while avoiding crosstalk of shared writable file parameters. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the 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 based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of the method of the present invention.
[0024] Figure 2This is a schematic diagram illustrating parameter dependency propagation and the determination of affected execution nodes in this invention.
[0025] Figure 3 This is a schematic diagram of the parameter consistency verification and execution evidence chain of the present invention.
[0026] Figure 4 This is a schematic diagram illustrating the reverse tracing and credibility auditing of simulation results based on working condition fingerprints in this invention.
[0027] Figure 5 This is a schematic diagram of the adaptive incremental scheduling system for physical storage space and simulation computing nodes according to the present invention. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] In this invention, "working condition" refers to the computational conditions that have a defined set of parameters and correspond to a single, independently identifiable simulation execution task. Working condition parameters may include geometric parameters, material parameters, load parameters, boundary parameters, process parameters, solution control parameters, and resource parameters.
[0031] In this invention, the "parameter execution contract" refers to a structured description object that binds the physical semantics of external parameters to the actual execution location of the simulation. Its purpose is not to restrict a specific file format, but to ensure that the same parameter can be deterministically mapped, converted, written, verified, and traced.
[0032] The "parameter dependency graph" in this invention is a directed graph G_p=(V,E) describing the relationship between changes in operating parameters and the failure of actual simulation execution nodes. Here, parameter nodes V_p represent physical operating parameters, script or template execution nodes V_s represent scripts or templates that can be read and executed by the processor, intermediate model output nodes V_m represent geometric models, meshes, material models, or assembly models stored in physical storage space, solver physical input nodes V_i represent input files or runtime parameter objects that the solver can directly read, and solution task nodes V_q represent solution tasks executed on workstations, servers, or HPC computing nodes. Dependency edges E indicate that changes in upstream nodes will cause the corresponding actual files, model objects, or solution tasks of downstream nodes to fail, requiring regeneration or re-verification.
[0033] The "intermediate model products" in this invention include, but are not limited to, physical geometry model files, mesh files, material definition files, CAE model files, physical field boundary condition assembly files, solver physical input files, compiled user subroutines, solver preprocessing files, and computational products that can be directly read by subsequent execution stages.
[0034] In this invention, "valid assignment" refers to a parameter value that can affect subsequent model construction or solution in the actual execution path of the simulation. When the same variable is assigned multiple times, the valid assignment is not the same as the first match in the text, but is determined according to the scope, execution order, target statement context, or actual solution entry point.
[0035] This invention provides a multi-condition simulation method based on parameter dependency propagation and trusted execution verification, comprising the following steps: S1. Obtain a set of working condition parameters for multiple working conditions to be executed. The working condition parameters are used to describe at least one of the geometric parameters, material parameters, process parameters, physical field boundary parameters, or solution control parameters of the physical object to be simulated. For the i-th working condition, the set of working condition parameters can be represented as C_i={case_id_i,p_1,i,p_2,i,…,p_n,i}. Here, case_id_i is the working condition identifier, and p_j,i is the j-th parameter of the current working condition. The parameter source can be a structured parameter table, or it can be provided by an external optimization program, experimental design program, or database on a working condition-by-working-condition basis.
[0036] S2. Map at least one operating condition parameter to the actual simulation execution object, and establish a physical semantics binding the operating condition parameter to the parameter execution contract of the actual simulation execution object; Let the set of source parameters be A = {a_1, a_2, ..., a_m}, and the set of target parameters in the simulation object be B = {b_1, b_2, ..., b_k}. When field a_j and target parameter b_k have the same physical meaning, a mapping M(a_j) = b_k is established. The mapping process can sequentially perform exact field matching, synonym field matching, manual mapping table matching, and unit normalization.
[0037] For the mapped parameters, a parameter execution contract K_j is established. For example, K_j may include the source field src_j, the physical meaning_j, the target parameter target_j, the target execution object obj_j, the valid assignment location rule locator_j, the source unit unit_src,j, the target unit unit_tar,j, the parameter influence stage stage_j, the conversion or verification rule rule_j, and the comparison tolerance ε_j. The parameter execution contract is used to bind a physical parameter from its external parameter source to the actual simulation execution object and its verification location.
[0038] Parameter execution contracts can be stored in JSON, YAML, database records, or in-memory objects. This contract manages the parameter name, physical unit, execution location, and affected phase as a whole, ensuring that the same physical parameter has verifiable and consistent semantics across different scripting languages or simulation software.
[0039] Table 1 Examples of Parameter Execution Contract Fields
[0040] S3. Compare the current working condition with the baseline working condition or the completed working condition to obtain the set of changed parameters ΔP, and propagate the parameter changes corresponding to ΔP to the downstream execution nodes based on the parameter dependency graph to determine the affected execution nodes; the execution nodes correspond to at least one of generating or updating physical geometry models, meshes, physical field boundary conditions, user subroutines, solver physical input files or solution tasks; The system establishes a parameter dependency graph G_p=(V,E) based on the simulation execution chain. The node set V can include parameter nodes V_p, script or template nodes V_s, intermediate model output nodes V_m, solver input nodes V_i, and solution task nodes V_q. If a change in one node would invalidate the model output corresponding to another node, a directed edge is established between the two.
[0041] The system compares the current operating condition with the baseline operating condition to obtain the set of changed parameters ΔP. Starting from the parameter node V_p corresponding to ΔP, the system performs a downstream reachability search to obtain the set of affected execution nodes A = Reach(G_p, ΔP). A represents the set of actual execution nodes that at least need to be overwritten, regenerated, or re-executed under the current operating condition.
[0042] In one BFS implementation, the system establishes a first-in-first-out queue Q and a visited node set Visited. The parameter node V_p corresponding to ΔP is added to Q. The system iteratively retrieves the head node u from the queue and reads all downstream adjacent nodes v originating from u in the parameter dependency graph. If v is not included in Visited, it is added to both Visited and Q. If v belongs to a script or template execution node V_s, an intermediate model output node V_m, a solver physical input node V_i, or a solution task node V_q, it is simultaneously added to the affected execution node set A. The search ends when Q is empty. A drives the invalidation marking of the corresponding physical storage file, regeneration, or resubmission of the solution task.
[0043] In another DFS implementation, the system stores nodes to be visited using a stack or recursive calls, and traverses downstream from the parameter node V_p corresponding to ΔP along the outgoing edges. Each unvisited node is marked as invalid, until no new downstream nodes exist, at which point the system backtracks to the previous branch. Both BFS and DFS are used to compute the downstream reachable set in the parameter dependency graph, and the choice between them does not change the binding relationship between the affected execution nodes and the actual simulation file, model object, and solution task.
[0044] For intermediate model artifacts that do not belong to A, a reuse check is required. The reuse check can examine the subset of generated parameters, source script / template version, simulation software version, and execution environment identifier corresponding to the artifact. If the above reuse elements are consistent with the archived records, the artifact is directly copied, linked, or referenced to the current working area; if there are inconsistencies, the artifact itself and its downstream nodes are appended to A.
[0045] S4. Rewrite, regenerate, or recalculate the affected execution nodes, and reuse the intermediate model products that are not identified as affected execution nodes and meet the reuse conditions. Therefore, the "minimum re-execution" of this invention is not simply skipping fixed steps, but is determined by parameter changes, dependencies, and version validity. This avoids accidental reuse and reduces repeated executions unrelated to current parameter changes.
[0046] Table 2 Examples of parameter dependencies in LPBF scenarios
[0047] To determine whether different operating conditions share the same executable configuration baseline, a operating condition fingerprint F_i can be generated by normalizing the normalized set of operating condition parameters, parameter execution contract version, parameter dependency graph version, actual script or template content summary, user subroutine content summary, simulation software or solver version, and execution environment identifier. For example, it can be represented as F_i = Hash(Canonical(P_i, K_ver, G_ver, S_ver, E_ver)). Here, Hash represents deterministic digest operation, Canonical represents uniform field sorting, character encoding, and numerical formatting; S_ver can be composed of the content summary of the actual executable file in the physical storage medium to avoid version misjudgment caused by relying solely on filenames or paths.
[0048] Targeted overwriting is used to write normalized parameter values from a parameter execution contract into a target execution object. For text-based scripts or user subroutines, candidate assignment positions can be located based on the target parameter name, assignment symbol, comment marker, syntax structure, key statement context, or scope information, and only the target part in the numeric or parameter expression will be replaced. For model objects or structured configurations, assignment can be completed through corresponding keys, object attributes, or identifiers.
[0049] When the same target parameter appears in multiple assignment positions, the system does not directly use the first text match as the true value, but determines the valid assignment based on the scope, execution order and control relationship of the target parameter with the key solver statement in the actual execution path of the simulation.
[0050] For Python, Java, or other scripts capable of constructing an Abstract Syntax Tree (AST), the source file can be parsed to generate the AST. The variable definition and assignment nodes in the target_j field of the execution contract are retrieved according to the parameters. The scope of the function, module, or code block in which the node resides is determined. The assignment that dominates the call before the actual call to the model construction, physics setup, input file output, or solution submission statement is searched along the control flow or statement sequence. When multiple sequential assignments exist in the same scope, the last valid assignment before the critical call is selected as v_script,j.
[0051] For Fortran source files, template files, or text objects that cannot stably construct an AST, contextual regular expression matching can be used: first, remove entire-line comments and inline comment ranges; then, construct candidate assignment regular expressions using variable names, assignment symbols, and numerical formats; and limit the search window before the key execution statement specified in the parameter execution contract. If there is more than one candidate assignment, select the last assignment that satisfies the scope or label rules before the key execution statement according to the actual statement order in the file. For example, for the heat source power parameter P_W_CFG, the last valid assignment of P_W_CFG can be located and its value read before the heat flux calculation expression or the heat source subroutine return statement.
[0052] S5. Based on the parameter execution contract, perform at least one level of consistency check on the valid assignments in the simulation execution chain and the corresponding operating condition parameters; when the consistency check does not meet the preset conditions, block the current operating condition from entering the corresponding subsequent execution stage. like Figure 3 As shown, this consistency verification chain includes multiple levels of verification steps. After the target parameter injection is completed, the system establishes a consistency verification chain from the operating condition parameters to the valid input of the solver according to the parameter execution contract. For the j-th operating condition parameter, the parameter value v_j for the target execution object is obtained according to the unit conversion and numerical format rules in the contract; the valid assignment v_script,j is extracted from the script, template, user subroutine, or model object; when the solver physical input file, runtime parameter file, or environment variables can parse the corresponding parameter, the valid input value v_input,j of the solver is further obtained.
[0053] When |v_j-v_script,j|≤ε_j, and |v_script,j-v_input,j|≤ε_j exists, and the version of the target executable file actually called is consistent with the current execution configuration, the j-th condition parameter is determined to have passed the consistency check at the corresponding level; where ε_j is the comparison tolerance in the parameter execution contract corresponding to the j-th condition parameter. If any level is inconsistent, the system records the execution node where the inconsistency occurred, the expected value, and the actual read value, and blocks the current condition from entering the corresponding subsequent execution stage.
[0054] For parameters that cannot be directly parsed from the solver input file, such as parameters that participate in the calculation when the compiled user subroutine is run, alternative verification points can be formed by at least one of the following: runtime parameter file, environment variables, valid assignment of source files before compilation, compilation log, solver log, or preset echo records.
[0055] Therefore, the multi-level consistency check of the present invention does not only confirm that the text has changed, but is used to determine whether the parameters have entered the actual solution environment along the predetermined execution chain with the correct unit, the correct position and the correct version.
[0056] Table 3 Examples of Multi-Level Consistency Evidence Chains
[0057] S6. After the necessary parameters pass the consistency check, call the simulation solver to execute the current working condition, and archive at least three of the following items: working condition parameters, parameter execution contract, affected execution nodes, intermediate model product reuse record, solver input, solver log and simulation results. After all necessary parameters pass consistency verification, the system calls the target simulation software's script entry point, command line entry point, batch processing entry point, or other existing solution entry point to execute the simulation. Different simulation software can maintain consistency in their overall technical processes, including parameter execution contracts, dependency propagation, workspace isolation, and consistency verification, through the use of execution adapters to encapsulate task submission commands, status monitoring methods, and result file identification methods.
[0058] After simulation, the system archives at least several items from the following: operating condition parameters, configuration files, operating condition fingerprints, parameter execution contracts, actual script / template versions used, valid assignment locations, set of affected execution nodes, intermediate model product reuse records, solver input files, logs, and result files. Using the operating condition fingerprint or unique operating condition identifier, the actual parameters and execution configuration that produced the result can be retrieved from any result file.
[0059] When it is necessary to reproduce a historical result, the operating condition fingerprint can be recalculated for the currently prepared parameters, mapping rules, script version and environment and compared with the historical fingerprint. If they are inconsistent, it will prompt that the current execution baseline is inconsistent with the historical simulation, so as to avoid mistaking the results of different versions as the same operating condition.
[0060] like Figure 4 As shown, after the simulation is completed, the system can associate the result file or result directory identifier with the operating condition fingerprint F_i and write it to the historical archive. The operating condition fingerprint F_i can be calculated from several items among the normalized operating condition parameters, parameter execution contract version, actual execution file content summary, solver version, and execution environment identifier. The actual execution file content summary is calculated based on the content of script, template, or user subroutine file stored in the physical storage medium, rather than just using the filename.
[0061] When auditing historical simulation results, the historical archive is first located based on the result identifier, and the historical operating condition fingerprint F_hist, corresponding operating condition parameters, parameter execution contracts, and a list of actual execution files are extracted. Then, the corresponding parameters and actual files in the current review baseline are read, and the review operating condition fingerprint F_check is recalculated according to the same normalization rules as the historical fingerprint. If F_check = F_hist, it indicates that the parameters, file versions, and execution environment are consistent across the selected fingerprint fields. If F_check ≠ F_hist, the normalized fields participating in the summary are compared item by item to locate the changed parameters, script or user subroutine content, solver version, or execution environment items.
[0062] If the fingerprints match, one or more valid historical assignments can be extracted from historical scripts, user subroutines, solver physical input files, or runtime logs according to the parameter execution contract, and then compared with historical operating parameters for consistency verification. Thus, reverse tracing not only confirms whether the file sets are consistent, but also confirms whether the key physical parameters corresponding to historical results have actually taken effect along the predetermined execution chain.
[0063] like Figure 5 As shown, in server, HPC cluster, or cloud computing environments, the workspace management component establishes an independent execution workspace for each workspace within physical storage or an isolated file system. This independent execution workspace originates from a read-only template baseline and can be formed using full replication, hard linking followed by on-demand replication, copy-on-write (CoW), or a containerized union file system. Writable scripts, configuration files, copies of user subroutines, or output directories are not shared between different workspaces.
[0064] When using Copy-on-Write (CoW), multiple work cases can share a read-only base file. When a work case modifies the target script or user subroutine for the first time, the file system creates a private writable copy in the physical storage area corresponding to that work case, and subsequent writes only affect this private copy. This mechanism ensures that parameter files remain isolated even when multiple work cases are executed in parallel.
[0065] The resource monitoring component periodically or event-triggeredly reads the available CPU / GPU resources, memory, storage I / O load, and number of solver licenses available for each simulation computing node. The scheduling component, based on the resource requirements of each execution node in the affected execution node set A, the storage location of reusable intermediate products, and the workspace isolation status, selects the target simulation computing node and submits only the incremental execution tasks corresponding to A; when there is a conflict of shared writable resources, the system switches to serial submission or creates a new private working copy for the conflicting situation.
[0066] S7. Repeat S2 to S6 for the remaining pending conditions.
[0067] Example 1: Multi-condition simulation of single-channel molten pool in Abaqus LPBF This embodiment uses a single-channel molten pool heat conduction simulation of laser powder bed melting (LPBF) in Abaqus as an example. The parameters to be executed include laser power P, scanning speed v, spot radius r, absorptivity α_abs, emissivity ε_rad, liquid thermal conductivity correction factor λ_m, top layer thickness h, and axial distribution parameters of the heat source.
[0068] The parameter source uses a CSV file, with each row corresponding to an independent operating condition. The scheduler first reads the parameters of the current row and establishes a parameter execution contract based on the parameter mapping relationship. For example, the parameter laser_power is mapped to P_W_CFG in the Fortran user subroutine, with the unit being W, and its influence stage is the heat source input; the top layer thickness h is mapped to the layer thickness parameter in the geometric modeling script, and its influence stage is geometry generation.
[0069] like Figure 2 As shown, the system establishes a parameter dependency graph G_p with reference to the baseline operating condition. Laser power P, scanning speed v, top layer thickness h, and emissivity ε_rad serve as parameter nodes V_p; the geometric modeling script, thermal boundary script, and heat source user subroutine serve as script or template execution nodes V_s; the generated geometric model and mesh serve as intermediate model output nodes V_m; the Abaqus input file serves as the solver physical input node V_i; and the Abaqus solver task serves as the solver task node V_q. The V_p corresponding to h is connected to the geometry V_s, and then to the geometry or mesh V_m and V_i; the V_p corresponding to P and v are connected to the heat source user subroutine V_s and further connected to V_i and V_q.
[0070] If the current operating condition only changes P and v compared to the baseline operating condition, then the set of changed parameters ΔP = {P, v}. The system performs a BFS or DFS downstream reachability search starting from the parameter node V_p corresponding to P and v. The resulting affected execution nodes mainly include the heat source user subroutine node V_s, the input items related to the user subroutine binding in the solver physical input node V_i, and the solution task node V_q. If the intermediate model output node V_m corresponding to the geometry and mesh is not within the set of affected execution nodes A, and its generation parameters, script version, and execution environment meet the reuse conditions, it is directly reused without re-performing geometry generation and mesh generation.
[0071] The system performs targeted overwriting of P_W_CFG and V_MS_CFG corresponding to the user subroutine node V_s in the independent execution workspace of the current operating condition. For Fortran user subroutines, context regularization can be used to determine the last valid assignment v_script,j before the key statements for heat source calculation; then, v_j after the parameter contract processing in the parameter table is compared with v_script,j, and if runtime parameter echo or solver input can be obtained, v_input,j is further obtained to perform multi-level consistency checks; after passing the checks, the Abaqus solver task corresponding to V_q is submitted.
[0072] If the top layer thickness h is changed in the next working case, the geometric nodes, mesh nodes, input file nodes, and their downstream solver nodes corresponding to h are all added to the set of affected execution nodes. The system re-executes geometric modeling and mesh generation, but other files that are independent of geometric changes and satisfy version consistency can still be reused.
[0073] After the solution is completed, the system binds and archives the current working condition CSV line, parameter execution contract, working condition fingerprint, set of affected execution nodes, reused CAE or mesh artifact records, actual user subroutine version, Abaqus input file, ODB results, and solution log. The actual effective P, v, h parameters and their execution versions can be retrieved from the ODB results.
[0074] Example 2: Cross-Simulation Software Execution This embodiment illustrates the implementation of the present invention in COMSOL or other software that supports scripted modeling and batch solving. The upper-level operating parameters are still provided by a unified parameter source, but the target execution object, assignment positioning rules, and task submission adapter in the parameter execution contract are configured according to the target software.
[0075] For example, the same heat source power parameter can be located to a Fortran user subroutine in the Abaqus embodiment, and to a parameter object in the model script in the COMSOL embodiment. The system still forms a parameter execution contract based on physical meaning and units, and uses the target software-specific object path or script location as the target and obj fields in the contract.
[0076] The execution nodes in the dependency graph can be replaced with COMSOL model components, mesh nodes, study steps, solver configurations, or batch inputs, but the overall approach of propagating parameter changes to execution nodes, reusing unaffected products, multi-level consistency checks, independent workspaces, and result fingerprint archiving remains unchanged. Therefore, what needs to be changed between different simulation software is the underlying execution adaptation information, rather than rewriting the complete multi-condition trusted execution logic.
[0077] Example 3: Batch Simulation Driven by DOE or Optimization Algorithms In this embodiment, the operating parameters are not directly derived from the static CSV, but are output batch by batch by the Design of Experiments (DOE) module, Bayesian optimization module, genetic algorithm, or other parameter generation program. The parameter generation module is only responsible for providing the set of candidate parameters. This invention is responsible for converting the candidate parameters into parameter execution contracts, performing execution dependency analysis, determining the minimum re-execution range, and completing reliable simulation.
[0078] For a large number of consecutive adjacent operating conditions, the system can prioritize the completed operating condition with the smallest difference from the current operating condition and the highest degree of reusability of intermediate products as the baseline operating condition to reduce the number of failed nodes. This baseline selection can be based on the number of changing parameters, the number of downstream nodes in the dependency graph, or the estimated re-execution cost, but it does not change the basic mechanism of determining the actual affected nodes along the dependency graph by changing parameters.
[0079] In this way, the present invention can serve as a reliable execution layer between the parameter optimization algorithm and the CAE solver, ensuring that each set of candidate parameters enters the solution according to the specified units and actual execution positions, and avoiding mechanical repetitive calculations on unaffected model stages.
[0080] Example 4: Reverse Tracing and Reliability Audit of Historical ODB Results This embodiment takes the review of historical Abaqus ODB results as an example. The system receives the target ODB file path or result identifier, and reads the historical operating condition fingerprint F_hist, historical parameter execution contract, parameter table row, summary of the content of the Fortran user subroutine actually used, Abaqus version, and execution environment identifier from the archive list bound to the result.
[0081] After auditors prepare the current review baseline, the system reads the current parameter table, user subroutines, and execution configuration from the physical storage medium, and generates F_check using the same field sorting, numerical standardization, and summary rules as the historical archive. If F_check ≠ F_hist, the system further compares the standardized parameters and file content summaries item by item, and outputs differences such as "different scan speed parameters," "changes in heat source user subroutines," or "changes in Abaqus version." If F_check = F_hist, the system continues to extract key parameter valid values from historical input files or user subroutines according to the parameter execution contract and performs consistency review.
[0082] Through the above reverse process, even without rerunning the complete preprocessing, the corresponding operating parameters, actual execution files, and solution environment can be confirmed from the historical result files, and a machine-verifiable audit conclusion can be given on whether the historical simulation results are consistent with the current review baseline.
[0083] Example 5: Systems, Devices, and Storage Media The above method can be implemented by an adaptive incremental scheduling system for simulation computing resources deployed in workstations, servers, HPC clusters, or cloud computing environments. The system includes at least one processor, physical storage space, and one or more simulation computing nodes; a parameter contract module is used to bind operational parameters to actual execution objects; a dependency analysis component stores the parameter dependency graph G_p and determines the set of affected execution nodes A; a workspace management component establishes an independent execution workspace for the operational condition in physical storage space or an isolated file system; an incremental execution component is responsible for regenerating affected nodes and reusing unexpired artifacts; a consistency verification component verifies v_j, v_script,j, and v_input,j when available; a resource monitoring and scheduling component submits serial or parallel incremental tasks based on computing resources and workspace isolation status; and an archiving and auditing component stores operational condition fingerprints and performs reverse tracing of historical results.
[0084] The system can be deployed on a single workstation, server, HPC cluster, or cloud computing environment. The electronic device may include a processor, memory, network interface, and storage device; the processor implements the method steps of the present invention when executing a computer program in the memory.
[0085] This invention can also be implemented using a computer-readable storage medium and a computer program product. When the computer program or computer instructions stored in the storage medium are executed by a processor, the processor performs parameter execution contract generation, dependency propagation, multi-level consistency verification, work area isolation, task submission, and result archiving.
[0086] 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. A multi-condition simulation method based on parameter dependency propagation and trusted execution verification, characterized in that, Includes the following steps: S1. Obtain a set of working condition parameters for multiple working conditions to be executed. The working condition parameters are used to describe at least one of the geometric parameters, material parameters, process parameters, physical field boundary parameters, or solution control parameters of the physical object to be simulated. S2. Map at least one operating condition parameter to the actual simulation execution object, and establish a physical semantics binding the operating condition parameter to the parameter execution contract of the actual simulation execution object; S3. Compare the current working condition with the baseline working condition or the completed working condition to obtain the set of changed parameters ΔP, and propagate the parameter changes corresponding to ΔP to the downstream execution nodes based on the parameter dependency graph to determine the affected execution nodes; the execution nodes correspond to at least one of generating or updating physical geometry models, meshes, physical field boundary conditions, user subroutines, solver physical input files or solution tasks; S4. Rewrite, regenerate, or recalculate the affected execution nodes, and reuse the intermediate model products that are not identified as affected execution nodes and meet the reuse conditions. S5. Based on the parameter execution contract, perform at least one level of consistency verification on the valid assignments and corresponding operating condition parameters in the simulation execution chain; When the consistency check fails to meet the preset conditions, the current operating condition is blocked from entering the corresponding subsequent execution stage. S6. After the necessary parameters pass the consistency check, call the simulation solver to execute the current working condition, generate the working condition fingerprint of the current working condition, and archive at least three of the following: working condition parameters, parameter execution contract, working condition fingerprint, affected execution nodes, intermediate model product reuse record, solver input, solver log and simulation results. S7. Repeat S2 to S6 for the remaining pending conditions.
2. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 1, characterized in that, The parameter execution contract includes at least three of the following fields: parameter field name, physical meaning, source unit, target unit, target parameter, target execution object, effective assignment location rule, parameter impact stage, unit conversion rule, allowed value range, numerical format rule, comparison tolerance, and result traceability. The target execution object includes at least one of the following: simulation model script, user subroutine, template file, model object, physical field boundary object, or solver input object.
3. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 1, characterized in that, The mapping of the operating condition parameters includes at least one of precise field matching, synonym field matching, preset mapping table matching, physical quantity dimension verification, and unit conversion; when the necessary operating condition parameters cannot be uniquely mapped to the actual simulation execution object, or the physical quantity dimensions are inconsistent and there is no preset conversion rule, the submission of the simulation task for the current operating condition is blocked.
4. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 1, characterized in that, The parameter dependency graph is denoted as G_p=(V,E). The node set V includes at least three types of nodes: parameter nodes V_p, script or template execution nodes V_s, intermediate model output nodes V_m, solver physical input nodes V_i, and solution task nodes V_q. The directed edge E is used to characterize the dependency relationship that causes the downstream execution object to fail, need to be regenerated, or need to be re-verified when the upstream parameter or execution object changes.
5. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 4, characterized in that, Starting with the parameter nodes corresponding to the set of changing parameters ΔP, downstream reachability search is performed along the outgoing edges of the parameter dependency graph G_p using either breadth-first search (BFS) or depth-first search (DFS). The reachable nodes obtained from the search, corresponding to the actual simulation execution objects, are determined as the set of affected execution nodes A. When changes are found in the source script version, simulation software version, or execution environment during the search process, the nodes that have failed due to the changes and their downstream reachable nodes will be added to the set A of affected execution nodes.
6. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 5, characterized in that, For intermediate model products that do not belong to the affected execution node set A, execution reuse determination is made based on at least two of the following: the subset of generation parameters corresponding to the intermediate model product, the source script or template version, the simulation software version, the solver version, and the execution environment identifier. When the reuse determination meets the preset consistency conditions, the corresponding intermediate model product stored in the physical storage space of the computing device is reused. When the conditions are not met, the intermediate model product and its downstream nodes are added to the affected execution node set A.
7. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 1, characterized in that, The consistency check includes: performing unit conversion and numerical format processing on the j-th operating condition parameter according to the parameter execution contract to obtain the parameter value v_j for the target execution object; obtaining the valid assignment v_script,j in the script, template, user subroutine, or model object; further obtaining the valid input value v_input,j of the solver when the corresponding parameter can be parsed in the solver physical input file, runtime parameter file, or environment variables; determining that the j-th operating condition parameter passes the consistency check at the corresponding level when |v_j-v_script,j|≤ε_j, and |v_script,j-v_input,j|≤ε_j when v_input,j exists, where ε_j is the comparison tolerance corresponding to the j-th operating condition parameter in the parameter execution contract.
8. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 7, characterized in that, When the same target parameter has multiple candidate assignment positions in a script, template, or user subroutine, the variable definition node, assignment node, scope, and calling relationship are obtained through Abstract Syntax Tree (AST) parsing, and the valid assignment position is determined based on the dominant assignment before the target execution statement. Alternatively, when AST parsing cannot be performed, regular expression matching is performed based on the variable name, assignment symbol, comment filtering rules, context window, and preset key execution statements, and the last valid assignment that conforms to the rules before the preset key execution statement is determined as the valid assignment position.
9. The multi-condition simulation method based on parameter dependency propagation and trusted execution verification according to claim 1, characterized in that, Following S6, the simulation results are traced back and their credibility audited based on operational condition fingerprints. Obtain the result identifier of the simulation result to be audited, and read the historical operating condition fingerprint, operating condition parameters, parameter execution contract, and actual script, template or user subroutine version information associated with the simulation result from the historical archive in the physical storage medium according to the result identifier; Read the current operating condition parameters, parameter execution contract, and actual execution file used for review; standardize the fields corresponding to the historical operating condition fingerprints; and regenerate the review operating condition fingerprints. The verification working condition fingerprint is compared with the historical working condition fingerprint, and the parameters, execution files and solution environment corresponding to the historical simulation results are determined to be consistent with the current verification baseline based on the comparison results. When the operating condition fingerprints are inconsistent, locate the parameters, executable file versions, or execution environment items that cause the differences, and output a credibility audit result containing the differences and their corresponding historical records; when the operating condition fingerprints are consistent, mark the simulation results as consistent with the current review baseline.
10. A multi-condition simulation system based on parameter dependency propagation and trusted execution verification, characterized in that, It includes at least one processor, physical storage space, one or more simulation computing nodes, and a scheduling component that communicates with the simulation computing nodes, wherein: The workspace management component is used to establish mutually isolated independent execution workspaces for different operating conditions in the physical storage space or isolated file system based on a read-only template baseline, and to limit write operations on scripts, configuration files, user subroutines and output files to the corresponding independent execution workspaces. The dependency analysis component is used to obtain the set of parameters ΔP that change from the current working condition to the baseline working condition, and to determine the affected execution nodes of the corresponding generated or updated physical geometry model, mesh, physical field boundary conditions, user subroutines, solver physical input files or solution tasks based on the parameter dependency graph. An incremental execution component is used to re-execute only the affected execution node on the corresponding simulation calculation node and reuse the unfailed intermediate model product that meets the reuse conditions; A resource monitoring component is used to acquire the status of at least one of the following resources of the simulation computing node: processor resources, graphics processor resources, memory resources, storage input / output resources, and solver license resources. The scheduling component is used to allocate incremental simulation tasks under different operating conditions to one or more simulation computing nodes based on the resources required by the affected execution nodes, the isolation status of the independent execution work area, and the resource status obtained by the resource monitoring component.
