CN114117640A - Engine interference factor analysis method and device based on parallel computing - Google Patents
Engine interference factor analysis method and device based on parallel computing Download PDFInfo
- Publication number
- CN114117640A CN114117640A CN202111446854.9A CN202111446854A CN114117640A CN 114117640 A CN114117640 A CN 114117640A CN 202111446854 A CN202111446854 A CN 202111446854A CN 114117640 A CN114117640 A CN 114117640A
- Authority
- CN
- China
- Prior art keywords
- engine
- model
- calculation
- preset
- modelica
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000556 factor analysis Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000003068 static effect Effects 0.000 claims abstract description 105
- 238000004088 simulation Methods 0.000 claims abstract description 96
- 230000008859 change Effects 0.000 claims abstract description 73
- 238000004364 calculation method Methods 0.000 claims abstract description 65
- 239000011159 matrix material Substances 0.000 claims abstract description 59
- 238000004458 analytical method Methods 0.000 claims abstract description 47
- 230000000007 visual effect Effects 0.000 claims abstract description 15
- 238000012800 visualization Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 19
- 239000007788 liquid Substances 0.000 claims description 9
- 238000010425 computer drawing Methods 0.000 abstract description 3
- 238000002485 combustion reaction Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/15—Vehicle, aircraft or watercraft design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/02—Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Automation & Control Theory (AREA)
- Aviation & Aerospace Engineering (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses an engine interference factor analysis method and device based on parallel computing. The method comprises the steps of constructing an engine static simulation model through a Modelica model, and compiling the engine static simulation model into a calculation program in a Modelica modeling environment; according to preset input parameters in a preset interference factor analysis tool, setting the variation range of the preset input parameters at the same time, and obtaining a parameter variation matrix of the preset input parameters; starting a plurality of calculation programs according to the parameter change matrix of the preset input parameters to perform parallel calculation; and after the parallel computation is completed, carrying out visual result analysis. The method and the device solve the technical problems that the calculation amount of the engine interference factor analysis method is large, and the analysis result is not visual. The problem of large calculation amount of a nonlinear analysis method is solved by using parallel calculation, and computer drawing is also provided to make an analysis result visually presented.
Description
Technical Field
The application relates to the field of analysis of internal and external interference factors of an engine, in particular to an engine interference factor analysis method and device based on parallel computing.
Background
For engines, such as rocket engines, effective analysis of interference factors in the engines is required.
Some methods for analyzing the internal and external interference factors of the engine have certain deviation of an analysis result, and other methods have high precision, but need to call static calculation for many times, so that the calculation amount is large, and the analysis result is not visual.
Aiming at the problems that the calculation amount of an engine interference factor analysis method in the related technology is large and the analysis result is not visual, an effective solution is not provided at present.
Disclosure of Invention
The application mainly aims to provide an engine interference factor analysis method and device based on parallel computing, so as to solve the problems that the engine interference factor analysis method is large in calculation amount and the analysis result is not visual.
In order to achieve the above object, according to one aspect of the present application, there is provided an engine disturbance factor analysis method based on parallel computing.
The engine interference factor analysis method based on parallel computing comprises the following steps: constructing an engine static simulation model through a Modelica model, and compiling the engine static simulation model into a calculation program in a Modelica modeling environment; according to preset input parameters in a preset interference factor analysis tool, setting the variation range of the preset input parameters at the same time, and obtaining a parameter variation matrix of the preset input parameters; starting a plurality of calculation programs according to the parameter change matrix of the preset input parameters to perform parallel calculation; and after the parallel computation is completed, carrying out visual result analysis.
Further, the building of the static simulation model of the engine through the Modelica model comprises the following steps: and constructing the static simulation model of the engine by graphical modeling and text modeling.
Further, the building of the static engine simulation model through the modeica model and the compiling of the static engine simulation model into the computer program in the modeica modeling environment include: solving the static characteristic of the engine by using a model constructed by a Modelica language in a Modelica modeling environment, wherein the static simulation model of the engine is obtained by connecting component models in a static characteristic model library of the liquid rocket engine by using a preset flow balance, a preset power balance and a preset pressure balance relation; the liquid rocket engine static characteristic model library comprises static characteristic models such as pumps, turbines, regulators and pipelines, and thermodynamic models of a thrust chamber and a generator.
Further, the building of the static engine simulation model through the modeica model and the compiling of the static engine simulation model into the computer program in the modeica modeling environment include: in a Modelica modeling environment, an executable calculation program generated by compiling a rocket engine static simulation model is independently operated based on the program, so that all settable parameters of the model can be obtained and set, and a calculation result after the model is operated can be obtained.
Further, the setting of the variation range of the preset input parameter includes: setting the variation range of the input parameters, and setting the variation range of the input parameters after the selection of the input parameters is completed, wherein the set content at least comprises one of the following contents: minimum value of change, maximum value of change, step size of change, percentage of change of input parameter.
Further, the starting a plurality of calculation programs according to the parameter change matrix of the preset input parameter to perform parallel calculation includes: starting a corresponding number of calculation programs according to the number of variables in the change matrix of the input parameters and setting values in the change matrix into the calculation programs; and calling a calculation program in batch according to the set parameter change range for calculation, and performing batch simulation.
Further, the analyzing the preset input parameters in the tool according to the preset interference factors includes: loading the calculation program through the preset interference factor analysis tool based on the generation result of the calculation program; all parameters which can be set in the rocket engine static simulation model are obtained to obtain input parameters and output parameters to be analyzed, and the input parameter variation range is set.
In order to achieve the above object, according to another aspect of the present application, there is provided an engine disturbance factor analyzing apparatus based on parallel computing.
The engine disturbance factor analysis device based on parallel computing according to the application comprises: the simulation module is used for constructing an engine static simulation model through a Modelica model and compiling the engine static simulation model into a calculation program in a Modelica modeling environment; the compiling module is used for setting a variation range of the preset input parameters according to preset input parameters in a preset interference factor analysis tool to obtain a parameter variation matrix of the preset input parameters; the parallel computing module is used for starting a plurality of computing programs according to the parameter change matrix of the preset input parameters to perform parallel computing; and the visualization module is used for performing visualization result analysis after parallel computation is completed.
In the method and the device for analyzing the engine interference factors based on the parallel computing in the embodiment of the application, a static simulation model of the engine is built through a Modelica model, the static simulation model of the engine is compiled into a calculation program in a Modelica modeling environment, a parameter change matrix of preset input parameters is obtained by presetting input parameters in a preset interference factor analysis tool and simultaneously setting the change range of the preset input parameters, a plurality of calculation programs are started according to the parameter change matrix of the preset input parameters for parallel computing, and the purpose of carrying out visual result analysis after the parallel computing is completed is achieved, so that the problem of large calculation amount of a nonlinear analysis method is solved by using the parallel computing, and the technical effect that the visual presentation of an analysis result becomes more visual by a computer is also provided, and the technical problems that the calculation amount of the engine interference factor analysis method is large and the analysis result is not visual are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a hardware structure diagram of an engine disturbance factor analysis method based on parallel computing according to an embodiment of the application;
FIG. 2 is a schematic flow chart diagram of a parallel computing based engine disturbance factor analysis method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an engine disturbance factor analysis device based on parallel computing according to an embodiment of the application;
FIG. 4 is a flow chart of an engine disturbance factor analysis method based on parallel computing according to the preferred embodiment of the application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The embodiment of the application provides an engine interference factor analysis method based on parallel computing, wherein the method is used for carrying out rocket engine interference factor analysis by a parallel computing method, building a rocket engine static simulation model by using a Modelica language in a Modelica modeling environment, and compiling the static simulation model to generate an executable computing program; in an interference factor analysis tool, selecting parameters to be set, setting the variation range of the parameters, forming a parameter variation matrix, then starting a plurality of calculation programs by using the parameters in the parameter variation matrix respectively, and performing parallel calculation on the calculation programs; and finally, the parallel calculation result is displayed in a visual mode through a curve graph, a histogram and the like. Therefore, the problems that the calculation is slow and the analysis result is not intuitive due to large calculation amount of interference factor analysis are solved.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, the hardware system structure in the embodiment of the present application includes: modelica modeling environment and interference factor analysis tool. Wherein the Modelica modeling environment comprises: the system comprises a visual modeling module, an engine static simulation module and a compiling and solving module. And establishing the association between the Modelica modeling environment and the interference factor analysis tool through the computer program. The interference factor analysis tool comprises: the device comprises a parameter selection module, an input parameter variation range setting module, a parallel computing module and a computing result visualization analysis module.
Specifically, the Modelica modeling environment is used for building a rocket engine static simulation model, and users can build the rocket engine static simulation model through graphical modeling and text modeling.
The static simulation model of the rocket engine is a model constructed by using Modelica language in a Modelica modeling environment, and can solve the static characteristics of the rocket engine. The liquid rocket engine static characteristic model library is composed of a pump, a turbine, a regulator, a pipeline static characteristic model, a thrust chamber and a generator thermal model, and the engine static simulation model is obtained by connecting component models in the liquid rocket engine static characteristic model library by using a preset flow balance, a preset power balance and a preset pressure balance relation.
The computer program is an executable computer program generated by compiling a rocket engine static simulation model in a Modelica modeling environment. The program can be independently operated, all settable parameters of the model can be obtained and set, and a calculation result after the model is operated can be obtained.
The interference factor analysis tool comprises a parameter selection module, an input parameter variation range setting module, a parallel calculation module and a result visualization analysis module, and can be used for analyzing the interference factors of the rocket engine.
After the generation of the calculation program is completed, the parameter selection module can load the calculation program by the interference factor analysis tool, all parameters which can be set in the rocket engine static simulation model are obtained through the parameter selection module, and a user selects input and output parameters to be analyzed from all the parameters to set the variation range of the input parameters.
The parameter change range setting module is used for setting the change range of the input parameters, after the input parameter selection is completed, the change range of the input parameters needs to be set, the setting content comprises the minimum value of change, the maximum value of change and the change step length, and the change percentage of the input parameters can also be directly set, so that the interference factor analysis tool obtains the change matrix of the input parameters according to the setting content.
And the parallel computing module calls a computing program in batch to perform computing according to the set parameter change range, and performs batch simulation. After the change matrix of the input parameters is obtained, the parallel computing module needs to start the corresponding number of computing programs according to the number of variables in the change matrix, set the values in the change matrix into the computing programs, and perform simulation solution.
The result visualization analysis module provides visualization analysis for the output parameters, and comprises a curve graph and a histogram analysis tool. And after the parallel computation is finished, the result visualization module obtains an output parameter computation result by reading an output result in the computation program, and the output parameter computation result is visually presented through a curve graph and a histogram.
As shown in fig. 2, the method includes steps S201 to S204 as follows:
step S201, constructing an engine static simulation model through a Modelica model, and compiling the engine static simulation model into a calculation program in a Modelica modeling environment;
step S202, according to preset input parameters in a preset interference factor analysis tool, setting the variation range of the preset input parameters at the same time, and obtaining a parameter variation matrix of the preset input parameters;
step S203, starting a plurality of calculation programs according to the parameter change matrix of the preset input parameters, and performing parallel calculation;
and step S204, after the parallel computation is completed, carrying out visualization result analysis.
From the above description, it can be seen that the following technical effects are achieved by the present application:
by adopting a mode of constructing an engine static simulation model through a Modelica model and compiling the engine static simulation model into a calculation program in a Modelica modeling environment, through presetting input parameters in an analysis tool according to preset interference factors, setting the variation range of the preset input parameters to obtain the parameter variation matrix of the preset input parameters, starting a plurality of calculation programs according to the parameter change matrix of the preset input parameters to perform parallel calculation, achieving the purpose of performing visual result analysis after the parallel calculation is completed, thereby realizing the problem of large calculation amount of the nonlinear analysis method by using parallel calculation, also providing the technical effect that the visualized presentation of the analysis result becomes more intuitive by computer drawing, and the technical problems that the calculation amount of the engine interference factor analysis method is large and the analysis result is not visual are solved.
In step S201, an engine static simulation model is constructed by a Modelica model, and the engine static simulation model is compiled into a calculation program in a Modelica modeling environment. Facilitating subsequent computational use.
In one embodiment, after the rocket engine static simulation model is constructed, the rocket engine static simulation model needs to be compiled into a computer program in a Modelica modeling environment, and the computer program is an exe program capable of running and solving.
In a preferred embodiment, the rocket engine static simulation model is built in a Modelica modeling environment, and the solvable rocket engine static simulation model is built.
In step S202, input parameters are preset in the tool according to the preset interference factor. That is, after the calculation program is generated, it needs to be input to an interference factor analysis tool, and in the interference factor analysis tool, a parameter selection module is used to select a parameter to be analyzed.
In one embodiment, input and output parameters are selected according to preset input parameters in the preset interference factor analysis tool, wherein the input parameters can include combustion chamber efficiency, nozzle efficiency, pressure reducing valve outlet pressure, engine throat assembly and the like, and the output parameters can include engine thrust, engine chamber pressure and the like.
In a preferred embodiment, all selectable parameters of the rocket engine analysis model are obtained from the calculation program, and the user needs to select the parameters to be analyzed from all the parameters.
In a specific embodiment, after parameter selection is completed, a variation range of the input parameter needs to be set, and the setting content includes a minimum value of variation, a maximum value of variation, and a variation step length, and a variation percentage of the parameter can also be directly set, so that the interference factor analysis tool obtains a variation matrix of the input parameter according to the setting content. And respectively setting the values in the change matrix into a calculation program for batch calculation when parallel calculation is carried out.
In step S203, a plurality of calculation programs are started according to the parameter change matrix of the preset input parameter, and parallel calculation is performed. It can be understood that after the setting of the parameters is completed, the interference factor analysis tool obtains the variation matrix of the input parameters according to the setting content, the parallel computation module respectively sets the values in the variation matrix into the computation programs, and starts the multiple computation programs to perform parallel computation.
In a specific embodiment, when a change matrix of an input parameter is obtained, the parallel computing module needs to start a corresponding number of computing programs according to the number of variables in the change matrix, set values in the change matrix into the computing programs, and perform simulation solution.
After the parallel computation is completed in step S204, a result visualization module may be used to analyze the result. And after the parallel computation is finished, the result visualization module obtains a computation result by reading an output parameter result in the computation program, and the computation result is visually presented through a curve graph and a histogram.
In one embodiment, the trend of the output parameter can be viewed through a curve.
In a preferred embodiment, the percentage of change in the output parameter is also viewed through the histogram.
Preferably, in this embodiment, the building of the static simulation model of the engine by using the Modelica model includes: and constructing the static simulation model of the engine by graphical modeling and text modeling.
Preferably, in this embodiment, the building of the static engine simulation model by the modeica model and the compiling of the static engine simulation model into the computer program in the modeica modeling environment includes: solving the static characteristics of the engine by using a model constructed by using a Modelica language in a Modelica modeling environment, wherein the static simulation model of the engine comprises a static simulation model of a rocket engine, and the static simulation model of the rocket engine comprises the following steps: the engine static calculation method comprises the steps of obtaining an engine static calculation model by using component static characteristic models of a pump, a turbine, a regulator and a pipeline, thermal models of a thrust chamber and a generator, and connecting the models of a plurality of components by using preset flow balance, preset power balance and preset pressure balance relations.
In specific implementation, the method for analyzing the interference factors of the rocket engine based on batch simulation,
firstly, building a rocket engine static simulation model in a Modelica modeling environment to build a solvable rocket engine static simulation model. The Modelicam model is compiled into a calculation program, after the static simulation model of the rocket engine is constructed, the Modelica model is compiled into the calculation program in a Modelica modeling environment, and the calculation program is an exe program capable of running and solving.
After the calculation program is generated, the calculation program needs to be input into an interference factor analysis tool, and in the interference factor analysis tool, a parameter selection module is used for selecting parameters needing to be analyzed. All selectable parameters in the rocket engine analysis model are obtained from the calculation program, and a user needs to select parameters needing analysis from all the parameters. Where it is desirable to select input, output parameters, input parameters may include combustion chamber efficiency, nozzle efficiency, pressure relief valve outlet pressure, engine throat assembly, etc., and output parameters may include engine thrust, engine chamber pressure, etc.
Preferably, in this embodiment, the building of the static engine simulation model by the modeica model and the compiling of the static engine simulation model into the computer program in the modeica modeling environment includes: in a Modelica modeling environment, an executable calculation program generated by compiling a rocket engine static simulation model is independently operated based on the program, so that all settable parameters of the model can be obtained and set, and a calculation result after the model is operated can be obtained.
As a preference in this embodiment, the setting of the variation range of the preset input parameter includes: setting the variation range of the input parameters, and setting the variation range of the input parameters after the selection of the input parameters is completed, wherein the set content at least comprises one of the following contents: minimum value of change, maximum value of change, step size of change, percentage of change of input parameter.
In specific implementation, after parameter selection is completed, the variation range of the input parameters needs to be set, the setting content comprises the minimum value of variation, the maximum value of variation and the variation step length, the variation percentage of the parameters can also be directly set, and the variation matrix of the input parameters is obtained through an interference factor analysis tool according to the setting content. And respectively setting the values in the change matrix into a calculation program for batch calculation when parallel calculation is carried out.
As a preferable example in this embodiment, the starting multiple computation programs according to the parameter change matrix of the preset input parameter to perform parallel computation includes: starting a corresponding number of calculation programs according to the number of variables in the change matrix of the input parameters and setting values in the change matrix into the calculation programs; and calling a calculation program in batch according to the set parameter change range for calculation, and performing batch simulation.
As a preferable preference in this embodiment, the analyzing a preset input parameter in the tool according to a preset interference factor includes: loading the calculation program through the preset interference factor analysis tool based on the generation result of the calculation program; all parameters which can be set in the rocket engine static simulation model are obtained to obtain input parameters and output parameters to be analyzed, and the input parameter variation range is set.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present application, there is also provided a parallel computing-based engine disturbance factor analysis apparatus for implementing the above method, as shown in fig. 3, the apparatus including:
the simulation module 301 is used for constructing an engine static simulation model through a Modelica model and compiling the engine static simulation model into a calculation program in a Modelica modeling environment;
a compiling module 302, configured to set a variation range of a preset input parameter according to the preset input parameter in a preset interference factor analysis tool, and obtain a parameter variation matrix of the preset input parameter;
the parallel computing module 303 is configured to start a plurality of computing programs according to the parameter change matrix of the preset input parameter, and perform parallel computing;
and the visualization module 304 is used for performing visualization result analysis after parallel computing is completed.
In the simulation module 301 according to the embodiment of the present application, an engine static simulation model is constructed through a modeica model, and the engine static simulation model is compiled into a calculation program in a modeica modeling environment. Facilitating subsequent computational use.
In one embodiment, after the rocket engine static simulation model is constructed, the rocket engine static simulation model needs to be compiled into a computer program in a Modelica modeling environment, and the computer program is an exe program capable of running and solving.
In a preferred embodiment, the rocket engine static simulation model is built in a Modelica modeling environment, and the solvable rocket engine static simulation model is built.
The compiling module 302 according to the embodiment of the present application presets input parameters in a preset interference factor analysis tool. That is, after the calculation program is generated, it needs to be input to an interference factor analysis tool, and in the interference factor analysis tool, a parameter selection module is used to select a parameter to be analyzed.
In one embodiment, input and output parameters are selected according to preset input parameters in the preset interference factor analysis tool, wherein the input parameters can include combustion chamber efficiency, nozzle efficiency, pressure reducing valve outlet pressure, engine throat assembly and the like, and the output parameters can include engine thrust, engine chamber pressure and the like.
In a preferred embodiment, all selectable parameters of the rocket engine analysis model are obtained from the calculation program, and the user needs to select the parameters to be analyzed from all the parameters.
In a specific embodiment, after parameter selection is completed, a variation range of the input parameter needs to be set, and the setting content includes a minimum value of variation, a maximum value of variation, and a variation step length, and a variation percentage of the parameter can also be directly set, so that the interference factor analysis tool obtains a variation matrix of the input parameter according to the setting content. And respectively setting the values in the change matrix into a calculation program for batch calculation when parallel calculation is carried out.
In the parallel computing module 303 of the embodiment of the present application, a plurality of computing programs are started according to the parameter change matrix of the preset input parameter, so as to perform parallel computing. It can be understood that after the setting of the parameters is completed, the interference factor analysis tool obtains the variation matrix of the input parameters according to the setting content, the parallel computation module respectively sets the values in the variation matrix into the computation programs, and starts the multiple computation programs to perform parallel computation.
In a specific embodiment, when a change matrix of an input parameter is obtained, the parallel computing module needs to start a corresponding number of computing programs according to the number of variables in the change matrix, set values in the change matrix into the computing programs, and perform simulation solution.
After the parallel computation is completed in the visualization module 304 of the embodiment of the application, a result visualization module may be used to perform result analysis. And after the parallel computation is finished, the result visualization module obtains a computation result by reading an output parameter result in the computation program, and the computation result is visually presented through a curve graph and a histogram.
In one embodiment, the trend of the output parameter can be viewed through a curve.
In a preferred embodiment, the percentage of change in the output parameter is also viewed through the histogram.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
In order to better understand the flow of the engine disturbance factor analysis method based on parallel computing, the following explains the technical solutions with reference to preferred embodiments, but is not intended to limit the technical solutions of the embodiments of the present invention.
The engine interference factor analysis method based on parallel computing in the embodiment of the application uses Modelica language to construct a rocket engine static model, and has universality for supporting the construction of different types of rocket engines. The modeling method based on the Modelica language is a graphical language, and the rocket engine construction process is simpler through a graphical modeling mode. The method solves the problem of large calculation amount of the nonlinear analysis method by using parallel calculation, and also provides computer drawing to enable the visualized presentation of the analysis result to be more intuitive. The interference factor analysis of the rocket engine becomes convenient and fast.
As shown in fig. 4, the flowchart of the engine disturbance factor analysis method based on parallel computing in the embodiment of the present application is shown, and the method specifically includes the following steps:
step S401 starts.
And S402, constructing a rocket engine static simulation model.
A static simulation model is built by using a Modelica model, and the rocket engine static simulation model is built in a Modelica modeling environment to build a solvable rocket engine static simulation model.
And step S403, compiling and solving.
The Modelicam model is compiled into a calculation program, after the static simulation model of the rocket engine is constructed, the Modelica model is compiled into the calculation program in a Modelica modeling environment, and the calculation program is an exe program capable of running and solving.
In step S404, a program is calculated.
In step S405, all selectable parameters are acquired.
And selecting the variation parameters, inputting the variation parameters into an interference factor analysis tool after the calculation program is generated, and selecting the parameters to be analyzed by using a parameter selection module in the interference factor analysis tool. All selectable parameters in the rocket engine analysis model are obtained from the calculation program, and a user needs to select parameters needing analysis from all the parameters. Where it is desirable to select input, output parameters, input parameters may include combustion chamber efficiency, nozzle efficiency, pressure relief valve outlet pressure, engine throat assembly, etc., and output parameters may include engine thrust, engine chamber pressure, etc.
In step S406, the input/output parameter is selected.
In step S407, the variation range of the input parameter is set.
And setting a parameter change range, wherein the change range of the input parameters needs to be set after parameter selection is completed, the setting content comprises a minimum value of change, a maximum value of change and a change step length, and the change percentage of the parameters can also be directly set, so that the interference factor analysis tool obtains a change matrix of the input parameters according to the setting content. And respectively setting the values in the change matrix into a calculation program for batch calculation when parallel calculation is carried out.
In step S408, a plurality of calculation programs are started.
And step S409, parallel computing.
After the parameters are set, the interference factor analysis tool obtains a change matrix of the input parameters according to the set contents, the parallel computation module respectively sets values in the change matrix into computation programs, and the multiple computation programs are started to perform parallel computation.
Step S410, obtaining the calculation result of the output parameter.
In step S411, a graph and a histogram are plotted.
After the parallel computation is completed, a result visualization module can be used for result analysis. The module can check the variation trend of the output parameters through the curve and can also check the variation percentage of the output parameters through the histogram. And after the parallel computation is finished, the result visualization module obtains a computation result by reading an output parameter result in the computation program, and the computation result is visually presented through a curve graph and a histogram.
Step S412, end.
The steps can include the following modules:
the modeling method comprises the steps that a Modelica modeling environment is used for building a rocket engine static simulation model, and users can build the rocket engine static simulation model in a graphical modeling and text modeling mode.
The rocket engine static simulation model is obtained by connecting component models in a liquid rocket engine static characteristic model library by using a preset flow balance, preset power balance and preset pressure balance relation.
The static characteristics of the rocket engine can be solved by using a model constructed by using a Modelica language in a Modelica modeling environment. The liquid rocket engine static characteristic model library is composed of a pump, a turbine, a regulator, a pipeline static characteristic model, a thrust chamber and a generator thermal model, and the engine static simulation model is obtained by connecting component models in the liquid rocket engine static characteristic model library by using a preset flow balance, a preset power balance and a preset pressure balance relation.
And the computer program module is used for compiling the rocket engine static simulation model into an executable computer program in the Modelica modeling environment. The program can be independently operated, all settable parameters of the model can be obtained and set, and a calculation result after the model is operated can be obtained.
The analysis tool for the interference factors comprises a parameter selection module, an input parameter variation range setting module, a parallel calculation module and a result visualization analysis module, and the analysis tool for the interference factors of the rocket engine can be used for analyzing the interference factors of the rocket engine.
And the parameter selection module is used for loading the calculation program by the interference factor analysis tool after the generation of the calculation program is finished, acquiring all parameters which can be set in the rocket engine static simulation model through the parameter selection module, and selecting input and output parameters to be analyzed from all the parameters by a user to set the variation range of the input parameters.
The input parameter variation range setting module is used for setting the variation range of the input parameters, after the input parameter selection is completed, the variation range of the input parameters needs to be set, the setting content comprises the minimum value of variation, the maximum value of variation and the variation step length, and the variation percentage of the input parameters can also be directly set, so that the interference factor analysis tool obtains the variation matrix of the input parameters according to the setting content.
And the parallel computation module calls a computation program in batch to perform computation according to the set parameter change range, and performs batch simulation. After the change matrix of the input parameters is obtained, the parallel computing module needs to start the corresponding number of computing programs according to the number of variables in the change matrix, set the values in the change matrix into the computing programs, and perform simulation solution.
And the result visualization analysis module provides visualization analysis for the output parameters and comprises a curve graph and a histogram analysis tool. And after the parallel computation is finished, the result visualization module obtains an output parameter computation result by reading an output result in the computation program, and the output parameter computation result is visually presented through a curve graph and a histogram.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. An engine interference factor analysis method based on parallel computing is characterized by comprising the following steps:
constructing an engine static simulation model through a Modelica model, and compiling the engine static simulation model into a calculation program in a Modelica modeling environment;
according to preset input parameters in a preset interference factor analysis tool, setting the variation range of the preset input parameters at the same time, and obtaining a parameter variation matrix of the preset input parameters;
starting a plurality of calculation programs according to the parameter change matrix of the preset input parameters to perform parallel calculation;
and after the parallel computation is completed, carrying out visual result analysis.
2. The method of claim 1, wherein the constructing an engine static simulation model from a Modelica model comprises:
and constructing the static simulation model of the engine by graphical modeling and text modeling.
3. The method of claim 2, wherein said building an engine static simulation model from a Modelica model and compiling said engine static simulation model into a computer program in a Modelica modeling environment comprises:
solving the static characteristics of the engine by using a model constructed by a Modelica language in a Modelica modeling environment, wherein the static simulation model of the engine is obtained by connecting component models in a static characteristic model library of the liquid rocket engine by using a preset flow balance, a preset power balance and a preset pressure balance relation; the liquid rocket engine static characteristic model library consists of a pump, a turbine, a regulator, a pipeline static characteristic model, a thrust chamber and a generator thermal model.
4. The method of claim 1, wherein said building an engine static simulation model from a Modelica model and compiling said engine static simulation model into a computer program in a Modelica modeling environment comprises:
and compiling the rocket engine static simulation model in a Modelica modeling environment to generate an operable calculation program, and based on the independent operation of the program, acquiring all settable parameters of the model, setting the settable parameters and acquiring a calculation result after the model operates.
5. The method of claim 1, wherein the setting of the variation range of the preset input parameter comprises:
setting the variation range of the input parameters, and setting the variation range of the input parameters after the selection of the input parameters is completed, wherein the set content at least comprises one of the following contents: minimum value of change, maximum value of change, step size of change, percentage of change of input parameter.
6. The method according to claim 1, wherein the starting of a plurality of computing programs according to the parameter variation matrix of the preset input parameters for parallel computing comprises:
starting a corresponding number of calculation programs according to the number of variables in the change matrix of the input parameters and setting values in the change matrix into the calculation programs;
and calling a calculation program in batch according to the set parameter change range to perform parallel calculation and perform batch simulation.
7. The method of claim 1, wherein analyzing the preset input parameters of the tool according to the preset interference factors comprises:
loading the calculation program through the preset interference factor analysis tool based on the generation result of the calculation program;
all parameters which can be set in the rocket engine static simulation model are obtained to obtain input parameters and output parameters to be analyzed, and the input parameter variation range is set.
8. An engine disturbance factor analysis device based on parallel computing is characterized by comprising:
the simulation module is used for constructing an engine static simulation model through a Modelica model and compiling the engine static simulation model into a calculation program in a Modelica modeling environment;
the compiling module is used for setting a variation range of the preset input parameter according to the preset input parameter in a preset interference factor analysis tool to obtain a parameter variation matrix of the preset input parameter;
the parallel computing module is used for starting a plurality of computing programs according to the parameter change matrix of the preset input parameters to perform parallel computing;
and the visualization module is used for performing visualization result analysis after parallel computation is completed.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111446854.9A CN114117640A (en) | 2021-11-30 | 2021-11-30 | Engine interference factor analysis method and device based on parallel computing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111446854.9A CN114117640A (en) | 2021-11-30 | 2021-11-30 | Engine interference factor analysis method and device based on parallel computing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114117640A true CN114117640A (en) | 2022-03-01 |
Family
ID=80368750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111446854.9A Pending CN114117640A (en) | 2021-11-30 | 2021-11-30 | Engine interference factor analysis method and device based on parallel computing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114117640A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117435308A (en) * | 2023-11-17 | 2024-01-23 | 上海烜翊科技有限公司 | Modelica model simulation method and system based on parallel computing algorithm |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314539A (en) * | 2011-09-23 | 2012-01-11 | 上海交通大学 | Modelica language-based method for designing simulation system for concrete pump truck |
US10592622B1 (en) * | 2014-10-24 | 2020-03-17 | United States Of America As Represented By The Administrator Of National Aeronautics And Space Administration | Assessment of conservatism level in an aircraft turbine engine design |
-
2021
- 2021-11-30 CN CN202111446854.9A patent/CN114117640A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314539A (en) * | 2011-09-23 | 2012-01-11 | 上海交通大学 | Modelica language-based method for designing simulation system for concrete pump truck |
US10592622B1 (en) * | 2014-10-24 | 2020-03-17 | United States Of America As Represented By The Administrator Of National Aeronautics And Space Administration | Assessment of conservatism level in an aircraft turbine engine design |
Non-Patent Citations (2)
Title |
---|
YUHUI LIU 等: "Modelica-Based Modeling and Application Framework on the Hybrid Electric Vehicles", 《PROCEEDINGS OF THE 13TH INTERNATIONAL MODELICA CONFERENCE》, 6 March 2019 (2019-03-06), pages 827 - 832 * |
杨世文 等: "基于Modelica语言的面向对象的发动机建模与仿真", 《车用发动机》, no. 2, 30 April 2004 (2004-04-30), pages 39 - 42 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117435308A (en) * | 2023-11-17 | 2024-01-23 | 上海烜翊科技有限公司 | Modelica model simulation method and system based on parallel computing algorithm |
CN117435308B (en) * | 2023-11-17 | 2024-05-17 | 上海烜翊科技有限公司 | Modelica model simulation method and system based on parallel computing algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8046739B2 (en) | System and method for enabling a graphical program to propagate attributes of inputs and outputs of blocks | |
US20180347498A1 (en) | Systems and methods for rescaling executable simulation models | |
CN106325066A (en) | Control parameter optimizing system and operation control optimizing apparatus equipped therewith | |
CN111831276A (en) | Software visualization rapid development system | |
CN114117640A (en) | Engine interference factor analysis method and device based on parallel computing | |
CN108663948A (en) | A kind of design method of aeroengine control system Numerical Simulation Analysis platform | |
CN102184294B (en) | Turbine aerodynamics performance virtual testing system and method for small turbine engine | |
US11409923B1 (en) | Systems and methods for generating reduced order models | |
CN108416149A (en) | The real-time formative method of 3 d part unrelated CAD, terminal and storage medium | |
CN104239639A (en) | Method for simplifying parameter modification of topological optimization model of transmission shell | |
CN118381045A (en) | Power distribution network system model order reduction method and device, storage medium and computer equipment | |
CN102279900A (en) | Turbine virtual testing system for small turbine engine | |
CN108170963A (en) | The automation computational methods and device of solid-liquid rocket flight reappearance characteristic | |
US20130246998A1 (en) | Interactively Designing a Hardware Implementation of a Graphical Program | |
CN115016780A (en) | Device and method for automatically generating device view of PDK (product data base) base library through vcell and storage medium | |
CN113392436B (en) | CAE analysis software and office software integrated control method and platform | |
CN115130203A (en) | Flow field simulation method and device, nonvolatile storage medium and computer equipment | |
KR102515543B1 (en) | Vacuum system design display method and apparatus | |
CN114509957A (en) | Method, device and system for developing model of ionic electric propulsion system and storage medium | |
CN114594943A (en) | Data modeling method, device, equipment and storage medium | |
CN109558982B (en) | Method and device for predicting water intake of thermal power plant | |
CN113552983A (en) | Method for defining element pattern model of power grid monitoring system equipment by user-defined multi-state technology | |
CN113919880B (en) | Market operation deduction case comparison and analysis method, system, equipment and storage medium | |
JP4646375B2 (en) | Dynamic characteristic analysis system | |
Bhattacharjee | Kinetic model reduction using integer and semi-infinite programming |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |