Interactive component assembly module design method, simulation software construction method and device

By constructing data structure class diagrams and interactive diagrams, and designing interactive component assembly modules, the problem of poor expansion and maintenance of interactive component assembly modules in the prior art is solved, and higher functionality and flexibility are achieved.

CN120162998AActive Publication Date: 2025-06-17NINGXIA UNIVERSITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510159512.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-06-17
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

In the prior art, interactive component assembly modules have poor scalability and maintenance problems at the design and development level, resulting in poor functionality and flexibility.

Method used

By constructing a data structure class diagram that describes the association relationship between geometric component objects and component instance objects, an interactive diagram and method interface for component instance objects to realize component assembly functions are determined, and an interactive component assembly module is designed based on this.

Benefits of technology

The assembly function development based on geometric component objects is realized, and the scalability and flexibility of the interactive component assembly module is improved, so that it can meet different functional needs across modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120162998A_ABST
    Figure CN120162998A_ABST
Patent Text Reader

Abstract

The invention provides an interactive component assembly module design method and a simulation software construction method and device. The interactive component assembly module design method comprises the following steps: constructing a data structure class diagram for describing an association relationship between a geometric component object and a component instance object; based on the data structure class diagram, determining a method interface which is required to be provided by the object in the interaction diagram when the component instance object realizes a component assembling function, and designing an interactive component assembling module based on the interaction diagram and the method interface. The data structure class diagram and the interaction diagram provided by the invention meet the cross-module data association requirements of modules such as geometric modeling, component assembly and grid division in the finite element modeling process, assembly function development based on geometric component objects is realized, and the expansibility and maintainability of the designed interactive component assembly module are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of finite element simulation, and particularly relates to a design method for an interactive component assembly module, a simulation software construction method, and a device. Background Art

[0002] In the context of the rapid development of the technology and engineering fields, finite element simulation (CAE) software, as a key tool for design and analysis, has become increasingly crucial. In finite element modeling, it includes both the design and creation of individual components and the assembly combination of multiple components. Especially for complex mechanical structures, a large number of geometric components usually need to be integrated into the final assembly through an efficient and flexible assembly method. Therefore, CAE software needs to have a powerful, excellent, and stable component assembly module.

[0003] Most of the existing technologies are to guide how to use CAE software, and very few provide the source code of CAE software. None of them can provide software development guidance at the system or module level for the developers of CAE software. Especially for the component assembly module with relatively complex interactive operation functions, without clear development guidance, the following challenges will be faced: the lack of an effective cross-module data structure and a flexible functional architecture design, resulting in poor functionality and flexibility of the component assembly module of the developed finite element simulation software.

[0004] In view of this, there is an urgent need to develop a design method for an interactive component assembly module, a simulation software construction method, and a device to improve the existing data structure and functional architecture, provide guidance for developers, and enable developers to develop an extensible and easily maintainable component assembly module. Summary of the Invention

[0005] In view of this, it is necessary to provide a design method for an interactive component assembly module, a simulation software construction method, and a device to solve the technical problem of poor scalability and maintainability in the design and development of the interactive component assembly module in the prior art.

[0006] On the one hand, to solve the above technical problems, the present invention provides a design method for an interactive component assembly module, including: Constructing a data structure class diagram describing the association relationship between geometric component objects and component instance objects; Based on the data structure class diagram, determining the interaction diagram when the component instance object realizes the component assembly function and the method interfaces that the objects in the interaction diagram need to provide, and designing an interactive component assembly module based on the interaction diagram and the method interfaces.

[0007] In a possible implementation, the data structure class diagram includes a component instance class for creating the component instance object, a geometric component class for creating the geometric component object, a component instance container class in an aggregation relationship with the component instance class, an assembly class in a composition relationship with the component instance container class, an assembly set container class in a composition relationship with the assembly class, an assembly set class in an aggregation relationship with the assembly set container class, a geometric shape class in an aggregation relationship with the component instance class, a geometric feature class in a composition relationship with the geometric shape class and inheriting from the component feature abstract class, a component dimension feature class and a component creation method class in an aggregation relationship with the geometric feature class, and a component feature container class in a composition relationship with the geometric component class. The component feature abstract class and the component feature container class are in an aggregation relationship; Among them, the geometric component object and the component instance object form an association of master and copy, sharing the data of the geometric shape class.

[0008] In a possible implementation, the data structure class diagram further includes a geometric transformation set class. The geometric transformation set class is in a composition relationship with the component instance class and is used to record the geometric transformation operations experienced by the component instance object and integrate the geometric transformation operations to obtain a final transformation object.

[0009] In a possible implementation, when the component assembly function includes a translation transformation, an interaction diagram for the component instance object to implement the component assembly function and the method interfaces that the objects in the interaction diagram need to provide are determined based on the data structure class diagram. And an interactive component assembly module is designed based on the interaction diagram and the method interfaces, including: Determine the operation process of the translation transformation, and based on the operation process, determine the interaction diagram of the translation transformation and the method interfaces that the objects in the interaction diagram need to provide.

[0010] In a possible implementation, the operation process of the translation transformation includes: Determine the geometric shape object to be operated on, determine the corresponding component instance object based on the geometric shape object, and select the component instance object; Obtain the input parameters required for geometric transformation based on the status bar input box; Generate a geometric component after geometric transformation for the user to preview based on the input parameters, and wait for the user's confirmation operation.

[0011] In a possible implementation, the method further includes: Add a copy object list attribute to the geometric shape class. The copy object list attribute is used to record the copy shape objects copied from the geometric shape object; A design registration method, the copy method of the geometric shape class calls the registration method to register the copied shape object into the copy object list attribute of the master shape object; A design notification method, when a change occurs in the geometric shape class in the geometric component class, the notification method is called to notify that the copy shape object in the copy object list attribute needs to be updated.

[0012] In a possible implementation, the object includes a geometric transformation class, and the geometric shape class includes mesh data; the method further includes: Determine the node information in the mesh data, and form a geometric shape object based on the node information; the geometric shape object can be processed by the geometric transformation control class to implement the coordinate transformation function of the mesh nodes.

[0013] In a possible implementation, the method further includes: Determine the target units in the geometric shape object whose topological structures are points, lines, and faces, and construct lightweight geometric objects based on the target units; Before performing a calculation task, confirm whether to update the mesh data based on the mesh status update label in the component instance class.

[0014] On the other hand, the present invention also provides a method for constructing a simulation software, including: Design an interactive component assembly module based on the design method of the interactive component assembly module; The design method of the interactive component assembly module is the design method of the interactive component assembly module in any of the above possible implementation manners.

[0015] On the other hand, the present invention also provides an interactive component assembly module design device, including: A data structure class diagram construction unit for constructing a data structure class diagram describing the association relationship between geometric component objects and component instance objects; An interactive component assembly module design unit for determining the interaction diagram when the component instance object implements the component assembly function and the method interfaces that the objects in the interaction diagram need to provide based on the data structure class diagram, and designing an interactive component assembly module based on the interaction diagram and the method interfaces.

[0016] The beneficial effects of the present invention are as follows: The design method of the interactive component assembly module provided by the present invention first constructs a data structure class diagram describing the association relationship between geometric component objects and component instance objects, and then determines the interaction diagram and the method interfaces that the objects in the interaction diagram need to provide in combination with the data structure class diagram and each component assembly function, realizing the development of the assembly function based on geometric component objects. Taking the geometric component objects as the core data objects for component generation and component assembly in these two cross-modules, the design method of the interactive component assembly module meets the different functional requirements in cross-modules, thereby improving the scalability and flexibility of the interactive component assembly module.

[0017] Furthermore, since the interaction diagram is generated based on the sorting out of the component assembly function, when the subsequent component assembly function is extended according to requirements, the interaction diagram can be flexibly generated according to the extended function, further improving the scalability and flexibility of the interactive component assembly module. Brief Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0019] Figure 1 It is a schematic flowchart of an embodiment of the design method of the interactive component assembly module provided by the present invention; Figure 2 It is a schematic diagram of an embodiment of the data structure class diagram provided by the present invention; Figure 3 It is a schematic flowchart of the operation process of the translation transformation provided by the present invention; Figure 4 It is a schematic flowchart of the execution process of the translation transformation instance in the geometric transformation operation provided by the present invention; Figure 5 It is an interaction diagram of the preview transformation result object state in the translation transformation instance in the geometric transformation operation provided by the present invention; Figure 6 It is a design schematic diagram of the method interface required to implement the translation transformation operation provided by the present invention; Figure 7 It is a schematic structural diagram of an embodiment of the interactive component assembly module design device provided by the present invention. Detailed Embodiments

[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0021] It should be understood that the schematic drawings are not drawn to scale. The flowcharts used in the present invention illustrate the operations implemented according to some embodiments of the present invention. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical context relationships may be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present invention. Some of the block diagrams shown in the drawings are functional entities, which do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor systems and / or microcontroller systems.

[0022] Referring to "embodiments" herein means that specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present invention. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0023] The present invention provides an interactive material setting module design method, a simulation software construction method, and a device, which are applied to finite element simulation software, and will be described separately below.

[0024] Figure 1 It is a schematic flowchart of an embodiment of the interactive component assembly module design method provided by the present invention, as Figure 1 shown. The interactive component assembly module design method includes: S101. Construct a data structure class diagram describing the association relationship between geometric component objects and component instance objects; S102. Determine the interaction diagram when the component instance object implements the component assembly function and the method interfaces that the objects in the interaction diagram need to provide based on the data structure class diagram, and design the interactive component assembly module based on the interaction diagram and the method interfaces.

[0025] It should be understood that the interactive component assembly module design method in the embodiments of the present invention can be implemented in electronic devices such as desktop computers, notebooks, tablet computers, laptop computers, etc. Any of the above-mentioned electronic devices stores a program prepared by the interactive component assembly module design method. When any of the above-mentioned electronic devices is started, the program is called, and thus the interactive component assembly module design method is implemented.

[0026] It should be noted that the difference between the geometric component object and the component instance object is that the geometric component object only controls geometric-related content, such as shape, etc., while the component instance object can not only control geometric-related content, but also has other attributes and behaviors, such as coordinates and constraints with other component instance objects.

[0027] It should also be noted that the association relationship between the geometric component object and the component instance object is specifically as follows: the geometric component object is the parent, and the component instance object is the copy, that is, the component instance object shares the data and attributes of the geometric component object. Therefore, when a modification operation is performed on the geometric component object, it can also be reflected in the component instance object of the assembly.

[0028] It should be noted that multiple component instance objects can be created based on the same geometric component object.

[0029] Compared with the prior art, the interactive component assembly module design method provided by the embodiments of the present invention first constructs a data structure class diagram describing the association relationship between the geometric component object and the component instance object, and then combines the data structure class diagram and each component assembly function to determine the interaction diagram and the method interfaces that the objects in the interaction diagram need to provide, realizing the development of the assembly function based on the geometric component object, taking the geometric component object as the core data object for component generation and component assembly in these two cross-modules, enabling the interactive component assembly module design method to meet different functional requirements in the cross-module, and thus improving the scalability and flexibility of the interactive component assembly module.

[0030] Furthermore, since the interaction diagram is generated based on the sorting out of the component assembly function, when the subsequent component assembly function is extended according to requirements, the interaction diagram can be flexibly generated according to the extended function, further improving the scalability and flexibility of the interactive component assembly module.

[0031] Among them, the construction of the data structure class diagram is based on the following considerations: Except for the assignment of material parameters, the geometric component objects created separately cannot be directly used in the subsequent operations of finite element modeling and simulation. Instead, in the component assembly module, corresponding component instance objects need to be created based on the geometric component objects, and the assembly process of each component needs to be completed based on the component instance objects, so as to complete the creation of the geometric model of the complete analysis object. Therefore, it is necessary to construct a data structure class diagram to implement the creation of component instance objects for the purpose of subsequent simulation analysis.

[0032] Among them, the component assembly function includes basic operations such as translation and rotation, and also includes advanced operations such as constraints, adhesion, and arrays.

[0033] Based on the above analysis, in a specific embodiment of the present invention, as Figure 2 shown, the data structure class diagram includes a component instance class Instance for creating component instance objects, a geometric component class Part for creating geometric component objects, a component instance container class Instances in an aggregation relationship with the component instance class, an assembly class Assembly in a composition relationship with the component instance container class Instances, an assembly set container class AssemblySets in a composition relationship with the assembly class Assembly, an assembly set class AssemblySet in an aggregation relationship with the assembly set container class AssemblySets, a geometric shape class IShape in an aggregation relationship with the component instance class Instance, a geometric feature class GeometryFeature in a composition relationship with the geometric shape class IShape and inheriting from the part feature abstract class PartFeature, a part dimension feature class PartTopo and a part creation method class PartGeneration in an aggregation relationship with the geometric feature class GeometryFeature, a part feature container class PartFeatures in a composition relationship with the geometric component class Part, and the part feature abstract class PartFeature and the part feature container class PartFeatures are in an aggregation relationship; Among them, the component instance object and the geometric component object form an association between the original and the copy, sharing the data of the geometric shape class IShape.

[0034] It should be noted that both the composition relationship and the aggregation relationship have management meanings. For example, Instances is used to manage the data of different component instance nodes and provides access operation methods; while Instance corresponds to the individual component instance object created by the user.

[0035] Part manages various Part-related features through PartFeature. For the geometric shape IShape, it is managed through the geometric feature data entity class node. The specific creation and management process follows the relevant architecture design of the geometric modeling module and requires the combined action of two functional-related classes, PartTopo and PartGeneration, to complete its creation process.

[0036] Instance forms an association between a copy and a master through an aggregation relationship with Part, thus indirectly sharing the data of IShape. Note that during the creation of Instance, the copy method of the IShape object in the Part master will be called in the constructor to generate an IShape object with the same geometric data. Therefore, strictly speaking, Instance and Part only share the data of IShape, rather than sharing the IShape object.

[0037] Instance and Assembly form a composition relationship. As the main data node of the component assembly module, Assembly is directly managed by the model node class. In addition to Instances, Assembly also manages the AssemblySets object, and its aggregated object AssemblySet is responsible for managing the set of instance objects composed of multiple Instances in the component assembly module.

[0038] Specifically, the composition relationship is a strong association relationship, indicating the life cycle dependence between the part object (part) and the whole object (whole). The part object cannot exist independently of the whole object. If the whole object is destroyed, the part object will also be destroyed.

[0039] Its characteristics are: Strong dependence: The life cycle of the part object is managed by the whole object.

[0040] Exclusivity: The part object usually belongs to only one whole object.

[0041] Non-shareability: The part object cannot be shared by multiple whole objects.

[0042] The aggregation relationship is a weak association relationship, indicating the independent life cycle between the part object (part) and the whole object (whole). The part object can exist independently of the whole object. Even if the whole object is destroyed, the part object can still exist.

[0043] Its characteristics are: Weak dependence: The life cycle of the part object does not depend on the whole object.

[0044] Non - exclusivity: Some objects can belong to multiple whole objects.

[0045] Shareability: Some objects can be shared by multiple whole objects.

[0046] In practical applications, multiple geometric transformation operations are performed on the component instance object to obtain the final component instance object after multiple geometric transformation operations. Therefore, to avoid the technical problem of excessive execution times caused by performing each geometric transformation operation, in some embodiments of the present invention, as Figure 2 shown, the data structure class diagram further includes a geometric transformation set class TrsfGroup. The geometric transformation set class TrsfGroup has a composition relationship with the component instance class Instance. The geometric transformation set class TrsfGroup is used to record the geometric transformation operations experienced by the component instance object and integrate the geometric transformation operations to obtain the final transformation object.

[0047] In the embodiments of the present invention, all geometric transformations are integrally calculated to form a final transformation object, avoiding sequentially performing geometric transformation operations on the geometric shape to reduce the number of times the geometric transformation acts on the geometric shape.

[0048] Specifically, a new geometric transformation operation can be added to the set through the add_trsf() method interface provided by TrsfGroup. At the same time, TrsfGroup also provides a compute_total_trsf() method for integrally calculating all geometric transformations to form a final transformation object.

[0049] In some embodiments of the present invention, if the component assembly function includes a translation transformation, then step S102 includes: Determine the operation process of the translation transformation, and based on the operation process, determine the interaction diagram of the translation transformation and the method interfaces that the objects in the interaction diagram need to provide.

[0050] In the specific embodiments of the present invention, as Figure 3 shown, the operation process of the translation transformation includes the following steps: S301. Determine the geometric shape object to be operated, determine the corresponding component instance object based on the geometric shape object, and select the component instance object; S302. Obtain the input parameters required for the geometric transformation based on the input box in the status bar; S303. Generate a geometric component after the geometric transformation for the user to preview based on the input parameters, and wait for the user's confirmation operation.

[0051] When executed in an actual finite - element software, as Figure 4 shown, the above steps S301 - S303 are specifically: Step 1: The user first selects the geometric shape to be geometrically transformed in the view. After receiving the user's selection, determine the part instance object to which the geometric shape object belongs. Subsequently, take the entire instance object as the object to be geometrically transformed, and highlight all the geometric shape objects therein for selection. Step 2: Update the status bar and provide a text input box for the user to enter the first point of the translation reference vector. After the user clicks to confirm, proceed to the next step. Step 3: Update the status bar and provide a text input box for the user to enter the second point of the translation reference vector. After the user clicks to confirm, proceed to the next step. Step 4: Based on the user's inputs in Step 2 and Step 3, confirm the direction vector of the translation, generate the corresponding translation geometric transformation object, and apply it to the geometric shape objects corresponding to the part instance object selected in Step 1, thereby generating a temporary geometric shape object for previewing to allow the user to confirm the result of the translation operation. When the user confirms, update the coordinates of all geometric shape objects and end the process.

[0052] Note that during the above process, at any step, the user can click "Back" to return to the previous step, or click the cancel button to end the current geometric transformation operation.

[0053] For the above process, a more specific interaction diagram analysis can be carried out for each step. Taking the state of the preview transformation result object as an example. As Figure 5 shown, the objects in the interaction diagram include the preview geometric transformation state class, geometric shape class, part instance class, geometric transformation class, geometric transformation tool interface, and geometric transformation control class.

[0054] The geometric transformation control class TransformationControl sends a signal to enter the state to the preview geometric transformation state class PreviewTrsfState, and PreviewTrsfState then starts to execute the preset method for entering the state. First, it requires TransformationControl to generate a geometric transformation object based on the results of the previous two steps, and passes this message to the geometric transformation tool interface ITrsfTool to generate the geometric transformation object ITrsf, which is a translation geometric transformation object in this embodiment.

[0055] Next, PreviewTrsfState calls its own method to obtain the original geometry to be transformed and sets it to semi-transparent. Then it sends a method to obtain the geometry information for preview to the original geometry object, so that it generates a geometry object for preview and provides the object as an input parameter to the ITrsf object to perform the geometry transformation. After the transformation is completed, the color and optional state of the preview geometry object are set. Finally, the GeoKernel method is called to update the view. At this point, the execution of the PreviewTrsfState entry state method is completed.

[0056] When the user clicks the OK button to confirm the geometric transformation operation, PreviewTrsfState calls the TransformationControl method to obtain the selected component instance object, and adds the geometric transformation object to the component instance object to update the geometry. Then it calls the GeoKernel method to eliminate the original geometry objects in the previous view and clear the selected objects, and redisplay the geometry objects of the component instance object after the geometric transformation. Then it updates the current view and sends a completion signal to TransformationControl to end the current preview step.

[0057] Based on the above interaction diagram analysis, we can summarize the objects involved and clarify the method interfaces they need to provide, as shown below: Figure 6 The relevant method interface is shown.

[0058] After completing the interactive process analysis and architecture design of the functions, it is necessary to consider the component update issues (such as geometric shape update) that may be involved in the functional execution process of the component assembly module and other related modules. In the prior art, the geometric transformation operation for large-scale objects has a low assembly real-time update efficiency, which affects the user experience. Therefore, in some embodiments of the present invention, the interactive component assembly module design method also includes: Add a copy object list attribute to the geometry class. The copy object list attribute is used to record the copy shape objects copied to the geometry object. Design a registration method. The copy method of the geometric shape class calls the registration method to register the copy shape object generated by the copy into the copy object list attribute of the parent shape object. Design a notification method. When the geometric shape class in the geometric component class changes, call the notification method to notify the copy shape object in the copy object list attribute that an update operation is required.

[0059] That is, the embodiment of the present invention designs the association relationship between the geometric component object and the component instance object based on the observer pattern, further enhancing the association relationship between the geometric shape IShape object in the geometric component class Part and the geometric shape IShape object in the component instance class Instance, and forming a notification mechanism within different IShape objects.

[0060] Specifically, in the observer pattern, there are a subject class Subject and an observer class Observer, where Observer is registered as an observer of Subject. When Subject changes or there is a system requirement, the notification method will be called to implement the update operation through the reserved interface of Observer. In the embodiment of the present invention, this architecture design at the abstract level is introduced into the data entity class structure design of Part and Instance.

[0061] During the process of creating Instance, it is necessary to be based on Part and the contained geometric shape object IShape. The specific process is as follows: during the creation process of Instance, the copy() method of IShape is called to obtain a copy object of IShape and assign it to the Instance object. In the copy() method, the register_copy_object() method of IShape itself will be called to register the IShape of Instance as a copy object into the IShape of Part. Thus, the subject-observer relationship between the two is established.

[0062] When performing various mesh-related operations, such as element type setting, mesh division, mesh clearing, etc., the IShape object in Part will execute notify_copy_objects(), thereby notifying the IShape object of Instance registered therein to update the mesh, and then changing the latest mesh label attribute in the IShape of Instance to False, indicating that the mesh in IShape is no longer the latest mesh at this time. Subsequently, when the mesh display function of Instance is involved in each relevant module, the is_mesh_up_to_date() method in the IShape of Instance will be called to check this label. If the return value is False, it means that the mesh of this object is not the latest, and the mesh update operation will be performed according to the requirements.

[0063] Note that at this time, the grid update is not directly performed, but only the label attributes are modified. The purpose is to solve the computing resources and ensure the smoothness of user operations. Compared with the general observer pattern, the significant difference is that the specific grid update operation is designed to be delayed. This design can avoid the system from performing grid update calculations every time the user performs related operations (such as geometric transformation and grid parameter setting, etc.). Instead, all operations are first aggregated and the grid update operation is delayed, so that the number of updates corresponding to the operation is reduced to one, further improving the operation efficiency and smoothness.

[0064] Since the coordinates of the geometric shape need to be updated after the geometric shape is updated, in some embodiments of the present invention, the interactive component assembly module design method further includes: Determine the node information in the grid data and form a geometric shape object based on the node information; the geometric shape object can be processed by the geometric transformation control class to implement the coordinate transformation function of the grid nodes.

[0065] In the embodiment of the present invention, by generating a geometric shape object that can be processed by the geometric transformation control class, the coordinate transformation function can be implemented through the geometric transformation control class.

[0066] Specifically, first, it is clear that the input parameter in the abstract method interface perform_on_shape() in the geometric transformation class ITrsf is the IShape object. The function is to apply the geometric transformation operation corresponding to ITrsf to the IShape object and return the IShape object after geometric transformation.

[0067] Based on the grid generator, the node and element information is obtained. In the grid division module, these information will be automatically converted into recognizable grid data, and the geometric modeling function provided by the geometric kernel is used to generate a geometric shape object composed of node and element data, so that geometric transformation operations can be performed on it using ITrsf.

[0068] In addition to geometric shape update, grid update is also included in practical applications. In some embodiments of the present invention, the interactive component assembly module design method further includes: Determine the target elements in the geometric shape object whose topological structures are points, lines, and surfaces, and construct lightweight geometric objects based on the target elements; Before executing the calculation task, confirm whether to update the grid data based on the grid status update label in the component instance class.

[0069] Specifically, the design method traverses all boundary topologies in MeshData (such as Edge and Face), extracts the element_shape of the corresponding elements (such as one-dimensional elements corresponding to Edge and two-dimensional elements corresponding to Face) from them. Based on the geometric kernel method, they are combined into a composite geometric shape, and thus a lightweight geometric object representing the surface mesh information of the geometric shape is obtained. As the visual representation of the geometric mesh, this lightweight geometric object can perform update judgment and execute update operations in any model that needs to be updated. Only before confirming and submitting the calculation task and executing the calculation task, will it be determined whether to update the mesh data based on the mesh status update label in the component instance class, and perform geometric transformation operations on the complete MeshData to obtain the updated coordinates of the complete nodes. Thereby, the real-time update efficiency of the visual mesh model during the finite element modeling interaction operation of the component assembly object is further improved.

[0070] In summary, the embodiment of the present invention designs the association relationship between geometric component objects and component instance objects based on the observer pattern, designs the coordinate transformation function of mesh nodes and lightweight processes the data during the mesh update, optimizes the assembly update mechanism, significantly reduces the calculation efficiency, and improves the user experience.

[0071] The embodiment of the present invention also provides a method for constructing a simulation software, including: Designing an interactive component assembly module based on the design method of the interactive component assembly module; The design method of the interactive component assembly module is the design method of the interactive component assembly module in any of the above embodiments.

[0072] It should be understood that: in addition to the interactive component assembly module, the simulation software may also include an interactive modeling module, an interactive mesh generation module, etc., which will not be elaborated one by one here.

[0073] The embodiment of the present invention also provides a device for designing an interactive component assembly module, as Figure 7 shown, the device 700 for designing an interactive component assembly module includes: A data structure class diagram construction unit 701 for constructing a data structure class diagram describing the association relationship between geometric component objects and component instance objects; An interactive component assembly module design unit 702 for determining the interaction diagram when the component instance object implements the component assembly function and the method interfaces that the objects in the interaction diagram need to provide based on the data structure class diagram, and designing an interactive component assembly module based on the interaction diagram and the method interfaces.

[0074] The interactive component assembly module design device 700 provided in the above embodiments can implement the technical solutions described in the embodiments of the interactive component assembly module design method. For the specific implementation principles of the above modules or units, reference can be made to the corresponding content in the embodiments of the interactive component assembly module design method, which will not be elaborated here.

[0075] Those skilled in the art can understand that all or part of the processes for implementing the methods in the above embodiments can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium is a magnetic disk, an optical disk, a read-only memory, or a random access memory, etc.

[0076] The above has introduced in detail a design method, a simulation software construction method, and a device for an interactive component assembly module of the present invention. Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The descriptions of the above embodiments are only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. An interactive component assembly module design method, characterized in that: include: Construct a data structure class diagram that describes the association between geometric component objects and component instance objects; Based on the data structure class diagram, the interaction diagram when the component instance object realizes the component assembly function and the method interface that the object in the interaction diagram needs to provide are determined, and an interactive component assembly module is designed based on the interaction diagram and the method interface.

2. The interactive component assembly module design method according to claim 1, characterized in that: The data structure class diagram includes a component instance class for creating the component instance object, a geometric component class for creating the geometric component object, a component instance container class in an aggregation relationship with the component instance class, an assembly class in a combination relationship with the component instance container class, an assembly collection container class in a combination relationship with the assembly class, an assembly collection class in an aggregation relationship with the assembly collection container class, a geometric shape class in an aggregation relationship with the component instance class, a geometric feature class in a combination relationship with the geometric shape class and inherited from a component feature abstract class, a component dimension feature class and a component creation method class in an aggregation relationship with the geometric feature class, and a component feature container class in a combination relationship with the geometric component class, wherein the component feature abstract class and the component feature container class are in an aggregation relationship; The geometric component object and the component instance object form an association between a master and a copy, and share the data of the geometric shape class.

3. The interactive component assembly module design method according to claim 2, characterized in that: The data structure class diagram also includes a geometric transformation set class, which is in a combination relationship with the component instance class. The geometric transformation set class is used to record the geometric transformation operations experienced by the component instance object and integrate the geometric transformation operations to obtain the final transformation object.

4. The interactive component assembly module design method according to claim 1, characterized in that: The component assembly function includes translation transformation, and the interaction diagram when the component instance object implements the component assembly function and the method interface that the object in the interaction diagram needs to provide are determined based on the data structure class diagram, including: An operation flow of the translation transformation is determined, and based on the operation flow, an interaction diagram of the translation transformation and a method interface that an object in the interaction diagram needs to provide are determined.

5. The interactive component assembly module design method according to claim 4, characterized in that: The operation process of the translation transformation includes: Determine a geometric shape object to be operated, determine a corresponding component instance object based on the geometric shape object, and select the component instance object; Get the input parameters required for geometric transformation based on the status bar input box; The geometric components after geometric transformation are generated based on the input parameters for the user to preview, and the user's confirmation operation is waited for.

6. The interactive component assembly module design method according to claim 2, characterized in that: The method further comprises: Add a copy object list attribute to the geometric shape class, wherein the copy object list attribute is used to record the copy shape objects copied from the geometric shape object; Design a registration method, the copy method of the geometric shape class calls the registration method to register the copy shape object generated by the copy into the copy object list attribute of the parent shape object; A notification method is designed, and when a geometric shape class in a geometric component class changes, the notification method is called to notify the copy shape objects in the copy object list attribute that an update operation needs to be performed.

7. The interactive component assembly module design method according to claim 2, characterized in that: The object includes a geometric transformation class, and the geometric shape class includes mesh data; the method further includes: The node information in the mesh data is determined, and a geometric shape object is formed based on the node information; the geometric shape object can be processed by the geometric transformation control class to realize the coordinate transformation function of the mesh node.

8. The interactive component assembly module design method according to claim 7, characterized in that: The method further comprises: Determine a target unit whose topological structure is a point, a line, or a surface in the geometric shape object, and construct a lightweight geometric object based on the target unit; Before executing the computing task, it is confirmed whether to perform an update operation on the mesh data based on the mesh state update tag in the component instance class.

9. A method for constructing simulation software, characterized in that: include: Design an interactive component assembly module based on an interactive component assembly module design method; The interactive component assembly module design method is the interactive component assembly module design method according to any one of claims 1-8.

10. An interactive component assembly module design device, characterized in that: include: A data structure class diagram construction unit, used to construct a data structure class diagram describing the association relationship between geometric component objects and component instance objects; An interactive component assembly module design unit is used to determine the interaction diagram when the component instance object implements the component assembly function and the method interface that the object in the interaction diagram needs to provide based on the data structure class diagram, and design an interactive component assembly module based on the interaction diagram and the method interface.

Citation Information

Patent Citations

  • Wide-net fracturing method for shale gas exploitation

    CN104863560A

  • Model driven automatic software measuring method and system

    CN107329737A

  • Method and device for improving primitive assembly efficiency and computer storage medium

    CN111080505A

  • Data updating method and system for associated primitives in graphical interface

    CN119203282A

  • System and method for dynamically modeling of workflows for interacting stateful resources

    EP1729252A2