Interactive material setting module design method, simulation software construction method and device

By combining the pattern design of data structure diagrams for material, cross-section and cross-section assignment in CAE software, and building an interactive functional architecture, the data structure limitations and functional architecture problems of material setting modules in the existing technology are solved, and the system scalability and user experience are improved.

CN120012191AActive Publication Date: 2025-05-16NINGXIA UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510037223.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-05-16
Estimated Expiration
2045-01-09

AI Technical Summary

Technical Problem

The material setting modules in existing CAE software have problems such as data structure limitations, rigid functional architecture and insufficient user experience, resulting in poor system scalability, complex maintenance and complex user operations.

Method used

The data structure class diagrams for material, section and section assignment are designed using a combination pattern, and a functional architecture for interactive materials, sections and section assignments are constructed based on these class diagrams, including material creation dialogue windows, section creation dialogue windows and section assignment editing dialogue windows to achieve data decoupling and flexibility of functional architecture.

Benefits of technology

Through a clear and streamlined data framework, the development complexity and maintenance costs are reduced, the interactive intuitiveness of the user interface is improved, the modeling and simulation efficiency and user experience are significantly improved, and the module is scalable and maintainable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012191A_ABST
    Figure CN120012191A_ABST
Patent Text Reader

Abstract

The invention provides an interactive material setting module design method and device and a simulation software construction method and device. The method comprises the steps that a material data structure class diagram, a section data structure class diagram and a section assignment data structure class diagram are determined based on a combination mode; constructing an interactive material function framework based on the material data structure class diagram; the interactive material function architecture comprises a material creation dialogue window; constructing an interactive section function architecture based on the section data structure class diagram; the interactive section function architecture comprises a section creation dialogue window; constructing an interactive cross section assignment function architecture based on the cross section assignment data structure class diagram; the interactive section assignment function architecture comprises a section assignment editing dialogue window; and creating a conversation window reserved material creation function button on the cross section, and assigning and editing a conversation window reserved cross section creation button on the cross section. The expandability and maintainability of the material setting module are effectively guaranteed, and meanwhile the development efficiency of the material setting module is 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 in particular to an interactive material setting module design method, a simulation software construction method and a device. Background Art

[0002] In the context of the rapid development of science and engineering, the importance of finite element simulation software (CAE) as a core tool for design and analysis is becoming increasingly prominent. The interactive finite element modeling and simulation process mainly includes two core steps: model building and simulation analysis. The model building process involves user interaction to create geometric representations, configure material properties, and perform meshing. Among them, the accurate configuration of material properties is crucial to ensure the reliability of the simulation, and the material setting module plays an indispensable role in this process. However, in the current development of domestic CAE software, especially in the architectural design of the material setting module, there are several key issues: Data structure limitations: The existing material-related data structure fails to fully consider the addition of new material types or complex material properties in the future, limiting the scalability of the system.

[0003] Rigid functional architecture: Material setting modules usually adopt a fixed functional architecture, which is difficult to flexibly adapt to the specific needs of different types of materials and cross-sectional properties, increasing the difficulty of development and complicating subsequent maintenance.

[0004] Inadequate user experience: The design of the material setting module lacks intuitiveness and convenience. Users need to frequently switch interfaces or even manually input a large number of parameters, which increases the complexity of operations and easily leads to errors.

[0005] In view of the above problems, there is an urgent need for an interactive material setting module design method, simulation software construction method and device to solve the problem of imperfect design of existing data structure and functional architecture. By providing a clear and streamlined data framework, the development complexity and long-term maintenance cost are reduced, while the intuitiveness of data interaction in the user interface is enhanced, and the efficiency of modeling and simulation and user experience are significantly improved. Summary of the invention

[0006] In view of this, it is necessary to provide an interactive material setting module design method, a simulation software construction method and a device to solve the scalability and maintainability problems at the software development level caused by the data structure limitations and rigid functional architecture in the prior art, while improving the user interactive modeling experience.

[0007] On the one hand, in order to solve the above technical problems, the present invention provides an interactive material setting module design method, comprising: Determine the material data structure class diagram, the section data structure class diagram and the section assignment data structure class diagram based on the combination pattern; Constructing an interactive material functional architecture based on the material data structure class diagram; the interactive material functional architecture includes a material creation dialog window; Constructing an interactive cross-section functional architecture based on the cross-section data structure class diagram; the interactive cross-section functional architecture includes a cross-section creation dialog window; Constructing an interactive cross-section assignment functional framework based on the cross-section assignment data structure class diagram; the interactive cross-section assignment functional framework includes a cross-section assignment editing dialog window; A material creation function button for calling the material creation dialog window is reserved in the section creation dialog window, and a section creation button for calling the section creation dialog window is reserved in the section assignment editing dialog window.

[0008] In a possible implementation, a material data structure class diagram is determined based on the combination pattern, including: Based on the combination mode, a material container class inherited from the abstract container class and a material node class inherited from the abstract model node class are designed; the material container class and the material node class are in an aggregation relationship; the material container class is used to manage the material node class, and the material node class is used to create a material object; Design a material behavior class based on the material node class, wherein the material behavior class and the material node class are in an aggregation relationship; the material behavior class is used to provide material behavior attributes and an abstract method interface related to material behavior; Design multiple material behavior specific classes that inherit from the material behavior class based on requirements; The specific class of material behavior includes elastic behavior class and data-driven behavior class, the elastic behavior class includes isotropic behavior class and anisotropic behavior class, and the data-driven behavior class includes material gene-driven behavior class and structural gene-driven behavior class.

[0009] In a possible implementation, determining a material data structure class diagram based on a combination pattern further includes: Design a material behavior factory class corresponding to the material behavior specific class based on the factory pattern; the relationship between the material behavior factory class and the material behavior specific class is an aggregation relationship; The material type based enumeration class manages the material behavior as object matching operations in the factory class.

[0010] In a possible implementation, determining a cross-section data structure class diagram based on a combination pattern includes: Based on the combination mode, a section container class inherited from the abstract container class and a section node class inherited from the abstract model node class are designed; the section container class and the section node class are in an aggregation relationship, the section container class is used to manage the section node class, and the section node class is used to create a section object; Design a section category class and a section type class that are in a combined relationship with the section node class; the section category class is used to describe the topological type of the object to be assigned to the section, and the section type class is used to describe the material distribution characteristics of the section; Design a section category information class that is in a combined relationship with the section category class and a section type information class that is in a combined relationship with the section type class; the section category information class is used to record the attributes and data required to describe the topological type to be assigned to the object, and the section type information class is used to record the attributes and data required to describe the material distribution characteristics of the section; Based on the requirements, multiple section category specific classes inheriting from the section category class, multiple section type specific classes inheriting from the section type class, multiple section category information specific classes inheriting from the section category information class, and multiple section type information specific classes inheriting from the section type information class are designed.

[0011] In a possible implementation, a cross-section assignment data structure class diagram is determined based on a combination pattern, including: Based on the combination mode, a section assignment container class inherited from the abstract container class and a section assignment node class inherited from the abstract model node class are designed; the section assignment container class and the section assignment node class are in an aggregation relationship; the section assignment container class is used to manage the section assignment node class, and the section assignment node class is used to create an object when assigning a section to a geometric model; Design a section assignment information class and a shape collection class, wherein the relationship between the section node class, the shape combination class and the section assignment information class is an aggregation relationship, and the relationship between the section assignment information class and the section assignment node class is a combination relationship; Design multiple section assignment information specific classes that inherit from the section assignment information class; the section assignment information specific class includes a shell section assignment information class and a solid section assignment information class.

[0012] In a possible implementation, the step of constructing an interactive material functional architecture based on the material data structure class diagram includes: Identify common and different operations for different material settings; The material creation dialog window is constructed based on the common operation, and a material behavior attribute component is constructed based on the difference operation; the material behavior attribute component and the material creation dialog window are in a combination relationship; Designing a data-driven behavior property component and an elastic material behavior property component that inherit from the material behavior property component; A data-driven behavior factory class and an elastic behavior factory class are created, wherein the data-driven behavior attribute component depends on the data-driven behavior factory class, and the elastic material behavior attribute component depends on the elastic behavior factory class.

[0013] In a possible implementation, the section category specific class includes a shell section category class and a solid section category class, the section category information specific class includes a shell section category information class and a solid section information class, the section type specific class includes a homogeneous section type class and a composite section type class, and the section type information class includes a homogeneous section information class and a composite section information class; The interactive cross-section functional architecture is constructed based on the cross-section data structure class diagram, including: Creating a section creation dialog window and a section editing basic dialog window that is in a combined relationship with the section creation dialog window; the section creation dialog window is used to match a corresponding section type based on the input section key properties, and call the section editing basic dialog window based on the section type; Constructing a section category generator and a section type generator that are in a combined relationship with the section editing basic dialogue window; the section category generator is used to generate a section topology category, and the section type generator is used to generate a section type; Design a shell section category generator and a solid section category generator inherited from the section category generator, and a homogeneous section type generator and a composite section type generator inherited from the section type generator; Design a solid homogeneous section category generator and a solid composite section category generator inherited from the solid section category generator, and a shell composite section type generator and a solid composite section type generator inherited from the composite section type generator; Based on the shell composite section type generator and the shell section category generator, a shell composite section editing dialog window is created that inherits from the section editing basic dialog window; based on the shell section category generator and the homogeneous section type generator, a shell homogeneous section editing dialog window is created that inherits from the section editing basic dialog window; based on the solid homogeneous section category generator and the homogeneous section type generator, a solid homogeneous section editing dialog window is created that inherits from the section editing basic dialog window; based on the solid composite section category generator and the solid composite section type generator, a solid composite section editing dialog window is created that inherits from the section editing basic dialog window.

[0014] In a possible implementation, the step of constructing an interactive cross-section assignment functional architecture based on the cross-section assignment data structure class diagram includes: Creating the section assignment editing dialog window that is in a combined relationship with the section assignment creation class; The shell section assignment editing dialog window and the solid section assignment editing dialog window are designed to inherit the section assignment editing dialog window.

[0015] On the other hand, the present invention also provides a simulation software construction method, comprising: Constructing a material setting module based on an interactive material setting module design method; The interactive material setting module design method is the interactive material setting module design method described in any one of the possible implementations above.

[0016] On the other hand, the present invention also provides an interactive material setting module design device, comprising: A data structure class diagram determining unit, used for determining a material data structure class diagram, a section data structure class diagram and a section assignment data structure class diagram based on a combination pattern; An interactive material function architecture building unit, used to build an interactive material function architecture based on the material data structure class diagram; the interactive material function architecture includes a material creation dialog window; An interactive section functional architecture construction unit is used to construct an interactive section functional architecture based on the section data structure class diagram; the interactive section functional architecture includes a section creation dialog window; An interactive section assignment function architecture construction unit is used to construct an interactive section assignment function architecture based on the section assignment data structure class diagram; the interactive section assignment function architecture includes a section assignment editing dialog window; The functional architecture integration unit is used to reserve a material creation function button in the section creation dialog window for calling the material creation dialog window, and to reserve a section creation button in the section assignment editing dialog window for calling the section creation dialog window.

[0017] The beneficial effects of the present invention are as follows: the interactive material setting module design method provided by the present invention, by determining the material data structure class diagram, the section data structure class diagram and the section assignment data structure class diagram based on the combination pattern, decouples the materials, sections and section assignments in the material setting module, and provides clear data support for the introduction of new material types. In addition, based on the material data structure class diagram, the section data structure class diagram and the section assignment data structure class diagram, an interactive material functional architecture, an interactive section functional architecture and an interactive section assignment functional architecture are respectively constructed, providing clear functional architecture support for the introduction of new material types, while effectively ensuring the scalability and maintainability of the module, and improving the development efficiency of the module. At the same time, the interactive architecture provides users with a good interactive experience.

[0018] Furthermore, the present invention realizes automatic switching of dialog windows by reserving a material creation function button in the section creation dialog window for calling the material creation dialog window, and reserving a section creation button in the section assignment editing dialog window for calling the section creation dialog window, thereby eliminating the need for frequent manual switching of interfaces and reducing additional operational problems caused by misoperation in the process of creating materials and sections, further reducing operational complexity and improving modeling and simulation efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 A schematic flow chart of an embodiment of the interactive material setting module design method provided by the present invention; Figure 2 For the present invention Figure 1 A schematic diagram of an embodiment of a flow chart of determining a material data structure class diagram in S101; Figure 3 A schematic diagram of an embodiment of a material data structure class diagram provided by the present invention; Figure 4 For the present invention Figure 1 A schematic diagram of an embodiment of a flow chart of determining a cross-section data structure class diagram in S101; Figure 5 A schematic diagram of an embodiment of a cross-section data structure class diagram provided by the present invention; Figure 6 For the present invention Figure 1 A schematic flow chart of an embodiment of determining a cross-section assignment data structure class diagram in S101; Figure 7 A schematic diagram of an embodiment of a cross-section assignment data structure class diagram provided by the present invention; Figure 8 For the present invention Figure 1 A schematic flow chart of an embodiment of S102; Fig. 9 A schematic diagram of an embodiment of the interactive material functional architecture provided by the present invention; Fig.10 For the present invention Figure 1 A schematic flow chart of an embodiment of S103; Fig.11 A schematic diagram of an embodiment of an interactive cross-section functional architecture provided by the present invention; Fig.12 For the present invention Figure 1 A schematic flow chart of an embodiment of S104; Fig.13 A schematic diagram of an embodiment of the interactive cross-section assignment functional architecture provided by the present invention; Fig.14 A schematic structural diagram of an embodiment of the interactive material setting module design device provided by the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0022] It should be understood that the schematic drawings are not drawn to scale. The flowchart used in the present invention shows the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present invention, can add one or more other operations to the flowchart, and can also remove one or more operations from the flowchart. Some of the block diagrams shown in the accompanying 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 in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.

[0023] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0024] 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 are described below respectively.

[0025] Before introducing the embodiments, it should be noted that the interactive material setting module design method and the simulation software construction 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 electronic devices stores a program compiled by the interactive material setting module design method and the simulation software construction method. When any of the above electronic devices is started, the program is called, and then the interactive material setting module design method and the simulation software construction method are implemented.

[0026] Figure 1 A schematic flow chart of an embodiment of the interactive material setting module design method provided by the present invention is as follows: Figure 1 As shown, the interactive material setting module design method includes: S101, determining a material data structure class diagram, a cross-section data structure class diagram, and a cross-section assignment data structure class diagram based on a combination pattern; S102, constructing an interactive material function architecture based on a material data structure class diagram; the interactive material function architecture includes a material creation dialog window; S103, constructing an interactive section function architecture based on the section data structure class diagram; the interactive section function architecture includes a section creation dialog window; S104, constructing an interactive cross-section assignment function architecture based on the cross-section assignment data structure class diagram; the interactive cross-section assignment function architecture includes a cross-section assignment editing dialog window; S105. A material creation function button for calling a material creation dialog window is reserved in the section creation dialog window, and a section creation button for calling a section creation dialog window is reserved in the section assignment editing dialog window.

[0027] The embodiment of the present invention divides the material setting module into three parts, namely, designing materials, sections, and section assignment, and clearly divides the functions of the material setting module. On this basis, the various functions are integrated and optimized at the architecture level to obtain the final design architecture of the interactive material setting module, ensuring the accuracy and rationality of the generated design architecture.

[0028] Among them, the material data structure class diagram, the cross-section data structure class diagram and the cross-section assignment data structure class diagram are the design guidance diagrams of the material data structure, the cross-section data structure and the cross-section assignment data structure.

[0029] It should be understood that the composite pattern is a mature design pattern and will not be elaborated here.

[0030] Compared with the prior art, the interactive material setting module design method provided by the embodiment of the present invention, by determining the material data structure class diagram, the section data structure class diagram and the section assignment data structure class diagram based on the combination pattern, decouples the materials, sections and section assignments in the material setting module, and provides clear data support for the introduction of new material types. In addition, based on the material data structure class diagram, the section data structure class diagram and the section assignment data structure class diagram, an interactive material functional architecture, an interactive section functional architecture and an interactive section assignment functional architecture are respectively constructed, providing clear functional architecture support for the introduction of new material types, while effectively ensuring the scalability and maintainability of the module, and improving the development efficiency of the module. At the same time, the interactive architecture provides users with a good interactive experience.

[0031] Furthermore, the embodiment of the present invention realizes automatic switching of dialog windows by setting a material creation function button reserved in the section creation dialog window for calling the material creation dialog window, and reserving a section creation button in the section assignment editing dialog window for calling the section creation dialog window, thereby eliminating the need for frequent manual switching of interfaces and reducing additional operational problems caused by misoperation in the process of creating materials and sections, further reducing operational complexity and improving modeling and simulation efficiency and user experience.

[0032] In some embodiments of the present invention, Figure 2 As shown, the material data structure class diagram determined based on the combination mode in step S101 includes: S201. Design a material container class inherited from an abstract container class and a material node class inherited from an abstract model node class based on a combination pattern; the material container class and the material node class are in an aggregation relationship; the material container class is used to manage the material node class, and the material node class is used to create a material object; S202. Design a material behavior class based on the material node class. The material behavior class and the material node class are in an aggregation relationship. The material behavior class is used to provide material behavior attributes and an abstract method interface related to material behavior. S203. Design multiple material behavior specific classes that inherit from the material behavior class based on requirements.

[0033] Among them, the specific classes of material behavior include elastic behavior class and data-driven behavior class, the elastic behavior class includes isotropic behavior class and anisotropic behavior class, and the data-driven behavior class includes material gene-driven behavior class and structural gene-driven behavior class.

[0034] Among them, it is not necessary to set material parameters in the data-driven behavior class. In addition to considering the typical elastic behavior class with a constitutive model, the embodiment of the present invention also takes the material type of the data-driven non-constitutive model into consideration in the data structure design, thereby improving the comprehensiveness of the material data and further improving the development efficiency of the interactive material setting module.

[0035] Among them, the main difference between material gene-driven behavior and structural gene-driven behavior lies in the unit type and data type used. Material gene-driven behavior is usually based on solid units, and the data used is conventional stress-strain data. For plane problems, each constitutive data corresponds to 3 stress components and 3 strain components; for space problems, each constitutive data corresponds to 6 stress components and 6 strain components. The core idea of ​​material gene-driven behavior is to match the stress-strain state that is closest to satisfying the equilibrium equation and deformation coordination constraints at the integration point of the solid unit from a large amount of stress-strain constitutive data. Structural gene-driven behavior is usually based on structural units (typically beam, plate, and shell units), and the data used is generalized stress-strain data (such as axial force, axial strain, bending moment, curvature, etc.). Taking a thin-walled beam structure as an example, each constitutive data of the structural gene corresponds to 1 pair of axial force and axial strain data, 2 pairs of bending moment and curvature data, and 1 pair of torque and torsion data; for thin-walled plates and shell structures, the same applies; for medium-thick beams, plates, and shell structures, shear force and shear strain data at the cross section should be further considered. The core idea of ​​structural gene driving is to match the generalized stress-strain state that is closest to satisfying the equilibrium and deformation coordination constraints at the integration points of the structural unit from a large amount of generalized stress-strain data.

[0036] In order to reasonably and conveniently generate the corresponding material behavior specific class, the factory mode is introduced, that is, the material data structure class diagram is determined based on the combination mode in step S101, and also includes: Design the material behavior factory class corresponding to the material behavior specific class based on the factory pattern; the relationship between the material behavior factory class and the material behavior specific class is an aggregation relationship; The enumeration class manages the material behavior based on the material type and the object matching operation in the factory class.

[0037] The factory pattern provides a way to create an object without specifying the specific class to be created. By using the factory pattern, the object creation logic can be encapsulated in a factory class instead of instantiating the object directly in the client code, which can improve the maintainability and scalability of the code.

[0038] In a specific embodiment of the present invention, the material data structure class diagram is as follows Figure 3As shown in the figure, the material container class Materials and the material node class Material form an aggregation relationship. In Material, the material behavior class MaterialBehavior is designed to provide material behavior properties and abstract method interfaces related to material behavior. Based on different actual material types, different specific material behavior data can be inherited from MaterialBehavior, such as ElasticBehavior representing linear materials. In addition to the abstract method interface, MaterialBehavior also provides common methods for subclasses, such as the generate_d_mat() method.

[0039] It should be noted that: Figure 3 As shown, the elastic behavior class ElasticBehavior and the data-driven class DataDrivenBehavior are respectively in an aggregation relationship with the elastic behavior information class ElasticBehaviorInfo and the data-driven behavior information class DataDrivenBehaviorInfo, that is, the elastic behavior class "owns" the elastic behavior information class, and the data-driven behavior class "owns" the data-driven behavior information class. The elastic behavior information class ElasticBehaviorInfo and the data-driven behavior information class DataDrivenBehaviorInfo record the behavior data of specific materials.

[0040] In some embodiments of the present invention, Figure 4 As shown, determining the cross-section data structure class diagram based on the combination mode in step S101 includes: S401. Based on the combination mode, a section container class inherited from the abstract container class and a section node class inherited from the abstract model node class are designed; the section container class and the section node class are in an aggregation relationship, the section container class is used to manage the section node class, and the section node class is used to create a section object; S402, design a section category class and a section type class that are in a combined relationship with the section node class; the section category class is used to describe the topological type of the object to be assigned to the section, and the section type class is used to describe the material distribution characteristics of the section; S403, designing a section category information class that is in a combination relationship with the section category class and a section type information class that is in a combination relationship with the section type class; the section category information class is used to record the attributes and data required to describe the topological type to be assigned to the object, and the section type information class is used to record the attributes and data required to describe the material distribution characteristics of the section; S404. Based on the requirements, design multiple section category specific classes that inherit from the section category class, multiple section type specific classes that inherit from the section type class, multiple section category information specific classes that inherit from the section category information class, and multiple section type information specific classes that inherit from the section type information class.

[0041] In a specific embodiment of the present invention, the cross-section data structure class diagram is as follows: Figure 5 As shown in the figure, the section container class Sections and the section node class Section are designed based on the combination mode to form an aggregation relationship. Sections is used to manage different section node data and provide access operation methods; while Section corresponds to a separate section object created by the user.

[0042] Section forms a combination relationship with the section category class SectionCategory and the section type class SectionType. Among them, SectionCategory is used to describe the topological type (solid, shell, etc.) of the object to be assigned to the section, and the section category information class SectionCategoryInfo records some of the properties and data required for the description; SectionType is used to describe the material distribution characteristics of the section (homogeneous, composite material, etc.), and the section type information class SectionTypeInfo records some of the properties and data required for the description, so SectionTypeInfo forms an aggregation relationship with the material node class Material.

[0043] SectionCategory can be inherited as a specific subclass according to the needs, such as the shell section category class ShellSectionCategory and the solid section category class SolidSectionCategory, which have corresponding section category information classes, such as the shell section information class ShellSectionCategoryInfo and the solid section information class SolidSectionCategoryInfo. The SectionCategory subclass and its corresponding SectionCategoryInfo subclass are used to provide operations related to the section topology type and topology-related attribute information. For example, for shell sections and solid sections, the various matrices used to obtain the finite element model control equations will need to be processed differently, which requires different implementations in the subclasses through the abstract interface provided by SectionCategory to meet the simulation calculation requirements after the finite element model is built.

[0044] SectionType can be inherited as a specific subclass according to the needs, such as the homogeneous section type class HomogeneousSectionType and the composite section type class CompositeSectionType. They have corresponding section type information classes, such as the homogeneous section information class HomogeneousSectionTypeInfo and the composite section information class CompositeSectionTypeInfo. When calculating the equivalent material properties of materials with different uniformity on a certain section, targeted calculation operations are required, so the operation methods provided by SectionType and the section type property data provided by SectionTypeInfo are needed.

[0045] In some embodiments of the present invention, Figure 6 As shown, the cross-section assignment data structure class diagram determined based on the combination mode in step S101 includes: S601. Based on the combination mode, a section assignment container class inherited from the abstract container class and a section assignment node class inherited from the abstract model node class are designed; the section assignment container class and the section assignment node class are in an aggregation relationship; the section assignment container class is used to manage the section assignment node class, and the section assignment node class is used to create an object when assigning a section to a geometric model; S602, designing a section assignment information class and a shape collection class, a section node class, a shape combination class and a section assignment information class as an aggregation relationship, and a section assignment information class and a section assignment node class as a combination relationship; S603. Design multiple section assignment information specific classes that inherit from the section assignment information class; the section assignment information specific classes include a shell section assignment information class and a solid section assignment information class.

[0046] In a specific embodiment of the present invention, the cross-section assignment data structure class diagram determined based on the above steps is as follows: Figure 7 As shown in the figure, the section container class SectionAssignments and the section assignment node class SectionAssignment are designed based on the combination mode to form an aggregation relationship. SectionAssignments is used to manage different section node data and provide access operation methods; while SectionAssignment corresponds to the corresponding object created when the user assigns a section to a certain geometric shape.

[0047] SectionAssignment needs to be associated with both the section node class Section and the geometric shape class IShape to describe the binding relationship between the two. Therefore, the section assignment information class SectionAssignmentInfo is designed to form a combination relationship with SectionAssignment. Considering that a Section may be assigned multiple geometric shapes to be bound at the same time, the geometric shape class ShapeGroup is designed as a collection representation of IShape. As an information recording class, SectionAssignmentInfo forms an aggregation relationship with Section and ShapeGroup respectively.

[0048] It should be noted that SectionAssignmentInfo only provides common properties. In the specific Section assignment process, it is necessary to design subclasses that inherit from SectionAssignmentInfo, such as the shell section assignment information class ShellSectionAssignmentInfo and the solid section assignment information class SolidSectionAssignmentInfo. Different assignment information will affect the section information calculation results when constructing the final finite element model of different topological structures and geometric shapes.

[0049] In some embodiments of the present invention, Figure 8 As shown, step S102 includes: S801, determining common operations and difference operations for different material settings; constructing a material creation dialog window based on the common operations, and constructing a material behavior attribute component based on the difference operations; the material behavior attribute component and the material creation dialog window are in a combination relationship; S802. Design a data-driven behavior attribute component and an elastic material behavior attribute component inherited from the material behavior attribute component; S803. Create a data-driven behavior factory class and an elastic behavior factory class. The data-driven behavior attribute component depends on the data-driven behavior factory class, and the elastic material behavior attribute component depends on the elastic behavior factory class.

[0050] In a specific embodiment of the present invention, the interactive material functional architecture is as follows Fig. 9As shown in the figure, considering that different materials have common operations in setting, only some specific parameter settings will show differences; the same material may have multiple material behavior settings. Design the interface architecture form of "Dialog Dialog-Component Widget" (i.e.: material creation dialog window and material behavior attribute component), the material creation dialog window standardizes the common operation mode, and the material behavior attribute component provides the differentiated part of the specific setting. When it is necessary to set different material behavior objects MaterialBehavior, just develop the corresponding Widget and connect it to the dialog box, and you can set the material behavior parameters in the same dialog box. For example, to create and set the elastic material behavior object, the elastic material behavior attribute option is provided in the material creation dialog window for users to choose, and the corresponding elastic material behavior attribute component QmyElasticPropertyWidget is designed for it. When the user selects the material behavior type, the QmyElasticPropertyWidget object will pop up in the component area of ​​the material creation dialog window, and the user can further set and edit the relevant material behavior parameters.

[0051] It should be noted that the specific widget forms a dependency relationship with the corresponding material behavior MaterialBehavior creation factory, so the creation of different material behaviors can be smoothly realized. For example, the data-driven material behavior property widget QmyDataDrivenPropertyWidget depends on the data-driven behavior factory class DataDrivenBehaviorFactory. Only based on the generation method of the factory class can the widget extract the user's setting parameters and complete the creation of the corresponding material behavior object.

[0052] It should be understood that the process of creating a cross section includes two steps. The first step is to create a cross section object, during which the cross section topology type and the cross section material distribution method need to be selected; the second step is to set the relevant parameters of the cross section object. In the cross section setting, there are two types of information to consider, namely, the cross section topology category and the material distribution type. The two types of information can be combined to form a specific cross section type. Based on this, in some embodiments of the present invention, such as Fig.10 As shown, step S103 includes: S1001, creating a section creation dialog window and a section editing basic dialog window that is in a combined relationship with the section creation dialog window; the section creation dialog window is used to match a corresponding section type based on inputted key properties of the section, and to call the section editing basic dialog window based on the section type; S1002. The basic dialog window for constructing and editing cross sections is a cross section category generator and a cross section type generator in a combined relationship; the cross section category generator is used to generate cross section topology categories, and the cross section type generator is used to generate cross section types; S1003. Design a shell section category generator and a solid section category generator inherited from the section category generator, and a homogeneous section type generator and a composite section type generator inherited from the section type generator; S1004. Design a solid homogeneous section category generator and a solid composite section category generator inherited from a solid section category generator, and a shell composite section type generator and a solid composite section type generator inherited from a composite section type generator; S1005. Create a shell composite section editing dialog window that inherits from the section editing basic dialog window based on the shell composite section type generator and the shell section category generator; create a shell homogeneous section editing dialog window that inherits from the section editing basic dialog window based on the shell section category generator and the homogeneous section type generator; create a solid homogeneous section editing dialog window that inherits from the section editing basic dialog window based on the solid homogeneous section category generator and the homogeneous section type generator; create a solid composite section editing dialog window that inherits from the section editing basic dialog window based on the solid composite section category generator and the solid composite section type generator.

[0053] In a specific embodiment of the present invention, the interactive cross-section functional architecture is as follows Fig.11 As shown, the embodiment of the present invention designs a section creation dialog window QmyGenerateSectionDialog and a section editing base dialog window QmyEditBaseSectionDialog. The user selects the key properties of the section to be created in QmyGenerateSectionDialog, and the corresponding section type will be matched according to the user's selection, so that the corresponding section editing dialog window will pop up. For example, if the user intends to create a section of a shell composite material, and selects the Shell and Composite options in QmyGenerateSectionDialog, the system will pop up the shell composite section editing dialog window QmyEditShellCompositeDialog.

[0054] In the section setting, there are two types of information to consider, namely the section topology category SectionCategory and the material distribution type SectionType. Common SectionCategories include shells, solids, etc., and common SectionTypes include homogeneous and composite materials, etc. The two types of information are combined to form a specific section type, such as a homogeneous shell section or a composite solid section. In order to realize the creation of all SectionCategory and SectionType combinations and maximize code reuse, a dialog window for creating different specific section types is designed, and the generator mechanism is introduced in it.

[0055] According to the above design, the generator can be divided into two categories, namely, Section Category Generator SectionCategoryGenerator and Section Type Generator SectionTypeGenerator. These two types of generators form a combination relationship with the section editing dialog window, that is, each specific section editing dialog window has these two types of generators. For example, the solid homogeneous section editing dialog window QmyEditSolidHomogeneousDialog contains the solid homogeneous section category generator SolidHomogeneousSectionCategoryGenerator and the homogeneous section type generator HomogeneousSectionTypeGenerator, and enters the corresponding generation process after the user completes the parameter setting and clicks the confirmation button.

[0056] In comparison, the shell section category generator ShellSectionCategoryGenerator and the homogeneous section type generator HomogeneousSectionTypeGenerator are relatively simple, so they can be directly used in the corresponding section editing dialog window; while the solid section category generator SolidSectionCategoryGenerator and the composite section type generator CompositeSectionTypeGenerator are relatively complex, and need to be inherited once to realize some abstract functions before they can be used in the section editing dialog window.

[0057] In some embodiments of the present invention, Fig.12 As shown, step S104 includes: S1201, create and section assignment create section assignment editing dialog window with combination relationship; S1202. Design a shell section assignment editing dialog window and a solid section assignment editing dialog window that are inherited from the section assignment editing dialog window.

[0058] It should be understood that the section assignment process can be designed as two steps, the first step is to select a geometric shape object, and the second step is to select a section that matches the topological type and assign the geometric shape.

[0059] In the process of section assignment, it is necessary to determine whether the topological type of the section matches the topological type of the geometric shape. When the two do not match, an error will be reported and the section cannot be assigned to the geometric shape. For example, a solid geometric shape object cannot be assigned a shell section. At the same time, different topological types of geometric shapes require different section parameters. Therefore, different section assignment boundary basic dialog windows are designed. On the one hand, the above topological type matching conditions are judged during the assignment process, and on the other hand, different parameter setting interactive interfaces are provided for users.

[0060] In a specific embodiment of the present invention, the interactive cross-section assignment function architecture is as follows: Fig.13 As shown, the section assignment creation class GenerateSectionAssignment and the section assignment editing dialog window QmyEditBaseAssignmentDialog are in a combined relationship. The shell section assignment editing dialog window QmyEditShellAssignmentDialog and the solid section assignment editing dialog window QmyEditSolidAssignmentDialog inherit from the section assignment editing dialog window QmyEditBaseAssignmentDialog.

[0061] It should be noted that: the visual effect changes of geometric shapes during the section assignment process can also be designed based on the finite state machine, which is convenient for users to make intuitive visual judgments during the section assignment operation. When the geometric shape is not assigned a section, it appears white; when it is assigned a section, it appears green.

[0062] The embodiment of the present invention also provides a simulation software construction method, comprising: Constructing a material setting module based on an interactive material setting module design method; The interactive material setting module design method is the interactive material setting module design method in any one of the above embodiments.

[0063] Among them, the simulation software construction method also includes building a base geometry modeling module, a meshing module, etc., which will not be elaborated here one by one.

[0064] In order to better implement the interactive material setting module design method in the embodiment of the present invention, based on the interactive material setting module design method, the embodiment of the present invention also provides an interactive material setting module design device, such as Fig.14As shown, the interactive material setting module design device 1400 includes: A data structure class diagram determining unit 1401 is used to determine a material data structure class diagram, a cross-section data structure class diagram, and a cross-section assignment data structure class diagram based on a combination pattern; An interactive material function architecture building unit 1402 is used to build an interactive material function architecture based on the material data structure class diagram; the interactive material function architecture includes a material creation dialog window; An interactive section function architecture building unit 1403 is used to build an interactive section function architecture based on the section data structure class diagram; the interactive section function architecture includes a section creation dialog window; An interactive section assignment function architecture construction unit 1404 is used to construct an interactive section assignment function architecture based on the section assignment data structure class diagram; the interactive section assignment function architecture includes a section assignment editing dialog window; The functional architecture integration unit 1405 is used to reserve a material creation function button for calling a material creation dialog window in the section creation dialog window, and to reserve a section creation button for calling a section creation dialog window in the section assignment editing dialog window.

[0065] The interactive material setting module design device 1400 provided in the above embodiment can implement the technical solution described in the above interactive material setting module design method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above interactive material setting module design method embodiment, which will not be repeated here.

[0066] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related 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, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0067] The above is a detailed introduction to an interactive material setting module design method, simulation software construction method and device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An interactive material setting module design method, characterized in that: include: Determine the material data structure class diagram, the section data structure class diagram and the section assignment data structure class diagram based on the combination pattern; Constructing an interactive material functional architecture based on the material data structure class diagram; the interactive material functional architecture includes a material creation dialog window; Constructing an interactive cross-section functional architecture based on the cross-section data structure class diagram; the interactive cross-section functional architecture includes a cross-section creation dialog window; Constructing an interactive cross-section assignment functional framework based on the cross-section assignment data structure class diagram; the interactive cross-section assignment functional framework includes a cross-section assignment editing dialog window; A material creation function button for calling the material creation dialog window is reserved in the section creation dialog window, and a section creation button for calling the section creation dialog window is reserved in the section assignment editing dialog window.

2. The interactive material setting module design method according to claim 1, characterized in that: Determine the material data structure class diagram based on the combination pattern, including: Based on the combination mode, a material container class inherited from the abstract container class and a material node class inherited from the abstract model node class are designed; the material container class and the material node class are in an aggregation relationship; the material container class is used to manage the material node class, and the material node class is used to create a material object; Design a material behavior class based on the material node class, wherein the material behavior class and the material node class are in an aggregation relationship; the material behavior class is used to provide material behavior attributes and an abstract method interface related to material behavior; Design multiple material behavior specific classes that inherit from the material behavior class based on requirements; The specific class of material behavior includes elastic behavior class and data-driven behavior class, the elastic behavior class includes isotropic behavior class and anisotropic behavior class, and the data-driven behavior class includes material gene-driven behavior class and structural gene-driven behavior class.

3. The interactive material setting module design method according to claim 2, characterized in that: Determine the material data structure class diagram based on the combination pattern, and also include: Design a material behavior factory class corresponding to the material behavior specific class based on the factory pattern; the relationship between the material behavior factory class and the material behavior specific class is an aggregation relationship; The material type based enumeration class manages the material behavior as object matching operations in the factory class.

4. The interactive material setting module design method according to claim 1, characterized in that: Determine the cross-section data structure class diagram based on the combination pattern, including: Based on the combination mode, a section container class inherited from the abstract container class and a section node class inherited from the abstract model node class are designed; the section container class and the section node class are in an aggregation relationship, the section container class is used to manage the section node class, and the section node class is used to create a section object; Design a section category class and a section type class that are in a combined relationship with the section node class; the section category class is used to describe the topological type of the object to be assigned to the section, and the section type class is used to describe the material distribution characteristics of the section; Design a section category information class that is in a combined relationship with the section category class and a section type information class that is in a combined relationship with the section type class; the section category information class is used to record the attributes and data required to describe the topological type to be assigned to the object, and the section type information class is used to record the attributes and data required to describe the material distribution characteristics of the section; Based on the requirements, multiple section category specific classes inheriting from the section category class, multiple section type specific classes inheriting from the section type class, multiple section category information specific classes inheriting from the section category information class, and multiple section type information specific classes inheriting from the section type information class are designed.

5. The interactive material setting module design method according to claim 4, characterized in that: Determine the section assignment data structure class diagram based on the combination mode, including: Based on the combination mode, a section assignment container class inherited from the abstract container class and a section assignment node class inherited from the abstract model node class are designed; the section assignment container class and the section assignment node class are in an aggregation relationship; the section assignment container class is used to manage the section assignment node class, and the section assignment node class is used to create an object when assigning a section to a geometric model; Design a section assignment information class and a shape collection class, wherein the relationship between the section node class, the shape combination class and the section assignment information class is an aggregation relationship, and the relationship between the section assignment information class and the section assignment node class is a combination relationship; Design multiple section assignment information specific classes that inherit from the section assignment information class; the section assignment information specific class includes a shell section assignment information class and a solid section assignment information class.

6. The interactive material setting module design method according to claim 2, characterized in that: The constructing of an interactive material functional architecture based on the material data structure class diagram includes: Identify common and different operations for different material settings; The material creation dialog window is constructed based on the common operation, and a material behavior attribute component is constructed based on the difference operation; the material behavior attribute component and the material creation dialog window are in a combination relationship; Designing a data-driven behavior property component and an elastic material behavior property component that inherit from the material behavior property component; A data-driven behavior factory class and an elastic behavior factory class are created, wherein the data-driven behavior attribute component depends on the data-driven behavior factory class, and the elastic material behavior attribute component depends on the elastic behavior factory class.

7. The interactive material setting module design method according to claim 4, characterized in that: The specific class of the cross-section category includes a shell cross-section category class and a solid cross-section category class, the specific class of the cross-section category information includes a shell cross-section category information class and a solid cross-section information class, the specific class of the cross-section type includes a homogeneous cross-section type class and a composite cross-section type class, and the cross-section type information class includes a homogeneous cross-section information class and a composite cross-section information class; The interactive cross-section functional architecture is constructed based on the cross-section data structure class diagram, including: Creating a section creation dialog window and a section editing basic dialog window that is in a combined relationship with the section creation dialog window; the section creation dialog window is used to match a corresponding section type based on the input section key properties, and call the section editing basic dialog window based on the section type; Constructing a section category generator and a section type generator that are in a combined relationship with the section editing basic dialogue window; the section category generator is used to generate a section topology category, and the section type generator is used to generate a section type; Design a shell section category generator and a solid section category generator inherited from the section category generator, and a homogeneous section type generator and a composite section type generator inherited from the section type generator; Design a solid homogeneous section category generator and a solid composite section category generator inherited from the solid section category generator, and a shell composite section type generator and a solid composite section type generator inherited from the composite section type generator; Based on the shell composite section type generator and the shell section category generator, a shell composite section editing dialog window is created that inherits from the section editing basic dialog window; based on the shell section category generator and the homogeneous section type generator, a shell homogeneous section editing dialog window is created that inherits from the section editing basic dialog window; based on the solid homogeneous section category generator and the homogeneous section type generator, a solid homogeneous section editing dialog window is created that inherits from the section editing basic dialog window; based on the solid composite section category generator and the solid composite section type generator, a solid composite section editing dialog window is created that inherits from the section editing basic dialog window.

8. The interactive material setting module design method according to claim 5, characterized in that: The interactive section assignment function architecture is constructed based on the section assignment data structure class diagram, including: Creating the section assignment editing dialog window that is in a combined relationship with the section assignment creation class; The shell section assignment editing dialog window and the solid section assignment editing dialog window are designed to inherit the section assignment editing dialog window.

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

10. An interactive material setting module design device, characterized in that: include: A data structure class diagram determining unit, used for determining a material data structure class diagram, a section data structure class diagram and a section assignment data structure class diagram based on a combination pattern; An interactive material function architecture building unit, used to build an interactive material function architecture based on the material data structure class diagram; the interactive material function architecture includes a material creation dialog window; An interactive section functional architecture construction unit is used to construct an interactive section functional architecture based on the section data structure class diagram; the interactive section functional architecture includes a section creation dialog window; An interactive section assignment function architecture construction unit is used to construct an interactive section assignment function architecture based on the section assignment data structure class diagram; the interactive section assignment function architecture includes a section assignment editing dialog window; The functional architecture integration unit is used to reserve a material creation function button in the section creation dialog window for calling the material creation dialog window, and to reserve a section creation button in the section assignment editing dialog window for calling the section creation dialog window.

Citation Information

Patent Citations

  • Steel structure section generation method and device, computer equipment and storage medium

    CN114186427A

  • Interactive boundary setting module design method, simulation software construction method and device

    CN118586246A

  • Construction method and device of underlying model data structure

    CN118607318A

  • Interactive geometric modeling related module design method, software construction method and device

    CN118607319A