Dual-time-scale modeling method and system for power grid-methanol synthesis system

By using singular perturbation theory to separate the power grid methanol synthesis system into fast and slow variables and establish a reduced-order subsystem, the problem of inaccurate dynamic response in the modeling of the power grid and methanol synthesis system is solved, and efficient multi-timescale decoupling and accurate dynamic capture are achieved.

CN123139537APending Publication Date: 2026-11-20SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611249750.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately capture the microsecond-level dynamic response of the power grid and the second-to-minute-level dynamics of the methanol synthesis reactor in a power grid methanol synthesis system. Furthermore, they neglect the bidirectional interaction between the power grid and methanol synthesis, resulting in complex modeling and low computational efficiency.

Method used

The singular perturbation theory is used to separate the system state variables into fast and slow variables, and a reduced-order fast subsystem and a slow subsystem are established respectively. Data exchange is carried out through the compressor power as a bidirectional coupling link to achieve decoupling of multiple time scales. Iterative solutions are performed by combining chemical and power side models.

Benefits of technology

It achieves efficient decoupling between the fast dynamics of the power grid side and the slow dynamics of methanol synthesis side, reduces the computational burden, improves modeling accuracy and response speed, and is suitable for long-term operation analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139537A_ABST
    Figure CN123139537A_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of methanol production from fluctuating renewable power, and specifically discloses a dual-time-scale modeling method and system for a power grid methanol synthesis system, which comprises the following steps: introducing a singular perturbation parameter to convert a full-order dynamic model into a standard singular perturbation equation form; under a first time scale, regarding slow variables as constants to obtain a first subsystem describing the electromagnetic transient and electromechanical transient processes of the power side; under a second time scale, allowing fast variables to reach a quasi-steady state, and the first subsystem degenerating into an algebraic equation to obtain a second subsystem describing the long-term evolution processes of heat transfer, mass transfer and chemical reaction of the methanol synthesis side; data exchange is carried out between the first subsystem and the second subsystem by taking the compressor power as a bidirectional coupling quantity, and iterative solving is carried out under the two time scales to obtain the final solving results of the two subsystems. The present application overcomes the problem of low calculation efficiency caused by the step length selection contradiction in traditional unified modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of methanol production technology using fluctuating renewable electricity, and more particularly to a power grid. A dual-timescale modeling method and system for methanol synthesis systems. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] The technology route of producing methanol from fluctuating renewable electricity converts electricity that is difficult to connect directly to the grid into methanol that is easy to store and transport, thereby realizing the resource utilization of carbon dioxide and effectively alleviating the pressure of energy consumption.

[0004] In the power grid In the dynamic process of methanol synthesis system, the dynamic response of the power grid and compressor drive system is fast, and accurate capture of its transient behavior often requires a simulation step size of microseconds; while the process parameters such as temperature, pressure and component concentration in methanol synthesis reactor change slowly, and the establishment of quasi-steady state of heat transfer and mass transfer is usually on the order of seconds to minutes. The two differ by several orders of magnitude, constituting a typical multi-timescale system.

[0005] Furthermore, the power grid is deeply coupled with the methanol synthesis unit. The grid supplies power to the synthesis process, while the main electrical load for methanol synthesis comes from various compressors. Changes in the operating status of these compressors directly cause fluctuations in the grid load. The compression process consumes the vast majority of electrical energy, and its speed regulation and power variations directly determine the characteristics of grid load fluctuations and also affect the feed flow rate and pressure. Voltage or frequency fluctuations on the grid side alter the state of the feed gas through the compressors, thereby affecting methanol yield. The production adjustment needs on the synthesis side and the power consumption scheduling on the grid side, in turn, react on the grid through changes in compressor power, exacerbating the dynamic complexity of the system.

[0006] When modeling power-chemical coupled systems such as power grid-methanol synthesis, existing technologies typically simplify the chemical load as a constant power load. In power system simulations, the main electrical equipment such as the compressor of the methanol synthesis unit is regarded as a constant power or constant impedance load, ignoring its dynamic response characteristics and its bidirectional interaction with the power grid. Alternatively, the electromagnetic transients (microseconds) on the power side and the thermodynamic / chemical dynamics (seconds to minutes) on the chemical side are placed on the same time scale for unified solution, making it difficult to accurately capture the fast dynamics on the power grid side and analyze the long-term evolution of the slow dynamics on the methanol synthesis side. Summary of the Invention

[0007] To address the aforementioned problems, this invention proposes a power grid... A dual-timescale modeling method and system for methanol synthesis is proposed. By introducing singular perturbation theory, the system state variables are separated into fast and slow variables through perturbation parameters, and a reduced-order fast subsystem and slow subsystem are established respectively to achieve multi-timescale decoupling.

[0008] In some implementations, the following technical solutions are adopted: A power grid A dual-timescale modeling method for methanol synthesis systems includes: A full-order dynamic model of the system, including the power grid, the compressor drive system, and the methanol synthesis reaction process, is established. The system state variables are divided into fast variables and slow variables according to the difference in response speed. The fast variables include at least the stator current and rotor angular velocity of the permanent magnet synchronous motor driving the compressor, and the slow variables include at least the temperature, pressure, and component concentration in the methanol synthesis reactor. By introducing singular perturbation parameters, the full-order dynamic model is transformed into the form of standard singular perturbation equations; At the first time scale, slow variables are treated as constants to obtain the first subsystem describing the electromagnetic and electromechanical transient processes on the power side; solving the first subsystem yields the stator current, rotor angular velocity, and instantaneous power of the permanent magnet synchronous motor. At the second timescale, the fast variables are allowed to reach a quasi-steady state, and the first subsystem degenerates into an algebraic equation, resulting in a second subsystem describing the long-term evolution of heat transfer, mass transfer, and chemical reactions on the methanol synthesis side. Solving the second subsystem yields the time evolution results of reactor temperature, pressure, and component concentration. The first and second subsystems exchange data using compressor power as a bidirectional coupling quantity, and iteratively solve the problem at two time scales to obtain the final solution results for the two subsystems.

[0009] As a further option, the full-order dynamic model includes a chemical side model and a power side model. The chemical side model includes a compressor model, a reactor model, a heat exchanger model, and a flash separation model. The power side model includes the electrical and mechanical equations of a permanent magnet synchronous motor and a back-to-back converter model composed of a rectifier and an inverter coupled through a DC bus.

[0010] As a further approach, the full-order dynamic model is converted into the form of standard singular perturbation equations, specifically: ; in, The differential equation representing the second subsystem is... The differential equation representing the first subsystem is: Representing algebraic equations and PI control; For singular perturbation parameters, ; For slow state variables, The first derivative of the slow state variable with respect to time. For fast state variables, The first derivative of the fast state variable with respect to time, For algebraic variables, For external input variables.

[0011] As a further solution, the singular perturbation parameters The value is the product of the d-axis inductance and the q-axis inductance of the permanent magnet synchronous motor.

[0012] As a further option, the first subsystem includes a set of differential equations with d-axis current, q-axis current and rotor angular velocity as state variables; The second subsystem includes a material conservation differential equation with the molar concentration of components at each node of the reactor as the state variable, an energy conservation differential equation with the gas temperature, cooling medium temperature and tube temperature at each node of the reactor as the state variables, as well as the lumped parameter heat conduction equation of the heat exchanger and the thermodynamic equation of the flash separation device. The algebraic equations and PI control include: gas state equation, reaction rate equation, pressure drop equation, electromagnetic torque equation, speed outer loop PI control equation, current inner loop PI control equation, temperature PI control equation, and power dispatch PI control equation; instantaneous constraints on state variables and control commands are implemented at each time step.

[0013] As a further solution, the first subsystem and the second subsystem exchange data using compressor power as the bidirectional coupling quantity, specifically: The instantaneous power of the compressor output by the first subsystem is used as the input boundary condition of the second subsystem. The compressor load requirement is determined based on the reactor temperature, pressure and component concentration output by the second subsystem. The compressor load requirement acts in reverse on the first subsystem, realizing data exchange between the first and second subsystems with the compressor power as the bidirectional coupling quantity.

[0014] As a further option, it also includes: performing coordinated control on the first subsystem and the second subsystem, the coordinated control including temperature control and power scheduling control; The temperature control is used to detect the reactor hot spot temperature in real time, adjust the cooling water vapor flow rate according to the hot spot temperature, and maintain the reactor temperature within the catalyst activity range; when the reactor hot spot temperature is detected to exceed the preset upper temperature limit, the maximum value of the feed gas valve opening is limited to prevent the reactor from overheating. Real-time power dispatch control is used to monitor the load power consumption of the methanol synthesis system in real time. It responds to the power dispatch command of the power grid by coordinating the opening degree of the feed gas valve and the compressor speed.

[0015] As a further solution, the method also includes: calculating the average relative error of the output variables of the first subsystem and the output variables of the second subsystem relative to the corresponding output variables of the full-order model, wherein the average relative error of the power side is calculated as the average of the ratio of the absolute value of the difference between the output variable and the corresponding variable of the full-order model at each time to the corresponding variable of the full-order model, and the average relative error of the methanol synthesis side is calculated as the average of the ratio of the absolute value of the difference between the output variable and the corresponding variable of the full-order model at each time to the time mean of the corresponding variable of the full-order model, and evaluating the modeling accuracy of the reduced-order model based on the average relative error.

[0016] In other embodiments, the following technical solutions are adopted: A power grid A dual-timescale modeling system for methanol synthesis includes: The system full-order model construction module is used to establish a full-order dynamic model of the system, including the power grid, the compressor drive system, and the methanol synthesis reaction process. The system state variables are divided into fast variables and slow variables according to the difference in response speed. The fast variables include the stator current and rotor angular velocity of the permanent magnet synchronous motor driving the compressor, and the slow variables include the temperature, pressure, and component concentration in the methanol synthesis reactor. The model conversion module is used to introduce singular perturbation parameters and convert the full-order dynamic model into the form of standard singular perturbation equations; The fast-scale system solver module is used to treat slow variables as constants at the first time scale to obtain the first subsystem describing the electromagnetic and electromechanical transient processes on the power side; solving the first subsystem yields the stator current, rotor angular velocity, and instantaneous power of the permanent magnet synchronous motor; The slow-scale system solver module is used to bring the fast variables to a quasi-steady state at the second time scale. The first subsystem degenerates into an algebraic equation, resulting in the second subsystem describing the long-term evolution of heat transfer, mass transfer, and chemical reactions on the methanol synthesis side. Solving the second subsystem yields the time evolution results of reactor temperature, pressure, and component concentration. The system coupling solution module is used to exchange data between the first subsystem and the second subsystem using the compressor power as a bidirectional coupling quantity, and to perform iterative solutions at two time scales to obtain the final solution results for the two subsystems.

[0017] In other embodiments, the following technical solutions are adopted: A terminal device includes a processor and a memory, the processor for implementing instructions; the memory for storing multiple instructions adapted to be loaded and executed by the processor as described above regarding the power grid. A dual-timescale modeling method for methanol synthesis systems.

[0018] Compared with the prior art, the beneficial effects of the present invention are: This invention uses compressor power as a bidirectional coupling link and establishes a force-electric-thermal interaction model between the power side and the chemical side based on typical equipment parameters and general models of the low-pressure methanol synthesis process. This avoids the shortcomings of traditional methods that simplify methanol synthesis to a constant power load and ignore its dynamic interaction.

[0019] Based on singular perturbation theory, the full-order rigid model of power grid-methanol synthesis is decomposed into two reduced-order subsystems, fast and slow, realizing time-scale decoupling between microsecond-level fast dynamics on the power side and second-level slow dynamics on the chemical side, overcoming the problem of low computational efficiency caused by the contradiction in step size selection in traditional unified modeling.

[0020] The reduced-order model proposed in this invention can accurately reproduce the evolution trajectory of the full-order model on slow variables and effectively capture the rapid response of power scheduling step change on fast variables. The dynamic trend and steady-state value of the reduced-order model are consistent with those of the full-order model.

[0021] This invention significantly reduces the computational burden of rigid systems while ensuring key dynamic accuracy. It is applicable to long-term operation analysis of power grid-methanol synthesis systems with compressors as the core, and provides a generalizable methodological framework for multi-timescale modeling of other power-chemical coupled systems.

[0022] Other features and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0023] Figure 1 The power grid in this embodiment of the invention Flowchart of a dual-timescale modeling method for methanol synthesis systems; Figure 2 This is a schematic diagram of the process of synthesizing methanol by hydrogenation of carbon dioxide in an embodiment of the present invention; Figure 3 This is a structural diagram of the compressor's power side in an embodiment of the present invention; Figure 4 This is a structural diagram of the power dispatch control system for electricity-methanol synthesis in an embodiment of the present invention; Figure 5 This is a flowchart of the simulation solution process in an embodiment of the present invention; Figure 6 This is a schematic diagram of the hot spot temperature of the methanol synthesis reactor in an embodiment of the present invention; Figure 7 This is a schematic diagram of the methanol mole fraction at the reactor outlet in an embodiment of the present invention; Figure 8 This is a schematic diagram of the stator A-phase current and rotor speed of the raw material compressor and the circulating gas compressor in an embodiment of the present invention. Detailed Implementation

[0024] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0025] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0026] Example 1 power grid The methanol synthesis system comprises two types of dynamic processes with vastly different response rates: the grid and compressor drive system exhibits fast dynamics, while the process parameters within the methanol synthesis reactor, such as temperature, pressure, and component concentration, exhibit slow dynamics. The time constants of these two processes differ by several orders of magnitude. By introducing singular perturbation theory, the system state variables are separated into fast and slow variables through perturbation parameters, establishing reduced-order fast and slow subsystems respectively, thus achieving time-scale decoupling. The rigid, full-order coupled model is transformed into two computationally efficient reduced-order subsystems, which can accommodate both the fast dynamics of the grid side and the slow dynamics of the methanol synthesis side. This overcomes the problems of contradictory step size selection and excessive computational burden in traditional unified modeling, making it suitable for grids with compressors as the core power load. Long-term operation analysis of the methanol synthesis system.

[0027] Based on this, an electric grid is disclosed in one or more embodiments. A dual-timescale modeling method for methanol synthesis systems, combined with Figure 1 Specifically, it includes the following process: S101: Establish a full-order dynamic model of the system, including the power grid, compressor drive system, and methanol synthesis reaction process, and divide the system state variables into fast variables and slow variables according to the difference in response speed.

[0028] The fast variables include at least the stator current and rotor angular velocity of the permanent magnet synchronous motor driving the compressor, while the slow variables include at least the temperature, pressure, and component concentration within the methanol synthesis reactor.

[0029] In some implementations, the process of constructing the full-order dynamic model of the system mainly includes: (1) Chemical engineering side modeling: Combination Figure 2Modeling of the production process in a methanol synthesis system generally includes feed gas compression, methanol synthesis, synthesis gas separation, and recycling of unreacted gases, mainly involving compressor models, reactor models, heat exchanger models, and flash separation models.

[0030] While the basic steps of different production processes are similar, their energy consumption and scale differ. This embodiment focuses on the low-pressure synthesis process, which, compared to the medium-pressure and high-pressure processes, reduces side reactions, lowers energy consumption, and operates at lower pressures. Using Cu / ZnO / Al2O3 as a catalyst, the hydrogenation of CO2 to methanol only requires heating the raw materials to 250°C. This type of copper-based catalyst is simple to prepare, exhibits good catalytic performance, and can be used in large-scale production. The catalyst is packed inside a tube, and water vapor flows in the outer shell of the reactor. The flowing water vapor heats the carbon dioxide and hydrogen inlet gases to reach the reaction temperature, forming a shell-and-tube reactor, which has the advantages of process controllability and high process efficiency.

[0031] The chemical equation for the synthesis of methanol from carbon dioxide hydrogenation is: ; Currently, despite the different sources of raw materials (such as syngas or carbon dioxide), industrial reactors used for CO2 hydrogenation to methanol are largely the same in basic form and design concept as traditional syngas-to-methanol (including coal-to-methanol) reactors. To strike a balance between complex practical realities and computational feasibility, researchers often introduce a series of idealized assumptions into plug flow reactors (PFRs) for methanol synthesis. These assumptions can be summarized as follows: establishing material and energy balance in the axial dimension, while assuming uniform concentration and temperature distribution in the radial direction; assuming that the gas flow rate remains constant in the radial direction; neglecting the temperature and concentration gradients within the catalyst particles, treating their distribution as constant; and temporarily disregarding the effects of catalyst deactivation and side reactions.

[0032] Based on the above assumptions, the reaction kinetic equation is as follows: ; ; in, r The reaction rate is expressed in mol / kg. cat s)); K 1. K 2 is the equilibrium constant. k e Here is the dynamic constant. k a , k b , k c It is the adsorption term constant; , , , , These represent the partial pressures of carbon dioxide (CO2), hydrogen (H2), methanol (CH3OH), water vapor (H2O), and carbon monoxide (CO), respectively.

[0033] As a specific implementation method, the overall reactor modeling adopts the one-dimensional finite difference method. For the time step Δ... t The first k The segment length is Δ z The reaction tube (with nodes at both ends) k -1 and k ) components i The molar concentration can be expressed by the following material conservation law: ; in, The inlet air velocity of the pipe section is expressed in m / s. Indicates for components i The stoichiometric coefficients of each chemical reaction With reaction rate The sum of the products; , These represent the beginning of the k-th reaction tube (node ​​k). 1) The molar concentration of component i at point k and at the end of the reaction tube (node ​​k); This represents the change in the molar concentration of component i at the end of the k-th reaction tube (node ​​k) within the step length Δt.

[0034] As the reactant gas passes through this section of the reaction tube, the momentum loss, macroscopically manifested as a pressure drop, occurs due to the collision and adhesion interactions between the catalyst and gas molecules. ; In the formula, ε is the particle Reynolds number, and ε is the catalyst porosity; This refers to the density of a gas, expressed in kg / m³. 3 ; Gas flow velocity, in m / s; The diameter of the catalyst particles is in meters (m). This represents the pressure change of the gas as it passes through a reaction tube section of length Δz.

[0035] The difference form of the energy conservation equation for a shell-and-tube reactor is as follows: ; ; ; In the formula, For mass flow rate, For specific heat capacity, Let be the convective heat transfer coefficient of the gas inside the pipe. Let be the convective heat transfer coefficient of the steam inside the tube shell. For Δ z The surface area of ​​the inner wall of a reaction tube within its length. For Δ z The outer surface area of ​​a reaction tube within its length. For Δ z The average volume of each reaction tube over the length. For Δ z The average volume of the inner and outer tubes within the body of the tube is the volume around a reaction tube. The thermal conductivity coefficient of the reaction tube body; This represents the sum of the products of the stoichiometric coefficients and the heat of release (the negative value of the enthalpy change) for each chemical reaction; the subscript gas indicates the parameters of the gas inside the reaction tube, the subscript cool indicates the parameters of the vapor inside the shell, and the subscript tube indicates the parameters of the reaction tube body.

[0036] Let be the change in gas temperature at the end of the k-th reaction tube (node ​​k) within a step length Δt. Let k be the temperature of the gas at node k. Let be the average temperature of the gas inside the k-th reaction tube. Let K be the temperature of the reaction tube at node k. The enthalpy change of a chemical reaction. Let be the chemical reaction rate in the k-th reaction tube. The density of the gas inside the pipe, Let be the average isobaric specific heat capacity of the gas in the k-th reaction tube. The volume occupied by the gas in the reaction tube section of length Δz; Let be the change in temperature of the cooling medium (steam) inside the shell at node k within a step length Δt. The temperature of the cooling medium at node k. The mass flow rate of the cooling medium. The isobaric specific heat capacity of the cooling medium at node k-1 Let be the average temperature of the shell-side cooling medium in the k-th segment. The density of the cooling medium, Let k be the average isobaric specific heat capacity of the shell-side cooling medium in the kth segment. The cooling medium volume around the reaction tube section of length Δz is evenly distributed to the outer casing; This represents the change in tube temperature at node k within a step length Δt. The isobaric specific heat capacity of the reaction tube, The density of the reaction tube, The average temperature of the k-th reaction tube is... Let Δz be the volume of the reaction tube segment.

[0037] At the outlet of the methanol reactor, the gas stream first exchanges heat with the reactor inlet stream, the gas circulation stream, or the cooling water. Heat exchange with the reactor inlet stream is more common and helps save energy in methanol synthesis. In the heat exchanger, the cold stream absorbs heat from the heat exchange tubes as it passes through the outer shell, while the hot stream releases heat into the heat exchange tubes, completing the heat exchange process. In the heat exchanger of the methanol synthesis system, the cold stream, hot stream, and heat exchange tubes all use a lumped parameter model, and the heat conduction equations are as follows: ; In this context, the subscript ho represents the parameters of the hot fluid inside the reaction tube, the subscript co represents the parameters of the cold fluid inside the shell, and the subscript tube represents the parameters of the reaction tube body. The physical meaning of each parameter is similar to that of the reactor heat conduction equation.

[0038] This represents the change in outlet temperature of the internal cooling fluid over a step length Δt. This represents the change in outlet temperature of the hot fluid within a step length Δt. This represents the change in the average temperature of the heat exchanger tube within a step length Δt. The mass flow rate of the cold fluid. The mass flow rate of the hot fluid. This refers to the isobaric specific heat capacity at the inlet of the cold fluid. The inlet temperature of the cold fluid. This refers to the isobaric specific heat capacity at the outlet of the cold fluid. The outlet temperature of the cold fluid. The average temperature of the heat exchanger tube body. The average temperature of the cold fluid. This refers to the isobaric specific heat capacity at the inlet of the hot fluid. This is the isobaric specific heat capacity at the outlet of the hot fluid. The inlet temperature of the hot fluid. The outlet temperature of the hot fluid. The average temperature of the hot fluid. The density of the cold fluid, The density of the thermal fluid, The density of the heat exchanger tube material, The average isobaric specific heat capacity of the cold fluid. The average isobaric specific heat capacity of the thermal fluid. The density of the heat exchanger tube material, The volume of the heat exchanger shell. The volume inside the heat exchange tube. This refers to the volume occupied by the heat exchange tube body.

[0039] Due to the constraints of chemical equilibrium, carbon oxides and hydrogen cannot be completely converted in a single pass through the methanol synthesis reactor (the single-pass conversion rate of the reactor is low). The molar fraction of methanol in the outlet gas of the methanol synthesis reactor is only about 3% to 6%. The unreacted gas must be recycled to resolve the contradiction between the low synthesis rate and the high utilization rate of the raw material gas.

[0040] Given the significant differences in boiling points between methanol and water and carbon dioxide and hydrogen, flash evaporation is typically used to separate the reaction products. The flash evaporator used for methanol synthesis is essentially a condenser (water-cooled at around 40°C) for separation. In the flash evaporation apparatus, considering that hydrogen and carbon dioxide are far from the phase transition curve on the gas side, and given their very low solubility, intermolecular interactions can be neglected. Therefore, the ideal gas law can be used to describe the gas state. ; In the formula, p It is gas pressure. C It is the molar concentration of the gas. R It is the gas constant. T It refers to the temperature of the gas.

[0041] For methanol and water in the flash evaporator, their gaseous components have low temperatures, strong polarity, and are close to their critical points. Therefore, the volume of the molecules and the intermolecular attraction must be considered. The van der Waals equation or a more precise gas law should be used. This embodiment uses the van der Waals equation to describe the state of methanol gas and water vapor: ; In the formula, is the molar volume, which is the reciprocal of the molar concentration of the gas; a It is a constant that reflects the magnitude of intermolecular attraction; b It is the volume constant per mole of molecules.

[0042] The compressor is an important electrical load in the methanol synthesis system. In the methanol synthesis system, the feed gas of CO2 and H2 needs to be pressurized by the compressor to reach the gas pressure required for the reaction; the gas circulation within the synthesis system is usually carried out by a circulating compressor.

[0043] This model uses a generalized ideal reciprocating compressor, and assumes that the compressor model itself is in a steady state. In the reciprocating compressor, the gas undergoes a multi-directional process (i.e., a generalized equivalent process), and the inlet and outlet satisfy the following: ; in, The gas volume at the compressor inlet power of k, The gas volume at the compressor outlet power of k, This refers to the gas temperature at the compressor inlet. Here, k represents the gas temperature at the compressor outlet. This refers to the inlet gas pressure of the reciprocating compressor. This refers to the outlet gas pressure of the reciprocating compressor. This refers to the inlet or outlet gas pressure of a reciprocating compressor. This refers to the inlet or outlet gas volume of a reciprocating compressor. This refers to the inlet or outlet gas temperature of a reciprocating compressor. For the mass of the gas, The molar mass of the gas. The work consumed by a reciprocating compressor to compress gas.

[0044] Power consumed by a reciprocating compressor to compress gas It can be expressed by the following formula: ; In the formula, V e The effective suction volume of the reciprocating compressor is given by k, where k is the polynomial exponent. , These are the inlet and outlet gas pressures of the reciprocating compressor, respectively.

[0045] During normal operation, the compressor generates three main types of forces: gas force, frictional force, and inertial force. The combination of these three forces constitutes the commonly referred to combined piston force. This invention utilizes a single-crank, two-cylinder compressor with a V90° orientation, setting the inertial force to zero. The gas force, frictional force, and the mechanical load torque of the electric motor are expressed as follows: ; ; ; ; in, Indicates the compressor cylinder stroke. This indicates the equivalent length of the clearance volume on the cover side relative to the cylinder stroke. This indicates the piston's displacement relative to the cover side. This indicates the minimum inhalation pressure. Indicates the maximum exhaust pressure. Indicates power level. Indicates mechanical efficiency. Indicates the crank radius; F is the piston area. For compressor cylinder stroke, Rated speed, It is the product of the compressor cylinder stroke and the rated speed, and is not considered as a separate physical quantity. For the gas force on the cover side, For axial gas forces, The frictional force generated by reciprocating motion. Friction is the force generated by rotational motion.

[0046] (2) Power side modeling: The power-side model includes the electrical and mechanical equations of the permanent magnet synchronous motor, as well as a back-to-back converter model consisting of a rectifier and an inverter coupled through a DC bus.

[0047] Specifically, in combination Figure 3 The compressor is the main electrical load in methanol synthesis, and common types include centrifugal and reciprocating compressors. This embodiment uses a reciprocating compressor, whose typical components include a compression piston, a permanent magnet synchronous motor (PMSM), a rectifier, and an inverter. The compression piston is driven by the PMSM, which is connected to the power distribution network via a drive system consisting of a rectifier and an inverter. The power supply side of the power distribution network is connected to a hypothetical infinite power grid.

[0048] Represented by the rotor reference frame (dq frame), the mechanical equations of the PMSM are: ; In the formula, The moment of inertia of the generator, in units of . ; The rotor's mechanical angular velocity is expressed in rad / s. For electromagnetic torque, The torsional torque acting on the crankshaft during rotation is expressed in units of 1000 m / s. ; This is the damping coefficient, in units of... ; This represents the rotor's angular position, measured in rad.

[0049] The electrical equations for PMSM are: ; In the formula, These are the d-axis and q-axis stator currents, in A. These are the d-axis and q-axis inductances, measured in watts (H). These are the d-axis and q-axis stator voltages, in V. Stator resistance, unit is Ω; This represents the number of pole pairs of the motor. This refers to the magnetic flux induced by the permanent magnet in the stator winding, measured in Wb.

[0050] The power dispatch control system structure diagram for this embodiment of the power-methanol synthesis is as follows: Figure 4As shown, this control system is designed for reactor temperature regulation and electrical load power scheduling in methanol synthesis, enabling coordinated operation between the chemical production process and power supply.

[0051] In terms of temperature control, the system measures the hot spot temperature of the reactor in real time. By adjusting the cooling water vapor flow rate The temperature inside the reactor tubes is controlled below 250℃ to ensure catalyst activity and reaction selectivity. When the hot spot temperature exceeds 280℃, the system activates a safety interlock mechanism to limit the maximum opening of the feed gas valve, preventing the reactor from overheating and causing catalyst sintering or exacerbating side reactions.

[0052] In terms of power load dispatch control, the power supply side monitors the power consumption of the methanol synthesis system in real time. By coordinating the opening of the methanol synthesis feedstock gas valves and the compressor speed, flexible adjustment of the load power is achieved. This control strategy enables the methanol synthesis system to respond to the power dispatch commands of the power grid, increasing the load when the power supply is sufficient and reducing the load when the power supply is tight, thereby achieving economical operation of the power-chemical coupling system.

[0053] In terms of motor speed control, both the feed gas compressor and the recycle gas compressor for methanol synthesis employ a dual closed-loop vector control strategy with an outer speed loop and an inner current loop. The speed difference calculated from the power control signal acts on the PI controller of the outer speed loop to obtain reference values ​​for the d-axis and q-axis current loops. The d-axis and q-axis current differences act on the corresponding inner current loop PI controllers, and are converted into switching signals via space vector pulse width modulation (SVPWM), which are then input to the gate of the IGBT.

[0054] At the actuator level, gas flow valves are used to control the feed gas valves and cooling water vapor flow rate on the methanol synthesis side, precisely regulating the inlet gas velocity to ensure the stability of the reactor inlet material ratio and cooling medium flow rate. On the power side, the grid controls the speed of the permanent magnet synchronous motor through a back-to-back converter, adapting to changes in the mechanical load torque of the compressor. The back-to-back converter consists of a machine-side converter and a grid-side converter coupled via a DC bus. The machine-side converter employs a vector control strategy based on rotor flux orientation to regulate motor speed and torque, while the grid-side converter stabilizes the DC voltage.

[0055] PI control output (controller output signal) ) and input quantity (error) The relationship between ) can be expressed by the following formula: ; In the formula, For proportional gain, This is the integral gain.

[0056] The modeling process of the above-mentioned full-order system uses compressor power as a two-way coupling link to establish a force-electricity-heat interaction model between the power side and the chemical side, avoiding the shortcomings of traditional methods that simplify methanol synthesis to a constant power load and ignore its dynamic interaction. The compressor drive motor adopts a dual closed-loop vector control strategy with speed outer loop and current inner loop, which can truly reflect the complete coupling path of grid voltage / frequency fluctuations affecting the state of feed gas through the compressor and thus affecting methanol yield.

[0057] The chemical processing side employs a one-dimensional unsteady-state model. Based on the one-dimensional finite difference method of a plug flow reactor, a simultaneous set of equations for material conservation, energy conservation, and momentum conservation is established and discretized along the axial direction of the reaction tube. This accurately describes the distribution of temperature, pressure, and component concentration along the axial direction of the reaction tube and their evolution over time. Simultaneously, an energy conservation equation is established for the gas inside the tube, the tube body, and the shell-side cooling medium using a shell-and-tube structure, enabling a precise description of the heat transfer process inside the reactor.

[0058] The power side adopts the PMSM accurate model, which uses the rotor reference frame (dq frame) to represent the electrical and mechanical equations of the permanent magnet synchronous motor. Combined with the back-to-back converter model and SVPWM modulation strategy, it can accurately capture electromagnetic transient and electromechanical transient processes.

[0059] At the same time, a two-layer control architecture was established, which includes temperature control (monitoring reactor hot spot temperature and regulating cooling steam) and power dispatch control (real-time monitoring of load power and coordinating valve opening and compressor speed), enabling the methanol synthesis system to respond to the power dispatch command of the power grid and realize the coordinated operation of the power-chemical coupling system.

[0060] S102: Introduce singular perturbation parameters to convert the full-order dynamic model into the form of standard singular perturbation equations.

[0061] The full-order dynamic model of power grid-methanol synthesis established in this embodiment contains two types of dynamic processes with drastically different response speeds, and is a typical set of rigid differential-algebraic equations. In order to eliminate model rigidity and achieve efficient simulation, Singular Perturbation Theory (SPT) is introduced. By using perturbation parameters, the system state variables are separated into fast variables and slow variables, and a reduced-order first subsystem (hereinafter referred to as the fast subsystem) and a second subsystem (hereinafter referred to as the slow subsystem) are established to achieve time-scale decoupling.

[0062] The basic idea of ​​the singular perturbation method is: when there exists a positive parameter in the system that is much smaller than 1... Multiplying the singular perturbation parameters by the derivatives of some state variables allows for analysis of the system at different time scales. At a fast time scale, the slow variables approximate constants, and the system degenerates into a boundary layer system (BLS) describing fast dynamics; at a slow time scale, let... The fast dynamic equations degenerate into algebraic equations, and the system degenerates into a quasi-steady-state system describing slow dynamics.

[0063] The dynamic equations established in this embodiment—the grid-side dynamic equation, the methanol synthesis-side dynamic equation, and the control system equation—form a system of full-order differential-algebraic equations. Based on the difference in the response speed of the state variables, they are divided into fast state variables and slow state variables: fast state variables This includes the stator and rotor currents and rotor mechanical angular velocity of a permanent magnet synchronous motor, taking the electromagnetic transient process as the characteristic time scale. Slow state variables. This includes all process state variables on the methanol synthesis side, including temperature, pressure, flow rate at each node, and molar concentration of each component.

[0064] In addition, algebraic variables Including compressor power, control output, and external input. This refers to the dispatching instructions, the feed rate of methanol synthesis raw material gas, and the flow rate of cooling steam.

[0065] The full-order model is summarized as follows: ; ; ; In the formula, The expression representing the gas law. Represents the reaction rate expression. , Taking the gas inside the reaction tube as an example, , , .

[0066] The above equations are normalized (taking the power side as an example). The equations can be rearranged into the following singular perturbation equations: ; In the formula, For the differential equations of a slow system, For the differential equations of the fast system, Algebraic equations and PI control; These are slow state variables, including temperature, pressure, and the concentration of each component within the methanol synthesis reactor. This is the first derivative of the slow state variable with respect to time. These are fast state variables, including the stator and rotor currents and rotor speed of the permanent magnet synchronous motor. The first derivative of the fast state variable with respect to time; These are algebraic variables, including compressor power, control output, etc. External input variables include power grid dispatch commands, methanol synthesis feed gas flow rate, and cooling steam flow rate.

[0067] like After per-unitization It is a small nonnegative scalar, L d and L q These are inherent electrical parameters of the permanent magnet synchronous motor. The product of these two parameters is used as the perturbation parameter, so that ε directly reflects the physical essence of the fast dynamic subsystem, rather than a purely mathematically small quantity set by humans. Furthermore, the d-axis and q-axis inductances of high-power permanent magnet synchronous motors are usually in the millihenry range. After standardization, their product is in the range of 1e-6 to 1e-4, which naturally meets the requirement of singular perturbation theory that the perturbation parameter is much smaller than 1, ensuring the effectiveness of the reduced-order model.

[0068] In the grid-methanol synthesis system involved in this embodiment, the electromagnetic transient equations of PMSM have stable damping characteristics (stator resistance R>0, damping coefficient F>0), therefore the solution of the slow subsystem in Tikhonov's theorem can be obtained by... The conditions for the accuracy to approximate the solution of the full-order model can be met.

[0069] S103: Under the first time scale, slow variables are treated as constants to obtain the first subsystem describing the electromagnetic transient and electromechanical transient processes on the power side; the first subsystem is solved to obtain the stator current, rotor angular velocity and instantaneous power of the permanent magnet synchronous motor.

[0070] Considering the dynamic characteristics of the power system, in a fast time scale Below, slow variables rate of change Therefore, it can be regarded as a constant in fast dynamic processes.

[0071] Transform the full-order model to a fast timescale as follows: ; make The slow dynamic equation degenerates into That is, slow variables remain constant over fast time scales, thus yielding fast subsystems (boundary layer systems): ; in, This represents a slow variable that remains constant during a fast dynamic process, and is considered a fixed parameter. This fast subsystem describes the stator current of the PMSM when disturbances occur on the grid side (such as changes in power dispatch commands). , and rotor angular velocity The fast response process is achieved. The computational complexity of solving the fast subsystem is much smaller than that of the full-order model, allowing for microsecond-level step sizes, reducing control delay, and improving the dynamic response speed of the system to meet the requirements of lower motor inductance for IGBT switching speed.

[0072] S104: On the second timescale, let the fast variable reach a quasi-steady state, and the first subsystem degenerates into an algebraic equation to obtain the second subsystem describing the long-term evolution of heat transfer, mass transfer and chemical reaction on the methanol synthesis side; solve the second subsystem to obtain the time evolution results of reactor temperature, pressure and component concentration.

[0073] From a geometric point of view, the solution trajectory of the tachyon system lies in the equations... On the defined constrained manifold, when the fast variable reaches its quasi-steady state, the system trajectory approaches an equilibrium point on that manifold.

[0074] Slow subsystems are used to describe the primitive time scale. The slow thermodynamics and chemical dynamics of methanol synthesis on the pristine timescale. Let the singular perturbation parameter... Fast dynamic equations degenerate into algebraic equations: ; This means that the fast variable has reached its "quasi-steady state," that is, the electromagnetic transient process has been completed instantaneously, the current dynamics of the PMSM are negligible, and the rotational speed quickly reaches stability under high sampling frequency control. It is implicitly determined by algebraic equations and PI control as a function of the slow variable and the input. Thus, the slow subsystem (quasi-steady-state system) is obtained: ; The slow subsystem describes the evolution of temperature, pressure, and component concentration within the methanol synthesis reactor on timescales from seconds to minutes, as well as the slow thermodynamic dynamics of equipment such as heat exchangers and flash tanks. Solving the slow subsystem can be done in second- or even minute-scale steps, resulting in an order-of-magnitude improvement in computational efficiency compared to the full-order model.

[0075] S105: The first subsystem and the second subsystem exchange data with the compressor power as the bidirectional coupling quantity, and iteratively solve the problem at two time scales to obtain the final solution results for the two subsystems.

[0076] In this embodiment, the full-order system of the power grid-methanol synthesis is divided into fast variables (PMSM stator and rotor current, rotor angular velocity) and slow variables (reactor temperature, pressure, component concentration) based on the difference in the response speed of state variables. The full-order model is transformed into a standard singular perturbation form through perturbation parameters. At the fast time scale, the slow variables are treated as constants, and the slow dynamic equations are degenerated to obtain a fast subsystem (boundary layer system) describing the electromagnetic transient and electromechanical transient processes on the power side. At the slow time scale, the singular perturbation parameters are made to approach zero, and the fast dynamic equations are degenerated into algebraic equations to obtain a slow subsystem (quasi-steady-state system) describing the long-term evolution of heat transfer, mass transfer, and chemical reactions on the methanol synthesis side. The fast and slow subsystems achieve bidirectional coupling and data exchange through the compressor power.

[0077] The compressor power was chosen as the bidirectional coupling quantity because the compressor is the core hub for energy conversion between the power grid and methanol synthesis, and power is the most direct physical quantity describing the interaction between electrical energy and the chemical process state. Therefore, in numerical calculations, compressor power is naturally suitable as the interface between the fast subsystem (microsecond level) and the slow subsystem (second level): voltage / frequency disturbances on the power grid side will change the instantaneous power in real time, thereby affecting the feed state on the chemical side; at the same time, production adjustments on the chemical side due to changes in catalyst activity or scheduling needs will be reflected in the compressor load torque in real time, which in turn affects the power grid current.

[0078] The compressor power is an algebraic variable instantaneously determined by the current and rotational speed, and does not involve integration operations across time scales. After the fast subsystem is solved, the slow subsystem can directly read the power value without having to solve the fast differential equation in reverse, thus achieving an efficient and conflict-free connection between the two time scales.

[0079] Meanwhile, in some implementations, the compressor is used as the core of interaction between the power grid and methanol synthesis. A coordinated control architecture including temperature control and power scheduling control is established. The temperature control link measures the hot spot temperature of the reactor in real time, and maintains the reaction temperature within the catalyst activity window by adjusting the cooling water vapor flow rate. When the hot spot temperature exceeds the limit, a safety interlock mechanism is activated to restrict the opening of the feed gas valve.

[0080] The power dispatch control system monitors the power consumption of the methanol synthesis system in real time and responds to the power dispatch command of the power grid by coordinating the opening of the raw material gas valve and the compressor speed.

[0081] The compressor drive motor adopts a dual closed-loop vector control strategy with an outer speed loop and an inner current loop, and generates inverter switching signals through space vector pulse width modulation.

[0082] This embodiment of the scheme enables flexible adjustment of the methanol synthesis load power, allowing the chemical production process to respond to the grid dispatch requirements while ensuring the safe operation of the equipment and the activity of the reaction catalyst.

[0083] The simulation verification process of the method in this embodiment is as follows: The above Figures 2-4 The described system was used for simulation verification of the method, and the system parameters are shown in Tables 1 to 4. Microseconds (μs) were selected as the time scale for the power system (time scale 1), and seconds (s) were selected as the time scale for the methanol synthesis system (time scale 2). Notably, in time scale 1, the IGBT inverter used space vector pulse width modulation (SVPWM) with a 6kHz carrier frequency and a sampling time of 10μs. An LC filter was applied to the SVPWM to mitigate inverter ripple; it passed through the fundamental frequency component without attenuation (i.e., harmonics of approximately 2kHz multiples generated by the inverter were filtered out). Through extensive testing, the step size of the time scale was selected as follows: , In the simulation process, nonnegative scalars are actually used. The nonnegative scalar derived in the previously mentioned method The orders of magnitude are similar.

[0084] The relevant parameters of the chemical reaction kinetic equations are shown in Table 1.

[0085] Table 1. Relevant parameters of the chemical reaction kinetic equation.

[0086] The reactor flow rate, inlet temperature, catalyst porosity, reaction tube length and other parameters are shown in Table 2.

[0087] Table 2 Reactor and material parameters

[0088] The relevant parameters of the compressor are shown in Table 3.

[0089] Table 3 Parameters required for compressor thermodynamic calculations

[0090] The physical quantities and parameters of the control system are shown in Table 4. Among them, PI control 1 refers to calculating the relative difference between the reactor hot spot temperature and 250℃, and controlling the temperature inside the reactor tube below 250℃ by adjusting the cooling water vapor flow rate; PI control 2 refers to calculating the relative difference between the total methanol synthesis load power and the power dispatch (total load power deviation rate function g), and controlling the opening of the methanol synthesis feed gas valve to make the methanol synthesis load power reach the power dispatch value; PI control 3 and PI control 4 are the outer loop PI controller and the inner loop current PI controller of the feed gas compressor speed, respectively; PI control 5 and PI control 6 are the outer loop PI controller and the inner loop current PI controller of the circulating gas compressor speed, respectively.

[0091] Table 4 Control System Parameters

[0092] This embodiment ignores the compressor's start-up and shutdown process. The simulation of the modeling method was performed on a computer running 64-bit Windows 11, equipped with an Intel(R) Core(TM) i7-10510U CPU@1.80GHz and 16GB of memory. The simulation software was Matlab / Simulink R2021b.

[0093] Combination Figure 5 The specific solution steps are as follows: (1) Preprocessing and initialization: Input power grid The parameters of the methanol synthesis system were set, the initial operating conditions were determined, and the fast-state variables (PMSM stator and rotor current, rotor angular velocity) and slow-state variables (reactor temperature, pressure, component concentration, etc.) were divided and adjusted to the initial steady-state conditions.

[0094] (2) Solving the fast subsystem: Under the fast time scale, the slow variables are treated as constants, and the fast subsystem (boundary layer system) is solved to obtain the stator current, rotor angular velocity and instantaneous power of the PMSM compressor. The step size is in the microsecond range.

[0095] (3) Solving the slow subsystem: Under the original time scale, let the fast variable reach a quasi-steady state, solve the slow subsystem (quasi-steady-state system), and obtain the temperature, pressure, component concentration and thermodynamic state of equipment such as heat exchanger and flash tank in the reactor. The step size is on the order of seconds.

[0096] (4) Two-way coupling and iteration: The compressor power is used as the output of the fast subsystem and as the input boundary of the slow subsystem. Temperature regulation and power scheduling control are performed simultaneously to update each input signal. Steps (2) and (3) are repeated until the simulation ends.

[0097] The specific simulation results are as follows: This embodiment omits the compressor's start-up and shutdown process. (Power grid) The methanol synthesis system operates in steady state with an initial reactor temperature of 523 K, an initial inlet gas velocity of 0.3066 m / s, and an initial cooling steam velocity of 5.02 m / s. Except for the compressor load, other power consumption remains constant.

[0098] When the power dispatch command on the grid side increases by 10% from the rated value at 21 s, the red curve represents the dynamic response of the reduced-order model (a dual-timescale model based on singular perturbation theory), and the blue curve represents the response of the full-order model that is solved by placing the fast and slow variables under a single timescale. This is used to verify the effectiveness of the proposed dual-timescale modeling method.

[0099] like Figure 6 and Figure 7 As shown, the hot spot temperature and outlet methanol mole fraction in the methanol synthesis reactor maintain a slow evolution trend on a slow timescale (seconds). With a slow timescale step size of 0.5 s, when the power dispatch command abruptly occurs at 21 s, the reactor temperature and outlet methanol concentration exhibit extremely slow changes, indicating that the thermodynamic and chemical dynamics of the methanol synthesis side are minimally affected by short-term power dispatch disturbances, and their evolution is dominated by heat and mass transfer processes on a minute-scale timescale. The degree of agreement between the red and blue curves in the figure verifies the effectiveness of the proposed dual-timescale solution method, i.e., whether or not the fast dynamic characteristics of the power side are considered, the impact on the long-term evolution trajectory of the reactor temperature and outlet concentration is essentially negligible.

[0100] Figure 8 Figure (a) shows a schematic diagram of the stator A-phase current of the raw material compressor. Figure 8 Figure (b) shows a schematic diagram of the stator A-phase current of the recirculating gas compressor. Figure 8 (c) in the figure shows a schematic diagram of the rotor speed of the raw material compressor. Figure 8 Figure (d) in the diagram shows the rotor speed of the circulating gas compressor.

[0101] It can be seen that the stator current and rotor angular velocity of the PMSM exhibit rapid response on a fast timescale (microseconds). With a fast timescale step size of 10 μs, when the power dispatch command changes abruptly at 21 s, the stator current and rotor angular velocity adjust and tend towards a new quasi-steady state within milliseconds. The dynamic response of the above variables is dominated by the fast timescale, and its adjustment speed is much faster than the changes in the process parameters on the methanol synthesis side. Compared to the full-order model, the reduced-order model only has some error in the components of current and speed fluctuations caused by the control signal, while maintaining consistency with the full-order model in dynamic trends and steady-state values, verifying the effectiveness of the fast subsystem in capturing electromagnetic transient processes.

[0102] Because the power system uses microsecond (μs) timescales for fast timescales and the methanol synthesis system uses second (s) timescales for slow timescales, solving the full-order model on a single timescale would require traversing the entire simulation time domain with microsecond-level steps, resulting in a significant computational burden. This embodiment decomposes the full-order model into fast and slow subsystems based on singular perturbation theory, solving them with steps of 10 μs and 0.5 s respectively. In a simulation example with a time of 500 s (chemical engineering side time domain), the simulation time of the proposed dual-timescale method is approximately 17809 s, while the simulation time of the full-order model on a single timescale is approximately 29919 s, resulting in a 40.5% time saving. Therefore, the method proposed in this embodiment is beneficial for improving the power grid. Computational performance of dynamic simulation of methanol synthesis system.

[0103] Furthermore, the Mean Relative Error (MRE) is used to evaluate the differences in output variables between the singular perturbation reduced-order model and the full-order model. Considering the rapid response and large variation of rotor speed to scheduling commands, and the near-zero average value of stator current, while the temperature of the methanol reactor and the mole fraction of methanol at the outlet vary very little, the mean relative errors on the power side and the methanol side are defined as follows: ; In the formula, For the output variable values ​​of the singular perturbation reduced-order model, These are the output variable values ​​for the full-order model. The average relative error of each output variable is shown in Table 5.

[0104] Table 5 Average Relative Error

[0105] Mean relative error (MRE) is a quantitative indicator that measures the degree of deviation of the output of the reduced-order model from the full-order model (considered as the baseline). The smaller the MRE value, the higher the dynamic reproduction accuracy of the reduced-order model. Based on the calculated MRE value, the effectiveness of the reduced-order model at different time scales is determined. For slow subsystems, if the MRE is extremely small, it proves that the error introduced by simplifying fast dynamics to algebraic equations on the long-term evolution trajectory of slow variables is negligible, and the slow subsystem can reproduce the dynamics of the chemical industry with high accuracy. For fast subsystems, if the MRE is within an acceptable range, and the dynamic trend and steady-state value are consistent with the full-order model, then the fast subsystem is considered to effectively capture electromagnetic transient responses.

[0106] As shown in Table 5, when a step disturbance occurs in the power dispatch command, the average relative error of the output variables on the fast time scale (power side) is greater than that on the slow time scale (methanol synthesis side). This indicates that the power dispatch disturbance has a more direct and significant impact on the fast dynamics of the power side, while the impact on the slow dynamics of the methanol synthesis side has been significantly smoothed through the power transmission of the compressor.

[0107] It should be noted that the stator current has a near-zero average value and is affected by the high-frequency ripple of SVPWM, so the MRE value calculated according to the above definition is relatively large (e.g., 0.933). However, this is due to the amplification effect of the index caused by the small denominator, and does not mean that the reduced-order model has failed. In this case, a comprehensive judgment should be made in conjunction with the dynamic waveform trend chart.

[0108] In summary, the following conclusions can be drawn: (1) At slow timescales, the singular perturbation reduced-order model and the full-order model are highly consistent in the dynamic evolution trajectories of reactor hot spot temperature and outlet methanol mole fraction. When the power dispatch command causes a step disturbance, the influence of the fast dynamics on the methanol synthesis side on the slow dynamics is greatly smoothed after being transmitted through the compressor power. The method of simplifying the fast dynamics into algebraic equations in this embodiment introduces negligible errors to the long-term evolution trajectory of the slow variables. The slow subsystem can accurately reproduce the long-term thermodynamic and chemical dynamics of the methanol synthesis side.

[0109] (2) On a fast timescale, the singular perturbation reduced-order model is basically consistent with the full-order model in terms of the dynamic response trends of the stator current and rotor angular velocity in the PMSM. The reason for the relatively large error in the stator current is that its average value is close to zero and the local fluctuations in the current caused by the SVPWM signal. The definition of relative error amplifies this index. The fast subsystem can effectively capture the fast response process of electromagnetic transients and electromechanical transients at the instant of the power dispatch command step. The error introduced by its reduced-order model is only reflected in the component fluctuating due to the influence of the control signal, and this error is within an acceptable range.

[0110] (3) Improved computational efficiency. The dual-timescale method proposed in this embodiment decomposes the full-order model into two reduced-order subsystems, fast and slow. The singular perturbation order reduction significantly reduces the computational burden of the rigid system.

[0111] Example 2 In one or more embodiments, a power grid is disclosed. A dual-timescale modeling system for methanol synthesis, specifically including: The system full-order model construction module is used to establish a full-order dynamic model of the system, including the power grid, the compressor drive system, and the methanol synthesis reaction process. The system state variables are divided into fast variables and slow variables according to the difference in response speed. The fast variables include the stator current and rotor angular velocity of the permanent magnet synchronous motor driving the compressor, and the slow variables include the temperature, pressure, and component concentration in the methanol synthesis reactor. The model conversion module is used to introduce singular perturbation parameters and convert the full-order dynamic model into the form of standard singular perturbation equations; The fast-scale system solver module is used to treat slow variables as constants at the first time scale to obtain the first subsystem describing the electromagnetic and electromechanical transient processes on the power side; solving the first subsystem yields the stator current, rotor angular velocity, and instantaneous power of the permanent magnet synchronous motor; The slow-scale system solver module is used to bring the fast variables to a quasi-steady state at the second time scale. The first subsystem degenerates into an algebraic equation, resulting in the second subsystem describing the long-term evolution of heat transfer, mass transfer, and chemical reactions on the methanol synthesis side. Solving the second subsystem yields the time evolution results of reactor temperature, pressure, and component concentration. The system coupling solution module is used to exchange data between the first subsystem and the second subsystem using the compressor power as a bidirectional coupling quantity, and to perform iterative solutions at two time scales to obtain the final solution results for the two subsystems.

[0112] The specific implementation methods of each module are exactly the same as those in Example 1, and will not be described in detail here.

[0113] Example 3 In one or more embodiments, a terminal device is disclosed, comprising a processor and a memory, wherein the processor is configured to implement instructions; and the memory is configured to store a plurality of instructions adapted to be loaded and executed by the processor from the power grid described in Embodiment 1. A dual-timescale modeling method for methanol synthesis systems.

[0114] It should be understood that in this embodiment, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any other conventional processor.

[0115] Memory may include read-only memory and random access memory, and provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, memory may also store information about the device type.

[0116] In the implementation process, each step of the above method can be completed by the integrated logic circuits in the processor hardware or by software instructions.

[0117] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A power grid A dual-timescale modeling method for methanol synthesis systems, characterized in that, include: A full-order dynamic model of the system, including the power grid, the compressor drive system, and the methanol synthesis reaction process, is established. The system state variables are divided into fast variables and slow variables according to the difference in response speed. The fast variables include at least the stator current and rotor angular velocity of the permanent magnet synchronous motor driving the compressor, and the slow variables include at least the temperature, pressure, and component concentration in the methanol synthesis reactor. By introducing singular perturbation parameters, the full-order dynamic model is transformed into the form of standard singular perturbation equations; At the first time scale, slow variables are treated as constants to obtain the first subsystem describing the electromagnetic and electromechanical transient processes on the power side; solving the first subsystem yields the stator current, rotor angular velocity, and instantaneous power of the permanent magnet synchronous motor. At the second timescale, the fast variables are allowed to reach a quasi-steady state, and the first subsystem degenerates into an algebraic equation, resulting in a second subsystem describing the long-term evolution of heat transfer, mass transfer, and chemical reactions on the methanol synthesis side. Solving the second subsystem yields the time evolution results of reactor temperature, pressure, and component concentration. The first and second subsystems exchange data using compressor power as a bidirectional coupling quantity, and iteratively solve the problem at two time scales to obtain the final solution results for the two subsystems.

2. A power grid as described in claim 1 A dual-timescale modeling method for methanol synthesis systems, characterized in that, The full-order dynamic model includes a chemical side model and a power side model. The chemical side model includes a compressor model, a reactor model, a heat exchanger model, and a flash separation model. The power side model includes the electrical and mechanical equations of a permanent magnet synchronous motor and a back-to-back converter model consisting of a rectifier and an inverter coupled through a DC bus.

3. A power grid as described in claim 1 A dual-timescale modeling method for methanol synthesis systems, characterized in that, The full-order dynamic model is converted into the form of standard singular perturbation equations, specifically: ; in, The differential equation representing the second subsystem is: The differential equation representing the first subsystem is: Representing algebraic equations and PI control; For singular perturbation parameters, ; For slow state variables, The first derivative of the slow state variable with respect to time. For fast state variables, The first derivative of the fast state variable with respect to time, For algebraic variables, For external input variables.

4. A power grid as described in claim 3 A dual-timescale modeling method for methanol synthesis systems, characterized in that, The singular perturbation parameters The value is the product of the d-axis inductance and the q-axis inductance of the permanent magnet synchronous motor.

5. A power grid as described in claim 3 A dual-timescale modeling method for methanol synthesis systems, characterized in that, The first subsystem includes a set of differential equations with d-axis current, q-axis current and rotor angular velocity as state variables; The second subsystem includes a material conservation differential equation with the molar concentration of components at each node of the reactor as the state variable, an energy conservation differential equation with the gas temperature, cooling medium temperature and tube temperature at each node of the reactor as the state variables, as well as the lumped parameter heat conduction equation of the heat exchanger and the thermodynamic equation of the flash separation device. The algebraic equations and PI control include: gas state equation, reaction rate equation, pressure drop equation, electromagnetic torque equation, speed outer loop PI control equation, current inner loop PI control equation, temperature PI control equation, and power dispatch PI control equation; instantaneous constraints on state variables and control commands are implemented at each time step.

6. A power grid as described in claim 1 A dual-timescale modeling method for methanol synthesis systems, characterized in that, The first subsystem and the second subsystem exchange data bidirectionally using compressor power as the coupling variable, specifically: The instantaneous power of the compressor output by the first subsystem is used as the input boundary condition of the second subsystem. The compressor load requirement is determined based on the reactor temperature, pressure and component concentration output by the second subsystem. The compressor load requirement acts in reverse on the first subsystem, realizing data exchange between the first and second subsystems with the compressor power as the bidirectional coupling quantity.

7. A power grid as described in claim 1 A dual-timescale modeling method for methanol synthesis systems, characterized in that, It also includes: performing coordinated control on the first and second subsystems, including temperature control and power dispatch control; The temperature control is used to detect the reactor hot spot temperature in real time, adjust the cooling water vapor flow rate according to the hot spot temperature, and maintain the reactor temperature within the catalyst activity range; when the reactor hot spot temperature is detected to exceed the preset upper temperature limit, the maximum value of the feed gas valve opening is limited to prevent the reactor from overheating. Real-time power dispatch control is used to monitor the load power consumption of the methanol synthesis system in real time. It responds to the power dispatch command of the power grid by coordinating the opening degree of the feed gas valve and the compressor speed.

8. A power grid as described in claim 1 A dual-timescale modeling method for methanol synthesis systems, characterized in that, Also includes: The average relative errors of the output variables of the first subsystem and the output variables of the second subsystem relative to the corresponding output variables of the full-order model are calculated respectively. The average relative error of the power side is calculated as the average of the ratio of the absolute value of the difference between the output variable and the corresponding variable of the full-order model at each time to the corresponding variable of the full-order model. The average relative error of the methanol synthesis side is calculated as the average of the ratio of the absolute value of the difference between the output variable and the corresponding variable of the full-order model at each time to the time mean of the corresponding variable of the full-order model. The modeling accuracy of the reduced-order model is evaluated based on the average relative error.

9. A power grid A dual-timescale modeling system for methanol synthesis systems, characterized in that, include: The system full-order model construction module is used to establish a full-order dynamic model of the system, including the power grid, the compressor drive system, and the methanol synthesis reaction process. The system state variables are divided into fast variables and slow variables according to the difference in response speed. The fast variables include the stator current and rotor angular velocity of the permanent magnet synchronous motor driving the compressor, and the slow variables include the temperature, pressure, and component concentration in the methanol synthesis reactor. The model transformation module is used to introduce singular perturbation parameters and convert the full-order dynamic model into the form of standard singular perturbation equations; The fast-scale system solver module is used to treat slow variables as constants at the first time scale to obtain the first subsystem describing the electromagnetic and electromechanical transient processes on the power side; solving the first subsystem yields the stator current, rotor angular velocity, and instantaneous power of the permanent magnet synchronous motor; The slow-scale system solver module is used to bring the fast variables to a quasi-steady state at the second time scale. The first subsystem degenerates into an algebraic equation, resulting in the second subsystem describing the long-term evolution of heat transfer, mass transfer, and chemical reactions on the methanol synthesis side. Solving the second subsystem yields the time evolution results of reactor temperature, pressure, and component concentration. The system coupling solution module is used to exchange data between the first subsystem and the second subsystem using the compressor power as a bidirectional coupling quantity, and to perform iterative solutions at two time scales to obtain the final solution results for the two subsystems.

10. A terminal device comprising a processor and a memory, the processor for implementing instructions; the memory for storing multiple instructions, characterized in that, The instructions are adapted to be loaded by a processor and executed as described in any one of claims 1-8 of the power grid. A dual-timescale modeling method for methanol synthesis systems.