Method for searching and calculating swinging moment of solid rocket engine nozzle
Technical Field
The invention relates to the technical field of solid rocket engine spray pipes, in particular to a method for searching and calculating the swing moment of a solid rocket engine spray pipe.
Background
In the swinging process of the solid rocket engine spray pipe, the moment of the spray pipe has important influence on the thrust vector control, is a main test item of a swinging test, and is an important index for representing the performance of the spray pipe. For the shaped solid rocket engine, various index parameters of the engine are quickly and accurately given after ground test, various performances of the spray pipe in the swinging process can be visually reflected, and data support is provided for success or failure of the test. Therefore, the method has important significance in realizing the search and calculation of the swinging moment of the solid rocket engine nozzle and the quick judgment of the maximum moment.
The thrust vector control system of the solid rocket engine is an actuating mechanism of a missile control system. The device is a mechanical power device which is used for controlling the swing angle of a spray pipe according to the instruction of a control system, changing the discharge direction of flame sprayed by an engine, generating lateral control moment, and controlling the stability and the flying posture of an aircraft so as to ensure that the aircraft flies according to a specified trajectory or flies as necessary. The swinging moment of the solid rocket engine nozzle is a key parameter for judging the stability and flight attitude of the aircraft, and is an important index for representing the performance of the nozzle.
At present, functional modules related to a method for searching and calculating the swinging moment of the spray pipe of the solid rocket engine do not exist, after each spray pipe swinging test, test data need to be firstly led out from a measurement and control system, and then the test data are calculated by adopting a traditional office software Excel input formula, and the Excel has the defects of incomplete display, low calculation speed and the like due to large data volume; secondly, the testers need to manually distinguish the data, a large amount of repetitive work can be done during the data distinguishing process, time and complexity are extremely wasted, errors are easy to occur, and the calculation process is not flexible enough; in addition, when test data are analyzed, an ignition starting signal needs to be found as a zero signal, due to the fact that no unified calculation standard exists, human uncertain factors are increased, consistency of data results is affected, curves cannot be drawn, the swing trend of the whole spray pipe cannot be intuitively reflected, and blind spots in design are caused. Therefore, aiming at solving the problems, the nozzle swinging moment searching and calculating function module is urgently needed to be introduced to make up for many defects in the traditional moment calculation, so that the test data processing efficiency is improved, the risk of errors in manual calculation is avoided, and the reliability of the test result is ensured.
The method comprises the steps of obtaining a test data, finding an ignition starting zero point, manually deleting data before ignition starting, manually dividing data of two quadrants, inputting a formula to calculate torque data, and finding out the maximum torque and the corresponding time by searching a replacement function. When the maximum torque of a certain time period is required to be screened for individual test models, the maximum torque and the corresponding time are found out by utilizing a search and replacement function after a time starting point and a time ending point are manually selected. The method is low in efficiency and easy to make mistakes, meanwhile, due to the difference of designers, inconsistency of test results can be caused for time zero definition without unified standards, a plurality of uncertain factors are increased, and the reliability of the test results is reduced.
Disclosure of Invention
Technical problem to be solved by the invention
The invention provides a method for searching and calculating the swinging moment of a solid rocket engine nozzle, which aims to overcome the defects of long data processing period, low efficiency, many artificial uncertain factors, low test reliability and the like caused by the traditional method for calculating the swinging moment of the solid rocket engine nozzle.
Technical scheme adopted by the invention for solving technical problem
A method for searching and calculating the swinging moment of a solid rocket engine nozzle comprises the following specific steps:
1) the method comprises the steps of (1) rapidly extracting a heterogeneous data characteristic signal, opening a target file to read a header, separating meanings represented by the header in a space form, obtaining the number of text columns in a counting mode, searching data contents contained in the target file through database comparison, and storing the data file in columns in a self-defined mode for subsequent calculation and calling;
2) the ignition starting signal is quickly searched, the measurement and control system starts collecting signals when the system is started, and signal collection is stopped until ignition is finished, so that the data file not only contains the data of the swinging of the spray pipe in the ignition time, but also contains the data before the system stops collecting signals before ignition and after ignition, and the ignition starting signal is quickly and accurately searched, and useless data are discarded;
3) the method comprises the steps of quickly judging the maximum moment of swinging of the spray pipe, calling a stored data file through a quick extraction technology of heterogeneous data characteristic signals, substituting useful data according to an edited calculation formula to calculate the moment of each point for storage, defining the maximum moment to be a minimum value in advance, comparing the maximum value with the moment value of each point, replacing the maximum moment value with the moment value of the point when the moment value of the point is larger than the maximum moment value, repeating the steps until all data are compared to obtain the maximum moment value, storing the time value corresponding to the maximum moment value, and finding out the maximum moment and the corresponding time;
4) and drawing a curve, wherein the trends of the command signal, the feedback signal, the swing angle signal and the moment signal can be intuitively reflected through drawing the curve, the left mouse button is supported to drag a target area for amplification, the maximum value and the corresponding time of the area are found, and designers and data processing personnel can conveniently perform further data analysis.
Furthermore, the design of a filtering module is added in the step 4), the number of filtering points is freely input, and the filtered curve and the original curve are superposed and visually displayed, so that a reference basis is provided for further analysis and processing of data.
Advantageous effects obtained by the present invention
The method for searching and calculating the swinging moment of the solid rocket engine nozzle can replace the traditional moment calculation mode, realize quick judgment of the maximum moment, improve the processing efficiency of test data, avoid the risk of errors caused by manual calculation, ensure the reliability of the test result, greatly shorten the processing period of the test result and provide accurate data and reliable basis for control systems and engine nozzle designers. The swing curve of the spray pipe is visually reflected, blind spots in calculation are eliminated, and visualization and standardization of test data are achieved.
Drawings
FIG. 1: calculating a flow chart of the swinging moment of the spray pipe;
FIG. 2: a file opening interface diagram;
FIG. 3: a certain model moment calculation interface diagram;
FIG. 4: drawing a curve interface diagram;
FIG. 5: and calculating an interface diagram of the swing angle.
Detailed Description
Aiming at the defects of long data processing period, low efficiency, many artificial uncertain factors, low test reliability and the like of the existing search and calculation of the swinging moment of the solid rocket engine spray pipe, the invention provides the search and calculation method of the swinging moment of the solid rocket engine spray pipe with high efficiency and reliability.
1. Rapid extraction technology of heterogeneous data characteristic signals
The control instruction sent by the measurement and control system and the acquired data are stored in a text data format, and the significances of data representation are distinguished through a header. How to acquire the header and identify is therefore a critical step in the overall data processing. The method comprises the steps of firstly opening a target file to read a header, separating the meanings represented by the header in a space mode, obtaining the number of text columns in a counting mode, searching data contents contained in the target file through database comparison, and storing the data file in columns in a self-defined mode for later calculation and calling.
2. Rapid look-up of ignition initiation signal
When the system is started, the measurement and control system starts to collect signals until the signal collection is stopped after ignition is finished, so that the data file not only contains the data of the swinging of the spray pipe in the ignition time, but also contains the data before the system stops collecting signals before ignition and after ignition, and therefore, the ignition starting signal is quickly and accurately searched, and the important importance of discarding useless data is achieved. The ignition starting signal is actually a square wave signal, the theoretical upper wave signal is a step value, such as 0 → 5, the ignition signal can be 0.53.24.8 due to interference and other external factors during actual acquisition, the maximum value of the ignition starting signal is found in the method, each data value is compared with 90% of the maximum value, and the point before the point is considered as the ignition starting point until the first value is greater than 90% of the maximum value. For example, the ignition signal may be 0.53.24.8, and assuming a maximum value of 5.2, 90% of the maximum value is 4.68, and since 4.8 is greater than 4.68, the time value corresponding to the previous point 3.2 of 4.8 is considered as the ignition start time.
3. Fast judgment of maximum moment of spray pipe swinging
The stored data file is called through a quick extraction technology of heterogeneous data characteristic signals, useful data are brought according to an edited calculation formula to calculate the moment of each point for storage, the maximum moment is defined to be a minimum value in advance, the maximum moment is compared with the moment value of each point, when the moment value of a certain point is larger than the maximum moment value, the maximum moment value is replaced by the moment value of the point, and the like, until all data are compared, the maximum moment value is obtained, meanwhile, the time value corresponding to the maximum moment value is stored, and at the moment, the maximum moment and the corresponding time are found out.
For some setting tests, the maximum torque is selected not in the whole time period but in a certain time period, so that the selection of the starting time and the end time is added in the method, and the maximum torque value and the corresponding time can be obtained in any selected time period.
In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is obvious that the described embodiments are only some, not all embodiments of the proposed solution. 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 invention.
1. Reading data, opening a file to read the original data needing to be processed. The thrust vector control system controls the swing angle of the spray pipe according to the instruction to generate a control moment, so that the attitude of the aircraft is changed. The test data thus includes control signals, feedback signals, swing angle signals and differential pressure signals. The differential pressure signal is a key index reflecting the magnitude of the torque, so the differential pressure signal needs to be extracted for calculation.
2. And (3) torque calculation, wherein torque calculation formulas of engines of different models are different, so that the torque calculation formula of each model is already solidified in a menu list, the maximum torque and the corresponding time can be displayed by only selecting the corresponding model and clicking calculation, the maximum torque quick judgment is realized, and original-and calculated-data files are generated at the same time. The 'original-' data file comprises all original data lists starting from an ignition starting signal, and the 'calculated-' data file comprises instruction signal data, feedback signal data and calculated moment signal data, and all processed data can be obtained by clicking 'swing angle calculation' in a menu bar if swing angle signal data is needed.
3. And drawing a curve, wherein the trends of the command signal, the feedback signal, the swing angle signal and the moment signal can be intuitively reflected through drawing the curve, and meanwhile, the left mouse button can be supported to drag a target area to be amplified, the maximum value and the corresponding time of the area can be found, and further data analysis can be conveniently carried out by designers and data processing personnel. In addition, the design of a filtering module is added, the number of filtering points can be freely input, and a filtered curve and an original curve are superposed and visually displayed, so that a reference basis can be provided for further analysis and processing of data.
According to the steps, the swing moment of the spray pipe of an engine of a certain model is calculated, a specific flow chart is shown in figure 1, and the interface of key parts of software is shown in figures 2-5.
The test data for the same engine type was analyzed using conventional methods and the present method for the processing cycles shown in table 1. According to the method shown in the table 1, on the basis of ensuring the accuracy of the test result, the test data processing period is greatly shortened.
TABLE 1 comparison of data processing cycles between the conventional method and the present method
Treatment cycle
|
By conventional means
|
Method for producing a composite material
|
Consistency of results
|
Fast critical data processing cycle
|
0.5 hour
|
0.025 hours
|
Uniformity
|
Test data processing cycle
|
3.2 hours
|
0.5 hour
|
Uniformity |
The invention mainly aims at the problems of the existing method for calculating the swinging moment of the nozzle of the solid rocket engine, and provides the method for searching and calculating the swinging moment of the nozzle of the solid rocket engine, which greatly shortens the processing period of the test result, avoids the artificial uncertain factors, visually reflects the swinging curve of the nozzle, eliminates the blind points in calculation, realizes the visualization and normalization of the test data, and has the following main technical indexes:
1. the automatic calculation of the swinging moment of the spray pipe is realized, and the maximum moment and time are automatically searched.
2. And the function of drawing a curve is realized, and the curve is arbitrarily enlarged and reduced.
3. The fast-judging data processing period is shortened by 95%.
4. The processing period of the test data is shortened by 94 percent.
5. The accuracy rate of the test result is more than 98%.