Disclosure of Invention
Aiming at the technical problems, the invention provides a method and a device for constructing a model of a product prototype, which solve the problem of constructing the model of the product prototype under a model driven industrial software mechanism view architecture.
In a first aspect of the embodiment of the present invention, a method for constructing a model of a prototype product is provided, where the method includes:
constructing a product mechanism model, wherein the mechanism model comprises a plurality of unit configurations;
such that the plurality of cell configurations map directly to a product configuration, the product configuration contained in a product prototype model;
constructing a behavior library for the product configuration, integrating the operation methods and operations in the unit configuration corresponding to the product configuration, and applying control according to the implementation sequence;
product characteristic analysis of the product configuration is established as an initial state of a certain action, and a termination state after execution of the action is returned to the product characteristic.
Optionally, the cell configurations each correspond to a cell characteristic, the cell characteristic comprising CAD, CAE model, material and quality characteristics, the cell characteristic being mapped to the product configuration after the cell configuration is directly mapped to the product configuration.
Optionally, the product prototype model building method further includes:
when the mechanism model input and output are mapped to the start-stop state of the prototype model, the operation input and output corresponding to the behavior in the behavior library are added to the behavior in the behavior library to form the start-stop state.
Optionally, the building a behavior library for the product configuration includes:
dividing the model into five parts, namely a product, a feature, a behavior, a state start part and a state stop part, setting characteristic information of the product corresponding to the behavior library, setting an operation method corresponding to the characteristic information of the product, and setting the execution sequence of the behaviors.
According to a second aspect of the embodiment of the present invention, there is provided a product prototype model building apparatus, which is characterized in that the apparatus includes:
a first build module for building a product mechanism model, the mechanism model comprising a plurality of unit configurations;
a mapping module for causing the plurality of unit configurations to be directly mapped to a product configuration, the product configuration contained in a product prototype model;
the second construction module is used for constructing a behavior library for the product configuration, integrating the operation methods and the operations in the unit configuration corresponding to the product configuration, and applying control according to the implementation sequence;
and the third construction module is used for establishing product characteristic analysis of the product configuration as an initial state of a certain action, and returning to the product characteristic after the termination state is executed by the action.
Alternatively, the cell configurations each correspond to cell characteristics including CAD, CAE models, material and quality characteristics,
after the cell configuration is mapped directly to the product configuration, the cell characteristics are mapped to the product configuration.
Optionally, the product prototype model building device further includes:
and the fourth construction module is used for adding operation input and output corresponding to the behavior in the behavior library to form a start-stop state when the mechanism model input and output are mapped to the start-stop state of the prototype model.
Optionally, the second building module includes:
dividing the model into five parts, namely a product, a feature, a behavior, a state start part and a state stop part, setting characteristic information of the product corresponding to the behavior library, setting an operation method corresponding to the characteristic information of the product, and setting the execution sequence of the behaviors.
In a third aspect of the embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned product prototype model building method.
In the technical scheme provided by the embodiment of the invention, the single-point mechanism model is converted into the continuous model, and the additional behaviors, states and features of a certain product in the whole life cycle are integrated and associated, so that the functional requirements of continuous operation and continuous state change are met.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for model construction of a prototype product according to an embodiment of the invention. The product prototype model construction method comprises the following steps:
step S100, a product mechanism model is constructed, wherein the mechanism model comprises a plurality of unit configurations.
The mechanism model under the mechanism view under the model driven development framework is mainly used for analyzing and grasping the inherent mechanism of the product. The design analysis software modules mainly comprising units, characteristics, operations, inputs and outputs, generally known as CAD, CAE, CAPP, and developed according to various specialized theoretical methods can fall into the category of mechanism models as shown in fig. 2.
Since the products to be analyzed are mostly assemblies with complex structures, often composed of several parts under the assembly, each part again being composed of different parts, it can be seen that the product configuration is a layered structure configuration as shown in fig. 3. In the mechanism model, the units are virtual states corresponding to products in reality, the units are hierarchical, and each unit configuration corresponds to the product configuration in the prototype model.
The products are classified into 0-grade products, 1-grade products, 2-grade products and 3-grade products, and each grade of products corresponds to a unit configuration. Because each unit configuration corresponds to a product configuration in the prototype model, the unit configuration under the mechanism model can be mapped directly to the product configuration in the prototype model.
Step S200, mapping the plurality of unit configurations directly to a product configuration, wherein the product configuration is included in a product prototype model.
The model of the industrial product is divided into five parts, namely a product, a characteristic, a behavior, a state start and a state stop, wherein the product refers to the industrial product per se. Features refer to properties associated with an industrial product in a state, such as shape, material, environment, system, etc. Behavior refers to related actions of the product itself or externally to the industrial product, such as analysis, assembly, rotation, etc. The state refers to the form of the industrial product in a specific environment. The state parameters and behavior relationships are specifically shown in fig. 4 below.
In the mechanism model, the units are in real products corresponding to virtual states, the units are also in layering level, each unit configuration corresponds to the product configuration in the model machine, so that the unit configuration under the mechanism model can be directly mapped to the product configuration in the model machine, the mapping under the step is only the mapping of a simple mechanism model unit to the model machine model product, and the mapping of operation to behavior, input and output to states and unit characteristics to product characteristics is not involved.
And step 300, constructing a behavior library for the product configuration, integrating the operation methods and the operation in the unit configuration corresponding to the product configuration by the behavior library, and applying control according to the implementation sequence.
For example: the model machine model is divided into five parts of products, characteristics, behaviors, states and states, characteristic information of products corresponding to a behavior library is set, then an operation method corresponding to the characteristic information of the products is set (unit configuration in the mechanism model corresponds to unit characteristics, typical unit characteristics comprise CAD (computer aided design), CAE (computer aided engineering) model, materials, quality and the like), after the model machine model product mapping is completed in step S200, the unit characteristics in the mechanism model can be directly mapped, and then the execution sequence of the behaviors is set.
The additional behaviors of the unit configuration in the mechanism model are independent at different running moments, and no correlation and no sequence are carried out between the behaviors; the behavior in the prototype model can be considered as an additional behavior library aiming at the product configuration, all the behaviors of the product configuration are integrated in the library, and the behavior library in specific mapping is formed by integrating the operation methods and the operations in the unit configuration corresponding to the product configuration and applying the operation methods and the operations according to specific implementation sequences.
Step S400, establishing product characteristic analysis of the product configuration as an initial state of a certain action, and returning to the product characteristic after the termination state of the action execution.
The input and output in the mechanism model do not exist independently, but are attached to the units and used as the unit configuration, each unit operation corresponds to one input and output when operation is performed, typical inputs such as load application, constraint application and the like, typical outputs are operation results, and state changes after behavior operation is completed correspond to the model. When the mechanism model input and output are mapped to the model state (start) state (stop), after the product and behavior of the model are mapped, the operation input and output corresponding to the behavior in the behavior library are added to the behavior in the behavior library to form the state (start) state and the state (stop). In the behavior library, the stop state of the last behavior can be used as the start state of the next behavior, so that the state is rich on the basis that the product behavior library is of a chain type, and as shown in fig. 5, the operation, input and output to prototype model behavior and state mapping schematic diagram in the mechanism model are shown.
When the mechanism model input and output are mapped to the start-stop state of the prototype model, the operation input and output corresponding to the behavior in the behavior library are added to the behavior in the behavior library to form the start-stop state.
When a certain configuration of a unit is operated under a mechanism model, unit characteristics corresponding to the configuration are required to be used as objects to be analyzed and basic attributes, and then an operation method is called and input setting is carried out to obtain an output result; in the model, when all behaviors in the behavior library are executed in sequence, the product characteristics of the corresponding products in the behavior library are required to be used, and the product state changes before and after the execution of the behaviors. Here, the product characteristics of the product may be used as an initial state of a certain behavior, and a termination state after the execution of the behavior may be returned to the product characteristics.
For example, intensity analysis and kinematic analysis are sequentially performed on an aircraft model, then an algorithm used in the intensity analysis is that an external solver MSC. NASTRAN is called, input is material characteristics, young's modulus and the like of each part of the aircraft, output is stress strain of certain points, and a method used in the dynamic analysis is that an external solver MSC. ADAMS is called, input is applied load and displacement, and output is a motion track, speed, acceleration and the like of each part.
Further, the cell configurations each correspond to a cell characteristic, including CAD, CAE models, materials, and quality characteristics, that map directly to a product configuration, after which the cell characteristic maps to the product configuration. Therefore, after the mechanism model and the prototype model are in one-to-one correspondence in product composition, the algorithm mapping is performed, so that the additional behaviors, states and features of a certain product in the whole life cycle can be integrated and associated.
As shown in fig. 6, the present invention provides a product prototype model construction apparatus, comprising:
a first build module 100 for building a product mechanism model, the mechanism model comprising a plurality of cell configurations; the cell configurations each correspond to a cell characteristic, which includes CAD, CAE model, material and quality characteristics, which map directly to a product configuration, after which the cell characteristics map to the product configuration.
A mapping module 200 for causing the plurality of unit configurations to be directly mapped to a product configuration, the product configuration contained in a product prototype model;
a second construction module 300, configured to construct a behavior library for the product configuration, where the behavior library integrates the operation methods and operations in the unit configuration corresponding to the product configuration, and applies control according to the implementation sequence;
the third construction module 400 is configured to establish a product characteristic analysis of the product configuration as an initial state of a certain behavior, and return to the product characteristic after the execution of the behavior.
The product prototype model building device further comprises:
and the fourth construction module is used for adding operation input and output corresponding to the behavior in the behavior library to form a start-stop state when the mechanism model input and output are mapped to the start-stop state of the prototype model.
The second building block 300 includes:
dividing the model into five parts, namely a product, a feature, a behavior, a state start part and a state stop part, setting characteristic information of the product corresponding to the behavior library, setting an operation method corresponding to the characteristic information of the product, and setting the execution sequence of the behaviors.
The invention also provides a computer readable medium having stored thereon a computer program which when executed by a processor implements a method as described in the embodiment shown in fig. 1. The computer readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, etc. which may store the program code.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.