Simulation task execution method and device, medium and equipment
By obtaining the pneumatic database file matching the pneumatic simulation model in the pneumatic simulation system, the correspondence between parameter item names and parameter values is established, and the data sharing problem caused by inconsistent parameter item names in the existing technology is solved, which improves the execution efficiency of simulation tasks.
Patent Information
- Application Number
- CN202510335571.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-03-20
AI Technical Summary
In the prior art, due to inconsistent parameter names, it is difficult to achieve data sharing in aerodynamic databases, which affects the efficiency of aircraft aerodynamic performance analysis and simulation tasks.
By obtaining the pneumatic database file matching the pneumatic simulation model, generating and matching the parameter item names under each parameter category, establishing the correspondence between the parameter item names and parameter values, and achieving the data mapping and smooth call of the parameter values between the pneumatic simulation system and the pneumatic database.
The data sharing problem caused by inconsistent parameter item names is solved, the execution efficiency of simulation tasks is improved, and the adaptation time between the pneumatic database and the simulation system is reduced.
Smart Images

Figure CN119849385A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a simulation task execution method, device, medium and equipment. Background Art
[0002] In the field of aircraft design, aerodynamic data is used to determine the aerodynamic forces and moments of an aircraft during flight, such as lift and drag, to analyze the aerodynamic performance of the aircraft and predict problems with aircraft controllability and stability. Aerodynamic data is also the key to flight dynamics simulation. Using aerodynamic data obtained by each test platform in its own test environment (such as a wind tunnel), an aerodynamic simulation mathematical model of the aircraft can be constructed to obtain more realistic simulation results.
[0003] At present, each test platform often maintains its own aerodynamic database. Although these aerodynamic databases contain the same or similar parameter types (such as lift parameters, drag parameters, etc.), the names of specific simulation parameter items are named by themselves. For example, the lift parameter items in test platform A are: A1, A2, A3..., while the lift parameter items in test platform B are: B1, B2, B3... As a result, due to the inconsistency of parameter item names, it is difficult for current aerodynamic databases to achieve data sharing. Summary of the invention
[0004] The embodiments of the present application provide a simulation task execution method, apparatus, medium and device to partially solve the above-mentioned problems existing in the prior art.
[0005] This application adopts the following technical solutions: The embodiment of the present application provides a simulation task execution method, which is applied to a preset pneumatic simulation system, including: Acquire at least one pneumatic database file that matches the model parameters of the pneumatic simulation model; Generate the names of the various simulation parameter items under the preset parameter categories under the pneumatic simulation system; Matching each parameter class identified from the at least one pneumatic database file with each parameter class generated by the pneumatic simulation system to obtain a matching result; According to the matching result, a correspondence relationship between the names of the parameter items and the addresses of the parameter values under the parameter classes contained in the at least one pneumatic database file in the at least one pneumatic database file is established; When receiving the simulation instruction, reading parameter values required for executing the simulation task from the at least one pneumatic database file according to the corresponding relationship; According to the read parameter values, a simulation task for the pneumatic simulation model is executed.
[0006] Optionally, executing a simulation task for the pneumatic simulation model according to the read parameter value specifically includes: For some simulation parameter items required for executing the simulation task, determining the simulation parameter items required for generating parameter values of the some simulation parameter items as associated parameter items corresponding to the some simulation parameter items; Determine the parameter value corresponding to the associated parameter item from the read parameter values; Calculating the parameter values of the partial simulation parameter items by interpolation according to the parameter values corresponding to the associated parameter items; The simulation task is performed according to the read parameter values and the parameter values calculated by interpolation.
[0007] Optionally, executing the simulation task according to the read parameter value and the parameter value calculated by interpolation specifically includes: A parameter value table is constructed and cached according to the read parameter values and the parameter values calculated by interpolation, so as to execute the simulation task according to the cached parameter value table.
[0008] Optionally, executing a simulation task for the simulation model according to the read parameter value specifically includes: Determining an aerodynamic configuration of the aerodynamic simulation model as a target aerodynamic configuration; According to the preset applicable relationship between each aerodynamic configuration and each simulation parameter item, determining a parameter value applicable to the target aerodynamic configuration from the read parameter values as a first parameter value; According to the first parameter value, a simulation task of the aerodynamic simulation model is performed under the target aerodynamic configuration.
[0009] Optionally, executing a simulation task for the simulation model according to the read parameter value specifically includes: Determining the pneumatic state of the pneumatic simulation model; According to the preset applicable relationship between each pneumatic state and each simulation parameter item, determining a parameter value applicable to the pneumatic state from the read parameter values as a second parameter value; A simulation task for the pneumatic simulation model in the pneumatic state is executed according to the second parameter value.
[0010] Optionally, the aerodynamic simulation model includes: a simulated aircraft model, and the simulation parameter items include: an aerodynamic parameter item and an aerodynamic parameter efficiency item.
[0011] The embodiment of the present application provides a simulation task execution device, which is applied to a preset power simulation system, including: An acquisition module, used to acquire at least one pneumatic database file matching the model parameters of the power simulation model; A generation module, used to generate the names of the various simulation parameter items under each preset parameter class under the power simulation system; A matching module, used for matching each parameter class identified from the at least one pneumatic database file with each parameter class generated by the power simulation system to obtain a matching result; A construction module, configured to construct, according to the matching result, a correspondence between the names of the parameter items and addresses of the parameter values under the parameter classes contained in the at least one pneumatic database file in the at least one pneumatic database file; A reading module, configured to read parameter values required for executing a simulation task from the database file according to the corresponding relationship when receiving a simulation instruction; The execution module is used to execute the simulation task for the power simulation model according to the read parameter values.
[0012] Optionally, the execution module is specifically used to determine, for some simulation parameter items required to execute the simulation task, simulation parameter items required to generate parameter values of the some simulation parameter items as associated parameter items corresponding to the some simulation parameter items; determine parameter values corresponding to the associated parameter items from the read parameter values; calculate parameter values of the some simulation parameter items by interpolation according to the parameter values corresponding to the associated parameter items; and execute the simulation task according to the read parameter values and the parameter values calculated by interpolation.
[0013] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned simulation task execution method is implemented.
[0014] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned simulation task method when executing the program.
[0015] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: The simulation task execution method provided in the embodiment of the present application first obtains at least one pneumatic database file that matches the model parameters of the pneumatic simulation model, and generates the names of the parameter items of each simulation parameter item under each preset parameter class under the pneumatic simulation system, and then matches the parameter classes identified from the at least one pneumatic database file with the parameter classes generated by the pneumatic simulation system to obtain a matching result, and according to the matching result, constructs a correspondence between the names of the parameter items and the addresses of the parameter values under each parameter class contained in the at least one pneumatic database file in the at least one pneumatic database file, and when a simulation instruction is received, according to the correspondence, the parameter values required to execute the simulation task can be read from the at least one pneumatic database file, and then according to the read parameter values, the simulation task for the pneumatic simulation model is executed.
[0016] It can be seen from the above method that, before executing the simulation task, it is not necessary to forcibly synchronize the names of the various parameter items in the pneumatic simulation system with the pneumatic database file according to the unique parameter item naming method in the pneumatic database file, but it is only necessary to match the various parameter classes in the pneumatic simulation system with the various parameter classes in the pneumatic database file, and establish a corresponding relationship between the names of the various parameter items under the pneumatic simulation system and the addresses of the various parameter values under the various parameter classes in the pneumatic database, so that the required parameter values can be retrieved from the pneumatic database file based on this corresponding relationship during the execution of the simulation task. In other words, the present application does not focus on whether a specific parameter value in the pneumatic database file must correspond to a specific parameter item name under the pneumatic simulation system, but only needs to establish a corresponding relationship between the two, which can not only ensure the smooth calling of the parameter value during the execution of the simulation task, but also greatly save the time required for the adaptation between the pneumatic database file and the pneumatic simulation system before the execution of the simulation task, thereby further improving the efficiency of the execution of the simulation task. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A flowchart of a simulation task execution method provided in an embodiment of the present application; Figure 2 A schematic diagram of the pneumatic simulation model provided in an embodiment of the present application being affected by various forces in a simulation environment; Figure 3 A schematic diagram of a simulation task execution device provided in an embodiment of the present application; Figure 4 A method corresponding to the embodiment of the present application is provided Figure 1Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0019] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0020] Figure 1 A flowchart of a simulation task execution method provided in an embodiment of the present application includes the following steps: S101: Acquire at least one pneumatic database file that matches model parameters of a pneumatic simulation model.
[0021] In the embodiment of the present application, the user needs to perform the required simulation task in the preset pneumatic simulation system. The reason why it is called a pneumatic simulation system is that it is mainly used to simulate flight equipment such as aircraft, weather flight detectors, and spacecraft in a virtual simulation environment to obtain various pneumatic data. The pneumatic data obtained by executing the simulation task can achieve the purpose of designing and adjusting the aircraft, as well as verifying and testing the control program used in the aircraft.
[0022] Before executing the simulation task, the pneumatic database file needs to be adapted to the pneumatic simulation system. The so-called adaptation can be understood as pre-establishing the correspondence between the parameter values in the pneumatic database file and the parameter items in the pneumatic simulation system, so that the pneumatic simulation system can smoothly call various parameter values from the pneumatic database file during the execution of the simulation task.
[0023] Therefore, it is necessary to first obtain at least one pneumatic database file that matches the model parameters of the pneumatic simulation model, wherein the pneumatic simulation model is a simulated aircraft model, which refers to a virtual model of flight equipment such as an aircraft, a weather flight detector, and a spacecraft in a simulation environment, and the model parameters of the pneumatic simulation model are used to describe the shape, model, size, etc. of the pneumatic simulation model. The file format of the pneumatic database file is a file format that can be recognized by the pneumatic simulation system, such as dat, txt, etc.
[0024] In practical applications, different aerodynamic database files use different flight equipment. In other words, different aerodynamic database files are obtained by testing different flight equipment on different platforms (such as different wind tunnel platforms). Therefore, before performing a simulation task, it is necessary to first match the aerodynamic simulation model with the aerodynamic database file, that is, to select from a large number of aerodynamic database files an aerodynamic database file that can be used to perform simulation tasks for the aerodynamic simulation model.
[0025] To this end, in an embodiment of the present application, at least one pneumatic database file that matches the pneumatic simulation model can be searched from a large number of pneumatic database files based on the model parameters of the pneumatic simulation model. During the search process, the model parameters of the applicable pneumatic simulation model are recorded in the file description information of each pneumatic database file, so the corresponding pneumatic database file can be matched by model parameter matching.
[0026] The execution subject of the simulation task execution method provided in the embodiment of the present application can be a terminal device such as a desktop computer, a laptop computer, or a client installed in the terminal device, a pneumatic simulation system, or a server. For the sake of ease of description, the simulation task execution method provided in the embodiment of the present application is described below using the pneumatic simulation system as an example of the execution subject.
[0027] S102: Generate parameter item names for each simulation parameter item under each preset parameter category in the pneumatic simulation system.
[0028] A pneumatic simulation system for performing simulation tasks is deployed in the terminal device used by the user. Usually, each pneumatic simulation system has its own parameter item naming method. To this end, in an embodiment of the present application, after the terminal device runs the pneumatic simulation system, the pneumatic simulation system can generate the names of the parameter items under each preset parameter class under the pneumatic simulation system. Among them, the pneumatic simulation system can generate the names of the parameter items according to preset rules. For example, for each parameter class, the pneumatic simulation system uses the default parameter item name under the parameter class.
[0029] The parameter class mentioned above can refer to a set of parameter items, and different parameter items contained in a parameter class often correspond to different parameter values. Therefore, the parameter class is similar to the set of K in K-Value. Different Ks represent different parameter items, and different Values represent different parameter values. For example, the lift class is a parameter class. The parameter items of the lift class can include: A1, A2, A3..., and the actual lift coefficient values corresponding to A1, A2, A3 are the parameter values corresponding to the parameter items.
[0030] S103: Matching each parameter class identified from the at least one pneumatic database file with each parameter class generated by the pneumatic simulation system to obtain a matching result.
[0031] In practical applications, although the naming rules of parameter items under the same parameter class in different aerodynamic database files are different, the parameter classes of different aerodynamic database files are often expressed in the same way. For example, for different aerodynamic database files, the parameter class representing lift is called lift class.
[0032] Not only that, the pneumatic simulation system and each pneumatic database file often maintain consistency in the naming method of parameter classes. On this basis, the pneumatic simulation system can match each parameter class identified from at least one matched pneumatic database file with each parameter class generated by the pneumatic simulation system to obtain a matching result between the parameter classes.
[0033] This process is actually to align the parameter classes in the pneumatic simulation system with the parameter classes in the pneumatic database file according to the fields of the parameter class, in preparation for the subsequent establishment of the corresponding relationship between the parameter values in the pneumatic database and the parameter items under each parameter class in the pneumatic simulation system.
[0034] It should be noted that the description fields of the parameter classes in the pneumatic simulation system are not necessarily completely identical to the description fields of the parameter classes in the pneumatic database file, but the core fields that can identify the specific parameter classes are often the same. Therefore, the pneumatic simulation system can actually match the core fields corresponding to each parameter class in the pneumatic simulation system with the core fields corresponding to each parameter class in the pneumatic database file to obtain the above matching results. Among them, in the above example, the "lift class" is the core field corresponding to the lift parameter class.
[0035] S104: Constructing a correspondence between the names of the parameter items and addresses of the parameter values under the parameter classes contained in the at least one pneumatic database file in the at least one pneumatic database file according to the matching result.
[0036] Since a large amount of pneumatic data is needed to support the simulated motion of the pneumatic simulation model in the simulation environment during the execution of the simulation task, the parameter values contained in the pneumatic database file are often required.
[0037] On this basis, the pneumatic simulation system can construct a correspondence between each parameter item name and the address of each parameter value under each parameter class contained in the matched pneumatic database file in the pneumatic database file according to the above matching results.
[0038] In other words, after aligning the parameter class in the pneumatic simulation system with the parameter class in the pneumatic database file, the name of each parameter item under the parameter class in the pneumatic simulation system can be matched with the parameter value under the same parameter class in the pneumatic database file. In this process, there is no need to forcibly correspond the parameter value in the pneumatic database file to a parameter item under the same parameter class in the pneumatic simulation system. What is required is that any parameter item under the same parameter class in the pneumatic simulation system should not be repeated.
[0039] For example, assuming that for the lift class, the names of the various parameter items under the lift class in the aerodynamic database file are: A1, A2, A3..., and the names of the various parameter items generated by the aerodynamic simulation system for the lift class are: CA1, CA2, CA3... The aerodynamic simulation system can correspond the specific parameter value corresponding to A1 in the aerodynamic database file to CA1 in the aerodynamic simulation system, and can correspond the specific parameter value corresponding to A2 in the aerodynamic database file to CA2 in the aerodynamic simulation system, and so on. Of course, the aerodynamic simulation system can also correspond the specific parameter value corresponding to A1 in the aerodynamic database file to CA2 in the aerodynamic simulation system, and correspond the specific parameter value corresponding to A2 in the aerodynamic database file to CA1 in the aerodynamic simulation system.
[0040] It can be seen from the above examples that when aligning the parameter values in the pneumatic database file with the parameter items under the same parameter class in the pneumatic simulation system, it is not required to correspond the parameter values in the pneumatic database file to the parameter items under the same parameter class in the pneumatic simulation system in sequence, which greatly improves the preparation efficiency before the execution of the simulation task. There is no need to forcibly modify the parameter item names of each parameter class under the pneumatic simulation system to the parameter item names under each parameter class in the pneumatic database file due to inconsistency between the parameter item names under each parameter class in the pneumatic database file and the parameter item names under each parameter class in the pneumatic simulation system, which greatly saves resources.
[0041] It should be noted that, since the pneumatic simulation system can call the corresponding parameter values from the pneumatic database file during the execution of the simulation task, the above process does not need to forcibly assign the parameter values in the pneumatic database file to the parameter items of the same parameter class under the pneumatic simulation system in the form of assignment. It only needs to establish a corresponding relationship between the parameter items under the parameter class in the pneumatic simulation system and the addresses of the parameter values under the same parameter class in the pneumatic database file in the pneumatic database file.
[0042] S105: When receiving the simulation instruction, reading parameter values required for executing the simulation task from the at least one pneumatic database file according to the corresponding relationship.
[0043] After the above correspondence is established, the key preparations before the simulation task execution have been completed, and the user can execute the simulation task through the pneumatic simulation system running on the terminal device. When the pneumatic simulation system receives the simulation instruction, it can read the parameter values required to execute the simulation task from the deployed pneumatic database file according to the above correspondence established in advance.
[0044] In the present application, each simulation parameter item can be roughly divided into two categories, one is called aerodynamic parameter item, which specifically corresponds to lift coefficient, drag coefficient, side force coefficient, pitch moment coefficient, rolling moment coefficient, yaw moment coefficient, etc., and the other is called aerodynamic parameter efficiency item, which is mainly used to measure the conversion relationship between the parameter value of the parameter item in the simulation environment and the parameter value in the real environment. For example, assuming that in the aerodynamic simulation system, the parameter value of a lift coefficient parameter item is 0.5, the parameter value corresponding to the lift coefficient parameter efficiency item corresponding to the lift coefficient parameter item is 0.9, and the lift coefficient parameter item value displayed on the actual aircraft is 0.45.
[0045] In the embodiment of the present application, different aerodynamic parameter items correspond to their own aerodynamic parameter efficiency items. For example, the lift coefficient parameter item corresponds to the lift coefficient parameter item efficiency item, the drag coefficient parameter item corresponds to the drag coefficient parameter efficiency item, the pitch moment coefficient parameter item corresponds to the pitch moment coefficient parameter efficiency item, and the rolling moment coefficient parameter item corresponds to the rolling moment coefficient parameter efficiency item. Regardless of the type of parameter item, before executing the simulation task, the pneumatic simulation system has established a corresponding relationship between each parameter item and the parameter value of each parameter item in the pneumatic database file, as shown in Tables 1 to 6 below.
[0046] Table 1
[0047] Table 1 contains two correspondences, one is the correspondence between the name of the lift coefficient parameter item and the address of each parameter value of the lift coefficient parameter item in the aerodynamic database file in the aerodynamic database file, and the other is the correspondence between the name of the lift coefficient parameter efficiency item and the address of each parameter value of the lift coefficient parameter efficiency item in the aerodynamic database file in the aerodynamic database file. Table 1 is only expressed in simple text. In actual applications, the addresses in Table 1 should be the actual addresses of the parameter values in the aerodynamic database file.
[0048] Table 2
[0049] Table 2 contains two corresponding relationships, one is the corresponding relationship between the name of the drag coefficient parameter item and the address of each parameter value of the drag coefficient parameter item in the aerodynamic database file in the aerodynamic database file, and the other is the corresponding relationship between the name of the drag coefficient parameter efficiency item and the address of each parameter value of the drag coefficient parameter efficiency item in the aerodynamic database file in the aerodynamic database file.
[0050] Table 3
[0051] Table 3 contains two correspondences, one is the correspondence between the side force coefficient parameter item name and the address of each parameter value of the side force coefficient parameter item in the aerodynamic database file in the aerodynamic database file, and the other is the correspondence between the side force coefficient parameter efficiency item name and the address of each parameter value of the side force coefficient parameter efficiency item in the aerodynamic database file in the aerodynamic database file.
[0052] Table 4
[0053] Table 4 contains two correspondences, one is the correspondence between the pitch moment coefficient parameter item name and the address of each parameter value of the pitch moment coefficient parameter item in the aerodynamic database file in the aerodynamic database file, and the other is the correspondence between the pitch moment coefficient parameter efficiency item name and the address of each parameter value of the pitch moment coefficient parameter efficiency item in the aerodynamic database file in the aerodynamic database file.
[0054] Table 5
[0055] Table 5 contains two correspondences, one is the correspondence between the name of the yaw moment coefficient parameter item and the address of each parameter value of the yaw moment coefficient parameter item in the aerodynamic database file in the aerodynamic database file, and the other is the correspondence between the name of the yaw moment coefficient parameter efficiency item and the address of each parameter value of the yaw moment coefficient parameter efficiency item in the aerodynamic database file in the aerodynamic database file.
[0056] Table 6
[0057] Table 6 contains two correspondences, one is the correspondence between the roll moment coefficient parameter item name and the address of each parameter value of the roll moment coefficient parameter item in the pneumatic database file in the pneumatic database file, and the other is the correspondence between the roll moment coefficient parameter efficiency item name and the address of each parameter value of the roll moment coefficient parameter efficiency item in the pneumatic database file in the pneumatic database file.
[0058] The above Tables 1 to 6 only list some parameter items and parameter efficiency items. In actual applications, there are other parameter items and parameter efficiency items, which are not listed here one by one.
[0059] In addition, the simulation instructions received by the pneumatic simulation system may be instructions actively input by the user into the pneumatic simulation system through the terminal device used. Since the pneumatic simulation system may actually need to perform a series of simulation operations when performing a simulation task, the above-mentioned simulation instructions may also refer to instructions automatically generated by the pneumatic simulation system for a certain simulation operation when performing a simulation task, or instructions automatically called from an instruction set.
[0060] S106: Execute a simulation task for the pneumatic simulation model according to the read parameter values.
[0061] After the pneumatic simulation system reads the required parameter values from the pneumatic database file, it can execute the simulation task for the pneumatic simulation model. However, since the data in the pneumatic database file are collected in actual tests, they may not contain all continuous parameter values. For example, suppose the pneumatic database file contains the lift coefficient A1, whose value is 0.5, and the lift coefficient A2, whose value is 0.63. These two specific parameter values are collected in actual tests. However, when executing the simulation task, in addition to using these two parameter values, parameter values between these two parameter values may also be required.
[0062] For the above situation, in an embodiment of the present application, the pneumatic simulation system can determine the simulation parameter items required to generate the parameter values of some simulation parameter items required to perform the simulation task, as the associated parameter items corresponding to the some simulation parameter items, and then, the parameter values corresponding to the associated parameter items can be determined from the read parameter values, and then the specific parameter values of the some simulation parameter items can be calculated by interpolation based on the parameter values corresponding to the associated parameter items.
[0063] Among them, since not all parameter values of simulation parameter items need to be interpolated, the pneumatic simulation system needs to first determine some simulation parameter items that need to be interpolated from all simulation parameter items. For these partial simulation parameter items, at least some parameter values in these partial simulation parameter items are determined by interpolation, and other simulation parameter items required for calculating the parameter values in these partial simulation parameter items, i.e., the associated parameter items mentioned above, need to be determined first.
[0064] For example, when determining the parameter value of the lift coefficient parameter item, it is necessary to determine the flight altitude, flight Mach number, flight attitude angle, rudder deflection angle, aileron rudder deflection angle, flap rudder deflection angle and other parameter values of the aerodynamic simulation model, and then substitute these parameter values into the preset calculation formula to calculate the corresponding lift coefficient parameter value.
[0065] Therefore, in the above example, simulation parameters such as flight altitude, flight Mach number, flight attitude angle, rudder angle, aileron rudder angle, flap rudder angle, etc. can be understood as associated parameters of lift coefficient parameter. On this basis, the aerodynamic simulation system can read these associated parameters from the aerodynamic database file, and then automatically interpolate and calculate the specific parameter values of the corresponding simulation parameters.
[0066] It should be noted that the correspondence between the simulation parameter items and their corresponding associated parameter items can be pre-saved in the pneumatic simulation system. When performing interpolation operations, the pneumatic simulation system can directly determine the associated parameter values of the simulation parameter items that need to perform interpolation operations based on the saved correspondence to perform subsequent operations.
[0067] Furthermore, after the parameter values of some simulation parameter items are calculated by interpolation through the above process, the pneumatic simulation system can perform simulation tasks for the pneumatic simulation model based on the parameter values directly read from the pneumatic database file and the parameter values calculated by interpolation.
[0068] Among them, since the parameter items used when the pneumatic simulation model presents different configurations or is in different aerodynamic states are different, when executing the simulation task, it is also necessary to combine the actual configuration of the pneumatic simulation model and the aerodynamic state it is in, and filter out the parameter values that need to be used from the read parameter values, and then execute the corresponding simulation task.
[0069] Among them, the so-called configuration is actually used to reflect the structural condition of the aircraft. Different structures of the aircraft correspond to different configurations. The configuration not only reflects the overall structural characteristics of the aircraft, but also reflects the structural differences of the aircraft under different conditions.
[0070] For example, the aircraft extending the landing gear and retracting the landing gear correspond to two different configurations; for another example, if the aircraft has the function of aerial refueling, then the aircraft extending the refueling hose and the aircraft retracting the refueling hose gun correspond to two different configurations; for another example, if the aircraft has the function of mounting external objects, then the aircraft mounting a designated object externally and the aircraft being empty externally belong to two different configurations; for another example, a single-seat aircraft (i.e., only one pilot seat) and a two-seat aircraft (i.e., the cockpit has two seats) belong to two different configurations. Other configurations are not given examples here one by one.
[0071] On this basis, the pneumatic simulation system can first determine the pneumatic configuration of the pneumatic simulation model as the target pneumatic configuration, and then, according to the applicable relationship between each preset pneumatic configuration and each simulation parameter item, determine the parameter value applicable to the target pneumatic configuration from the parameter value read from the pneumatic database file as the first parameter value, and then perform the simulation task of the pneumatic simulation model under the target pneumatic configuration according to the first parameter value. Among them, the applicable relationship between each preset pneumatic configuration and each simulation parameter item can be pre-stored in the pneumatic simulation system.
[0072] For example, when the aerodynamic simulation model is in a configuration of extending the landing gear, the aerodynamic simulation system needs to determine the simulation parameter items applicable to the aerodynamic simulation model when extending the landing gear based on the applicable relationship between each aerodynamic configuration and each simulation parameter item, and read the parameter values of this part of the simulation parameter items, i.e., the first parameter values, from the aerodynamic database file.
[0073] The aerodynamic states mentioned above not only correspond to different states when the aircraft is in different configurations (such as the aircraft will be in different aerodynamic states when the refueling hose is retracted and extended), but also correspond to different aerodynamic states based on different flight maneuvers (such as the aircraft will be in different aerodynamic states during level flight and takeoff and landing).
[0074] On this basis, when executing a simulation task, the pneumatic simulation system can first determine the pneumatic state of the pneumatic simulation model, and then, according to the preset applicable relationship between each pneumatic state and each simulation parameter item, determine the parameter value applicable to the pneumatic state from the read parameter value as the second parameter value, and then execute the simulation task for the pneumatic simulation model in the pneumatic state according to the second parameter value. Among them, the preset applicable relationship between each pneumatic state and each simulation parameter item is pre-stored in the pneumatic simulation system.
[0075] For example, when the aerodynamic simulation model is in a near-ground take-off and landing state, the aerodynamic simulation system needs to determine the simulation parameter items applicable to the aerodynamic simulation model when it is in a near-ground take-off and landing state based on the applicable relationship between each aerodynamic state and each simulation parameter item, and read the parameter values of this part of the simulation parameter items, i.e., the second parameter values, from the aerodynamic database file.
[0076] It should be noted that in actual applications, the pneumatic simulation system can determine applicable parameter values based on the pneumatic configuration and the aerodynamic state of the pneumatic simulation model (the parameter values at this time include both the first parameter value and the second parameter value mentioned above), and then, based on the determined parameter values, execute the simulation task when the pneumatic simulation model of the aerodynamic configuration is in the aerodynamic state.
[0077] Furthermore, after obtaining the required parameter values, the aerodynamic simulation system needs to perform a series of calculation operations to calculate various data, and then obtain various data of the aerodynamic simulation model in different postures, different aerodynamic states, different aerodynamic configurations, and when performing different flight actions in the simulation environment of the aerodynamic simulation system through the calculated data to obtain the simulation results. The following will use a specific example to describe this series of calculation processes, such as Figure 2 shown.
[0078] Figure 2 A schematic diagram of the pneumatic simulation model provided in an embodiment of the present application being affected by various forces in a simulation environment.
[0079] Figure 2 A simulated aircraft (i.e., an aerodynamic simulation model) in a simulation environment is shown, wherein: Figure 2 In the figure, three coordinate axes of the simulated aircraft are established in the body coordinate system. The aerodynamic force components in the directions of these three coordinate axes are B, A, and C, namely, drag, lift, and side force, and the moment components are F, E, and D, namely, rolling moment, yaw moment, and pitch moment. The corresponding aerodynamic parameter efficiency items are CB, CA, CC, CF, CE, and CD, respectively. Among them, Figure 2 The up and down arrows on the wings indicate the opening and closing directions of the ailerons in the wings. The arrow on the vertical tail indicates the rotation direction of the rudder of the vertical tail, and the arrow on the horizontal tail indicates the rotation direction of the elevator of the horizontal tail.
[0080] After obtaining the values of various parameters, the aerodynamic simulation system can calculate a series of data such as lift coefficient, drag coefficient, side force coefficient, etc. through the following formulas: Lift coefficient calculation formula: ; Drag coefficient calculation formula: ; The calculation formula of the side force coefficient is: ; Pitch moment coefficient calculation formula: ; Yaw moment coefficient calculation formula: ; Rolling moment coefficient calculation formula: .
[0081] It should be pointed out that, taking the lift coefficient as an example, the lift coefficient calculated here is a cumulative amount, so the parameter values of each lift coefficient read from the aerodynamic database file refer to the lift coefficient components corresponding to the simulated aircraft. By multiplying each lift coefficient component with the corresponding lift coefficient parameter efficiency value and accumulating the product, the lift coefficient corresponding to the simulated aircraft can be obtained. The same is true for the others, which will not be elaborated here.
[0082] Afterwards, the aerodynamic simulation system can calculate the aerodynamic forces and aerodynamic moments output by the simulated flight through the following formula: ; ; ; ; ; ; Among them, A, B, C, D, E, and F represent the lift, drag, side force, pitch moment, yaw moment, and roll moment output by the simulated aircraft in this order. is the dynamic pressure; V=Mach*c; c is the speed of sound, which is related to the flight altitude of the simulated aircraft. The speed of sound at sea level can be 340.43m / s; Mach is the flight Mach number; Sw is the wing area of the simulated aircraft; b is the wing span of the simulated aircraft; e is the average geometric aerodynamic chord length of the wing of the simulated aircraft; is the atmospheric density, which is related to the flight altitude of the simulated aircraft.
[0083] After calculating the aerodynamic forces and aerodynamic moments, the aerodynamic simulation system can further obtain subsequent simulation results, and then determine whether the simulated aircraft meets the preset design requirements or control requirements through the simulation results.
[0084] It can be seen from the above method that, before executing the simulation task, it is not necessary to forcibly synchronize the names of the various parameter items in the pneumatic simulation system with the pneumatic database file according to the unique parameter item naming method in the pneumatic database file, but it is only necessary to match the various parameter classes in the pneumatic simulation system with the various parameter classes in the pneumatic database file, and establish a corresponding relationship between the names of the various parameter items under the pneumatic simulation system and the addresses of the various parameter values under the various parameter classes in the pneumatic database, so that the required parameter values can be retrieved from the pneumatic database file based on this corresponding relationship during the execution of the simulation task. In other words, the present application does not focus on whether a specific parameter value in the pneumatic database file must correspond to a specific parameter item name under the pneumatic simulation system, but only needs to establish a corresponding relationship between the two, which can not only ensure the smooth calling of the parameter value during the execution of the simulation task, but also greatly save the time required for the adaptation between the pneumatic database file and the pneumatic simulation system before the execution of the simulation task, thereby further improving the efficiency of the execution of the simulation task.
[0085] It should also be pointed out that in the process of executing simulation tasks, the pneumatic simulation system may frequently use the parameter values contained in the pneumatic database file. In order to further improve the execution efficiency of the simulation tasks, in an embodiment of the present application, the pneumatic simulation system can construct a parameter value table containing these parameter values and cache them after reading the required parameter values and the parameter values calculated by interpolation from the pneumatic database file. Then, in the subsequent simulation task execution process, the required parameter values can be directly read from the cache to execute the simulation task, thereby greatly improving the execution efficiency of the simulation task.
[0086] The above is a simulation task execution method provided by one or more embodiments of the present application. Based on the same idea, the present application embodiment also provides a corresponding simulation task execution device, such as Figure 3 shown.
[0087] Figure 3 A schematic diagram of a simulation task execution device provided in an embodiment of the present application, wherein the device is applied to a preset power simulation system, specifically comprising: An acquisition module 301 is used to acquire at least one pneumatic database file that matches the model parameters of the power simulation model; A generating module 302, used to generate names of various simulation parameter items under various preset parameter categories under the power simulation system; A matching module 303, used to match each parameter class identified from the at least one pneumatic database file with each parameter class generated by the power simulation system to obtain a matching result; A construction module 304 is used to construct a correspondence between the names of the parameter items and the addresses of the parameter values under the parameter classes contained in the at least one pneumatic database file in the at least one pneumatic database file according to the matching result; The reading module 305 is used to read the parameter values required to execute the simulation task from the database file according to the corresponding relationship when receiving the simulation instruction; the execution module 306 is used to execute the simulation task for the aerodynamic simulation model according to the read parameter values.
[0088] Optionally, the execution module 306 is specifically used to determine, for some simulation parameter items required to execute the simulation task, the simulation parameter items required to generate the parameter values of the some simulation parameter items as the associated parameter items corresponding to the some simulation parameter items; determine the parameter values corresponding to the associated parameter items from the read parameter values; calculate the parameter values of the some simulation parameter items by interpolation according to the parameter values corresponding to the associated parameter items; and execute the simulation task according to the read parameter values and the parameter values calculated by interpolation.
[0089] Optionally, the execution module 306 is specifically used to construct and cache a parameter value table according to the read parameter values and the parameter values calculated by interpolation, so as to execute the simulation task according to the cached parameter value table.
[0090] Optionally, the execution module 306 is specifically used to determine the aerodynamic configuration of the aerodynamic simulation model as the target aerodynamic configuration; according to the applicable relationship between each preset aerodynamic configuration and each simulation parameter item, determine the parameter value applicable to the target aerodynamic configuration from the read parameter values as the first parameter value; and according to the first parameter value, execute the simulation task of the aerodynamic simulation model under the target aerodynamic configuration.
[0091] Optionally, the execution module 306 is specifically used to determine the pneumatic state of the pneumatic simulation model; according to the applicable relationship between each preset pneumatic state and each simulation parameter item, determine the parameter value applicable to the pneumatic state from the read parameter values as the second parameter value; according to the second parameter value, execute the simulation task for the pneumatic simulation model in the pneumatic state.
[0092] Optionally, the aerodynamic simulation model includes: a simulated aircraft model, and the simulation parameter items include: an aerodynamic parameter item and an aerodynamic parameter efficiency item.
[0093] The present application also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A simulation task execution method is provided.
[0094] This application also provides Figure 4 The schematic structure diagram of the electronic device shown in FIG. Figure 4 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The simulation task execution method.
[0095] Of course, in addition to software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0096] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0097] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0098] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0099] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0100] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0104] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0105] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0106] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0107] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0108] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0109] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0110] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0111] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A simulation task execution method, characterized in that: The method is applied to a preset pneumatic simulation system, and includes: Acquire at least one pneumatic database file that matches the model parameters of the pneumatic simulation model; Generate the names of the various simulation parameter items under the preset parameter categories under the pneumatic simulation system; Matching each parameter class identified from the at least one pneumatic database file with each parameter class generated by the pneumatic simulation system to obtain a matching result; According to the matching result, a correspondence relationship between the names of the parameter items and the addresses of the parameter values under the parameter classes contained in the at least one pneumatic database file in the at least one pneumatic database file is established; When receiving the simulation instruction, reading parameter values required for executing the simulation task from the at least one pneumatic database file according to the corresponding relationship; According to the read parameter values, a simulation task for the pneumatic simulation model is executed.
2. The method according to claim 1, characterized in that According to the read parameter values, a simulation task for the pneumatic simulation model is executed, specifically including: For some simulation parameter items required for executing the simulation task, determining the simulation parameter items required for generating parameter values of the some simulation parameter items as associated parameter items corresponding to the some simulation parameter items; Determine the parameter value corresponding to the associated parameter item from the read parameter values; Calculating the parameter values of the partial simulation parameter items by interpolation according to the parameter values corresponding to the associated parameter items; The simulation task is performed according to the read parameter values and the parameter values calculated by interpolation.
3. The method according to claim 2, characterized in that Executing the simulation task according to the read parameter value and the parameter value calculated by interpolation specifically includes: A parameter value table is constructed and cached according to the read parameter values and the parameter values calculated by interpolation, so as to execute the simulation task according to the cached parameter value table.
4. The method according to claim 1, characterized in that According to the read parameter values, a simulation task for the simulation model is executed, specifically including: Determining an aerodynamic configuration of the aerodynamic simulation model as a target aerodynamic configuration; According to the preset applicable relationship between each aerodynamic configuration and each simulation parameter item, determining a parameter value applicable to the target aerodynamic configuration from the read parameter values as a first parameter value; According to the first parameter value, a simulation task of the aerodynamic simulation model is performed under the target aerodynamic configuration.
5. The method according to claim 1, characterized in that According to the read parameter values, a simulation task for the simulation model is executed, specifically including: Determining the pneumatic state of the pneumatic simulation model; According to the preset applicable relationship between each pneumatic state and each simulation parameter item, determining a parameter value applicable to the pneumatic state from the read parameter values as a second parameter value; A simulation task for the pneumatic simulation model in the pneumatic state is executed according to the second parameter value.
6. The method according to any one of claims 1 to 5, characterized in that The aerodynamic simulation model includes: a simulated aircraft model, and the simulation parameter items include: an aerodynamic parameter item and an aerodynamic parameter efficiency item.
7. A simulation task execution device, characterized in that: The device is applied to a preset power simulation system, comprising: An acquisition module, used to acquire at least one pneumatic database file matching the model parameters of the power simulation model; A generation module, used to generate the names of the various simulation parameter items under each preset parameter class under the power simulation system; A matching module, used for matching each parameter class identified from the at least one pneumatic database file with each parameter class generated by the power simulation system to obtain a matching result; A construction module, configured to construct, according to the matching result, a correspondence between the names of the parameter items and addresses of the parameter values under the parameter classes contained in the at least one pneumatic database file in the at least one pneumatic database file; A reading module, configured to read parameter values required for executing a simulation task from the database file according to the corresponding relationship when receiving a simulation instruction; The execution module is used to execute the simulation task for the power simulation model according to the read parameter values.
8. The device according to claim 7, characterized in that The execution module is specifically used to determine, for some simulation parameter items required for executing the simulation task, simulation parameter items required for generating parameter values of the some simulation parameter items as associated parameter items corresponding to the some simulation parameter items; Determine the parameter value corresponding to the associated parameter item from the read parameter values; According to the parameter values corresponding to the associated parameter items, the parameter values of the partial simulation parameter items are calculated by interpolation; and according to the read parameter values and the parameter values calculated by interpolation, the simulation task is executed.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Electrical simulation modeling method and device and readable storage medium
CN110765639A
Data and model association method and device, terminal or server
CN110825740A
Interactive spacecraft rapid task planning simulation system and method
CN115356947A
Simulation test method and device for component
CN116136952A