Automatic generation method of weight calculation parameter diagram of thermal system based on SysML
Through the additional constraint model and hierarchical block definition diagram in the SYSML environment, the weight calculation parameter diagram of the heating system and subsystem of the thermal system and subsystem automatically generates the problem of low and error error calculation efficiency and errors in the existing technology. Accurate design process.
Patent Information
- Application Number
- CN202410896259.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The prior art has low weight calculation efficiency, error-prone in thermal system design, and insufficient automation support, making it difficult to meet the rapid iteration needs of complex systems.
Calculate the parameter diagram based on SYSML -based thermal system weighing the parameter diagram, and automatically calculate and generate weight calculation parameter diagrams by establishing an additional constraint model, thermal system and subsystem hierarchical block definition diagram.
It significantly improves design efficiency and accuracy, reduces human mistakes, supports the standardization and visualization of design, and promotes the optimized design and safe operation of the thermal system.
Smart Images

Figure CN118761220B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of digital design of thermal systems, and in particular to a method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML. Background Art
[0002] In complex scenarios of thermal system design, accurate weight calculation is crucial to ensure system performance, cost control, and safe transportation and installation. However, existing technologies have significant deficiencies in this area. First, traditional manual weight calculation methods are time-consuming and inefficient, and are difficult to cope with large-scale, multi-level thermal systems. As the complexity of the system increases, manual calculations are not only prone to errors, but also difficult to meet the needs of rapid iteration design.
[0003] Secondly, although advanced tools such as model-based systems engineering (MBSE) and SysML have brought innovation to thermal system design, they are still insufficient in the automated generation of weight calculation parameter diagrams. Most existing tools focus on modeling system structure and behavior, but are relatively weak in the automation support of the specific field of weight calculation. Designers still need to manually create parameter diagrams and connect weight attributes, which is not only cumbersome but also may introduce human errors. Summary of the invention
[0004] The embodiment of the present invention provides a method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML. By automatically generating a weight calculation parameter diagram of a thermal system, the method significantly improves the design efficiency and accuracy, reduces the design burden, promotes the standardization and visualization of the design, and provides strong support for the optimized design and safe operation of the thermal system.
[0005] To achieve the above object, the present invention provides a method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML, comprising:
[0006] Step S100, establishing an additive constraint model in a SysML environment;
[0007] Step S200, determining the top-level block of the thermal system, and adding subsystems as components to the thermal system to obtain a definition diagram of the thermal system hierarchical block;
[0008] Step S300, determining the top-level block of each subsystem, and defining the internal blocks of each subsystem and their mutual relationships, to obtain a subsystem hierarchical block definition diagram;
[0009] Step S400, automatically calculating and generating a weight calculation parameter diagram of a thermal system based on the additive constraint model, the thermal system hierarchical block definition diagram, and the subsystem hierarchical block definition diagram;
[0010] Step S500, based on the additive constraint model and the subsystem hierarchical block definition diagram, automatically calculate and generate a subsystem weight calculation parameter diagram.
[0011] In one embodiment of the present invention, step S100 includes:
[0012] Step S101, establish the basic framework of the model and clarify its input and output;
[0013] Step S102: Write or configure expressions in the SysML environment to implement addition logic and generate an addition constraint model.
[0014] In one embodiment of the present invention, step S200 includes:
[0015] Step S201, defining the top-level block of the thermal system;
[0016] Step S202, dividing the thermal system into subsystems, and establishing a hierarchical relationship between the thermal system and the subsystems;
[0017] Step S203, setting attributes and constraints for the top-level block of the thermal system and the top-level block of the subsystem to obtain a hierarchical block definition diagram of the thermal system.
[0018] In one embodiment of the present invention, step S300 includes:
[0019] Step S301, determining the internal composition of the subsystem;
[0020] Step S302, defining the internal components of each subsystem;
[0021] Step S303, establishing a hierarchical relationship within each of the subsystems;
[0022] Step S304, setting the attributes and constraints of the internal blocks of each of the subsystems to obtain the subsystem hierarchical block definition diagram.
[0023] In one embodiment of the present invention, step S400 includes:
[0024] Step S401, loading the thermal system level block definition diagram and the subsystem level block definition diagram;
[0025] Step S402, selecting the top block of the thermal system as a starting point;
[0026] Step S403, traversing the top-level blocks of the subsystem and generating weight calculation results;
[0027] Step S404: performing calculation based on the additive constraint model and the weight calculation results of each of the subsystems to generate a weight calculation parameter diagram of the thermal system.
[0028] In one embodiment of the present invention, step S500 includes:
[0029] Step S501, determining a subsystem that needs to automatically generate a weight calculation parameter diagram;
[0030] Step S502, initializing the subsystem parameter map generation environment;
[0031] Step S503, traverse the internal blocks of the subsystem and extract the weight attribute;
[0032] Step S504: generating a weight calculation parameter diagram of the subsystem based on the additive constraint model and the weight attribute.
[0033] In one embodiment of the present invention, the step S100 further includes:
[0034] Step S104, verifying and debugging the additive constraint model.
[0035] In one embodiment of the present invention, the step S200 further includes:
[0036] Step S204, verifying the correctness and completeness of the thermal system hierarchical block definition diagram.
[0037] In one embodiment of the present invention, the step S300 further includes:
[0038] Step S305 , verifying the correctness and completeness of the subsystem level block definition diagram.
[0039] In one embodiment of the present invention, the step S400 further includes:
[0040] Step S405, verifying and adjusting the weight calculation parameter diagram of the thermal system;
[0041] Step S406, outputting a weight calculation parameter diagram of the thermal system.
[0042] Compared with the prior art, the thermal system fault impact analysis method based on SysML according to the present invention has the following beneficial effects:
[0043] 1. By automatically generating weight calculation parameter diagrams for thermal systems and their subsystems, the workload of designers in manual calculation and drawing parameter diagrams is greatly reduced. Designers can devote more energy to the core issues of system design, thereby improving overall design efficiency.
[0044] 2. Manual calculation and drawing of parameter diagrams are prone to human errors, such as miscalculation, data omission, etc. However, the present invention realizes the generation of weight calculation parameters through automated means, reduces the possibility of these human errors, and improves the accuracy and reliability of the design results.
[0045] 3. In the process of thermal system design, it is often necessary to iterate and optimize the design scheme multiple times. The automated tool provided by the present invention can quickly respond to design changes, regenerate the corresponding weight calculation parameter diagram, support the design team to quickly verify the effects of different schemes, and accelerate the iteration process.
[0046] 4. The parameter diagram graphically displays the weight calculation logic and results of the thermal system, allowing the design team to intuitively understand the weight distribution and calculation process of the system. This visual design enhances the comprehensibility and communication of the design, and facilitates collaboration and discussion among team members.
[0047] 5. By defining a unified additive constraint model and parameter diagram generation rules, the present invention promotes the standardization of thermal system design. Different designers can work according to the same process and specifications, improving the consistency and reusability of the design.
[0048] 6. The generated weight calculation parameter diagram is not only used in the design stage, but also can be used as the basis for subsequent analysis and verification work. For example, when simulating the system operation, the calculation logic in the parameter diagram can be used to predict the weight change of the system; in the manufacturing and installation stages, the parameter diagram can be used to guide the actual operation to ensure that the system weight meets the design requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML in one embodiment of the present invention;
[0050] Figure 2 is a schematic diagram of the automatic generation process of a weight calculation parameter diagram of a thermal system module in a specific embodiment of the present invention;
[0051] Figure 3 is a schematic diagram of a thermal system block definition in a specific embodiment of the present invention;
[0052] Figure 4 is Figure 3 Schematic diagram of the weight calculation parameter diagram of the thermal system generated on the basis;
[0053] Figure 5 is a schematic diagram of the automatic generation process of a steam system module weight calculation parameter diagram in a specific embodiment of the present invention;
[0054] Figure 6is a schematic diagram of a steam system block definition in a specific embodiment of the present invention;
[0055] Figure 7 is Figure 6 Schematic diagram of the weight calculation parameter diagram of the thermal subsystem generated based on the above. DETAILED DESCRIPTION
[0056] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. It is also necessary to explain that, for ease of description, only parts related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.
[0057] To facilitate understanding, the main implementation concepts of the embodiments of the present invention are first briefly described.
[0058] The thermal system is a complex energy conversion device, which consists of a large number of equipment, pipelines, structural parts, etc., and can be divided into different modules or subsystems. According to the paper "Research on Modular Construction Technology of AP1000 Nuclear Power Units", each unit of AP1000 contains 123 structural modules and 68 mechanical modules, which can be subdivided into CA structural modules, CB template modules, CH steel structure modules, CS staircase modules, CV modules, equipment modules, pipeline modules and service modules. Weight is one of the most important attributes of the thermal system, and the total cost is closely related to it. The weight of the relevant structural modules and mechanical modules is related to how to transport and install them. For the thermal system of a ship, its weight needs to be strictly controlled to ensure the buoyancy of the entire ship.
[0059] In the field of thermal system design, with the continuous advancement of technology and the growing demand for application, the complexity and scale of the system are constantly expanding. As a key facility for energy conversion and transmission, thermal systems are widely used in many industries such as electricity, chemical industry, and metallurgy. Its design process involves many subsystems and components, and the weight of each part is directly related to the performance, cost, transportation, and installation difficulty of the entire system.
[0060] Traditionally, the weight calculation of thermal systems is mainly done manually, which is not only time-consuming and labor-intensive, but also prone to calculation errors or omissions due to human factors. Especially for large and complex thermal systems, which contain a large number of equipment, pipelines, structural parts, etc., the weight calculation process is cumbersome and difficult to ensure accuracy. In addition, with multiple iterations and optimizations of the design scheme, the weight calculation also needs to be repeated, further increasing the workload of designers.
[0061] In order to overcome the shortcomings of traditional methods, advanced tools such as model-based systems engineering (MBSE) and system modeling language (SysML) have been gradually introduced into the design of thermal systems. These tools can clearly represent the structure, behavior and constraints of the system through graphical modeling, providing a more intuitive and efficient method for system design and analysis. However, there are still some challenges when using these tools to calculate the weight of thermal systems.
[0062] Specifically, although tools such as MBSE and SysML can support structured modeling of thermal systems, they are still insufficient in automatically generating parameter diagrams for weight calculations. Existing technologies often require designers to manually build parameter diagrams and connect the weight attributes of each component one by one. This process is not only cumbersome and error-prone, but also significantly increases the workload and error rate, especially when dealing with large systems.
[0063] The inventors have found the defects of the prior art as mentioned above and have provided a method for automatically generating a weight calculation parameter diagram for a thermal system based on SysML. The method realizes the automatic generation of a weight calculation parameter diagram for a thermal system and its subsystems by defining an additive constraint model and utilizing the automated modeling capabilities of SysML. This innovation not only reduces the workload of designers and improves design efficiency, but also significantly reduces the risk of human error and ensures the accuracy and reliability of weight calculation. At the same time, the automatically generated parameter diagram can also provide strong support for subsequent design analysis, optimization and verification, and promote the standardization and visualization of thermal system design.
[0064] Figure 1 is a flow chart of a method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML in one embodiment of the present invention, such as Figure 1 As shown, this embodiment provides a method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML, including:
[0065] Step S100, establishing an additive constraint model in a SysML environment;
[0066] Specifically, the input of the additive constraint model is defined as a real number array of variable length, and the output is the sum of all elements of the array; the constraint model is created in the SysML environment to ensure its callability.
[0067] Step S200, determining the top-level block of the thermal system, and adding subsystems as components to the thermal system to obtain a definition diagram of the thermal system hierarchical block;
[0068] Specifically, determine the top-level block of the thermal system, that is, the entire thermal system. Add subsystems as components to the thermal system, such as turbine generator sets, steam systems, condensate feed systems, etc. Set value attributes (such as "weight", "quantity") and constraints (such as "weight and = weight * quantity") for the system and subsystems, and ensure that these attributes and constraints are correctly represented in the SysML model.
[0069] Step S300, determining the top-level block of each subsystem, and defining the internal blocks of each subsystem and their mutual relationships, to obtain a subsystem hierarchical block definition diagram;
[0070] Specifically, for each subsystem (such as the steam system), determine its top-level block. Add specific equipment and components as components to the subsystem, such as pumps, valves, pipe segments, etc. Set value attributes (such as "weight", "quantity") and constraints (such as "weight and = weight * quantity") for the equipment and components, and ensure that these attributes and constraints are correctly represented in the SysML model.
[0071] Step S400, automatically calculating and generating a weight calculation parameter diagram of a thermal system based on the additive constraint model, the thermal system hierarchical block definition diagram, and the subsystem hierarchical block definition diagram;
[0072] Specifically, a parameter diagram module for weight calculation of thermal system is created in SysML environment. Addition constraint model and thermal system module are added to the parameter diagram. Input and output parameters of constraint attributes, “weight” attribute of thermal system and “weight sum” attribute of each subsystem are displayed. “Weight sum” attribute of each subsystem is automatically connected to input parameter of addition constraint model. “Weight” attribute of thermal system is connected to output parameter of addition constraint model to complete the generation of parameter diagram.
[0073] Step S500, automatically calculating and generating a weight calculation parameter diagram of a subsystem based on the additive constraint model and the subsystem hierarchical block definition diagram;
[0074] Specifically, for each subsystem (such as a steam system), a corresponding weight calculation parameter diagram module is created in the SysML environment. The additive constraint model and subsystem module are added to the parameter diagram. The input and output parameters of the constraint attribute, the "weight" attribute of the subsystem, and the "weight sum" attribute of the constituent equipment or components are displayed. The "weight sum" attribute of each equipment or component is automatically connected to the input parameter of the additive constraint model. The "weight" attribute of the subsystem is connected to the output parameter of the additive constraint model to complete the generation of the subsystem parameter diagram.
[0075] Based on the above analysis, it can be seen that by systematically establishing an additive constraint model, a hierarchical block definition diagram, and automatically generating a weight calculation parameter diagram, the present invention not only simplifies the complexity of thermal system weight calculation, but also significantly improves the design efficiency and accuracy. Step S100 lays the foundation for automated calculation, steps S200 and S300 build a clear design structure, and steps S400 and S500 realize the automation and visualization of weight calculation. The entire process is closely linked, and together promotes the development of thermal system design in a more efficient and accurate direction.
[0076] In this embodiment, step S100 includes:
[0077] Step S101, establish the basic framework of the model and clarify its input and output;
[0078] Specifically, the function of the model is determined to calculate the sum of multiple values; the input of the model is defined as a real number array, which contains all the values that need to be added; and the output of the model is defined as a single real number, that is, the sum of all the values in the input array.
[0079] In a specific embodiment, in step S101, an array-based additive constraint model is designed to calculate the total weight of the thermal system. The input of the model is a floating-point array, and each element in the array represents the weight of each key component in the thermal system (such as a boiler weighing 8000kg, a main pipeline weighing 3000kg, a pump group weighing 500kg, etc.). The output of the model is a single floating-point number, that is, the sum of all input elements (component weights), representing the total weight of the entire thermal system. In this way, the basic framework of the model is established, laying a solid foundation for the subsequent automatic calculation of the thermal system weight parameter diagram.
[0080] Step S102, writing or configuring expressions in the SysML environment, implementing addition logic, and generating an addition constraint model;
[0081] Specifically, based on the syntax and tool features of SysML, write a constraint expression or function that traverses the input array and calculates the sum. Make sure that the expression can handle input arrays of any length and can correctly calculate the sum. In the SysML model, create a block definition for the additive constraint model and embed the above expression or function into it.
[0082] In a specific embodiment, in step S102, for the thermal system, the expression written in the SysML environment may be, for example: systemWeight=partWeights.reduce((acc,curr)=>acc+curr,0). This expression uses the reduce function to traverse the component weight array partWeights, accumulates the total system weight systemWeight, and thus generates an additive constraint model.
[0083] In a specific embodiment, in addition to the basic additive constraints, the weight ratio relationship between components, weight restrictions under specific conditions, etc. can also be introduced.
[0084] In this embodiment, step S200 includes:
[0085] Step S201, defining the top-level block of the thermal system;
[0086] Specifically, in the SysML modeling tool, create a new Block Definition named "ThermalSystem" or a similar name to represent the entire thermal system. Add the necessary description information to the Thermal System top-level block, outlining its role and function in the entire system.
[0087] Step S202, dividing the thermal system into subsystems, and establishing a hierarchical relationship between the thermal system and the subsystems;
[0088] Specifically, for each major subsystem in the thermal system (such as steam turbine generator set, steam system, condensate feed water system, circulating water system, etc.), create a corresponding block definition in SysML. Name each subsystem block and add description information to clarify its specific role and component in the thermal system. Use composition or aggregation (select according to the specific situation) to connect the subsystem block to the top-level block of the thermal system to form a clear hierarchical structure. Ensure that each subsystem block is a direct or indirect component of the top-level block of the thermal system.
[0089] Step S203, setting attributes and constraints for the top-level block of the thermal system and the top-level block of the subsystem to obtain a hierarchical block definition diagram of the thermal system;
[0090] Specifically, set a "Weight" property for the Thermal System top-level block and each subsystem block to store the total weight of the block. If desired, you can also set a "Quantity" property for the block to indicate the number of components in the block (this may be used for weight calculations in some cases). Define constraint expressions that describe the relationship between the weight of a block and the weights of its component parts. In a thermal system, this usually means that the sum of the weights of the subsystem blocks should equal the weight of the Thermal System top-level block. However, in real applications, you may need to define these constraints on a case-by-case basis.
[0091] In a specific embodiment, in step S203, the "total weight" attribute is set for the top-level block "ThermalSystem" of the thermal system, and the "subsystem weight" attribute and the "belong to ThermalSystem" constraint are set for the top-level blocks of each subsystem (such as the steam system and the cooling system). In this way, through the definition of attributes and constraints, a clear thermal system hierarchical block definition diagram is constructed, which provides a basis for subsequent automatic weight calculation.
[0092] In one embodiment, when defining the thermal system hierarchy (top-level blocks, subsystem blocks, and internal blocks), material and shape parameters may be specified for each block.
[0093] In this embodiment, step S300 includes:
[0094] Step S301, determining the internal composition of the subsystem;
[0095] Specifically, for each subsystem (such as steam system, circulating water system, etc.), list in detail all the main components contained therein, and analyze the connection relationship and interaction between these components.
[0096] In a specific embodiment, in step S301, the internal components of the steam subsystem (as an example subsystem) are specifically determined, including key components such as boilers, steam pipes, valves, etc. These components constitute the core of the steam subsystem, laying the foundation for the subsequent definition of the hierarchical relationship and attributes between them in SysML.
[0097] Step S302, defining the internal components of each subsystem;
[0098] Specifically, for each device, component, or pipe within the subsystem, create a new block definition in the SysML modeling tool. Name each block definition and add a description to clarify its role and location in the subsystem.
[0099] In a specific embodiment, in step S302, the internal components of the steam subsystem, such as the high-pressure boiler, the medium-pressure steam pipeline, the safety valve, etc., are defined in detail, and each component is assigned a unique identifier and necessary attributes (such as weight, material, etc.) so that their characteristics and relationships can be clearly represented in the SysML model.
[0100] Step S303, establishing a hierarchical relationship within each of the subsystems;
[0101] Specifically, use the composition relationship, aggregation relationship or other appropriate relationship types in SysML to connect the block definitions within the subsystem, and ensure that the hierarchical relationship or network structure accurately reflects the actual connection and interaction between the components within the subsystem.
[0102] In a specific embodiment, in step S303, taking the steam subsystem as an example, the hierarchical relationship between its internal components is established. For example, the high-pressure boiler is used as the core equipment, the steam pipeline is led out from the boiler and connected to various use points, and the safety valve is installed at the key position of the pipeline to ensure safety. These hierarchical relationships are clearly expressed in the model through the combination or aggregation relationship of SysML, providing a structured basis for subsequent weight calculation and system design.
[0103] Step S304, setting the attributes and constraints of the internal blocks of each subsystem to obtain the subsystem hierarchical block definition diagram;
[0104] Specifically, set the "Weight" attribute for each block definition to store the weight information of the component. If necessary, you can also set other attributes such as "Material", "Dimensions", etc. to allow for more detailed analysis. Define constraint expressions (if necessary) to describe the relationship between the weight or other attributes between the blocks within the subsystem. For example, you can define a constraint to ensure that the sum of the weights of all blocks within a subsystem is equal to the total weight of the subsystem.
[0105] In one embodiment, when defining subsystem level blocks (top level blocks and inner blocks), material and shape parameters may be specified for each block.
[0106] In a specific embodiment, in step S304, for the steam subsystem, detailed attributes (such as weight, material, diameter, etc.) and constraints (such as maximum working pressure of the pipeline, valve opening pressure, etc.) are set for each internal block (such as high-pressure boiler, steam pipeline section, safety valve, etc.). These attributes and constraints are clearly expressed in the SysML model, forming a hierarchical block definition diagram of the steam subsystem, providing accurate data support for subsequent weight calculation and system design.
[0107] In this embodiment, step S400 includes:
[0108] Step S401, loading the thermal system level block definition diagram and the subsystem level block definition diagram;
[0109] Specifically, open the SysML modeling tool and make sure all necessary plugins and libraries are installed and configured. Load the thermal system level block definition diagram and the subsystem level block definition diagram to ensure they are up to date and error-free.
[0110] In a specific embodiment, in step S401, the SysML modeling tool is used to load the already constructed thermal system hierarchical block definition diagram and the hierarchical block definition diagram of each subsystem. Taking the ship thermal system as an example, the top-level thermal system diagram including subsystems such as the steam generation system, cooling system, and water supply system, as well as the detailed equipment layout and connection relationship diagram within each subsystem are loaded, preparing for the subsequent automatic generation of the weight calculation parameter diagram.
[0111] Step S402, selecting the top block of the thermal system as a starting point;
[0112] Specifically, in the SysML model, locate the top-level block of the thermal system (such as "ThermalSystem") and confirm that all necessary properties and constraints have been set correctly for the block.
[0113] In a specific embodiment, in step S402, the top-level block "ThermalSystem" of the thermal system is used as the starting point for automatic weight calculation. Taking the ship thermal system as an example, this means starting from the top level of the entire thermal system, and gradually traversing down to each subsystem and component, ensuring that the weight calculation covers all levels of the entire system, thereby ensuring the comprehensiveness and accuracy of the calculation results.
[0114] Step S403, traversing the top-level blocks of the subsystem and generating weight calculation results;
[0115] Specifically, all subsystem blocks under the top-level block of the thermal system are traversed. For each subsystem block, the weight calculation logic is automatically generated according to its internal block definition and hierarchical relationship. This includes, for example, extracting weight attributes from each component of the subsystem (such as equipment, components) and using an additive constraint model to calculate the total weight. The generated weight calculation logic is graphically represented in a parameter diagram, including the necessary input and output ports, connecting lines, and calculation nodes.
[0116] In a specific embodiment, in step S403, the goal is to traverse the top-level blocks of all subsystems in the thermal system and generate the weight calculation results of each subsystem based on the component information defined in these top-level blocks and their respective hierarchical block definition diagrams. The following is a detailed execution process:
[0117] First, identify the top-level block "ThermalSystem" of the thermal system as the starting point of the traversal. In the SysML model, this top-level block contains references or connections to the top-level blocks of each subsystem.
[0118] Starting from the top-level "ThermalSystem" block, select the top-level blocks of its subsystems one by one to traverse. Taking the ship thermal system as an example, these subsystems may include steam generation system, cooling system, water supply system, etc.
[0119] For each selected subsystem top-level block, load its corresponding hierarchical block definition diagram. This definition diagram describes the internal structure of the subsystem in detail, including the various components (such as boilers, pipes, pumps, etc.) and the connections between them. At the same time, the definition diagram also contains the weight attribute of each component (which may be a direct weight value, or the product of weight and quantity).
[0120] Based on the information in the subsystem level block definition diagram, the previously established additive constraint model is applied to calculate the total weight of the subsystem. The additive constraint model traverses all the components in the subsystem, reads their weight attributes (if the weight is based on the product of the quantity and the unit weight, the unit weight is calculated first and the quantity is multiplied), and then adds these weight values to get the total weight of the subsystem.
[0121] For each subsystem, record the calculated total weight in the corresponding data structure (which may be an attribute in the SysML model, or an external data table or variable). In this way, these weight calculation results can be easily referenced in subsequent steps.
[0122] The above process is repeated until the top-level blocks of all subsystems in the thermal system have been traversed and the weight calculation results of each subsystem have been generated and recorded.
[0123] This process not only ensures that the weight of each subsystem in the thermal system is accurately calculated, but also provides a solid foundation for the subsequent integration of the total weight of the entire system. In addition, since this process is automated, it greatly improves design efficiency and reduces the possibility of human error.
[0124] Step S404, performing calculation based on the additive constraint model and the weight calculation result of each of the subsystems to generate a weight calculation parameter diagram of the thermal system;
[0125] Specifically, in the parameter diagram, create corresponding output ports for the total weight attribute generated for each subsystem block. Using the additive constraint model (or similar mechanism), connect all these output ports to calculate the total weight of the entire thermal system. Clearly represent the logic and flow of system-level weight calculation in the parameter diagram.
[0126] In a specific embodiment, in step S404, the main task is to further integrate the weight results of each subsystem calculated in the previous step through the additive constraint model, and finally generate a parameter diagram that fully reflects the weight distribution and calculation process of the thermal system. This process not only involves numerical calculations, but also covers graphical representation and visualization of results.
[0127] First, the weight calculation results of each subsystem obtained in step S403 are obtained. These results may be stored in the attributes of the SysML model in the form of numerical values, or in external storage in the form of data tables, variables, etc. These results need to be collected for the next step of calculation.
[0128] Next, the additive constraint model established in step S100 and step S102 is used. This model is a logic unit that can automatically perform addition operations, which receives multiple input values (here, the weights of each subsystem) and outputs their sum. The weight of each subsystem is passed as an input value to the additive constraint model, and the model calculates the total weight of the entire thermal system.
[0129] After obtaining the total weight of the thermal system, the graphical modeling capabilities of SysML are used to generate a weight calculation parameter diagram. This parameter diagram not only contains the total weight value of the thermal system, but also graphically displays the contribution of each subsystem to the total weight. Specifically, the parameter diagram may be displayed in a tree structure, where the top layer is the total weight of the thermal system, the next layer is the weight of each subsystem, and the next layer of the subsystem may be further subdivided into specific components or assemblies. Through such a hierarchical structure, it can be clearly seen how the weight is accumulated from the bottom components to the entire system.
[0130] In the process of generating parameter diagrams, we focus on enhancing the readability and comprehension of the diagrams. For example, we can use different colors or patterns to distinguish different subsystems or components, use arrows or connecting lines to indicate the relationship of weight accumulation, and add necessary text descriptions or comments next to the diagrams. In this way, even non-professional designers can quickly understand the weight distribution and calculation process of the thermal system by viewing the parameter diagrams.
[0131] Finally, the generated weight calculation parameter diagram needs to be verified and adjusted. The purpose of verification is to ensure that the values in the parameter diagram are accurate and the graphical representation is clear and easy to understand. If any problems or deficiencies are found, adjustments and optimizations need to be made in a timely manner. Through continuous verification and adjustment, it can be ensured that the final generated weight calculation parameter diagram is both accurate and practical.
[0132] Taking the ship thermal system as an example, the weight calculation parameter diagram generated through the above steps will fully display the weight of each subsystem such as the steam generation system, cooling system, water supply system, etc. and their contribution to the total weight of the entire system. This not only helps designers to accurately control and optimize the weight during the system design stage, but also provides an important reference for subsequent manufacturing, installation and operation.
[0133] In this embodiment, step S500 includes:
[0134] Step S501, determining a subsystem that needs to automatically generate a weight calculation parameter diagram;
[0135] Specifically, in the hierarchical block definition diagram of the thermal system, locate and select the subsystem that needs detailed weight analysis (such as steam system, circulating water system, etc.); confirm that all necessary properties and constraints have been correctly set for the subsystem block, including the weight properties of its internal components.
[0136] In a specific embodiment, in step S501, a specific subsystem for which a weight calculation parameter diagram needs to be automatically generated is determined according to the specific requirements of the thermal system design. For example, in the design of a ship thermal system, special attention may be paid to the steam generation system because it contains a large amount of heavy equipment and a complex pipeline network, which has a significant impact on the weight distribution and performance of the entire ship. Therefore, it is decided to give priority to generating a detailed weight calculation parameter diagram for the steam generation system in order to more accurately control its weight and provide strong support for subsequent system optimization and installation.
[0137] Step S502, initializing the subsystem parameter map generation environment;
[0138] Specifically, in the SysML modeling tool, create a new parametric diagram template or select an existing one suitable for the subsystem weight calculation; make sure that the template contains all the necessary elements and layout to clearly represent the weight calculation logic.
[0139] In a specific embodiment, in step S502, taking the steam generation subsystem as an example, the subsystem parameter diagram generation environment is initialized. This includes creating a new parameter diagram template in the SysML modeling tool, configuring the required properties, constraints and view settings to ensure that the parameter diagram can accurately reflect the weight calculation logic and results of the steam generation subsystem. Through this step, a solid foundation is laid for the automatic generation of the weight calculation parameter diagram of the steam generation subsystem.
[0140] Step S503, traverse the internal blocks of the subsystem and extract the weight attribute;
[0141] Specifically, all internal blocks in the subsystem level block definition diagram are traversed; for each internal block, its weight attribute (and possibly quantity attribute if used to calculate the total weight) is read. These weight attributes are stored in a temporary data structure for subsequent use.
[0142] In a specific embodiment, in step S503, for the steam generation subsystem, all blocks inside it (such as boilers, steam pipes, valves, etc.) are traversed, and weight attributes are extracted from these blocks. For example, the "weight" attribute of the boiler block is accessed to obtain its weight value. Similarly, the weight information of components such as steam pipes and valves is also extracted. These weight attributes are the basic data for the subsequent calculation of the total weight of the steam generation subsystem. Through the automated traversal and extraction process, the accuracy and completeness of the weight data are ensured, providing reliable support for the subsequent generation of weight calculation parameter diagrams.
[0143] Step S504, generating a weight calculation parameter diagram of the subsystem based on the additive constraint model and the weight attribute;
[0144] Specifically, use an additive constraint model or similar mechanism to calculate the total weight of the subsystem based on the weight attributes of the internal blocks. In the parameter diagram, graphically represent the weight calculation logic, including the necessary input and output ports, connecting lines, and calculation nodes. Ensure that the calculation logic in the parameter diagram accurately reflects the weight calculation process of the subsystem.
[0145] In a specific embodiment, in step S504, taking the steam generation subsystem as an example, based on the previously established additive constraint model and the weight attributes extracted from the subsystem internal blocks, a weight calculation parameter diagram of the steam generation subsystem is automatically generated. This parameter diagram graphically shows the weight of each component in the steam generation subsystem and how they are accumulated into the total weight of the subsystem through the additive constraint model. Through such a parameter diagram, the design team can intuitively understand the weight distribution and calculation process of the steam generation subsystem, providing strong support for subsequent design optimization and decision-making.
[0146] In a specific embodiment, for example, there is a ship thermal system, which consists of multiple subsystems, including a steam generation system, a cooling system, a water supply system, etc. Each subsystem contains multiple equipment and components, such as boilers, condensers, pumps, valves, etc. The total weight of the entire thermal system needs to be calculated for transportation and installation planning. When defining each internal block (i.e., equipment and components), in addition to the basic weight attributes, material density and geometric shape parameters are also introduced. These parameters can be obtained from the material library and the geometric shape library, or entered by the user according to the design document. In step S300, "material density" and "geometry" attributes are added to each internal block. For example, a boiler block can have "material density = 7800kg / m 3 ” and “geometry = cylinder (diameter = 3m, height = 10m)”. In steps S400 and S500, the volume of each internal block is calculated according to the material density and the geometry parameters, and then multiplied by the material density to obtain the weight. For example, the weight of the boiler = π×(3m / 2)2×10m×7800kg / m 3 .
[0147] In some cases, it is necessary to optimize the weight distribution of each component under the premise of meeting certain constraints (such as total weight limit, center of gravity position requirements, etc.) to achieve a better design effect. In step S400 and step S500, an optimization algorithm is introduced to automatically adjust the weight of the components to meet the design constraints. For example, the total weight has an upper limit, and the center of gravity position of the system is required to be within a certain range. Optimization techniques such as linear programming or genetic algorithms can be used to find the optimal solution that meets the constraints by adjusting the material usage of each component (indirectly affecting the weight). The optimization algorithm iteratively tries different weight distribution schemes and evaluates whether each scheme meets all constraints. Finally, the algorithm outputs an optimal weight distribution result, which will be used to generate the final weight calculation parameter diagram.
[0148] In actual operation, some components of the thermal system may be affected by dynamic loads (such as temperature changes, pressure fluctuations, etc.), resulting in slight changes in weight. In addition, the working environment (such as marine corrosion, vibration, etc.) may also affect the weight and durability of the components. In steps S400 and S500, dynamic load and working environment factors are introduced to fine-tune the weight of the components. A dynamic load model can be established that predicts weight changes based on the working conditions and environmental factors of the components. Then, when generating the weight calculation parameter map, these predicted weight changes are taken into account. The dynamic load model outputs the predicted weight value of each component under different working conditions. These predicted values are used to update the weight attributes of the components and are reflected in the final weight calculation parameter map. The definition of dynamic load and working environment factors can be placed as part of steps S400 and S500, that is, these factors are considered when generating the weight calculation parameter map of the thermal system and its subsystems. This ensures the accuracy, real-time and consistency of the calculation results, while improving the ease of use and maintainability of the system model. Specifically, the dynamic load and working environment factors are defined as follows:
[0149] 1. It is necessary to clarify which dynamic loads and working environment factors will affect the weight calculation of the thermal system. For example, dynamic loads may include thermal expansion caused by temperature changes, stress changes caused by pressure fluctuations, etc.; working environment factors may include corrosion, vibration, temperature range, etc.
[0150] 2. For each key component, collect data on its material properties (such as thermal expansion coefficient, elastic modulus, corrosion resistance, etc.) and operating environment conditions (such as maximum / minimum operating temperature, pressure range, vibration frequency, etc.).
[0151] 3. Based on the collected data, establish dynamic load models for each key component. These models can be analytical expressions based on physical principles, or empirical formulas or lookup tables. For thermal expansion caused by temperature changes, the thermal expansion coefficient can be used to calculate the change in component size and then estimate the impact on weight (although temperature changes usually do not directly affect weight, dimensional changes may affect the supporting structure or cause additional loads). The formula is as follows:
[0152] ΔL=L 0 ·α·ΔT
[0153] Where ΔL is the length change, L 0 is the initial length, α is the thermal expansion coefficient, and ΔT is the temperature change.
[0154] For pressure fluctuations, the stress distribution of the component under different pressures can be calculated, but the direct impact on weight is small. However, long-term stress may cause material fatigue, which in turn affects the durability and weight of the component (such as the need to replace the component). This part is usually considered indirectly through fatigue life analysis.
[0155] 4. Estimate the weight loss of the component due to corrosion or the weight of the protective layer that needs to be added based on the corrosion resistance of the component material and the concentration of the corrosive medium in the working environment. For example, it can be based on empirical formulas or long-term corrosion test data. Vibration may cause loosening, wear or fatigue fracture of components. Although the direct impact on weight calculation is not significant, it can be dealt with by adding fasteners, vibration reduction devices, etc., which will increase the total weight of the system. Quantification of vibration effects is usually more complicated, for example, specialized vibration analysis software is required.
[0156] 5. Integrate the calculation results of the above dynamic load and working environment factors into the weight calculation model of the thermal system. This can be achieved by adding additional properties (such as dynamic load correction factor, working environment influence coefficient, etc.) to each component in the SysML model. Then, when generating the weight calculation parameter diagram, these correction factors and coefficients are automatically applied to adjust the weight of the component.
[0157] 6. Use simulation data or actual test data to verify the accuracy and reliability of the weight calculation model that integrates dynamic load and working environment factors, and adjust and optimize the model based on the verification results.
[0158] In this embodiment, the step S100 further includes:
[0159] Step S104, verifying and debugging the additive constraint model;
[0160] Specifically, use one or more sets of test data to verify the model and check whether its output is as expected; debug the model and correct any behavior that may cause errors or anomalies; write a verification report to record the test process, results and any necessary modifications.
[0161] In a specific embodiment, in step S104, the established additive constraint model is strictly verified and debugged. Taking the thermal system design as an example, a set of test data containing different component weights is created, which simulates various situations that may be encountered in the actual thermal system. Then, these data are input into the additive constraint model, the model is run and the results are checked to see if they meet expectations. For example, when the input component weights are 100kg, 200kg and 300kg respectively, the model should output a total weight of 600kg. Through repeated testing and adjustment, the accuracy and reliability of the additive constraint model are ensured, laying a solid foundation for the subsequent automatic generation of weight calculation parameter diagrams.
[0162] In this embodiment, the step S200 further includes:
[0163] Step S204, verifying the correctness and completeness of the thermal system hierarchical block definition diagram;
[0164] Specifically, carefully check whether each block and its attributes and constraints in the hierarchical block definition diagram are set correctly; verify the correctness of the hierarchical relationship to ensure that there are no missing or incorrect connections; for example, use simulation data or sample data to verify whether the hierarchical block definition diagram can correctly represent the structure of the thermal system.
[0165] In a specific embodiment, in step S204, the hierarchical block definition diagram of the thermal system is fully verified to ensure its correctness and completeness. Taking the ship thermal system as an example, it is first checked whether the top-level block "ThermalSystem" has correctly contained references to all subsystems, such as the steam generation system, cooling system, water supply system, etc. Then, go deep into each subsystem hierarchical block definition diagram to verify whether the definition of its internal blocks (such as boilers, pipes, valves, etc.) is complete, and whether the attributes (such as weight, material) and constraints (such as connection relationships) are accurate. By running the hierarchical block definition diagram with simulation data and comparing the expected results with the actual output, it is ensured that the hierarchical block definition diagram of the thermal system can accurately reflect the actual structure and properties of the system, providing a reliable basis for subsequent weight calculations.
[0166] In this embodiment, the step S300 further includes:
[0167] Step S305, verifying the correctness and completeness of the subsystem level block definition diagram;
[0168] Specifically, carefully check whether each block and its attributes and constraints in the subsystem hierarchical block definition diagram are set correctly; verify the correctness of the hierarchical relationship or network structure to ensure that there are no missing or incorrect connections; for example, use simulation data or sample data to verify whether the hierarchical block definition diagram can correctly represent the internal structure of the subsystem.
[0169] In a specific embodiment, in step S305, taking the steam generation subsystem as an example, its hierarchical block definition diagram is verified in detail to ensure its correctness and completeness. During the verification process, it is first checked whether the top-level block of the subsystem accurately represents the whole steam generation system, and whether its association with the top-level block of the thermal system is correct. Then, go deep into the subsystem and verify the definitions of each component block (such as boilers, steam pipes, valves, etc.) one by one, including whether their attributes (such as weight, size, material) are complete and accurate, and whether the hierarchical relationships and constraints between them (such as physical connections, workflow dependencies) are complete and reasonable. Through simulation data testing and actual operation comparison, it is confirmed that the hierarchical block definition diagram of the steam generation subsystem can truly reflect the structure and characteristics of the subsystem, providing a solid data foundation for subsequent automated weight calculation.
[0170] In this embodiment, the step S400 further includes:
[0171] Step S405, verifying and adjusting the weight calculation parameter diagram of the thermal system;
[0172] Specifically, verify the parameter diagram using known test data or simulation data to check whether it can correctly calculate the total weight of the thermal system. Check each part of the parameter diagram, including calculation nodes, input and output ports, and connection lines, to ensure that they correctly reflect the weight calculation logic of the thermal system; if any errors or inconsistencies are found, make adjustments and corrections in a timely manner.
[0173] In a specific embodiment, in step S405, the weight calculation parameter diagram of the thermal system is carefully verified and adjusted. Taking the ship thermal system as an example, the parameter diagram is first run through the simulation data to check whether the generated weight calculation result is consistent with the expectation. For example, the estimated weight of each subsystem is input, and the parameter diagram should be able to correctly calculate the total weight of the entire thermal system. If a deviation is found in the calculation result, the cause will be analyzed in depth. It may be that the application of the additive constraint model is incorrect, or the weight attribute in the subsystem level block definition diagram is improperly set. In response to the problems found, the parameter diagram is adjusted in time, including correcting the model parameters, updating the weight attributes, etc., until the verification results show that the parameter diagram can accurately generate the weight calculation result of the thermal system. This process ensures the accuracy and reliability of the weight calculation parameter diagram, and provides strong support for subsequent design decisions and engineering implementation.
[0174] Step S406, outputting a weight calculation parameter diagram of the thermal system;
[0175] Specifically, export the parametric diagram as an image file (such as PNG, SVG, etc.) or SysML model file for sharing and review within the design team. Write a document description of the parametric diagram, including its generation process, main components, verification results, and any matters that need attention. Figure 1 Keep them together and make sure they are all up to date and easily accessible.
[0176] In a specific embodiment, in step S406, a weight calculation parameter diagram of the thermal system is successfully generated and output in an appropriate format for subsequent design analysis and engineering applications. Taking the ship thermal system as an example, the parameter diagram clearly shows the weight distribution and calculation logic of the entire thermal system in a graphical way, including the weight contribution of each subsystem and how they are accumulated to obtain the total weight of the system. A file format that is easy to view and share (such as PDF or PNG) is selected to save and export the parameter diagram. In this way, members of the design team can easily consult the parameter diagram, understand the weight characteristics of the thermal system, and make more accurate and efficient design decisions. At the same time, the parameter diagram can also be used as part of the engineering technical documentation, providing an important reference for subsequent manufacturing, installation, operation and maintenance.
[0177] Based on the same principle as above, the weight calculation parameter diagram of the subsystem generated in step S504 may also be verified and adjusted, and output.
[0178] In practical application, in a specific embodiment of the present invention, the thermal system fault impact analysis method based on SysML of the present invention comprises the following steps:
[0179] S1: Establishing additive constraint model;
[0180] S2: Establish a thermal system hierarchical block definition diagram;
[0181] S3: Establish a subsystem level block definition diagram for the thermal system;
[0182] S4: Automatically generate the weight calculation parameter diagram of the thermal system;
[0183] S5: Automatically generate the weight calculation parameter diagram of the thermal subsystem.
[0184] In step S1, the input of the addition constraint model is a real number array of variable length, and the output is the addition of all elements of the array.
[0185] In step S2, the top level of the system level block definition diagram is the thermal system, which is composed of various subsystems. The system and subsystems contain value properties (Value Property) and constraints (Constrain). The value property names are "weight", "quantity" and "weight sum", and their types are real numbers respectively. The constraint property is defined as "weight sum = weight * quantity".
[0186] In step S3, the top level of the subsystem hierarchy block definition diagram is a thermal subsystem, such as a steam system, a circulating water system, etc., and its components are equipment and parts, such as pumps, valves, pipe sections, etc. The equipment and parts contain value attributes and constraints. The value attribute names are "weight", "quantity" and "weight sum", and their types are real numbers respectively. The constraint attribute is defined as "weight sum = weight * quantity".
[0187] like Figure 2 As shown, in step S4, a weight calculation parameter diagram is established for the thermal system module and is automatically generated in the following manner:
[0188] S41: Establish a thermal system weight module and its parameter diagram, add the additive constraint model and the thermal system module to the parameter diagram, and display the input and output parameters of the constraint attribute, the thermal system "weight" attribute, and the subsystem "weight sum" attribute;
[0189] S42: sequentially connect the “weight sum” attribute of each subsystem to the input parameter of the additive constraint model;
[0190] S43: Connect the "Weight" property of the thermal system to the output parameter of the additive constraint model.
[0191] Figure 3 This is the thermal system block definition diagram. Only its most important components are listed here, including the steam turbine generator set, steam system, condensate feed water system and circulating water system. The number of systems and subsystems is 1 by default. Figure 4 For Figure 3 The weight calculation parameter diagram of the thermal system is generated based on this.
[0192] like Figure 5 As shown, based on the above technical solution, in step S5, a weight calculation parameter diagram is established for the thermal subsystem, and is automatically generated in the following manner:
[0193] S51: Establish a thermal subsystem weight module and its parameter diagram, add the additive constraint model and the thermal subsystem module to the parameter diagram, and display the input and output parameters of the constraint attributes, the subsystem "weight" attribute, the component equipment or parts and their "weight sum" attribute;
[0194] S52: sequentially connecting the “weight sum” attribute of each device or component to the input parameter of the additive constraint model;
[0195] S53: Connect the Weight property of the Thermal subsystem to the output parameter of the Additive Constraint model.
[0196] Figure 6 This is a steam system block definition diagram. The steam system is mainly composed of pipelines, valves and other pipeline accessories. Here only 1# valve, 2# valve, 1# pipe section, and 2# pipe section are listed schematically, and the default quantity is 1. Figure 7 For Figure 6 The weight calculation parameter diagram of the thermal system is generated based on this.
[0197] According to the present invention, a thermal system fault impact analysis system based on SysML can also be provided. The system is a plug-in of the SysML modeling tool, including an attribute checking module and a weight parameter diagram automatic generation module. The attribute checking module checks whether the system, subsystem, equipment and components have set the "weight", "quantity" and "weight sum" attributes, and defines "weight sum = weight * quantity" through constraints. Only modules with the "weight" attribute defined can display the weight parameter diagram in the list of the newly created diagram. If it is not set, a prompt message pops up. The weight parameter diagram automatic generation module automatically creates a parameter diagram and performs parameter connection.
[0198] In summary, the thermal system fault impact analysis method based on SysML of the present invention has the following beneficial effects:
[0199] 1. By automatically generating weight calculation parameter diagrams for thermal systems and their subsystems, the workload of designers in manual calculation and drawing parameter diagrams is greatly reduced. Designers can devote more energy to the core issues of system design, thereby improving overall design efficiency.
[0200] 2. Manual calculation and drawing of parameter diagrams are prone to human errors, such as miscalculation, data omission, etc. However, the present invention realizes the generation of weight calculation parameters through automated means, reduces the possibility of these human errors, and improves the accuracy and reliability of the design results.
[0201] 3. In the process of thermal system design, it is often necessary to iterate and optimize the design scheme multiple times. The automated tool provided by the present invention can quickly respond to design changes, regenerate the corresponding weight calculation parameter diagram, support the design team to quickly verify the effects of different schemes, and accelerate the iteration process.
[0202] 4. The parameter diagram graphically displays the weight calculation logic and results of the thermal system, allowing the design team to intuitively understand the weight distribution and calculation process of the system. This visual design enhances the comprehensibility and communication of the design, and facilitates collaboration and discussion among team members.
[0203] 5. By defining a unified additive constraint model and parameter diagram generation rules, the present invention promotes the standardization of thermal system design. Different designers can work according to the same process and specifications, improving the consistency and reusability of the design.
[0204] 6. The generated weight calculation parameter diagram is not only used in the design stage, but also can be used as the basis for subsequent analysis and verification work. For example, when simulating the system operation, the calculation logic in the parameter diagram can be used to predict the weight change of the system; in the manufacturing and installation stages, the parameter diagram can be used to guide the actual operation to ensure that the system weight meets the design requirements.
[0205] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML, characterized in that: include: Step S100, establishing an additive constraint model in a SysML environment; Step S200, determining the top-level block of the thermal system, and adding subsystems as components to the thermal system to obtain a definition diagram of the thermal system hierarchical block; Step S300, determining the top-level block of each subsystem, and defining the internal blocks of each subsystem and their mutual relationships, to obtain a subsystem hierarchical block definition diagram; Step S400, automatically calculating and generating a weight calculation parameter diagram of a thermal system based on the additive constraint model, the thermal system hierarchical block definition diagram, and the subsystem hierarchical block definition diagram; Step S500, automatically calculating and generating a weight calculation parameter diagram of a subsystem based on the additive constraint model and the subsystem hierarchical block definition diagram; Wherein, the step S100 includes: Step S101, establish the basic framework of the model and clarify its input and output; Step S102, writing or configuring expressions in the SysML environment, implementing addition logic, and generating an addition constraint model; Wherein, the step S200 includes: Step S201, defining the top-level block of the thermal system; Step S202, dividing the thermal system into subsystems, and establishing a hierarchical relationship between the thermal system and the subsystems; Step S203, setting attributes and constraints for the top-level block of the thermal system and the top-level block of the subsystem to obtain a hierarchical block definition diagram of the thermal system; Wherein, the step S300 includes: Step S301, determining the internal composition of the subsystem; Step S302, defining the internal components of each subsystem; Step S303, establishing a hierarchical relationship within each of the subsystems; Step S304, setting the attributes and constraints of the internal blocks of each subsystem to obtain the subsystem hierarchical block definition diagram; Wherein, the step S400 includes: Step S401, loading the thermal system level block definition diagram and the subsystem level block definition diagram; Step S402, selecting the top block of the thermal system as a starting point; Step S403, traversing the top-level blocks of the subsystem and generating weight calculation results; Step S404, performing calculation based on the additive constraint model and the weight calculation result of each of the subsystems to generate a weight calculation parameter diagram of the thermal system; Wherein, the step S500 includes: Step S501, determining a subsystem that needs to automatically generate a weight calculation parameter diagram; Step S502, initializing the subsystem parameter map generation environment; Step S503, traverse the internal blocks of the subsystem and extract the weight attribute; Step S504: generating a weight calculation parameter diagram of the subsystem based on the additive constraint model and the weight attribute.
2. The method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML as claimed in claim 1, characterized in that: The step S100 further includes: Step S104, verifying and debugging the additive constraint model.
3. The method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML as claimed in claim 1, characterized in that: The step S200 further includes: Step S204, verifying the correctness and completeness of the thermal system hierarchical block definition diagram.
4. The method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML as claimed in claim 1, characterized in that: The step S300 further includes: Step S305 , verifying the correctness and completeness of the subsystem level block definition diagram.
5. The method for automatically generating a weight calculation parameter diagram of a thermal system based on SysML as claimed in claim 1, characterized in that: The step S400 further includes: Step S405, verifying and adjusting the weight calculation parameter diagram of the thermal system; Step S406, outputting a weight calculation parameter diagram of the thermal system.
Citation Information
Patent Citations
On-missile electrical system modeling simulation method based on MBSE
CN110674588A
Constraint module automatic generation method and system based on SysML
CN115186432A