A single-cell planar geometry parameterization automatic batch modeling method and system

CN122735390BActive Publication Date: 2026-10-27SOUTHWEST JIAOTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611202398.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-10-27
Estimated Expiration
2046-08-10

AI Technical Summary

Technical Problem

部分技术通过固定脚本编码参数与计算公式,实现单一类型结构的自动建模,在标准化周期性结构中已得到应用,但需手动处理参数文件与脚本的匹配,依赖用户在软件间进行文件传输与调用,流程衔接依赖人工操作,未形成完整的一体化解决方案

Benefits of technology

[0016]有益效果:本发明提出一种单胞平面几何结构参数化自动批量建模方法及系统,通过交互式图形用户界面实现全流程可视化配置,从参数与轮廓定义、坐标表达式与冲突条件设置,到参数组合生成、几何相容性判别、脚本自动生成及批量建模执行,形成一体化闭环流程,提升建模效率与适配性。本发明通过支持用户自定义内外轮廓数量、点数及坐标计算逻辑,打破传统技术对单一结构类型的依赖,灵活适配具有复杂轮廓和非对称特征的多样化单胞结构,解决了现有技术结构适配性受限的缺点;同时,通过独立参数变化属性配置、冲突条件预判机制,无需修改脚本即可灵活设定参数变化范围与步长,提前剔除导致几何自交或无效拓扑的参数组合,避免建模失败后的被动排查,解决了现有技术参数配置繁琐、缺乏有效冲突预判的问题,为大规模三维模型样本库快速构建提供高效支撑,降低建模操作门槛与计算资源浪费。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122735390B_ABST
    Figure CN122735390B_ABST
Patent Text Reader

Abstract

The application discloses a kind of single-cell plane geometric structure parameterization automatic batch modeling method and system, it is related to geometric structure parameter modeling technical field, including: by interactive graphical user interface complete geometric parameter, inside and outside contour configuration and coordinate calculation expression and conflict condition setting, support structure single-cell definition save and call;For each parameter configuration change attribute and range, generate parameter combination cartesian product, eliminate invalid combination by geometric compatibility discrimination;Automatic generation including coordinate data and modeling logic script, run in finite element analysis software to batch create independent three-dimensional solid model and execute bidirectional array merging.The method is adapted to diversified single-cell structure without modifying code through parameter configuration, contour definition, conflict prediction and script generation process, simplifies operation process, improves the adaptability, efficiency and reliability of batch modeling, applicable to the scene that artificial intelligence model needs large-scale training sample library construction, such as metamaterial design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of geometric structure parameter modeling technology, and in particular to a method and system for automatic batch modeling of unit cell planar geometric structures using parameterization. Background Technology

[0002] With the widespread application of data-driven structural design optimization technology in the field of metamaterials, the construction of large-scale, high-quality 3D model sample libraries has become a critical requirement. Building such sample libraries requires repeated execution of parameter adjustments, geometric modeling, and finite element simulation processes. Traditional modeling methods struggle to meet the demands for efficient batch generation, becoming a bottleneck restricting the implementation of related technologies. Against this backdrop, parametric automatic batch modeling technology for planar unit cell structures has emerged, aiming to solve problems such as low efficiency and poor adaptability in complex structure modeling, and providing support for neural network-driven simulation analysis.

[0003] In existing technologies, parametric modeling is mostly achieved through script programs combined with data files in specific formats. Typically, the scale and geometric parameters of the structure are first set, then the coordinates of the structure's vertices are calculated using algorithms, and the coordinates and connectivity relationships are written into an intermediate table file before being imported into simulation software to generate the model. Some technologies achieve automatic modeling of single-type structures by fixing script-coded parameters and calculation formulas, and have been applied to standardized periodic structures. However, this requires manual handling of matching parameter files and scripts, relies on users transferring and calling files between software programs, and the workflow depends on manual operation, failing to form a complete integrated solution.

[0004] Existing technologies have two major drawbacks: First, their structural adaptability is limited. Most methods are only applicable to single structure types with fixed periodic characteristics. Their geometric calculation logic and parameter settings are relatively rigid, making it difficult to flexibly adapt to diverse unit cell structures with complex internal and external contours and asymmetric features, thus failing to meet customized modeling needs. Second, their parameter configuration and conflict prediction capabilities are insufficient. The range of parameter changes and step size need to be implemented by modifying the internal code of the script, which is cumbersome and error-prone. At the same time, there is a lack of advance judgment on the validity of parameter combinations. When parameter settings lead to structural self-intersection or topological invalidity, it is necessary to passively investigate after modeling failure, wasting computational resources and time. Summary of the Invention

[0005] In order to overcome the shortcomings and deficiencies of the existing technology, the present invention provides a method and system for automatic batch modeling of single-cell planar geometry parametrically.

[0006] The technical solution adopted in this invention is a parameterized automatic batch modeling method for unit cell planar geometric structures, comprising the following steps: S1, setting the total number of geometric parameters, the number of angle parameters, and the name of each parameter through an interactive graphical user interface, while setting the number of outer contour points, the number of inner contour points, and the number of points for each inner contour, supporting the calling of saved structural unit cell definition files; S2, inputting the coordinate calculation expressions for each point of the outer contour and each inner contour, configuring multiple geometric conflict conditions composed of left and right expressions and a greater than sign, and storing the current structural unit cell definition data as a specified format file; S3, configuring whether each parameter changes, setting a constant value or a range of change and a step size, and specifying... The modeling script stores the path and out-of-plane extrusion dimensions, selects whether to enable bidirectional array and sets the array quantity, and generates the Cartesian product of all parameter combinations; S4, iterates through all parameter combinations, converts angle parameters to radians and calculates the coordinates of each contour point, and judges whether the parameter combination leads to geometric self-intersection or invalid topology based on conflict conditions. If a conflict exists, a prompt is triggered and the process is terminated; S5, for parameter combinations that pass the compatibility judgment, a script file including all point coordinate data and modeling logic is generated under the specified path; S6, the script is run in the finite element analysis software, automatically creating an independent three-dimensional solid model for each group of valid parameter combinations, and performing bidirectional array merging operation according to the settings.

[0007] Furthermore, the expression for calculating the coordinates of the outer contour points includes: ; ; in, These are the reference dimensions for the outer contour. The main tilt angle parameter of the outer contour. This is the contour scaling factor parameter. This is the lateral offset parameter. This is the vertical offset parameter. These are the boundary correction coefficient parameters. As auxiliary angle parameters, For the outer contour X coordinates of points For the outer contour The Y coordinates of the points.

[0008] Furthermore, the expression for calculating the coordinates of the inner contour points includes: ; ; in, This is the scaling parameter for the inner contour. This is the inner contour offset parameter. The inner contour twist angle parameter. These are the parameters representing the correlation coefficient between the inner and outer contours. For the corresponding outer contour point X coordinate, For the corresponding outer contour point Y coordinate, Number the inner contour. The inner contour point number, For the first The inner contour of the first X coordinates of points For the first The inner contour of the first The Y coordinates of the points.

[0009] Furthermore, the geometric conflict condition expression includes: ; ; ; ; ; ; in, The parameter is the collision threshold for the distance between the inner contour vertices. This is the threshold parameter for the conflict of contour slope differences. The parameter representing the conflict value between the inner and outer contour spacing. For the outer contour X coordinates of points For the outer contour The Y-coordinate of each point The distance between the contour vertices. The slope of the profile. This represents the outline spacing.

[0010] Furthermore, the parameter combination to generate the expression includes: ; ; in, The total number of parameter combinations. The total number of parameters. For the first Upper limit value of each parameter For the first Lower limit values ​​for each parameter, For the first One parameter step size, For the first Group 1 Parameter values, For the first The parameter can be a sequence number. For the eigenvalues ​​of the parameter combination, For the first Each parameter weight coefficient This is the logarithmic adjustment factor. This is the offset constant parameter.

[0011] Further, S2 includes the following sub-steps: S21, in the outer contour tab of the interactive interface, an independent X and Y coordinate calculation expression input area is provided for each outer contour point, supporting the reference of defined parameter names and mathematical library functions. The input area is embedded with a scrollable container to adapt to multi-vertex scenes; S22, a dedicated tab is generated for each inner contour, and point coordinate expression input rows are configured according to the number of points of that inner contour. Each row is labeled with the inner contour number and point sequence number. The expression supports association with the outer contour coordinate parameters; S23, in the conflict condition tab, the number of conflict conditions is first set, and the system dynamically generates the corresponding input area according to the number. Each row includes two expression input boxes on the left and right and a fixed greater than sign label in the middle. The expression can reference parameters and contour point coordinate codes; S24, a structural unit cell definition saving function is provided, all input data is collected and displayed in preview, and after confirmation, it is stored in a specified format to a user-specified path. At the same time, an operation option to directly enter S3 is provided.

[0012] Further, S3 includes the following sub-steps: S31, the system generates a configuration row for each parameter based on the parameter information defined in S1, including a name label, a "Change" checkbox, a constant value / lower limit input box, an upper limit input box, and a step size input box. When "Change" is checked, the upper limit and step size input boxes are automatically enabled; S32, the configuration interface sets a working directory input box and a browse button. The user specifies the storage path of the modeling script through this component, and also provides an out-of-plane extrusion dimension input box to set the extrusion depth of the 3D model; S33, a "Enable bidirectional array" checkbox is set. When checked, the x-direction and y-direction array quantity input boxes are activated to configure the number of unit cell model arrays to be merged; S34, after the user completes all configurations, clicks the generate button. The system reads the configuration information of each parameter, generates a value list for each parameter, calculates the total number of parameter combinations, and starts the geometric compatibility judgment process.

[0013] Further, S4 includes the following sub-steps: S41, calling the parameter combination iterator to traverse all generated parameter combinations, copying the original parameter values ​​for each combination for conflict detection, and then converting the angle parameters from degrees to radians and updating the parameter set for coordinate calculation; S42, based on the coordinate expressions of each contour point defined in S2, calling the analytical function to calculate the two-dimensional coordinates of all points on the outer contour and all points on each inner contour, loading the mathematical library and the converted parameter set as global variables during the calculation; S43, constructing a local dictionary including the original parameter values, the list of outer contour points, and the independent coordinate variables of each contour point to provide a calculation environment for each conflict condition expression; S44, sequentially evaluating all conflict conditions corresponding to each parameter combination, marking the combination as conflicted if any condition is met, and if there are conflicting combinations after traversal, popping up an error dialog box and terminating the process, otherwise proceeding to the next step.

[0014] Further, S5 includes the following sub-steps: S51, the system integrates all parameter combinations that pass the compatibility judgment, the contour information defined in S1, and the coordinate expression in S2 to construct a script generation dataset, and clarifies the script storage path and file name specifications; S52, dynamically generates a complete Python script including a parameter list generation function, a point coordinate calculation function, geometric compatibility check code, model creation and sketching functions, and a batch modeling main loop; S53, the point coordinate calculation function performs angle parameter conversion and contour point coordinate calculation according to the expression logic in S2, and returns the outer contour point set and inner contour point set data; S54, the script includes model name generation logic, which uses the method of concatenating the first letter of the parameter name with the parameter value, and replaces the decimal point in the value with a hyphen to ensure compliance with the naming specifications of finite element software.

[0015] A parameterized automatic batch modeling system for unit cell planar geometry is disclosed. This system is applied to a parameterized automatic batch modeling method for unit cell planar geometry, comprising: an interactive parameter and contour definition unit, used to receive geometric parameter configurations, internal and external contour point count settings, and parameter name definitions input by the user through a graphical interface; supporting the calling and loading of predefined structural unit cell files; and passing configuration data to subsequent units; a coordinate expression and conflict condition configuration unit, used to provide an input interface for contour point coordinate calculation expressions and a conflict condition setting interface; parsing the input expression logic; verifying the validity of the expression; and storing the expression and conflict condition data; and a parameter combination generation and configuration unit, used to read the parameters and contour information passed from previous units, generate a value list based on the parameter change attributes set by the user, and calculate the Cartesian product of parameter combinations. The system receives the working directory, stretching dimensions, and array configuration parameters; the geometric compatibility intelligent discrimination unit is used to traverse parameter combinations, perform angle parameter unit conversion and contour point coordinate calculation, evaluate the geometric validity of each combination based on conflict conditions, mark conflicting combinations, and trigger corresponding processing mechanisms; the modeling script automatic generation unit is used to integrate effective parameter combinations and structural definition data, generate script files including coordinate calculation, model creation, and array merging logic according to the finite element software script specifications, and output them to the specified storage path; the batch modeling drive and execution unit is used to connect to the finite element analysis software, import the generated script files into the software environment, drive the software to automatically create 3D solid models according to the script logic, perform array merging operations, and output batch modeling results. Each unit transmits data sequentially through the data interface to form a complete modeling process.

[0016] Beneficial Effects: This invention proposes a parametric automatic batch modeling method and system for single-cell planar geometric structures. Through an interactive graphical user interface, it achieves full-process visual configuration, from parameter and contour definition, coordinate expression and conflict condition setting, to parameter combination generation, geometric compatibility judgment, automatic script generation, and batch modeling execution, forming an integrated closed-loop process that improves modeling efficiency and adaptability. By supporting user-defined inner and outer contour quantities, point counts, and coordinate calculation logic, this invention breaks away from the dependence of traditional technologies on single structure types, flexibly adapting to diverse single-cell structures with complex contours and asymmetric features, thus overcoming the limitation of limited structural adaptability in existing technologies. Simultaneously, through independent parameter change attribute configuration and conflict condition prediction mechanisms, the parameter change range and step size can be flexibly set without modifying the script, preemptively eliminating parameter combinations that lead to geometric self-intersection or invalid topology, avoiding passive troubleshooting after modeling failure. This solves the problems of cumbersome parameter configuration and lack of effective conflict prediction in existing technologies, providing efficient support for the rapid construction of large-scale 3D model sample libraries, reducing the threshold for modeling operations and the waste of computational resources. Attached Figure Description

[0017] Figure 1This is a flowchart illustrating the overall process of the method of the present invention. Figure 2 This is a flowchart of method step S2 of the present invention; Figure 3 This is a flowchart of method step S3 of the present invention; Figure 4 This is a flowchart of method step S4 of the present invention; Figure 5 This is a flowchart of step S5 of the method of the present invention; Figure 6 This is a diagram showing the system unit composition of the present invention. Detailed Implementation

[0018] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0019] like Figure 1 As shown, a parameterized automatic batch modeling method for planar geometric structures of a single cell includes the following steps: S1, setting the total number of geometric parameters, the number of angle parameters, and the name of each parameter through an interactive graphical user interface, while also setting the number of points on the outer contour, the number of points on the inner contour, and the number of points on each inner contour, supporting the calling of saved structural unit cell definition files; S2, inputting the coordinate calculation expressions for each point on the outer contour and each inner contour, configuring multiple geometric conflict conditions composed of left and right expressions and a greater than sign, and storing the current structural unit cell definition data as a specified format file; S3, configuring whether each parameter changes, setting a constant value or a range of change and a step size, and specifying the modeling script storage. S4. Store the path, out-of-plane stretching dimensions, select whether to enable bidirectional array and set the array quantity, and generate the Cartesian product of all parameter combinations; S5. Traverse all parameter combinations, convert angle parameters to radians and calculate the coordinates of each contour point, and determine whether the parameter combination leads to geometric self-intersection or invalid topology based on conflict conditions. If a conflict exists, trigger a prompt and terminate the process; S6. For parameter combinations that pass the compatibility judgment, generate a script file containing all point coordinate data and modeling logic under the specified path; S7. Run the script in the finite element analysis software, automatically create an independent three-dimensional solid model for each group of valid parameter combinations, and perform bidirectional array merging operation according to the settings.

[0020] Step S1 lays the foundation for the subsequent modeling process through an interactive graphical user interface. Users need to complete multi-dimensional basic configurations in the interface. First, set the total number of geometric parameters, with a default value of 5. Specify the number of angle parameters, with a default value of 0. Each parameter must be given a name that conforms to programming variable naming rules. The system will dynamically generate two types of input areas: dimension parameters and angle parameters. Dimension parameter names default to a preset sequence, and angle parameter names default to another preset sequence; users can modify these as needed. Next, set the number of points on the outer contour, with a minimum of 3 and a default value of 4. Then, set the number of points on the inner contour, with a default value of 0. After clicking the "Set Inner Contour Points" button, the system will dynamically generate the corresponding number of input boxes based on the number of inner contour points. The default number of points for each inner contour is 4, which users can adjust individually. At the bottom of the interface are two function buttons: "Next" and "Open Defined Structural Unit Cell". Clicking "Next" will store all current configuration data in the system's internal data structure and jump to step S2; clicking "Open Defined Structural Unit Cell" will bring up a file selection dialog box, allowing users to call previously saved structural unit cell definition files without having to reconfigure basic parameters. This step, through standardized interface interaction and data storage design, ensures the accuracy and reusability of basic configurations, providing data support for subsequent personalized modeling.

[0021] Step S2 is a crucial step in defining the core information of the structural unit cell. The interface is presented in a multi-tab format, with a fixed prompt at the top informing the user that the point coordinate formulas and conflict conditions can reference the parameter names defined in step S1. In the "Outer Contour" tab, the system generates an input area for each point based on the number of outer contour points set in step S1. Each line includes a point label, an X-coordinate formula label, an X-coordinate formula input box, a Y-coordinate formula label, and a Y-coordinate formula input box. The input box width is set to 20, and all input boxes are embedded in a scrollable container, supporting a large number of points. Users can input valid expressions including defined parameter names and mathematical library functions. For each inner contour defined in step S1, the system generates an independent tab, named "Inner Contour + Number". Each tab contains input rows according to the number of points of that inner contour, with point labels and coordinate formula labels named according to corresponding rules. Users can also input expressions containing parameters and mathematical functions. In the "Conflict Conditions (Optional)" tab, users first set the number of conflict conditions, with a default value of 0. After clicking the "Set Conflict Conditions" button, the system dynamically generates the corresponding number of input areas. Each line includes a header label, a left expression input box, a fixed greater-than sign label in the middle, and a right expression input box. The input box width is set to 30, and the expression can reference parameter names and contour point coordinate codes. The "Save Structural Unit Definition" button at the bottom of the interface collects all input data and pops up a preview dialog box, displaying all definition content in read-only text format. After user confirmation, a file save dialog box pops up, storing the data in the specified format to the user-specified path. The "Complete Definition" button directly collects data and jumps to step S3. This step realizes personalized structural unit definition through hierarchical tab design and flexible expression input function.

[0022] Step S3 completes the parameter change configuration and batch combination generation. The interface title is "Abaqus Parametric Modeling Script Generator". Based on all parameter names defined in step S1, the system generates a configuration area for each parameter. Each row includes a parameter name label, a "Change?" checkbox, a "Constant / Lower Limit" input box, an "Upper Limit" input box, and a "Step Size" input box. Initially, the "Upper Limit" and "Step Size" input boxes are disabled. When the user checks "Change", the system automatically enables these two input boxes. When not checked, only the "Constant / Lower Limit" input box is enabled as the constant value input interface. The interface also includes a "Working Directory" input box and a "Browse" button. Users can easily select the save path of the modeling script by clicking the "Browse" button. The "Out-of-plane Extrusion Dimension" input box is used to set the 3D extrusion depth, with a default value of 1.0. The "Enable Bidirectional Array" checkbox and the corresponding "Number of Arrays in the x-direction" and "Number of Arrays in the y-direction" input boxes both have a default value of 2. Users can adjust the number of arrays after checking these boxes. After all configurations are complete, the user clicks the "Generate Abaqus Script" button. The system first reads the configuration information for each parameter. If the parameter is selected as "Change," the system calls the value list generation function based on the lower limit, upper limit, and step size to generate an incremental list of values ​​from the lower limit to the upper limit (inclusive) according to the floating-point precision tolerance standard. If the parameter is not selected, a list containing only constant values ​​is generated. Then, the product of the lengths of each parameter list is calculated to obtain the total number of parameter combinations. After data preprocessing, the geometric compatibility judgment process is initiated. This step, through a modular configuration interface and automated parameter combination calculation, enables flexible configuration and batch generation of multiple parameters, providing a parameter foundation for subsequent batch modeling.

[0023] Step S4 performs geometric compatibility judgment. If the user defined conflict conditions in step S2, the system automatically starts this pre-check process before generating the script. The core purpose is to eliminate invalid parameter combinations. The system first calls the parameter combination iterator to sequentially traverse all parameter combinations generated in step S3. For each combination, the original parameter values ​​are copied first. These original values ​​are used for comparison in conflict conditions, maintaining the original units of the angle parameters. Then, the angle parameters are converted from degrees to radians and updated to the parameter set to provide suitable data for subsequent coordinate calculations. Subsequently, based on the X and Y coordinate expressions of each point defined in step S2, the Python `eval` function is called to load the mathematical library and the converted parameter set as global variables, and the coordinates of all points on the outer contour and all points on each inner contour are calculated sequentially. Next, a local variable dictionary is constructed, including all original parameter values, a list of points on the outer contour, independent coordinate variables for each point on the outer contour, a list of points on each inner contour, and independent coordinate variables for each point on each inner contour, providing a complete data environment for conflict condition evaluation. Finally, each conflict condition expression is evaluated sequentially to determine whether the left expression is greater than the right expression. If either condition is true, the parameter combination is determined to have a geometric conflict and recorded. After traversing all combinations, if at least one conflicting combination exists, the system will display an error dialog box, listing the parameter values ​​of the first 5 conflicting combinations, and terminate the subsequent process without generating a script. If there are no conflicting combinations, the system will proceed to the script generation stage. This step ensures the effectiveness of subsequent modeling and avoids wasting computational resources through multi-dimensional data processing and strict conflict judgment.

[0024] Step S5 completes the generation of the Abaqus modeling script. The system first integrates all parameter combinations that pass geometric compatibility testing, the contour information defined in Step S1 (including the number of parameters, the number of inner and outer contour points, etc.), and the coordinate expressions and conflict condition data from Step S2, constructing a complete script generation dataset. Simultaneously, the script's storage path (i.e., the user-specified working directory in Step S3) and filename specifications are defined, with the filename fixed to a preset name. Subsequently, a complete Python script is dynamically generated. This script includes several core functional modules: a parameter list generation module, using the same numerical list generation function as the interface, generating a value list based on the user-defined parameter range; a point coordinate calculation function, whose parameter list is consistent with all parameter names defined in Step S1. Inside the function body, the angle parameter is first converted from degrees to radians and the original variable is overwritten. Then, the outer and inner contour point sets are calculated according to the coordinate expressions in Step S2 and returned; and geometric compatibility check code. If the user defines conflict conditions, the script includes corresponding pre-check code, iterating through all parameter combinations, calling the point coordinate calculation function to obtain contour points, and then evaluating whether there is a conflict based on the conflict condition expression and the original parameter values. If a conflict exists, an exception is thrown and the modeling process terminates. The model creation and sketching functions receive a model identifier, outer contour point set, inner contour point set, and extrusion depth. They first check if the model name exists; if so, delete and recreate it, then create a new model. The sketch drawing dimensions are automatically calculated based on the maximum coordinates of the outer contour point set. In the sketch, the inner and outer contour points are connected sequentially to form a closed boundary loop. Finally, a 3D deformable part is created and extruded. The batch modeling main loop function reads the list of parameter values, performs a pre-check (if there are conflicting conditions), then iterates through all valid parameter combinations, generates a model identifier, calls relevant functions to create the model, and if the user has enabled bidirectional arrays, calculates the unit cell width and height, creates multiple instances and translates them to the corresponding array positions, merges them into a new part using a specified function, deletes the default model, and adjusts the view display. The generated script can be run directly in Abaqus / CAE via a specified path without any modification. This step achieves automated encapsulation of modeling logic through structured script design.

[0025] Step S6 is the final execution stage of batch modeling. In the finite element analysis software Abaqus, the user calls the script file generated in step S5 via "File→RunScript" without requiring additional code modification or parameter adjustment. After the script starts, it automatically reads the built-in parameter combination list, coordinate calculation logic, model creation rules, and other information, sequentially traversing all valid parameter combinations and independently creating a 3D solid model for each combination. During the modeling process, the system strictly calculates the vertex positions according to the internal and external contour coordinate expressions defined in step S2 and performs solid extrusion operations based on the out-of-plane extrusion dimensions set in step S3, ensuring that the model's geometry matches the user's requirements. If the user selects "Enable Bidirectional Array" and sets the number of arrays in the x and y directions in step S3, the script will automatically calculate the width (difference between the maximum and minimum values ​​in the x direction of the outer contour) and height (difference between the maximum and minimum values ​​in the y direction of the outer contour) of the unit cell after its creation. It will then create the corresponding number of model instances and translate these instances to their designated positions according to the set array size. Finally, it will use Abaqus' Instance From Boolean Merge function to merge all instances into a new component named "UnitcellArray," while retaining the original unit cell component for easy viewing or subsequent modification. The identifier for each independent model is generated according to preset rules, using the first letter of the parameter name concatenated with the parameter value, replacing decimal points with hyphens to ensure compliance with the naming conventions of finite element analysis software. After all models are created, the software view automatically displays the last created model, allowing the user to directly perform subsequent finite element simulations or model export operations. This step, through seamless integration between the script and software, automates batch modeling, significantly improving modeling efficiency.

[0026] Preferably, the expression for calculating the coordinates of the outer contour points includes: ; ; in, These are the reference dimensions for the outer contour. The main tilt angle parameter of the outer contour. This is the contour scaling factor parameter. This is the lateral offset parameter. This is the vertical offset parameter. These are the boundary correction coefficient parameters. As auxiliary angle parameters, For the outer contour X coordinates of points For the outer contour The Y coordinates of the points.

[0027] Specifically, the outer contour point coordinate calculation expression is based on the coordinate synthesis principle of planar geometric modeling. It is constructed by integrating three core logics: datum size scaling, angle offset correction, and boundary smoothing adjustment, ensuring that the outer contour point coordinates accurately match the boundary morphology requirements of diverse unit cell structures. During the expression calculation, the datum size parameters are first used as a basis, and trigonometric function transformations are combined to control the contour's tilt angle. Then, the coupling effect of longitudinal and transverse offsets is introduced through square root operations. Finally, logarithmic and quadratic correction terms are added to compensate for nonlinear errors in geometric calculations. This multi-stage collaborative process ensures the accuracy of coordinate calculations. The values ​​of each parameter must be reasonably set according to the structural design requirements. The datum size parameters must be adapted to the macroscopic envelope dimensions of the structure, and the tilt angle parameter range must meet the requirement of no self-intersection of the contour. Scaling coefficients and offset parameters are typically selected between 0.1 and 10, while correction coefficients are mostly set as decimals between 0.01 and 1. Logarithmic correction and quadratic angle correction parameters are adjusted according to the structural accuracy requirements. These parameters serve different functions: the baseline dimension parameter determines the overall size of the contour; the tilt angle parameter controls the direction and degree of contour tilt; the scaling factor parameter adjusts the contour proportions; the offset parameter corrects contour position deviations; the boundary correction factor parameter optimizes contour edge smoothness; the auxiliary angle parameter refines local angle adjustments; the out-of-plane stretching correlation factor parameter connects 2D coordinates with 3D stretching; and the logarithmic correction and angle secondary correction parameters improve the accuracy of coordinate calculations. During implementation, the user inputs expressions including the corresponding parameters in the outer contour point coordinate input area of ​​the interactive interface, following the parameter value rules. The system automatically loads the mathematical library function to analyze the expressions, converts the angle parameters to radians, and calculates the 3D coordinates of each outer contour point, providing accurate coordinate data support for subsequent sketching and solid modeling.

[0028] Preferably, the expression for calculating the coordinates of the inner contour points includes: ; ; in, This is the scaling parameter for the inner contour. This is the inner contour offset parameter. The inner contour twist angle parameter. These are the parameters representing the correlation coefficient between the inner and outer contours. For the corresponding outer contour point X coordinate, For the corresponding outer contour point Y coordinate, Number the inner contour. This refers to the index of the inner contour points.

[0029] Specifically, the inner contour point coordinate calculation expression is based on the geometric relationship characteristics of the inner and outer contours. Using the corresponding outer contour point coordinates as a foundation, the inner contour is customized through three types of transformations: scaling, offset, and torsion. Simultaneously, exponential adjustment and coupling correction terms are introduced to ensure the adaptability of the inner and outer contours and their own topological validity. During the calculation process, the coordinate mapping relationship between the inner and outer contours is first established. The overall scaling of the inner contour is achieved through proportional parameters. Then, trigonometric functions are used to control the torsion angle, and square root operations are combined to handle the positional offset coupling of the inner and outer contours. Finally, exponential functions and linear combinations are used to correct the geometric deviations generated during scaling and torsion. The values ​​of each parameter must be matched with the outer contour parameters. The scaling ratio parameter is typically selected between 0.3 and 0.9 to ensure the inner contour is located inside the outer contour and retains a reasonable wall thickness. The offset parameter is set according to the wall thickness requirements. The torsion angle parameter range must avoid self-intersection of the inner contour. The inner and outer contour correlation coefficient parameter is adjusted between 0.5 and 2. The out-of-plane correction coefficient, exponential adjustment, and coupling correction parameters are set to values ​​between 0.05 and 1 according to structural accuracy requirements. Each parameter has a clearly defined function: the scaling parameter controls the overall size of the inner contour; the offset parameter determines the positional offset of the inner contour relative to the outer contour; the torsion angle parameter changes the spatial orientation of the inner contour; the correlation coefficient parameter coordinates the geometric fit between the inner and outer contours; the out-of-plane correction coefficient parameter optimizes the shape of the inner contour after 3D stretching; the exponential adjustment parameter compensates for nonlinear deformation errors; and the coupling correction parameter eliminates mutual interference in the calculation of inner and outer contour coordinates. During implementation, the user inputs an expression including the above parameters in the coordinate input area of ​​the corresponding inner contour tab. The system reads the outer contour coordinate data and the inner contour parameter configuration, and calculates the 3D coordinates of each inner contour point according to the expression logic, ensuring that the inner and outer contours form a reasonable wall thickness structure that meets the geometric design requirements of the unit cell structure.

[0030] Preferably, the geometric conflict condition expression includes: ; ; ; ; ; ; in, The parameter is the collision threshold for the distance between the inner contour vertices. This is the threshold parameter for the conflict of contour slope differences. The parameter representing the conflict value between the inner and outer contour spacing. For the outer contour X coordinates of points For the outer contour The Y-coordinate of each point The distance between the contour vertices. The slope of the profile. This represents the outline spacing.

[0031] Specifically, the geometric conflict condition expression is calculated based on the principle of topological validity discrimination. By extracting three key geometric features—the distance between inner contour vertices, the difference in contour slope, and the distance between inner and outer contours—a quantitative conflict discrimination index is constructed to accurately screen invalid parameter combinations. During the calculation process, the core manifestations of geometric conflict are first analyzed: excessively close inner contour vertices can lead to contour self-intersection; excessively large differences in contour slope can easily cause boundary interference; and excessively small distances between inner and outer contours can cause structural overlap. Corresponding quantitative calculation models are established accordingly. Geometric features are transformed into comparable numerical indicators through sum of squares, absolute values, and square roots. Threshold parameters are then introduced to set conflict judgment criteria. The values ​​of each parameter need to be determined in conjunction with structural design constraints. The conflict threshold parameter for the distance between inner contour vertices must be greater than the minimum safe distance between vertices, typically set at 1.5 to 2 times the structural wall thickness. The conflict threshold parameter for the difference in contour slope is set according to the allowable tilt deviation of the structure, generally between 0.1 and 0.5. The conflict threshold parameter for the distance between inner and outer contours must be greater than the minimum structural wall thickness, and is reasonably selected in conjunction with the outer contour reference size and scaling factor. Each parameter focuses on conflict detection. The vertex distance conflict threshold parameter defines the safe distance between vertices of the inner contour, the slope difference conflict threshold parameter limits the allowable deviation of contour tilt, and the inner and outer contour distance conflict threshold parameter specifies the minimum safe distance between the inner and outer contours. During implementation, in the geometric compatibility detection stage, the system calls the above expressions to extract the coordinate data of each contour point, calculates the corresponding geometric feature index, and compares it with the set threshold parameters. If any index exceeds the threshold, it is determined to be a conflict, the corresponding parameter combination is marked, and the process is terminated. If there is no conflict, it proceeds to the subsequent script generation stage, effectively avoiding invalid modeling operations.

[0032] Preferably, the parameter combination to generate the expression includes: ; ; in, The total number of parameter combinations. The total number of parameters. For the first Upper limit value of each parameter For the first Lower limit values ​​for each parameter, For the first One parameter step size, For the first Group 1 Parameter values, For the first The parameter can be a sequence number. For the eigenvalues ​​of the parameter combination, For the first Each parameter weight coefficient This is the logarithmic adjustment factor. This is the offset constant parameter.

[0033] Specifically, the parameter combination generation expression is calculated based on the Cartesian product principle and the parameter feature quantification requirements. It achieves complete enumeration of all parameter combinations through product operations, generates the value sequence of individual parameters using linear interpolation logic, and constructs a feature quantification model of parameter combinations by combining weighted summation and logarithmic operations, providing a comprehensive and ordered parameter combination dataset for batch modeling. During the calculation process, the number of values ​​for each individual parameter is first calculated using integer operations and linear interpolation based on the parameter's range and step size. Then, the total number of all parameter combinations is obtained through product operations, ensuring that all possible parameter configurations are covered without omission. The value sequence of individual parameters is calculated using linear logic by superimposing the initial value with the step size, ensuring the uniformity and continuity of the values. The parameter combination feature values ​​are integrated by weighted summation of the influence weights of each parameter, and logarithmic operations are introduced to compensate for the non-linear distribution of parameter values, achieving accurate quantification of the combined features. Each parameter value must be scientifically set according to the modeling requirements. The total number of parameters is determined based on the complexity of the structural design, typically ranging from 3 to 10. The upper and lower limits of the parameters must be set within a reasonable range in conjunction with the structural geometric constraints. The step size parameter is adjusted based on the parameter sensitivity. The weighting coefficients are allocated according to the degree of influence of each parameter on structural performance, typically between 0.1 and 0.5. The logarithmic adjustment coefficient and offset constant parameters are set to values ​​between 0.01 and 2 according to the quantization accuracy requirements. Each parameter is responsible for both combination generation and feature quantization. The upper and lower limits of the parameters and the step size parameters define the value range and interval of a single parameter. The weighting coefficient parameters allocate the proportion of influence of each parameter on the combined features. The logarithmic adjustment coefficient and offset constant parameters optimize the accuracy of feature quantization. During implementation, the user sets the variation attributes, value range, and step size of each parameter in the parameter configuration interface. The system calls the above expressions, first calculating the value list for each parameter, then obtaining the total number of parameter combinations through multiplication, and finally generating the Cartesian product of all parameter combinations and calculating the feature value of each combination, providing ordered parameter data support for subsequent geometric compatibility judgment and batch modeling.

[0034] Preferred, such as Figure 2As shown, S2 includes the following sub-steps: S21, in the outer contour tab of the interactive interface, an independent X and Y coordinate calculation expression input area is provided for each outer contour point, supporting the reference of defined parameter names and mathematical library functions. The input area is embedded in a scrollable container to adapt to multi-vertex scenes; S22, a dedicated tab is generated for each inner contour, and point coordinate expression input rows are configured according to the number of points of that inner contour. Each row is labeled with the inner contour number and point sequence number. The expression supports association with the outer contour coordinate parameters; S23, in the conflict condition tab, the number of conflict conditions is first set, and the system dynamically generates the corresponding input area according to the number. Each row includes two expression input boxes on the left and right and a fixed greater than sign label in the middle. The expression can reference parameters and contour point coordinate codes; S24, a structural unit cell definition saving function is provided, all input data is collected and displayed for preview, and after confirmation, it is stored in a specified format to the user-specified path. At the same time, an operation option to directly enter S3 is provided.

[0035] Specifically, step S2 defines the core information of the structural unit cell through four sub-steps. In step S21, on the outer contour tab of the interactive interface, the system configures an independent X and Y coordinate calculation expression input area for each outer contour point based on the number of points set in step S1 (minimum 3, default 4). The input box width is fixed at 20, and all input areas are embedded in scrollable containers to adapt to multi-vertex scenes. Users can reference the parameter names and mathematical library functions such as sin and cos defined in step S1 to ensure accurate input of complex outer contour coordinate logic. In step S22, for each inner contour (default 0) set in step S1, the system automatically generates a dedicated tab. The tab name follows the rule of "inner contour + number." Each tab contains input rows based on the number of points of that inner contour (default 4), with each row labeled with the inner contour number and point sequence number. The expression supports direct association with the outer contour coordinate parameters, ensuring geometric adaptability between the inner and outer contours. In the conflict conditions tab (S23), the user first sets the number of conflict conditions (default 0). After clicking the "Set Conflict Conditions" button, the system dynamically generates the corresponding number of input areas. Each line includes a header label, left and right expression input boxes with a width of 30, and a fixed greater-than sign label in the middle. The expression can reference parameter names and contour point coordinate codes to achieve multi-dimensional conflict determination. S24 provides a structural unit cell definition saving function. After collecting all input data, the system pops up a preview dialog box, displaying the complete definition in read-only text format. After user confirmation, the definition is saved to a specified path in the specified format. The interface also provides a "Complete Definition" button; clicking it directly jumps to step S3. Through standardized step-by-step design, the integrity and efficiency of information configuration are ensured.

[0036] Preferred, such as Figure 3As shown, S3 includes the following sub-steps: S31, the system generates a configuration row for each parameter based on the parameter information defined in S1, including a name label, a "Change" checkbox, a constant value / lower limit input box, an upper limit input box, and a step size input box. When "Change" is checked, the upper limit and step size input boxes are automatically enabled; S32, the configuration interface sets the working directory input box and the browse button. The user specifies the storage path of the modeling script through this component, and also provides an out-of-plane extrusion dimension input box to set the extrusion depth of the 3D model; S33, a "Enable bidirectional array" checkbox is set. When checked, the x-direction and y-direction array quantity input boxes are activated to configure the number of unit cell model arrays to be merged; S34, after the user completes all configurations, clicks the generate button. The system reads the configuration information of each parameter, generates a value list for each parameter, calculates the total number of parameter combinations, and starts the geometric compatibility judgment process.

[0037] Specifically, step S3 determines the parameter value standards and operational logic to ensure the standardization of parameter configuration and combination generation. In step S31, based on the parameter information defined in step S1, the system generates a standardized configuration row for each parameter. Each row includes a parameter name label, a "Change?" checkbox, a "Constant / Lower Limit" input box, an "Upper Limit" input box, and a "Step Size" input box. Initially, the "Upper Limit" and "Step Size" input boxes are disabled; they are automatically enabled after checking "Change?". When not checked, only the "Constant / Lower Limit" input box is active, ensuring flexibility in parameter configuration. Step S32 sets up a "Working Directory" input box and a "Browse" button in the configuration interface. Users can specify the script storage path through this component. It also provides an "Out-of-plane Extrusion Dimension" input box, with a default value of 1.0. Users can adjust this value as needed to achieve precise control of the 3D model thickness. Step S33 sets up an "Enable Bidirectional Array" checkbox. Checking this activates the "Number of Arrays in the x-direction" and "Number of Arrays in the y-direction" input boxes, both with a default value of 2. Users can input the corresponding array quantity in each direction as needed to meet the merging requirements of arrays of different sizes. After the S34 user completes the configuration, they click the "Generate Abaqus Script" button. The system reads the configuration of each parameter, and for the parameters that are selected as "variable", it calls the value list generation function according to the limit, upper limit, and step size to generate an incremental value list according to the floating-point precision tolerance standard. For parameters that are not selected, it generates a list containing only constant values. Then, it calculates the product of the lengths of each parameter list to obtain the total number of combinations (e.g., if 3 variable parameters contain 3, 4, and 5 values ​​respectively, the total number of combinations is 60). The geometric compatibility judgment process is automatically started, realizing a seamless connection between parameter configuration and combination generation.

[0038] Preferred, such as Figure 4As shown, step S4 includes the following sub-steps: S41, calling the parameter combination iterator to traverse all generated parameter combinations, copying the original parameter values ​​for each combination for conflict detection, and then converting the angle parameters from degrees to radians and updating the parameter set for coordinate calculation; S42, based on the coordinate expressions of each contour point defined in S2, calling the analytical function to calculate the two-dimensional coordinates of all points on the outer contour and all points on each inner contour, loading the mathematical library and the converted parameter set as global variables during the calculation; S43, constructing a local dictionary including the original parameter values, the list of outer contour points, and the independent coordinate variables of each contour point to provide a calculation environment for each conflict condition expression; S44, sequentially evaluating all conflict conditions corresponding to each parameter combination, marking the combination as conflicted if any condition is met, and if there are conflicting combinations after traversal, popping up an error dialog box and terminating the process, otherwise proceeding to the next step.

[0039] Specifically, step S4, the geometric compatibility judgment process, defines the operating standards and parameter processing rules to ensure the accuracy of conflict screening. In S41, the system calls a parameter combination iterator to traverse all parameter combinations generated in step S3. For each combination, the original parameter values ​​are copied (angle parameters retain their original units) for conflict judgment. Then, all angle parameters are converted from degrees to radians and updated to the parameter set, providing compatible unit data for coordinate calculation and avoiding calculation errors caused by inconsistent units. In S42, based on the contour point coordinate expression defined in step S2, the system calls an analytical function, loads the mathematical library and the converted parameter set as global variables, and sequentially calculates the two-dimensional coordinates of all points on the outer contour and all points on each inner contour. The calculation process strictly follows the expression logic to ensure accurate coordinate data and provide a reliable foundation for conflict judgment. In S43, the system constructs a complete local variable dictionary, including all original parameter values, a list of outer contour points, independent coordinate variables for each outer contour point, a list of each inner contour point, and independent coordinate variables for each inner contour point. This provides a comprehensive data environment for evaluating conflict condition expressions and avoids judgment bias due to missing data. The S44 system sequentially evaluates all conflicting conditions corresponding to each parameter combination, determining whether the left expression is greater than the right expression. If any condition is true, the combination is marked as conflicting and recorded. After the traversal is complete, if there are conflicting combinations, the system pops up an error dialog box, lists the parameter values ​​of the first 5 conflicting combinations, and terminates the process; if there are no conflicting combinations, it proceeds to the next step. Through step-by-step screening, invalid parameter combinations are effectively eliminated, avoiding waste of subsequent modeling resources.

[0040] Preferred, such as Figure 5As shown, S5 includes the following sub-steps: S51, the system integrates all parameter combinations that pass the compatibility judgment, the contour information defined in S1, and the coordinate expression in S2 to construct a script generation dataset, and clarifies the script storage path and file name specifications; S52, dynamically generates a complete Python script including a parameter list generation function, a point coordinate calculation function, geometric compatibility check code, model creation and sketch drawing functions, and a batch modeling main loop; S53, the point coordinate calculation function performs angle parameter conversion and contour point coordinate calculation according to the expression logic in S2, and returns the outer contour point set and inner contour point set data; S54, the script includes model name generation logic, which uses the method of concatenating the first letter of the parameter name with the parameter value, and replaces the decimal point in the value with a hyphen to ensure compliance with the naming specifications of finite element software.

[0041] Specifically, step S5, the script generation process, defines parameter rules and functional modules to ensure the usability and standardization of the script. S51 integrates all parameter combinations determined through compatibility analysis, the contour information defined in step S1 (number of parameters, number of inner and outer contour points, parameter names, etc.), and the coordinate expressions and conflict condition data from step S2 to construct a complete script generation dataset. The script storage path is specified in step S3, and the filenames are standardized to ensure standardized script storage and ease of retrieval. S52 dynamically generates a complete Python script, including five core functional modules: a parameter list generation module (using the same numerical list generation function as the interface), a point coordinate calculation function (responsible for accurate calculation of contour point coordinates), geometric compatibility check code (secondary conflict screening during script runtime), model creation and sketching functions (implementing basic model construction), and a batch modeling main loop function (managing the overall batch modeling process), ensuring complete script functionality. The parameter list of the S53 point coordinate calculation function is consistent with all parameter names defined in step S1. Inside the function body, the angle parameter is first converted from degrees to radians and the original variable is overwritten. Then, the coordinates of the outer contour point set and the inner contour point set are calculated sequentially according to the coordinate expression in step S2. After calculation, two types of point set data are returned, providing direct data support for model creation. The S54 script embeds standardized model name generation logic, using the method of concatenating the first letter of the parameter name with the parameter value, replacing decimal points in the values ​​with hyphens (e.g., replacing the parameter value 0.36 with 0-36), ensuring that the model name conforms to the naming conventions of finite element analysis software (avoiding special characters that could cause modeling failure). Through step-by-step script construction, the complete encapsulation and efficient execution of the modeling logic are achieved.

[0042] like Figure 6As shown, a parameterized automatic batch modeling system for unit cell planar geometry is described. This system is applied to a parameterized automatic batch modeling method for unit cell planar geometry and includes: an interactive parameter and contour definition unit, used to receive geometric parameter configurations, internal and external contour point count settings, and parameter name definitions input by the user through a graphical interface; supporting the calling and loading of predefined structural unit cell files; and passing configuration data to subsequent units; a coordinate expression and conflict condition configuration unit, used to provide an input interface for contour point coordinate calculation expressions and a conflict condition setting interface; parsing the input expression logic; verifying the legality of the expression; and storing the expression and conflict condition data; and a parameter combination generation and configuration unit, used to read the parameters and contour information passed from the preceding unit, generate a value list based on the parameter change attributes set by the user, and calculate the parameter combination Cartesian formula. The system comprises several modules: a working directory, extrusion dimensions, and array configuration parameters; a geometric compatibility intelligent discrimination unit, which iterates through parameter combinations, performs angle parameter unit conversions and contour point coordinate calculations, evaluates the geometric validity of each combination based on conflict conditions, marks conflicting combinations, and triggers corresponding processing mechanisms; an automatic modeling script generation unit, which integrates effective parameter combinations and structural definition data, generates script files according to finite element software script specifications, including coordinate calculation, model creation, and array merging logic, and outputs them to a specified storage path; and a batch modeling drive and execution unit, which connects to the finite element analysis software, imports the generated script files into the software environment, drives the software to automatically create 3D solid models according to script logic, performs array merging operations, and outputs batch modeling results. Each unit transmits data sequentially through a data interface, forming a complete modeling process.

[0043] A parametric automatic batch modeling method and system for unit cell planar geometry structures is presented. Through an interactive graphical interface, it supports user-defined geometric parameters, the number of internal and external contours and points, and flexible input of coordinate calculation logic and conflict conditions. This breaks the limitations of traditional techniques on single structure types and can adapt to diverse unit cell structures with complex contours and asymmetric features. Parameter configuration requires no script modification; users can independently select "whether to change" and set the range and step size. Combined with the structure definition saving and recall functions, the operational threshold is significantly reduced. A built-in geometric compatibility discrimination mechanism screens out invalid parameter combinations in advance, avoiding subsequent modeling failures and improving the stability of batch modeling.

[0044] This invention employs a custom contour and coordinate expression input mode to replace the traditional fixed-structure coding logic, solving the problem of insufficient adaptability of existing technologies and meeting customized modeling needs. It constructs a visual parameter configuration and batch combination generation process, allowing flexible adjustment of parameter attributes without manual modification of script code. Simultaneously, it preemptively eliminates invalid combinations by predicting conflict conditions, overcoming the drawbacks of cumbersome parameter configuration and lack of effective conflict resolution in existing technologies. It forms an integrated closed loop of definition, configuration, discrimination, generation, and modeling, automatically generating directly executable script files that connect with finite element software to complete batch modeling and array merging, completely eliminating manual intervention, significantly improving modeling efficiency, and providing efficient support for the construction of large-scale model sample libraries.

[0045] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "set," "install," "connect," "link," and "fix" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0046] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various equivalent changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for automatic batch modeling of unit cell planar geometry using parametric methods, characterized in that, Includes the following steps: S1 allows users to set the total number of geometric parameters, the number of angle parameters, and the name of each parameter through an interactive graphical user interface. It also allows users to set the number of outer contour points, the number of inner contour points, and the number of points for each inner contour point. It supports calling saved structural unit cell definition files. S2, input the coordinate calculation expression of each point of the outer contour and each inner contour, configure multiple geometric conflict conditions composed of left and right expressions and greater than signs, and store the current structural unit cell definition data as a specified format file; S3 allows you to configure whether each parameter changes, set constant values ​​or ranges of change and step sizes, specify the modeling script storage path, out-of-plane extrusion dimensions, select whether to enable bidirectional arrays and set the number of arrays, and generate the Cartesian product of all parameter combinations. S4: Traverse all parameter combinations, convert the angle parameters to radians, calculate the coordinates of each contour point, and determine whether the parameter combination leads to geometric self-intersection or invalid topology based on the conflict conditions. If there is a conflict, trigger a prompt and terminate the process. S5 generates a script file containing all point coordinate data and modeling logic under a specified path for parameter combinations that pass compatibility judgment. S6, Run the script in the finite element analysis software to automatically create an independent three-dimensional solid model for each set of effective parameter combinations, and perform a bidirectional array merging operation as set. The geometric conflict condition expression includes: ; ; ; ; ; ; in, The parameter is the collision threshold for the distance between the inner contour vertices. This is the threshold parameter for the conflict of contour slope differences. The parameter representing the conflict value between the inner and outer contour spacing. For the outer contour X coordinates of points For the outer contour The Y-coordinate of each point The distance between the contour vertices. The slope of the profile. For the outline spacing, These are the reference dimensions for the outer contour. The main tilt angle parameter of the outer contour. This is the contour scaling factor parameter. For the first The inner contour of the first X coordinates of points For the first The inner contour of the first The Y-coordinate of each point For the first The inner contour of the first X coordinates of points For the first The inner contour of the first The Y-coordinate of each point For the first The inner contour of the first X coordinates of points For the first The inner contour of the first The Y coordinates of the points.

2. The method for automatic batch modeling of unit cell planar geometry parametrically according to claim 1, characterized in that, The expression for calculating the coordinates of the outer contour points includes: ; ; in, These are the reference dimensions for the outer contour. The main tilt angle parameter of the outer contour. This is the contour scaling factor parameter. This is the lateral offset parameter. This is the vertical offset parameter. These are the boundary correction coefficient parameters. As auxiliary angle parameters, For the outer contour X coordinates of points For the outer contour The Y coordinates of the points.

3. The method for automatic batch modeling of unit cell planar geometry parametrically according to claim 2, characterized in that, The expression for calculating the coordinates of the inner contour points includes: ; ; in, This is the scaling parameter for the inner contour. This is the inner contour offset parameter. The inner contour twist angle parameter. These are the parameters representing the correlation coefficient between the inner and outer contours. For the corresponding outer contour point X coordinate, For the corresponding outer contour point Y coordinate, Number the inner contour. The inner contour point number, For the first The inner contour of the first X coordinates of points For the first The inner contour of the first The Y coordinates of the points.

4. The automatic batch modeling method for parameterized planar geometry of a single cell according to claim 3, characterized in that, The parameter combination generates the expression including: ; ; in, The total number of parameter combinations. The total number of parameters. For the first Upper limit value of each parameter For the first Lower limit values ​​for each parameter For the first One parameter step size, For the first The first in the group combination Parameter values, For the first The parameter can be a sequence number. For the eigenvalues ​​of the parameter combination, For the first Each parameter weight coefficient This is the logarithmic adjustment factor. This is the offset constant parameter.

5. The automatic batch modeling method for parameterized planar geometry of a single cell according to claim 1, characterized in that, S2 includes the following steps: S21, in the outer contour tab of the interactive interface, provides an independent input area for X and Y coordinate calculation expressions for each outer contour point, supports referencing predefined parameter names and mathematical library functions, and embeds a scrollable container in the input area to adapt to multi-vertex scenes; S22, Generate a dedicated label for each inner contour, configure the point coordinate expression input row according to the number of points of the inner contour, label the inner contour number and point sequence number in each row, and the expression can be associated with the outer contour coordinate parameters; S23, in the conflict conditions tab, first set the number of conflict conditions, and the system dynamically generates the corresponding input area according to the number. Each line includes two expression input boxes on the left and right and a fixed greater than sign label in the middle. The expression can reference parameters and contour point coordinate codes. S24 provides a function to save structural unit cell definitions, collects all input data and displays a preview, and saves it to the user-specified path in a specified format after confirmation. It also provides the option to directly enter S3.

6. The method for automatic batch modeling of unit cell planar geometry parametrically according to claim 1, characterized in that, S3 includes the following steps: S31. Based on the parameter information defined in S1, the system generates a configuration row for each parameter, including a name label, a "Change" checkbox, a constant value / lower limit input box, an upper limit input box, and a step size input box. When "Change" is checked, the upper limit and step size input boxes are automatically enabled. S32, the configuration interface sets the working directory input box and browse button. Users can specify the storage path of the modeling script through this component, and it also provides an out-of-plane extrusion dimension input box to set the extrusion depth of the 3D model; S33, set the "Enable bidirectional array" checkbox. After checking, the array quantity input boxes in the x and y directions will be activated, which are used to configure the number of arrays to be merged in the unit cell model. S34. After the user completes all configurations, clicks the generate button. The system reads the configuration information of each parameter, generates a list of values ​​for each parameter, calculates the total number of parameter combinations, and starts the geometric compatibility judgment process.

7. The method for automatic batch modeling of unit cell planar geometry parametrically according to claim 1, characterized in that, S4 includes the following steps: S41, call the parameter combination iterator to traverse all generated parameter combinations. For each combination, first copy the original parameter values ​​for conflict detection, then... The angle parameter is converted from degrees to radians and updated to the parameter set for use in coordinate calculations. S42, based on the coordinate expressions of each contour point defined in S2, calls the analytical function to calculate the two-dimensional coordinates of all points of the outer contour and all points of each inner contour. During the calculation process, the mathematical library and the converted parameter set are loaded as global variables. S43, construct a local dictionary including the original parameter values, the list of outer contour points, and the independent coordinate variables of each contour point, to provide a computational environment for each conflict condition expression; S44. Evaluate all conflicting conditions corresponding to each parameter combination in turn. If any condition is met, mark the combination as conflicting. If there are conflicting combinations after the traversal is completed, pop up an error dialog box and terminate the process. If there are no conflicts, proceed to the next step.

8. The method for automatic batch modeling of unit cell planar geometry parametrically according to claim 1, characterized in that, S5 includes the following steps: S51, the system integrates all parameter combinations through compatibility judgment, contour information defined in S1 and coordinate expression in S2, constructs script generation dataset, and clarifies script storage path and file name specifications; S52 dynamically generates a complete Python script including a parameter list generation function, a point coordinate calculation function, a geometry compatibility check code, a model creation and sketching function, and a batch modeling main loop; S53, the point coordinate calculation function follows the logic of expression S2 to perform angle parameter conversion and contour point coordinate calculation, and returns the outer contour point set and inner contour point set data; S54, the script includes the logic for generating model names, which uses the first letter of the parameter name and the parameter value to concatenate them, and replaces the decimal point in the value with a hyphen to ensure compliance with the naming conventions of finite element software.

9. A parameterized automatic batch modeling system for unit cell planar geometry, characterized in that, This system is applied to the automatic batch modeling method for parametric plane geometry of a single cell as described in claim 1, comprising: The interactive parameter and contour definition unit is used to receive geometric parameter configurations, inner and outer contour point number settings, and parameter name definitions input by the user through the graphical interface. It supports calling and loading of predefined structural unit cell files and passing configuration data to subsequent units. The coordinate expression and conflict condition configuration unit is used to provide an input interface for contour point coordinate calculation expressions and a conflict condition setting interface, parse the input expression logic, verify the legality of the expression, and store the expression and conflict condition data. The parameter combination generation and configuration unit is used to read the parameters and contour information passed by the preceding unit, generate a value list based on the parameter change attributes set by the user, calculate the Cartesian product of the parameter combination, and receive the working directory, stretching size and array configuration parameters. The geometric compatibility intelligent discrimination unit is used to traverse parameter combinations, perform angle parameter unit conversion and contour point coordinate calculation, evaluate the geometric validity of each combination based on conflict conditions, mark conflicting combinations and trigger corresponding processing mechanisms. The modeling script automatic generation unit is used to integrate effective parameter combinations and structural definition data, generate script files including coordinate calculation, model creation, and array merging logic according to the finite element software script specifications, and output them to the specified storage path; The batch modeling driver and execution unit is used to connect to finite element analysis software. It imports the generated script files into the software environment, drives the software to automatically create 3D solid models according to the script logic, performs array merging operations, and outputs batch modeling results. Each unit transmits data sequentially through the data interface to form a complete modeling process.

Citation Information

Patent Citations

  • Cellular automaton-based autonomous phase mapping construction method and system

    CN117116387A

  • Finite element intelligent modeling and interactive analysis integration method based on structural semantic graph

    CN122365663A