Semi-physical simulation method for stepping motor of aero-engine fuel and control system
By performing discretization optimization and hardware matching on the stepper motor Simulink model and generating a VHDL file, the problem of stepper motors being unable to be simulated in real time in aviation engine fuel and control systems was solved, and full-electric simulation and hardware compatibility were achieved.
Patent Information
- Application Number
- CN202510799493.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-09-30
AI Technical Summary
Existing technologies cannot use stepper motors as actuators for aircraft engine fuel and control systems for real-time simulation, and are not compatible with the real-time simulation link of the fuel and control system.
By optimizing the stepper motor Simulink model before discretization, generating VHDL files, and performing hardware matching, it is finally integrated into the real-time simulation platform to realize the hardware operation of the stepper motor mathematical model.
The fully electric simulation of the stepper motor in the fuel control system is realized, which solves the compatibility problem of real-time simulation hardware, shortens the development cycle and reduces resource usage.
Smart Images

Figure CN120722772A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fuel and control system simulation, and in particular to a hardware-in-the-loop simulation method for a stepping motor of an aviation engine fuel and control system. Background Art
[0002] A stepper motor is an open-loop control element that converts electrical pulse signals into angular or linear displacement. Its output displacement is proportional to the number of input electrical pulses, while the motor's speed depends on the input pulse frequency. Changing this pulse frequency allows for a wide range of speed adjustment. Using stepper motors as actuators in aircraft engine fuel and control systems offers advantages such as simple structure, high control precision, and reliable operation.
[0003] AMESIM software is often used for design and simulation of aircraft engine fuel and control systems. AMESIM software can be used to build complex hydraulic system models based on stepper motors as actuators. It is often used for desktop-level design simulation, but it is not compatible with the real-time simulation of fuel and control systems. Summary of the Invention
[0004] In view of this, the present invention provides a semi-physical simulation method for a stepper motor of an aircraft engine fuel and control system to solve the problem that the existing technology is not compatible with the real-time simulation link of the fuel and control system.
[0005] In a first aspect, the present invention provides a hardware-in-the-loop simulation method for a stepper motor of an aircraft engine fuel and control system, the method comprising:
[0006] Optimize the stepper motor Simulink model before discretization;
[0007] Discretize the stepper motor Simulink model and generate the VHDL file of the stepper motor mathematical model;
[0008] Synthesize the VHDL file of the stepper motor mathematical model and match the VHDL file of the stepper motor mathematical model with the hardware;
[0009] The stepper motor model is integrated into the real-time simulation platform.
[0010] The present invention optimizes the stepper motor Simulink model before discretization to achieve the transplantation of the stepper motor mathematical model to hardware operation, discretizes the stepper motor Simulink model to generate a VHDL file, achieves microsecond-level calculation, matches the VHDL file of the stepper motor mathematical model with the hardware, and integrates it into a real-time simulation platform to configure the simulation system for real-time operation, thereby solving the problem that the current system using the stepper motor as the execution structure of the fuel control system cannot achieve full-electric simulation.
[0011] In an optional embodiment, the stepper motor Simulink model is optimized before discretization, including:
[0012] Build and run the mathematical equations for the stepper motor in Simulink to construct a circuit equivalent model of the single-phase winding of the motor structure;
[0013] Calculate the current of the coil on a single phase according to the circuit equivalent model;
[0014] Polynomial fitting is performed on the current calculation formula of the single-phase coil, the current calculation formula is optimized, and the division calculation in the current calculation formula is converted into multiplication and addition calculations.
[0015] The present invention optimizes the stepper motor model and converts division calculation into multiplication and addition calculation, thereby realizing the transplantation of the stepper motor mathematical model to FPGA hardware operation and saving resource occupation during model calculation.
[0016] In an optional embodiment, the stepper motor Simulink model is discretized, including:
[0017] By using the floating-point operation function block of the HDL encoder in Simulink and combining it with the optimized current calculation formula, the discretized stepper motor Simulink model is obtained.
[0018] The present invention utilizes floating-point operation function blocks in combination with an optimized current calculation method to discretize the stepper motor model, thereby resolving the hardware compatibility issue of real-time simulation while retaining the model accuracy.
[0019] In an optional embodiment, after obtaining a discretized stepper motor Simulink model by using the floating-point operation function block of the HDL encoder in Simulink in combination with the optimized current calculation formula, the method further includes:
[0020] Use the HDL Coder in Simulink to generate and configure the discretized stepper motor Simulink model in VHDL language.
[0021] The present invention uses an HDL encoder to perform VHDL language generation configuration, thereby realizing automatic conversion from a Simulink model to VHDL code, avoiding human coding errors, and shortening the development cycle.
[0022] In an optional embodiment, matching the VHDL file of the stepper motor mathematical model with the hardware includes:
[0023] Build a Labview FPGA program for stepper motor simulation;
[0024] Compile the stepper motor simulation Labview FPGA through the Labview FPGA compiler to generate an executable bit file.
[0025] The present invention builds a Labview FPGA program, compiles it, generates a bit file, and deploys the stepper motor model to the FPGA hardware to achieve hardware matching.
[0026] In an optional embodiment, the stepper motor model is integrated into the real-time simulation platform, including:
[0027] Integrate the stepper motor Labview FPGA program as a custom device in the simulation system management software.
[0028] The present invention integrates the stepping motor Labview FPGA program into the real-time simulation platform to build a semi-physical simulation environment compatible with physical and virtual components.
[0029] In a second aspect, the present invention provides a hardware-in-the-loop simulation system for a stepper motor of an aircraft engine fuel and control system, the system comprising:
[0030] Optimization processing module, used to optimize the stepper motor Simulink model before discretization;
[0031] Discretization processing module, used to discretize the stepper motor Simulink model and generate the VHDL file of the stepper motor mathematical model;
[0032] A matching module is used to synthesize the VHDL file of the stepper motor mathematical model and match the VHDL file of the stepper motor mathematical model with the hardware;
[0033] Integration module for integrating stepper motor models into real-time simulation platforms.
[0034] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to thereby execute the semi-physical simulation method for a stepper motor of an aviation engine fuel and control system according to the first aspect or any corresponding embodiment thereof.
[0035] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for semi-physical simulation of a stepper motor of an aviation engine fuel and control system according to the first aspect or any corresponding embodiment thereof.
[0036] In a fifth aspect, the present invention provides a computer program product comprising computer instructions for causing a computer to execute the method for semi-physical simulation of a stepper motor of an aviation engine fuel and control system according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 1 is a flow chart of a hardware-in-the-loop simulation method for a stepping motor of an aircraft engine fuel and control system according to an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of a single-phase winding equivalent model according to an embodiment of the present invention;
[0040] Figure 3 is a schematic diagram of a Simulink model (1) of a stepping motor according to an embodiment of the present invention;
[0041] Figure 4 1 is a schematic diagram of the fitting result of the current division calculation in the Simulink model (1) of the stepping motor according to an embodiment of the present invention;
[0042] Figure 5 is a schematic diagram of a Simulink model (2) of a stepping motor after optimization processing according to an embodiment of the present invention;
[0043] Figure 6 1 is a schematic diagram of a Labview FPGA program for a stepping motor according to an embodiment of the present invention;
[0044] Figure 7 is a schematic diagram of manual test results of a real-time simulation of a stepping motor according to an embodiment of the present invention;
[0045] Figure 8 1. This is a block diagram of a hardware-in-the-loop simulation system for a stepping motor of an aircraft engine fuel and control system according to an embodiment of the present invention;
[0046] Figure 9 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0048] First, the mathematical model of the stepper motor in the embodiment of the present invention is introduced:
[0049] The mathematical model of the stepper motor consists of three equations: the voltage balance equation, the electromagnetic torque equation, and the operation equation of the mechanical system. The voltage balance equation is as follows:
[0050]
[0051] Where U(t) is the rectangular pulse voltage applied to the phase of the stepper motor, in V, R is the resistance of the phase winding, in Ω, I(t) is the current of the phase winding, in A, L0 is the average inductance of the winding, in H, N r is the number of teeth of the stepper motor, θ is the rotation angle of the stepper motor rotor, the unit is degree, L1 is the fundamental component of the winding inductance, the unit is H.
[0052] The electromagnetic torque equation is as follows:
[0053]
[0054] Among them, T e is the electromagnetic torque in N·m, and k is the number of phases of the stepper motor.
[0055] The operating equations of the mechanical system are as follows:
[0056]
[0057] Where J is the moment of inertia of the rotor system, in kg·m 2 , α is the angular acceleration of the stepper motor rotor, in radians per second 2 , B is the damping coefficient of the mechanical system, in N·m·s, ω is the angular velocity of the stepper motor rotor, in radians / second, and T1 is the load torque, in N·m.
[0058] After setting the corresponding parameters and variables in the AMESet environment, a C-language running program is written according to the above-mentioned stepper motor mathematical equations (1)-(3), and finally a graphical package model of the stepper motor is generated to realize simulation testing in the AMESIM software.
[0059] The mathematical equations of the stepper motor can be built and run in the Simulink environment. According to the circuit equivalent model of the single-phase winding of the motor structure, Figure 1 shown. Figure 1 in i a is the phase current, R a is the internal resistance of the coil, L a is the coil self-inductance, U a is the rectangular pulse voltage applied to the phase, and u is the coil self-inductance voltage.
[0060] Combining the above formula (1) and the single-phase winding equivalent model, the stepper motor induced voltage u can be derived as shown below:
[0061]
[0062] Calculate the current i of the single-phase coil according to the equivalent circuit diagram a , as shown below:
[0063]
[0064] Finally, the Simulink simulation model of the stepper motor is established by combining the above formulas (2)-(3).
[0065] For stepper motor simulation, Simulink or AMESIM environments are often used to build and run stepper motor models. These models can only be simulated in a desktop environment and are not compatible with and can be run in a real-time simulation environment. Currently, these models can only be run in AMESIM and Simulink environments and are not compatible with and can be run in a real-time simulation environment. In view of the fact that these models can only be run in AMESIM and Simulink environments and are not compatible with and can be run in a real-time simulation environment, an embodiment of the present invention provides a method for semi-physical simulation of stepper motors in an aircraft engine fuel and control system. This method runs a reactive stepper motor Simulink model built based on the stepper motor voltage balance equation, electromagnetic torque equation, and mechanical system in a fuel and control system real-time simulation environment, enabling closed-loop simulation in the absence of fuel and control system actuators (stepper motors).
[0066] According to an embodiment of the present invention, an embodiment of a method for semi-physical simulation of a stepper motor in an aircraft engine fuel and control system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0067] In this embodiment, a hardware-in-the-loop simulation method for a stepper motor in an aircraft engine fuel and control system is provided. Figure 2 FIG. 1 is a flow chart of a hardware-in-the-loop simulation method for a stepper motor of an aviation engine fuel and control system according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0068] Step S201 : Optimize the stepper motor Simulink model before discretization.
[0069] In the embodiment of the present invention, the existing stepper motor Simulink mathematical model requires a simulation cycle of microseconds and can only be used in the MATLAB / Simulink environment. It cannot be run in a semi-physical real-time simulation system with a simulation cycle of milliseconds.
[0070] As a programmable logic device, FPGA executes hardware logic when running, does not rely on code logic, and can perform logic tasks at the microsecond level. Figure 3 The Simulink mathematical model (1) is a continuous system model. First, the continuous model needs to be reconstructed into a discrete model. Then, the discrete model needs to be optimized, code generated, synthesized, and compiled before it can run on the FPGA hardware. Therefore, the stepper motor Simulink model is optimized before discretization.
[0071] Step S202 : Discretize the stepper motor Simulink model to generate a VHDL file of the stepper motor mathematical model.
[0072] In the embodiment of the present invention, after the stepper motor Simulink model is optimized before discretization, the stepper motor Simulink model is discretized and a VHDL file of the stepper motor mathematical model is generated.
[0073] Step S203 , synthesizing the VHDL file of the stepper motor mathematical model to match the VHDL file of the stepper motor mathematical model with the hardware.
[0074] In an embodiment of the present invention, the VHDL file of the stepper motor mathematical model generated in step S202 is synthesized, that is, the VHDL file is converted into underlying logic units and connection relationships that can be recognized by the FPGA, the code description is mapped into a specific hardware circuit structure, the VHDL file of the stepper motor mathematical model is matched with the hardware, and adapted to the FPGA hardware platform, so that it can perform microsecond-level computing tasks in a real-time simulation environment.
[0075] Step S204: The stepper motor model is integrated into the real-time simulation platform.
[0076] In an embodiment of the present invention, the stepper motor simulation model that has been adapted to the hardware is integrated into the simulation system management software, which provides convenience for the subsequent use of the stepper motor simulation program.
[0077] The present embodiment provides a method for semi-physical simulation of a stepper motor for an aircraft engine fuel and control system. This method optimizes the stepper motor Simulink model before discretization to enable the mathematical model of the stepper motor to be transplanted to hardware for operation. The stepper motor Simulink model is discretized to generate a VHDL file to achieve microsecond-level calculations. The VHDL file of the stepper motor mathematical model is matched with the hardware, and the stepper motor is integrated into a real-time simulation platform for configuration to run in real time on the simulation system. This method solves the problem that currently systems using stepper motors as the execution structure of fuel control systems cannot achieve full-electric simulation.
[0078] In this embodiment, a hardware-in-the-loop simulation method for a stepper motor of an aircraft engine fuel and control system is provided. The process includes the following steps:
[0079] Step S301 , performing optimization processing on the stepper motor Simulink model before discretization.
[0080] Specifically, the above step S301 includes:
[0081] Step S3011: Build and run the stepper motor mathematical equation in Simulink to construct a circuit equivalent model of the single-phase winding of the motor structure.
[0082] Step S3012: Calculate the current of the single-phase upper coil according to the circuit equivalent model.
[0083] Step S3013: Perform polynomial fitting on the current calculation formula of the single-phase upper coil, optimize the current calculation formula, and convert the division calculation in the current calculation formula into multiplication calculation and addition calculation.
[0084] In the embodiment of the present invention, the analysis Figure 3 In the Simulink mathematical model (1), the single-phase coil current calculation formula (5) uses a divider. However, dividers require a lot of resources in the FPGA and may cause the task to fail to complete within the specified time (e.g., 1 microsecond). Therefore, the use of dividers should be avoided when programming the FPGA.
[0085] In formula (5), cos(N r θ) as a variable (its value range is [-1, 1]), and use MATLAB to convert the formula (5) into The fitting results are shown in Figure 2. Figure 4 As shown in the figure, the fitting degree (R-square) of the polynomial after fitting reaches 99.95%.
[0086] By fitting, the division calculation in the current calculation link in the mathematical model is converted into multiplication and addition calculations, which effectively and quickly realizes the transplantation of the stepper motor mathematical model to FPGA hardware operation, greatly saving resource usage during model calculation.
[0087] Step S302 : Discretize the stepper motor Simulink model to generate a VHDL file of the stepper motor mathematical model.
[0088] Specifically, the above step S302 includes:
[0089] Step S3021 , using the floating-point operation function block of the HDL encoder in Simulink and combining it with the optimized current calculation formula, a discretized stepper motor Simulink model is obtained.
[0090] In the embodiment of the present invention, the HDL Coder function is integrated into MATLAB, and the HDL Floating Point Operations function block of the HDL Coder in Simulink is used to replace the continuous system function block used in the existing stepper motor Simulink mathematical model. Combined with the optimized current calculation method, a stepper motor Simulink model that can be used to automatically generate VHDL language is finally formed (such as Figure 5 shown).
[0091] By utilizing floating-point arithmetic function blocks and combining them with an optimized current calculation method, the stepper motor model is discretized, which solves the hardware compatibility issue of real-time simulation while retaining the model accuracy.
[0092] In some optional implementations, the above step S302 further includes:
[0093] Step S3022: Use the HDL encoder in Simulink to generate and configure the discretized stepper motor Simulink model in VHDL language.
[0094] In the embodiment of the present invention, the HDL Workflow Advisor function of HDL Coder in Simulink is used to automatically generate VHDL language configuration for the mathematical model (2), including target device setting (Xilin devices are used in this embodiment), automatic preprocessing of the model, etc.
[0095] Finally, the tool is used to generate the VHDL file of the stepper motor mathematical model.
[0096] By using HDL Coder for VHDL language generation and configuration, automatic conversion from Simulink models to VHDL code is achieved, avoiding human coding errors and shortening the development cycle.
[0097] Step S303 : synthesizing the VHDL file of the stepper motor mathematical model to match the VHDL file of the stepper motor mathematical model with the hardware.
[0098] Specifically, the above step S303 includes:
[0099] Step S3031: Build a Labview FPGA program for stepper motor simulation.
[0100] Step S3032: compile the stepper motor simulation Labview FPGA through the Labview FPGA compiler to generate an executable bit file.
[0101] In an embodiment of the present invention, NI's PXI real-time simulator + PXIe-7858R board are used to perform hardware-in-the-loop simulation of a stepper motor, including the following steps:
[0102] (1) Synthesize the generated VHDL file based on the IP Block module in the NI Labivew FPGA tool;
[0103] (2) Use the IO interface of NI Labivew FPGA, the integrated stepper motor IP Block, the cycle timer and other functional modules to build a Labview FPGA program for stepper motor simulation (such as Figure 6 shown);
[0104] (3) Compile the stepper motor simulation Labview FPGA program through the Labview FPGA compiler and generate a bit file executable by the PXIe-7858R board.
[0105] By building a Labview FPGA program, compiling it, generating a bit file, and deploying the stepper motor model to the FPGA hardware, hardware matching is achieved.
[0106] Step S304: integrating the stepper motor model into the real-time simulation platform.
[0107] Specifically, the above step S304 includes:
[0108] Step S3041: Integrate the stepper motor Labview FPGA program into a custom device of the simulation system management software.
[0109] In an embodiment of the present invention, the generated stepper motor Labview FPGA simulation program is integrated into a custom device of the NIPXI simulation system management software (Veristand) through the Custom Device development tool provided by the NI Veristand software, which facilitates the subsequent use of the stepper motor simulation program.
[0110] By integrating the stepper motor Labview FPGA program into the real-time simulation platform, a semi-physical simulation environment compatible with physical and virtual components is constructed.
[0111] The beneficial effects of the hardware-in-the-loop simulation method for the stepper motor of the aviation engine fuel and control system provided in this embodiment include:
[0112] (1) This stepper motor hardware-in-the-loop simulation method includes optimizing the stepper motor model, automatically generating HDL Coder code, and configuring it into a real-time running architecture in the NIPXI simulation system. This ultimately solves the current problem of being unable to achieve full-electric simulation in systems where stepper motors are used as the execution structure of fuel control systems.
[0113] (2) The mathematical model established based on the voltage balance equation, electromagnetic torque equation, and motion equation of the mechanical system can be integrated into the real-time simulation platform for operation, which can solve the problem of being unable to carry out semi-physical simulation of aviation engine fuel and control systems when there is no execution structure (stepper motor);
[0114] (3) Through the tool chain in the standard software, the implementation process of stepper motor real-time simulation does not rely on the designer's FPGA development capabilities;
[0115] (4) The simulation implementation solution is based on graphical modeling and automatic code generation, which can relieve the programming pressure of designers.
[0116] The semi-physical simulation method for the stepper motor of the aviation engine fuel and control system provided in this embodiment has been successfully implemented on a semi-physical simulation tester. Four switches are used to simulate the four-phase control timing of the stepper motor controller. The real-time operation results of the stepper motor model are monitored by the Veristand software of the NIPXI simulation system. The control simulation of the stepper motor has been realized, and the parameters such as the operating angle, phase current and output torque of the stepper motor can be monitored in real time. The angle, four-phase current and electromagnetic torque output of the stepper motor mathematical model in real-time operation during the real-time simulation manual test are as follows: Figure 7 shown.
[0117] This embodiment also provides a hardware-in-the-loop simulation system for a stepper motor in an aircraft engine fuel and control system. This system is used to implement the aforementioned embodiments and preferred implementations, and details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the systems described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0118] This embodiment provides a hardware-in-the-loop simulation system for a stepper motor of an aircraft engine fuel and control system. Figure 8 As shown, including:
[0119] The optimization processing module 801 is used to perform optimization processing on the stepper motor Simulink model before discretization.
[0120] The discretization processing module 802 is used to discretize the stepper motor Simulink model and generate a VHDL file of the stepper motor mathematical model.
[0121] The matching module 803 is used to synthesize the VHDL file of the stepper motor mathematical model and match the VHDL file of the stepper motor mathematical model with the hardware.
[0122] Integration module 804 is used to integrate the stepper motor model into the real-time simulation platform.
[0123] In some optional implementations, the optimization processing module 801 includes:
[0124] The model building unit is used to build and run the stepper motor mathematical equations in Simulink and construct the circuit equivalent model of the single-phase winding of the motor structure.
[0125] The current calculation unit is used to calculate the current of the coil on a single phase according to the circuit equivalent model.
[0126] The optimization unit is used to perform polynomial fitting on the current calculation formula of the single-phase coil, optimize the current calculation formula, and convert the division calculation in the current calculation formula into multiplication calculation and addition calculation.
[0127] In some optional implementations, the discretization processing module 802 includes:
[0128] The discretization processing unit is used to obtain a discretized stepper motor Simulink model by utilizing the floating-point operation function block of the HDL encoder in Simulink and combining it with the optimized current calculation formula.
[0129] In some optional embodiments, the system further comprises:
[0130] The configuration module is used to generate and configure the discretized stepper motor Simulink model in VHDL language using the HDL encoder in Simulink.
[0131] In some optional implementations, the matching module 803 includes:
[0132] Program building unit, used to build Labview FPGA program for stepper motor simulation.
[0133] The compilation unit is used to compile the stepper motor simulation Labview FPGA through the Labview FPGA compiler to generate an executable bit file.
[0134] In some optional implementations, the integration module 804 includes:
[0135] Integration unit for custom devices that integrate stepper motor Labview FPGA programs into simulation system management software.
[0136] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0137] The aviation engine fuel and control system stepper motor semi-physical simulation system in this embodiment is presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit) circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0138] The embodiment of the present invention also provides a computer device having the above Figure 8 The shown is a hardware-in-the-loop simulation system for stepper motors in aircraft engine fuel and control systems.
[0139] See also Figure 9 , Figure 9 is a structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 9As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 9 A processor 10 is taken as an example.
[0140] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0141] The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to execute the method shown in the above embodiment.
[0142] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0143] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0144] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 9 The bus connection is taken as an example.
[0145] The input device 30 can receive input digital or character information and generate key signal input related to user settings and function control of the computer device, such as a touch screen, etc. The output device 40 can include a display device, etc.
[0146] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0147] A portion of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. Accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by the computer.
[0148] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are intended to fall within the scope of this application.
Claims
1. A hardware-in-the-loop simulation method for a stepper motor in an aircraft engine fuel and control system, characterized in that: The method comprises: Optimize the stepper motor Simulink model before discretization; Discretize the stepper motor Simulink model and generate the VHDL file of the stepper motor mathematical model; Synthesizing the VHDL file of the stepper motor mathematical model to match the VHDL file of the stepper motor mathematical model with hardware; The stepper motor model is integrated into the real-time simulation platform.
2. The method according to claim 1, characterized in that The stepping motor Simulink model is optimized before discretization, including: Build and run the mathematical equations for the stepper motor in Simulink to construct a circuit equivalent model of the single-phase winding of the motor structure; Calculate the current of the coil on a single phase according to the circuit equivalent model; Polynomial fitting is performed on the current calculation formula of the single-phase coil, the current calculation formula is optimized, and the division calculation in the current calculation formula is converted into multiplication and addition calculations.
3. The method according to claim 2, characterized in that The discretization processing of the stepper motor Simulink model includes: By using the floating-point operation function block of the HDL encoder in Simulink and combining it with the optimized current calculation formula, the discretized stepper motor Simulink model is obtained.
4. The method according to claim 3, characterized in that After obtaining a discretized stepper motor Simulink model by using the floating-point operation function block of the HDL encoder in Simulink and combining it with the optimized current calculation formula, the method further includes: Use the HDL Coder in Simulink to generate and configure the discretized stepper motor Simulink model in VHDL language.
5. The method according to claim 1, wherein The VHDL file of the stepper motor mathematical model is matched with the hardware, including: Build a Labview FPGA program for stepper motor simulation; Compile the stepper motor simulation Labview FPGA through the Labview FPGA compiler to generate an executable bit file.
6. The method according to claim 5, characterized in that The stepper motor model is integrated into the real-time simulation platform, including: Integrate the stepper motor Labview FPGA program as a custom device in the simulation system management software.
7. A hardware-in-the-loop simulation system for stepper motors in aircraft engine fuel and control systems, characterized in that: The system comprises: Optimization processing module, used to optimize the stepper motor Simulink model before discretization; Discretization processing module, used to discretize the stepper motor Simulink model and generate the VHDL file of the stepper motor mathematical model; A matching module, used for synthesizing the VHDL file of the stepper motor mathematical model and matching the VHDL file of the stepper motor mathematical model with hardware; Integration module for integrating stepper motor models into real-time simulation platforms.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for hardware-in-the-loop simulation of a stepper motor for an aircraft engine fuel and control system according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which are used to enable a computer to execute the hardware-in-the-loop simulation method for a stepper motor of an aircraft engine fuel and control system according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the hardware-in-the-loop simulation method for a stepping motor of an aviation engine fuel and control system according to any one of claims 1 to 6.
Citation Information
Patent Citations
High-performance real-time simulation method based on FPGA (field programmable gate array)
CN104252550A
Inverse time limit overcurrent protection method based on FPGA
CN104577957A
Real-time simulation method for aero-engine control system
CN110609493A
SoC-based motor hardware-in-loop simulation method
CN114609927A