Engine assembly demonstration tool generation method, system, storage medium, and apparatus

By using the Modelica modeling language to edit the liquid rocket engine assembly demonstration calculation model and generate an assembly demonstration tool, the problems of large manpower investment and long development cycle in existing technologies are solved, and a more efficient development process is achieved.

CN114995819BActive Publication Date: 2025-10-17XIAN AEROSPACE PROPULSION INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210398622.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2025-10-17
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

The existing method for generating liquid rocket engine assembly demonstration tools requires large manpower investment and a long cycle. Designers and software developers need a lot of time and energy to complete it, resulting in low development efficiency.

Method used

The assembly demonstration calculation model is edited using the Modelica modeling language. The assembly demonstration tool template is replaced by the model information and calculation program to generate the assembly demonstration tool, reducing the need for code conversion.

Benefits of technology

It improves the development efficiency of assembly demonstration tools, shortens the software development cycle, reduces manpower input, and is suitable for the generation of various assemblies in the engine system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995819B_ABST
    Figure CN114995819B_ABST
Patent Text Reader

Abstract

The present application relates to an engine assembly demonstration tool generation method, system, storage medium and equipment to solve the technical problems of large manpower investment and long cycle of the existing assembly demonstration tool generation method. The method comprises: 1, editing the assembly demonstration calculation model; 2, syntax checking; 3, compiling the assembly demonstration calculation model; 4, obtaining the model information and the assembly demonstration calculation program of the assembly demonstration calculation model, and generating the assembly demonstration tool according to the assembly demonstration tool template. The system comprises a modeling simulation unit, an assembly demonstration tool generation unit and an assembly demonstration tool unit. The present application improves the development efficiency of the assembly demonstration tool and increases the scene applicability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to a method and system for argumentation calculation of a liquid rocket engine assembly, in particular to a Modelica-based liquid rocket engine assembly argumentation tool generation method, system, storage medium and equipment. BACKGROUND

[0002] In the scheme design phase of a liquid rocket engine, argumentation calculation needs to be performed on each assembly, such as argumentation of a thrust chamber, argumentation of a turbine pump, argumentation of an evaporator and argumentation of a regulator.

[0003] Currently, the development of an assembly argumentation software process mainly involves that assembly designers provide argumentation calculation formulas of assemblies, software developers convert the formulas into codes and write software interfaces, and finally form corresponding assembly argumentation calculation tools. However, there are some problems in this process: the assembly designers need to sort and summarize the calculation formulas and design processes, and need to invest additional manpower and time; the developers need to repeatedly check the unfamiliar formulas, and the development time period is lengthened; in addition to the formula code writing, the developers need to write a large amount of repeated codes. From these aspects, the traditional assembly argumentation development process needs the cooperation of assembly designers and software developers, and both of them need to spend a lot of time and energy to jointly complete the development of an assembly argumentation tool. For the design of a liquid rocket engine, there are dozens of assemblies, and if the method is used, a large amount of manpower and time will be undoubtedly consumed.

[0004] In summary, a liquid rocket engine assembly argumentation tool system is urgently needed, which can avoid the above problems and make the development of a liquid rocket engine assembly more convenient and fast. SUMMARY

[0005] The application aims to solve the technical problems of large manpower investment and long cycle of the existing assembly argumentation tool generation method, and proposes an engine assembly argumentation tool generation method, system, storage medium and equipment.

[0006] The technical scheme of the application is as follows:

[0007] An engine assembly argumentation tool generation method, wherein the special feature is that the method comprises the following steps:

[0008] S1, a new assembly argumentation calculation model is created and edited by using a Modelica modeling language;

[0009] S2, the edited assembly argumentation calculation model is subjected to syntax checking to confirm whether it can be normally calculated, if yes, the step S3 is entered, and if no, the step S1 is returned until the assembly argumentation calculation model can be normally calculated;

[0010] S3, compiling the combination argument calculation model which can be calculated normally to generate a combination argument calculation program;

[0011] S4, obtaining model information of the combination argument calculation model of step S1, calling the combination argument calculation program of step S3, and generating a combination argument tool according to a combination argument tool template.

[0012] Further, in step S1, the combination argument calculation model is edited by using the Modelica modeling language, specifically, input of the combination argument calculation formula, output of the combination argument calculation formula, and a parameter variable are defined, and a combination argument calculation formula is written, and the combination argument calculation formula is edited into a calculation model based on Modelica.

[0013] Further, in step S4, the model information of the combination argument calculation model of step S1 is obtained, specifically, input variables, output variables, parameter variables, and a model name are obtained;

[0014] The input variables are an input variable name, an input variable default value, an input variable unit, and an input variable description;

[0015] The output variables are an output variable name, an output variable default value, an output variable unit, and an output variable description;

[0016] The parameter variables are a parameter variable name, a parameter variable default value, a parameter variable unit, and a parameter variable description.

[0017] Further, in step S4, the combination argument tool template includes a combination argument interface description file template, a combination argument calculation program template, and a combination argument program framework; the combination argument interface description file template is used to record model information; the combination argument calculation program module is used to specify function interfaces that must be included in the calculation program, and the combination argument program framework is used to call the calculation program and initialize the interface after reading the model information in the combination argument interface description file template.

[0018] Further, in step S4, the combination argument tool is generated, specifically:

[0019] S4.1, outputting the model information into an xml file according to the combination argument interface description file template;

[0020] S4.2, replacing the interface description file template and the combination argument calculation program template in the combination argument tool template with the xml file of step S4.1 and the combination argument calculation program to generate the combination argument tool.

[0021] The application further provides an engine assembly argumentation tool generation system, which is characterized in that comprising a modeling simulation unit, an assembly argumentation tool generation unit and an assembly argumentation tool unit.

[0022] The modeling simulation unit comprises a model editing module, a model information acquisition interface module, a syntax checking module and a model compiling module.

[0023] The model editing module is used for editing the assembly argumentation calculation model, one output of the model editing module is connected with the input of the model information acquisition interface module, and another output of the model editing module is connected with the input of the syntax checking module; the syntax checking module is used for checking whether the assembly argumentation calculation model edited by the model editing module can be calculated normally, and outputs the checking result to the model editing module or the model compiling module; and the model compiling module is used for compiling the assembly argumentation calculation model edited by the model editing module into a calculation program.

[0024] The assembly argumentation tool generation unit comprises a model information acquisition module, a calculation program acquisition module, an assembly argumentation tool template module and an assembly argumentation tool generation module.

[0025] The input of the model information acquisition module is connected with the output of the model information acquisition interface module, and the model information acquisition module is used for acquiring the model information of the calculation model; and the output of the model information acquisition module is connected with the first input of the assembly argumentation tool generation module.

[0026] The input of the calculation program acquisition module is connected with the output of the model compiling module, and the calculation program acquisition module is used for acquiring the calculation program; and the output of the calculation program acquisition module is connected with the second input of the assembly argumentation tool generation module.

[0027] The output of the assembly argumentation tool template module is connected with the third input of the assembly argumentation tool generation module.

[0028] The assembly argumentation tool generation module is used for generating the assembly argumentation tool unit according to the contents of the first input, the second input and the third input.

[0029] Further, the assembly argumentation tool template module comprises an assembly argumentation interface description file template sub-module, an assembly argumentation calculation program template sub-module and an assembly argumentation program framework sub-module.

[0030] The assembly argumentation interface description file template sub-module is used for recording the xml file in a specific format of the model information.

[0031] The assembly argumentation calculation program template is a dynamic link library containing specific function interfaces.

[0032] The component argumentation program framework sub-module is used to call the calculation program and read the model information in the component argumentation interface description file template sub-module to initialize the interface.

[0033] The application further provides a computer storage medium, which stores a computer program, and the computer program is characterized in that: the computer program is executed by a processor to realize the steps of the engine component argumentation tool generation method.

[0034] The application further provides a computer device, which comprises a processor, a memory connected to the processor, and a computer program capable of running on the processor, and the computer program is characterized in that: the processor executes the computer program to realize the steps of the engine component argumentation tool generation method.

[0035] The application has the following beneficial effects:

[0036] 1. The engine component argumentation tool generation method provided by the application uses the Modelica modeling language to edit a component argumentation calculation model, replaces the program framework in a component argumentation tool template with model information and a component argumentation calculation program, and constructs an engine component argumentation tool, so that the editing of formulas is more convenient, the code conversion of calculation equations is not needed, and the development efficiency of the component argumentation tool is improved.

[0037] 2. The application is suitable for the generation of various component tools in an engine system, has a wide use scenario, has strong applicability, and greatly shortens the software development cycle. BRIEF DESCRIPTION OF DRAWINGS

[0038] Figure 1 The figure is a flowchart of the engine component argumentation tool generation method of the application;

[0039] Figure 2 The figure is a schematic diagram of an embodiment of the engine component argumentation tool generation system of the application;

[0040] Figure 3 The figure is a flowchart of the use of the component argumentation unit in the embodiment of the application;

[0041] Figure 4 The figure is an editing interface diagram of the calculation model of the thrust chamber in the embodiment of the application;

[0042] Figure 5 The figure is an information filling interface diagram when the thrust chamber argumentation tool is generated in the embodiment of the application;

[0043] Figure 6 The figure is an interface diagram of the generated thrust chamber argumentation tool in the embodiment of the application. DETAILED DESCRIPTION

[0044] Reference Figure 1The embodiment is a kind of engine assembly demonstration tool generation method, which comprises the following steps:

[0045] S1, a new assembly demonstration calculation model is edited using Modelica modeling language, specifically, the input of assembly demonstration calculation formula, the output of assembly demonstration calculation formula and parameter variable are defined, and assembly demonstration calculation formula is written, the assembly demonstration calculation formula is edited into the calculation model based on Modelica, in this embodiment, taking generating thrust chamber demonstration calculation model as an example, see Figure 4 .

[0046] S2, the edited assembly demonstration calculation model is checked for syntax, to confirm whether it can be calculated normally, if it can be calculated normally, it enters step S3, if it cannot be calculated normally, it returns to step S1 until the assembly demonstration calculation model can be calculated normally;

[0047] S3, the assembly demonstration calculation model that can be calculated normally is compiled to generate assembly demonstration calculation program;

[0048] S4, the model information of the assembly demonstration calculation model of step S1 is obtained, the assembly demonstration calculation program of step S3 is called, and the assembly demonstration tool is generated according to the assembly demonstration tool template, see Figure 5 and Figure 6 , generate thrust chamber demonstration tool;Assembly demonstration tool template includes assembly demonstration interface description file template, assembly demonstration calculation program template and assembly demonstration program framework;Assembly demonstration interface description file template is used to record xml file of specific format of model information;Assembly demonstration calculation program module is used to specify the function interface that calculation program must contain, and assembly demonstration program framework is used to call calculation program and initialize interface after reading model information in assembly demonstration interface description file template.

[0049] Specifically, S4.1, the model information is output as an xml file according to the assembly demonstration interface description file template;

[0050] S4.2, the xml file of step S4.1 and the assembly demonstration calculation program are replaced with the interface description file template and the assembly demonstration calculation program template in the assembly demonstration tool template to generate the assembly demonstration tool.

[0051] The model information of the assembly demonstration calculation model is specifically input variable, output variable, parameter variable and model name;The input variable is input variable name, input variable default value, input variable unit and input variable description;The output variable is output variable name, output variable default value, output variable unit and output variable description;The parameter variable is parameter variable name, parameter variable default value, parameter variable unit and parameter variable description.

[0052] Meanwhile, the embodiment also provides an engine assembly demonstration tool generation system, as shown in the figure, which comprises a modeling simulation unit, an assembly demonstration tool generation unit and an assembly demonstration tool unit. Figure 2

[0053] The modeling simulation unit comprises a model editing module, a model information acquisition interface module, a syntax checking module and a model compiling module.

[0054] The model editing module is used for editing the assembly demonstration calculation model, one output of the model editing module is connected with the input of the model information acquisition interface module, and another output of the model editing module is connected with the input of the syntax checking module; the syntax checking module is used for checking whether the assembly demonstration calculation model edited by the model editing module can be calculated normally, and outputs the checking result to the model editing module or the model compiling module; and the model compiling module is used for compiling the assembly demonstration calculation model edited by the model editing module into a calculation program.

[0055] The assembly demonstration tool generation unit comprises a model information acquisition module, a calculation program acquisition module, an assembly demonstration tool template module and an assembly demonstration tool generation module, and is used for generating the assembly demonstration tool unit.

[0056] The input of the model information acquisition module is connected with the output of the model information acquisition interface module, and is used for acquiring the model information of the calculation model; the output of the model information acquisition module is connected with the first input of the assembly demonstration tool generation module; the input of the calculation program acquisition module is connected with the output of the model compiling module, and is used for acquiring the calculation program; the output of the calculation program acquisition module is connected with the second input of the assembly demonstration tool generation module; the output of the assembly demonstration tool template module is connected with the third input of the assembly demonstration tool generation module; the assembly demonstration tool template module comprises an assembly demonstration interface description file template submodule, an assembly demonstration calculation program template submodule and an assembly demonstration program framework submodule; the assembly demonstration interface description file template submodule is used for recording the xml file in a specific format of the model information; the assembly demonstration calculation program template is a dynamic link library containing specific function interfaces; the assembly demonstration program framework submodule is used for calling the calculation program and initializing the interface after reading the model information in the assembly demonstration interface description file template submodule; and the assembly demonstration tool generation module is used for generating the assembly demonstration tool unit according to the contents of the first input, the second input and the third input.

[0057] ​The assembly demonstration tool unit includes an interface display module, a calculation module and a result export module; the interface display module is an initialization interface formed according to the model information XML file, and the initialization interface includes an input variable submodule, a parameter variable setting interface and an output display interface; the calculation module sets the input variable values ​​and parameter variable values ​​into the calculation program according to the input variable submodule and the parameter variable setting interface, and drives the calculation program to perform calculations to obtain the values ​​of the output variables; the result export module is used to export the values ​​of the output variables and store them as CSV files.

[0058] like Figure 3 As shown, the operation process of the generated assembly demonstration tool unit is: 1) fill in the input variable value and parameter variable value; 2) run the assembly demonstration tool to calculate the output variable value; 3) export the calculation result and export the output variable value as a CSV file.

[0059] This embodiment proposes a method and system for generating an assembly demonstration tool based on the Modelica language. First, the assembly demonstration calculation formula is written in the Modelica language. Then, an assembly demonstration tool is generated using a plug-in generated by the assembly demonstration tool. The generated assembly demonstration tool can then be used to perform demonstration calculations. This process no longer requires the participation of software developers, and the formula is written using the equation-based programming language Modelica. This makes formula writing more convenient and eliminates the need to convert calculation equations, thereby solving the problem of long investment cycles.

[0060] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the engine assembly demonstration tool generation method described in the above embodiment; the storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM) or an optical disk, etc., which can store program codes.

[0061] An embodiment of the present invention also provides a computer device, which includes a processor, a memory connected to the processor, and a computer program that can be run on the processor. The processor executes the computer program to implement the steps of the engine assembly demonstration tool generation method described in the above embodiment; the computer device can be a portable computer such as a laptop computer or a tablet computer, or a computer device such as a desktop computer. Since the computer device has a computer program that can implement the engine assembly demonstration tool generation method in the above embodiment, it has the same beneficial effects and will not be repeated in this embodiment.

Claims

1. A method for generating an engine assembly demonstration tool, characterized in that: The following steps are involved: S1. Create and edit the assembly demonstration calculation model using Modelica modeling language; S2. Perform a syntax check on the edited assembly demonstration calculation model to confirm whether it can be calculated normally. If it can be calculated normally, proceed to step S3; If the calculation cannot be performed normally, the process returns to step S1 until the assembly proves that the calculation model can be calculated normally; S3, compiling the assembly demonstration calculation model that can be calculated normally to generate an assembly demonstration calculation program; S4, obtaining model information of the assembly demonstration calculation model of step S1, calling the assembly demonstration calculation program of step S3, and generating an assembly demonstration tool according to the assembly demonstration tool template; In step S4, the assembly demonstration tool is generated as follows: S4.

1. Output the model information into an XML file according to the assembly demonstration interface description file template; S4.2, the XML file in step S4.1 and the assembly demonstration calculation program replace the assembly demonstration tool template interface description file template and assembly demonstration calculation program template to generate an assembly demonstration tool; In step S1, the assembly demonstration calculation model is edited using the Modelica modeling language. Specifically, the input of the assembly demonstration calculation formula, the output of the assembly demonstration calculation formula, and the parameter variables are defined, and the assembly demonstration calculation formula is written. The assembly demonstration calculation formula is edited into a calculation model based on Modelica; In step S4, the assembly demonstration tool template includes an assembly demonstration interface description file template, an assembly demonstration calculation program template and an assembly demonstration program framework; the assembly demonstration interface description file template is used to record model information; the assembly demonstration calculation program module is used to specify the function interface that the calculation program must include, and the assembly demonstration program framework is used to call the calculation program and read the model information in the assembly demonstration interface description file template and then initialize the interface.

2. The method for generating an engine assembly demonstration tool according to claim 1, wherein: In step S4, the model information of the assembly demonstration calculation model in step S1 is obtained, specifically, the input variables, output variables, parameter variables and model name are obtained; The input variables are input variable name, input variable default value, input variable unit and input variable description; The output variables include output variable name, output variable default value, output variable unit and output variable description; The parameter variables include parameter variable name, parameter variable default value, parameter variable unit and parameter variable description.

3. An engine assembly demonstration tool generation system, used to implement the engine assembly demonstration tool generation method according to any one of claims 1-2, characterized in that: It includes modeling and simulation unit, assembly demonstration tool generation unit and assembly demonstration tool unit; The modeling and simulation unit includes a model editing module, a model information acquisition interface module, a grammar checking module and a model compilation module; The model editing module is used to edit the assembly demonstration calculation model. One output of the model editing module is connected to the input of the model information acquisition interface module. Another output of the model editing module is connected to the input of the grammar checking module. The grammar checking module is used to check whether the assembly demonstration calculation model edited by the model editing module can be calculated normally, and output the check result to the model editing module or the model compilation module. The model compilation module is used to compile the assembly demonstration calculation model edited by the model editing module into a calculation program. The assembly demonstration tool generation unit includes a model information acquisition module, a calculation program acquisition module, an assembly demonstration tool template module and an assembly demonstration tool generation module; The input of the model information acquisition module is connected to the output of the model information acquisition interface module, and is used to obtain model information of the calculation model. The output of the model information acquisition module is connected to the first input of the assembly demonstration tool generation module. The input of the computing program acquisition module is connected to the output of the model compilation module for acquiring the computing program; the output of the computing program acquisition module is connected to the second input of the assembly demonstration tool generation module; The output of the assembly demonstration tool template module is connected to the third input of the assembly demonstration tool generation module; The assembly demonstration tool generation module is used to generate an assembly demonstration tool unit according to the contents of the first input, the second input and the third input.

4. The engine assembly demonstration tool generation system according to claim 3, characterized in that: The assembly demonstration tool template module includes an assembly demonstration interface description file template submodule, an assembly demonstration calculation program template submodule and an assembly demonstration program framework submodule; The assembly demonstration interface description file template submodule is used to record the model information in a specific format of XML file; The assembly demonstration calculation program template contains a dynamic link library of a specific function interface; The assembly demonstration program framework submodule is used to call the calculation program and read the model information in the assembly demonstration interface description file template submodule to initialize the interface.

5. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for generating an engine assembly demonstration tool according to any one of claims 1 to 2 are implemented.

6. A computer device comprising a processor, a memory connected to the processor, and a computer program executable on the processor, wherein: When the processor executes the computer program, the steps of the method for generating an engine assembly demonstration tool according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • System and method for rapidly generating three-dimensional general assembly model of liquid rocket engine

    CN113569419A

  • Modeling method of general centrifugal pump dynamic simulation model based on Modelica language

    CN114021251A