Heat pump temperature control method and apparatus
By combining closed-loop control with models, the operating parameters of the heat pump motor are adjusted in real time, solving the problem that the heat pump temperature control method cannot respond to changes in building temperature in a timely manner, and achieving efficient and precise temperature regulation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE GRID BEIJING ELECTRIC POWER CO
- Filing Date
- 2022-11-30
- Publication Date
- 2026-06-09
AI Technical Summary
Existing heat pump temperature control methods cannot respond to changes in building temperature in a timely manner, resulting in untimely temperature control and low control accuracy.
By obtaining the difference between the actual indoor temperature and the preset indoor temperature of the building, closed-loop control is carried out. Using the heat pump working model and the building heat transfer model, the three-phase voltage is adjusted in real time to control the operation of the heat pump motor, so as to achieve timely response and precise regulation of the building temperature.
It enables the heat pump motor to respond promptly to changes in building temperature and to precisely regulate indoor temperature, thereby improving the efficiency and accuracy of temperature control.
Smart Images

Figure CN115733402B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microgrid energy control technology, and more specifically, to a heat pump temperature control method and apparatus. Background Technology
[0002] "Photovoltaic-Storage-DC-Flexible" refers to a new type of building power distribution system (or building energy system) that utilizes renewable energy sources such as photovoltaics for power generation, energy storage, DC power distribution, and flexible energy use to meet the needs of carbon neutrality goals. It fully utilizes the building's own photovoltaic energy and thermal inertia energy storage, and is an important pathway to achieving dual-carbon goals. The system primarily relies on heat pumps for cooling or heating to regulate the building's internal temperature, and temperature change control during heat pump temperature regulation is paramount. Because building internal temperature changes are influenced by various factors, such as the heat transfer effect of building walls and windows, the self-heating of people and household appliances, and the operation of heat pumps for heating or cooling, building temperatures fluctuate greatly. Current heat pump temperature control methods cannot respond promptly to these changes, leading to problems such as untimely heat pump temperature control and low control accuracy.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a heat pump temperature control method and apparatus to at least solve the technical problems of untimely temperature control and low control accuracy caused by the inability of heat pump temperature control methods in related technologies to respond promptly to changes in building temperature.
[0005] According to one aspect of the present invention, a heat pump temperature control method is provided, comprising: acquiring an actual indoor temperature of a target building at a first sampling time and a preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is acquired by a temperature sensor installed in the target building; performing a first closed-loop control based on a first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of a heat pump motor; determining a first indoor temperature of the target building at a second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, wherein the second sampling time is the time corresponding to the next sampling cycle of the first sampling time; and performing a second closed-loop control according to a second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0006] According to another aspect of the present invention, a heat pump temperature control device is also provided, comprising: a first acquisition module, configured to acquire the actual indoor temperature of a target building at a first sampling time and a preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is acquired by a temperature sensor installed in the target building; a second acquisition module, configured to perform a first closed-loop control based on a first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of a heat pump motor; a first determination module, configured to determine the first indoor temperature of the target building at a second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, wherein the second sampling time is the corresponding time of the next sampling cycle of the first sampling time; and a third acquisition module, configured to perform a second closed-loop control based on a second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0007] According to another aspect of the present invention, a non-volatile storage medium is also provided, characterized in that the non-volatile storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor and executed any one of the above-described heat pump temperature control methods.
[0008] In this embodiment of the invention, the actual indoor temperature of the target building at the first sampling time and the preset indoor temperature corresponding to the actual indoor temperature are obtained, wherein the actual indoor temperature is collected by a temperature sensor installed in the target building; based on the first temperature difference between the preset indoor temperature and the actual indoor temperature, a first closed-loop control is performed to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor; based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, the first indoor temperature of the target building at the second sampling time is determined. The second sampling time is the corresponding time of the next sampling cycle of the first sampling time. A second closed-loop control is performed based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time. This achieves the goal of enabling the heat pump motor to respond promptly to changes in building temperature and adjust the indoor temperature in a timely manner through closed-loop control of the building temperature. This improves the efficiency and accuracy of heat pump temperature control, thereby solving the technical problem of untimely temperature control and low adjustment accuracy caused by the inability of heat pump temperature control methods in related technologies to respond promptly to changes in building temperature. Attached Figure Description
[0009] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0010] Figure 1 This is a schematic diagram of a heat pump temperature control method according to an embodiment of the present invention;
[0011] Figure 2 This is a schematic diagram comparing an optional preset temperature curve according to an embodiment of the present invention;
[0012] Figure 3 This is a schematic diagram of an optional heat pump temperature control process according to an embodiment of the present invention;
[0013] Figure 4 This is a schematic diagram of a heat pump temperature control device according to an embodiment of the present invention. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] According to an embodiment of the present invention, a method embodiment for heat pump temperature control is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0017] Figure 1 This is a flowchart of a heat pump temperature control method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0018] Step S102: Obtain the actual indoor temperature of the target building at the first sampling time, and the preset indoor temperature corresponding to the actual indoor temperature.
[0019] Optionally, the first sampling time mentioned above is the initial sampling time, and the actual indoor temperature mentioned above is collected by a temperature sensor installed in the target building.
[0020] In one optional embodiment, the preset indoor temperature is determined based on a preset temperature curve, which is used to indicate the relationship between the sampling time and the preset indoor temperature. The slope of the preset temperature curve shows an upward trend followed by a downward trend.
[0021] By means of the above method, the actual indoor temperature of the target building at the initial sampling time is obtained by a temperature sensor, the preset sampling temperature corresponding to the initial sampling time is determined based on the preset temperature sensing curve, and the indoor temperature is controlled in a closed loop according to the first temperature difference between the preset sampling temperature and the actual indoor temperature, so as to improve the timeliness of temperature change control in the target building.
[0022] It should be noted that, Figure 2 This is a schematic diagram comparing an optional preset temperature curve according to an embodiment of the present invention, such as... Figure 2 As shown by the dashed line corresponding to the conventional set temperature, the given temperature signal suddenly increases at the moment the temperature adjustment begins, causing the actual temperature value to fail to track the given temperature. This results in the heat pump load operating at its maximum allowable power, leading to excessive operating current, severe bus voltage drop, and adverse consequences such as affecting other loads and even its own normal operation. This embodiment of the invention uses the aforementioned preset temperature curve for temperature trajectory planning, that is, replanning the preset indoor temperature to make it a smooth, rising curve. For example... Figure 2 The temperature trajectory corresponding to the solid line corresponds to the preset temperature curve in this embodiment of the invention. In the initial stage of temperature regulation, the indoor-outdoor temperature difference is small, heat loss due to heat dissipation from building doors and windows is minimal, and the heat pump load is low. At this time, the temperature increase rate can be slightly faster to accelerate the temperature rise. Near the end of the temperature transition process, the indoor-outdoor temperature difference becomes larger, and heat loss due to heat dissipation from building doors and windows is more severe. Therefore, the temperature rises slowly to reduce the heat pump load. By setting the above-mentioned preset temperature curve to re-plan the preset indoor temperature at different sampling times, the heat pump motor load can meet the requirements of rapid temperature regulation while maintaining normal operation, achieving precise control of temperature changes and possessing high practical value.
[0023] Step S104: Based on the first temperature difference between the preset indoor temperature and the actual indoor temperature, perform first closed-loop control to obtain the first three-phase voltage, wherein the first three-phase voltage is the three-phase voltage used to control the operation of the heat pump motor.
[0024] In one optional embodiment, the first closed-loop control is performed based on the first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage. The first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor, comprising: based on the first temperature difference, performing a third closed-loop control using a first proportional-integral controller to obtain a first output speed; based on the first output speed, performing a fourth closed-loop control using a second proportional-integral controller to control the first actual output speed of the heat pump motor at the first sampling time to obtain a first output current; based on the first output current, performing a fifth closed-loop control using a third proportional-integral controller to control the first actual output current of the heat pump motor at the first sampling time to obtain a first output voltage; and based on the first output voltage, using a space vector pulse width modulation inverter to obtain the first three-phase voltage.
[0025] Optionally, the first proportional-integral controller is a temperature loop PI controller, the second proportional-integral controller is a speed loop PI controller, and the third proportional-integral controller is a current loop PI controller.
[0026] It can be understood that the aforementioned first three-phase voltage is the three-phase voltage corresponding to the first sampling moment, and the aforementioned first three-phase voltage is obtained sequentially through temperature closed-loop control, speed closed-loop control, and current closed-loop control. The specific implementation steps are as follows: the aforementioned temperature loop PI controller uses the first temperature difference between the aforementioned preset indoor temperature and the aforementioned actual indoor temperature as input to perform temperature closed-loop control, and outputs the electrical angular velocity through the temperature loop PI controller. The first output speed is used as the input of the speed loop PI controller. Based on the first output speed and the first actual output speed of the heat pump motor at the first sampling time, the speed loop PI controller is used for closed-loop speed control. The first output current output by the speed loop PI controller is used as the input of the current loop PI controller. Based on the first actual output current and the first output current, the current loop PI controller is used for closed-loop current control. The first output voltage output by the current loop PI controller is used as the input of the space vector pulse width modulation inverter (i.e., SVPWM inverter). The specific principle is as follows: the PWM pulse width modulation signal generates a corresponding pulse width modulation signal (i.e., PWM signal) based on the above-mentioned first output voltage. The obtained PWM signal is output to the inverter, and the inverter outputs the first three-phase voltage for powering the heat pump motor.
[0027] Using the above method, temperature is used as the starting point of closed-loop control. A temperature loop is designed to control temperature changes. The input is the preset indoor temperature, which is determined manually. The feedback value is the real-time temperature value detected by the temperature sensor inside the target building. The temperature loop is controlled by a proportional-integral (PI) controller. The goal is to make the difference between the input value and the feedback value zero, that is, the real-time temperature equals the preset indoor temperature.
[0028] Step S106: Based on the first three-phase voltage, using the pre-constructed heat pump working model corresponding to the heat pump motor and the building heat transfer model corresponding to the target building, determine the first indoor temperature of the target building at the second sampling time, wherein the second sampling time is later than the first sampling time.
[0029] Optionally, the second sampling time can be, but is not limited to, the corresponding time of the next sampling period after the first sampling time. The heat pump operating model is used to indicate the relationship between the first stator voltage, the first stator current, and the first motor speed of the heat pump motor, and the building heat transfer model is used to indicate the relationship between the heating power of the target building and the first indoor temperature of the target building at the second sampling time. Through the above methods, corresponding heat pump operating models and building heat transfer models are constructed based on the actual situation of the target building and the operating characteristics of the heat pump motor, thereby accurately achieving closed-loop temperature control of the target building.
[0030] In one optional embodiment, the determination of the first indoor temperature of the target building at the second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor, and a building heat transfer model corresponding to the target building, includes: determining the first motor speed of the heat pump motor at the second sampling time based on the first three-phase voltage and the heat pump operating model; determining the first heating power of the heat pump motor at the first sampling time based on the first motor speed; and obtaining the first indoor temperature of the target building at the second sampling time based on the first heating power and the building heat transfer model.
[0031] It is understood that the aforementioned heat pump operating model is used to indicate the relationship between the first stator voltage, the first stator current, and the first motor speed of the aforementioned heat pump motor. Based on the aforementioned first three-phase voltage and the aforementioned heat pump operating model, the first stator voltage corresponding to the heat pump motor can be obtained first. Based on the first stator voltage of the heat pump motor, the first stator current corresponding to the heat pump motor can be calculated. Given that the first stator current is known, the first motor speed T of the heat pump motor at the first sampling time can be further calculated. l According to the first motor speed T lThe first electromagnetic torque of the heat pump motor at the first sampling time is determined, and the first heating power of the heat pump motor at the first sampling time is determined based on the first electromagnetic torque. With the first heating power known, the first indoor temperature of the target building at the second sampling time can be derived using the building heat transfer model.
[0032] In an optional embodiment, when the heat pump operating model includes a first heat pump operating model and a second heat pump operating model, determining the first motor speed of the heat pump motor based on the first three-phase voltage and using the heat pump operating model includes: determining the first stator voltage of the heat pump motor at the first sampling time based on the first three-phase voltage; determining the first stator current of the heat pump motor based on the first stator voltage and using the first heat pump operating model, wherein the first heat pump operating model is used to indicate the relationship between the first stator voltage and the first stator current of the heat pump motor; and determining the first motor speed of the heat pump motor at the first sampling time based on the first stator current and using the second heat pump operating model, wherein the second heat pump operating model is used to indicate the relationship between the first stator current and the first motor speed.
[0033] It is understandable that, as a core component of the heat pump compressor, the aforementioned heat pump motor can be, but is not limited to, a permanent magnet synchronous motor (PMSM). The stator voltage equation corresponding to the PMSM can be used as the working model of the first heat pump, and the specific model is expressed as follows:
[0034]
[0035] Among them, R S U is the stator phase resistance corresponding to the aforementioned heat pump motor; d I d U q I q These are the dq-axis components of the stator voltage and the first stator current of the heat pump motor at any sampling time (e.g., the first sampling time); L d L q Ψ represents the inductance component corresponding to the dq axis of the heat pump motor; ω represents the electric angular velocity of the heat pump motor at any sampling moment; f This represents the permanent magnet flux linkage corresponding to the heat pump motor.
[0036] Optionally, the second heat pump operating model described above is obtained based on the electromagnetic torque equation, rotor dynamics equation, and load torque equation corresponding to the heat pump motor. The model corresponding to the electromagnetic torque equation is expressed as follows:
[0037] T em =1.5p n [ψ f i q +(L d -L q )i d i q ]
[0038] Among them, T em P represents the electromagnetic torque of the heat pump motor at any sampling moment. n This represents the number of pole pairs of the heat pump motor.
[0039] The model representation corresponding to the above rotor dynamics equations is as follows:
[0040]
[0041] Among them, T l ω represents the motor load torque of the heat pump motor at any sampling moment; B represents the motor damping coefficient of the heat pump motor; J represents the motor moment of inertia of the heat pump motor. m The mechanical angular velocity of the heat pump motor at any sampling moment.
[0042] It is understandable that for loads such as fans and pumps, the load torque is proportional to the square of the rotational speed. Therefore, the model representation of the above load torque equation can be:
[0043]
[0044] Among them, K m T is a constant; N This refers to the rated torque of the heat pump motor; n N This refers to the rated speed of the heat pump motor; n m This represents the motor speed of the heat pump motor at any sampling time (e.g., the first motor speed at the first sampling time).
[0045] Combining the model representations corresponding to the above electromagnetic torque equation, rotor dynamics equation, and load torque equation, the model representation corresponding to the above second heat pump working model can be obtained as follows:
[0046]
[0047] It is understandable that the motor speed n of the heat pump motor at any sampling moment is... m With mechanical angular velocity ω m There is a certain quantitative relationship between them; therefore, the mechanical angular velocity ω m With motor n mGiven that the relationship between the two parameters is known and all other parameters in the second heat pump working model are known, the motor speed of the heat pump motor at any sampling time (such as the first motor speed at the first sampling time) can be obtained based on the above second heat pump working model.
[0048] In one optional embodiment, determining the first heating power of the heat pump motor at the first sampling moment based on the first motor speed includes: determining the first electromagnetic torque of the heat pump motor at the first sampling moment based on the first stator current; obtaining the thermal conversion efficiency corresponding to the heat pump motor; and determining the first heating power of the heat pump motor at the first sampling moment based on the first electromagnetic torque, the thermal conversion efficiency, and the first motor speed.
[0049] It should be noted that since the output power of a heat pump motor cannot be completely converted into heat generation, the heat conversion efficiency η is introduced. r Based on the thermal conversion efficiency η of the heat pump motor r The first electromagnetic torque T of the heat pump motor at the first sampling time em The first motor speed n m The first heating power is obtained in the following manner. Where P(t) represents the first motor output power of the heat pump motor at the first sampling time. The first heating power of the heat pump motor at the first sampling time obtained by the above method is more in line with reality.
[0050] In an optional embodiment, before determining the first indoor temperature of the target building at the second sampling time using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building based on the first three-phase voltage, the method further includes: obtaining the actual outdoor temperature and the actual indoor temperature of the target building at the first sampling time; obtaining the specific heat capacity, density, volume, wall heat transfer coefficient, wall area, window heat transfer coefficient, and window area of the target building; and constructing the building heat transfer model based on the actual outdoor temperature, the actual indoor temperature, the specific heat capacity, the density, the volume, the wall heat transfer coefficient, the wall area, the window heat transfer coefficient, and the window area.
[0051] Optionally, but not limited to, a first-order equivalent thermal parameter model can be used to simulate the building temperature rise process, constructing the aforementioned building heat transfer model. This can be understood as the heat pump motor's heating power output, heat dissipation from human body heat generation or electrical appliances, and heat transfer caused by the indoor-outdoor temperature difference. Ignoring human body heat generation and heat dissipation from electrical appliances, the heat generated by the heat pump motor, besides being dissipated through the temperature difference between building walls and windows, is used to raise the indoor temperature. The heat balance equation is as follows:
[0052] CρvT e ′(t)=Q Hp (t)-k w s w (T e (t)-T w (t))-k i s i (T e (t)-T w (t))
[0053] In the formula, T e (t), T e ′(t) represents the indoor temperature of the target building at sampling time t and its first derivative with respect to time (e.g., the actual indoor temperature at the first sampling time and its first derivative with respect to time); C, ρ, and V represent the specific heat capacity, density, and volume of the target building, respectively; k w Let s be the heat transfer coefficient of the wall. w k is the wall area. i Let s be the heat transfer coefficient of the window. i For window area; T e (t), T w (t) represents the actual indoor temperature and the actual outdoor temperature at sampling time t (e.g., the actual indoor temperature and the actual outdoor temperature at the first sampling time).
[0054] This heat balance equation establishes the mathematical relationship between heat transfer inside and outside the building at any sampling time. To simplify control and better suit practical applications, it is discretized into a difference equation, which serves as the aforementioned building heat transfer model. The corresponding model is expressed as follows:
[0055]
[0056] Where Δt is the preset sampling time interval of the control system, such as the time interval between any two sampling periods, which is determined by the system hardware and is usually a small value; T e (t) represents the indoor temperature of the target building at sampling time t, where T is the indoor temperature. e (t+Δt) represents the indoor temperature of the target building at the sampling time (t+Δt), for example, T e (t) represents the actual indoor temperature at the first sampling time (initial sampling time), T e (t+Δt) represents the first indoor temperature at the second sampling time.
[0057] Step S108: Perform second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0058] In one optional embodiment, the above-mentioned second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time includes: performing a sixth closed-loop control using the first proportional-integral controller based on the second temperature difference to obtain a first output speed; performing a seventh closed-loop control using the second proportional-integral controller based on the first output speed to obtain a second output current; performing an eighth closed-loop control using the third proportional-integral controller to obtain a second output voltage; and using the space vector pulse width modulation inverter based on the second output voltage to obtain the adjusted first three-phase voltage.
[0059] Using the above method, based on the first temperature difference between the actual indoor temperature and the preset indoor temperature at the first sampling time, the first three-phase voltage at the first sampling time is obtained by sequentially performing closed-loop regulation through the temperature loop PI regulator, the speed loop PI regulator, and the current loop PI regulator. Based on the first three-phase voltage, after determining the first indoor temperature of the target building at the second sampling time using a pre-built heat pump working model and building heat transfer model, the second temperature difference between the first indoor temperature at the first sampling time and the preset indoor temperature is used as the input for closed-loop control. The next round of closed-loop regulation is then performed sequentially through the temperature loop PI regulator, the speed loop PI regulator, and the current loop PI regulator, thereby obtaining the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0060] In an optional embodiment, after performing a second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time, the method further includes: determining the second stator voltage of the heat pump motor at the second sampling time based on the adjusted first three-phase voltage; determining the second stator current of the heat pump motor at the second sampling time based on the second stator voltage; determining the bus current of the bus connected to the heat pump motor at the second sampling time based on the second stator current; obtaining the equivalent loss resistance of the bus and the DC bus voltage of the power supply side supplying power to the heat pump motor; and determining the DC bus voltage of the heat pump motor side at the second sampling time based on the bus current, the equivalent loss resistance, and the DC bus voltage of the power supply side.
[0061] It is understandable that changes in external temperature or changes in the set temperature during temperature control will usually cause changes in the output power of the heat pump motor, i.e., changes in output current. Due to the existence of line impedance, a voltage drop will occur, resulting in a voltage sag on the DC bus of the heat pump motor. That is, the DC bus voltage change on the heat pump motor side. The corresponding model of the bus voltage sag equation is expressed as:
[0062] U bus =U dc +r line i dc
[0063] In the formula, U dc This refers to the DC bus voltage on the power supply side; r line i is the equivalent loss resistance of the busbar during power transmission; dc U is the bus current; bus This refers to the DC bus voltage on the heat pump motor side. Based on the aforementioned bus voltage drop equation, the DC bus voltage on the heat pump motor side corresponding to the second sampling time can be calculated. This allows for a direct observation of the bus voltage drop after a temperature change within the target building, thus ensuring that the bus voltage drop does not affect the normal operation of the heat pump load while minimizing the transition time of temperature changes.
[0064] Through the above steps S102 to S108, the goal of achieving closed-loop control of the building temperature can be achieved, enabling the heat pump motor to respond promptly to changes in building temperature and adjust the indoor temperature in a timely manner. This improves the efficiency and accuracy of heat pump temperature control, and solves the technical problem that heat pump temperature control methods in related technologies cannot respond promptly to changes in building temperature, resulting in untimely temperature control and low adjustment accuracy.
[0065] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation method. Figure 3 This is a schematic diagram of an optional heat pump temperature control process according to an embodiment of the present invention, such as... Figure 3 As shown, the method includes:
[0066] Step S1: Determine the stator phase resistance R of the heat pump motor based on its actual performance. S Permanent magnet magnetic chain Ψ f Motor damping coefficient B, motor moment of inertia J, rated torque T N Rated speed n N Parameters such as these are used to construct a pre-built heat pump operating model corresponding to the heat pump motor. This heat pump operating model includes a first heat pump operating model determined based on the stator voltage equation, and a second heat pump operating model determined by the electromagnetic torque equation, rotor dynamics equation, and load torque equation corresponding to the heat pump motor. For example...Figure 3 The heat pump drive motor section is shown.
[0067] Step S2: Determine the heat conversion efficiency η based on the heat transfer performance of the target building's walls and windows, and the heat conversion capacity of the heat pump motor. r Heat transfer coefficient k of building walls w Wall area s w Heat transfer coefficient k of building windows i Window area s i Parameters such as these are used to construct a building heat transfer model corresponding to the target building. Figure 3 The heat pump system is shown at the building end (the building end is considered as the target building end).
[0068] Step S3: Determine the equivalent loss resistance of the lines through the microgrid system's line layout, and simulate the bus voltage fluctuation caused by the line impedance voltage drop due to changes in the heat pump motor's operating load. Figure 3 The DC bus section is shown.
[0069] Step S4: Construct the temperature loop, the specific model is as follows Figure 3 As shown in the temperature loop PI controller, the input is the actual indoor temperature detected in real time by the temperature sensors at the indoor and building ends (i.e., the target building end). The first output speed (electric angular velocity) is generated through the temperature loop PI controller. This serves as the input to the speed loop PI controller; the preset indoor temperature in the temperature loop is determined based on a preset temperature curve, which indicates the relationship between the sampling time and the preset indoor temperature. The slope of the preset temperature curve shows an upward trend followed by a downward trend (e.g., ...). Figure 2 (As shown). In a conventional setting, the given temperature signal suddenly increases at the start of temperature adjustment, causing the actual temperature value to fail to track the given temperature. This results in the heat pump load operating at its maximum allowable power, leading to excessive operating current, severe bus voltage drop, and adverse consequences such as affecting other loads and even its own normal operation. This embodiment of the invention uses the aforementioned preset temperature curve for temperature trajectory planning, that is, replanning the preset indoor temperature to make it a smooth, rising curve. (As shown) Figure 2 The temperature trajectory planning implemented in the middle corresponds to the preset temperature curve in the embodiment of the present invention. In the initial stage of temperature regulation, the temperature difference between indoors and outdoors is small, the heat loss caused by heat dissipation from building doors and windows is small, and the heat pump load is not large. At this time, the temperature increase rate can be slightly faster to make the temperature rise faster. When the temperature transition process is about to end, the temperature difference between indoors and outdoors is large, and the heat loss caused by heat dissipation from building doors and windows is more serious. Therefore, the temperature rises slowly to reduce the heat pump load.
[0070] Step S5: After the temperature loop, connect the speed loop and current loop of the conventional motor control, such as... Figure 3As shown, the SVPWM outputs a PWM signal to the inverter, which then outputs the three-phase voltage to the heat pump motor. Specifically, based on the first output speed and the first actual output speed of the heat pump motor, a speed loop PI controller is used for closed-loop speed control. The first output current output by the speed loop PI controller serves as the input to the current loop PI controller. Based on the first actual output current and the first output current, a current loop PI controller is used for closed-loop current control. The first output voltage output by the current loop PI controller serves as the input to the space vector pulse width modulation inverter (i.e., the SVPWM inverter). The PWM signal is generated based on the first output voltage to produce a corresponding pulse width modulation signal (i.e., the PWM signal). The acquired PWM signal is output to the inverter, which then outputs the first three-phase voltage to power the heat pump motor. This completes the entire temperature control system.
[0071] Step S6: Based on the first three-phase voltage, the first indoor temperature of the target building at the second sampling time is determined using a pre-built heat pump working model and building heat transfer model. The second temperature difference between the first indoor temperature at the first sampling time and the preset indoor temperature is used as the input for closed-loop control. Steps S4 and S5 are executed again, that is, the next round of closed-loop adjustment is performed sequentially through the temperature loop PI regulator, speed loop PI regulator, and current loop PI regulator, thereby obtaining the adjusted first three-phase voltage of the heat pump motor at the second sampling time. This achieves continuous closed-loop control of the entire temperature control system.
[0072] The embodiments of the present invention can achieve at least the following technical effects: (1) By setting a preset temperature curve, the preset indoor temperature at different sampling times is replanned, so that the heat pump motor load meets the speed of temperature regulation process on the basis of normal operation, and achieves precise regulation of temperature changes, which has high practical value. (2) When the temperature in the target building changes, the bus voltage drop is observed in real time, thereby ensuring that the bus voltage drop does not affect the normal operation of the heat pump load, and minimizing the transition time of temperature change. (3) By performing closed-loop control of the temperature in the building, the heat pump motor can react to the building temperature change in a timely manner and regulate the indoor temperature in a timely manner, thereby achieving the technical effect of improving the efficiency and accuracy of heat pump temperature regulation control.
[0073] This embodiment also provides a heat pump temperature control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module" and "device" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0074] According to an embodiment of the present invention, an apparatus embodiment for implementing the above-described heat pump temperature control method is also provided. Figure 4 This is a schematic diagram of the structure of a heat pump temperature control device according to an embodiment of the present invention, as shown below. Figure 4 As shown, the above-mentioned heat pump temperature control device includes: a first acquisition module 400, a second acquisition module 402, a first determination module 404, and a third acquisition module 406, wherein:
[0075] The first acquisition module 400 is used to acquire the actual indoor temperature of the target building at the first sampling time, and the preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is acquired by a temperature sensor installed in the target building.
[0076] The second acquisition module 402 is connected to the first acquisition module 400 and is used to perform a first closed-loop control based on the first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor.
[0077] The first determining module 404 is connected to the second acquiring module 402 and is used to determine the first indoor temperature of the target building at the second sampling time based on the first three-phase voltage, using a pre-built heat pump working model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, wherein the second sampling time is later than the first sampling time.
[0078] The third acquisition module 406 is connected to the first determination module 404 and is used to perform a second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0079] In this embodiment of the invention, a first acquisition module 400 is configured to acquire the actual indoor temperature of the target building at the first sampling time, and a preset indoor temperature corresponding to the actual indoor temperature. The actual indoor temperature is acquired by a temperature sensor installed in the target building. A second acquisition module 402, connected to the first acquisition module 400, is configured to perform a first closed-loop control based on a first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage. This first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor. A first determination module 404, connected to the second acquisition module 402, is configured to, based on the first three-phase voltage, use a pre-constructed heat pump operating model corresponding to the heat pump motor and a building temperature corresponding to the target building. A heat transfer model is used to determine the first indoor temperature of the target building at a second sampling time, wherein the second sampling time is later than the first sampling time. The third acquisition module 406, connected to the first determination module 404, is used to perform a second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time. This achieves the goal of enabling the heat pump motor to respond promptly to changes in building temperature and adjust the indoor temperature in a timely manner by implementing closed-loop control of the building temperature. This improves the efficiency and accuracy of heat pump temperature control and solves the technical problem of untimely temperature control and low control accuracy caused by the inability of heat pump temperature control methods in related technologies to respond promptly to changes in building temperature.
[0080] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0081] It should be noted that the first acquisition module 400, the second acquisition module 402, the first determination module 404, and the third acquisition module 406 mentioned above correspond to steps S102 to S106 in the embodiments. The instances and application scenarios implemented by the above modules and their corresponding steps are the same, but they are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a computer terminal.
[0082] It should be noted that the optional or preferred implementation methods of this embodiment can be found in the relevant descriptions in the embodiments, and will not be repeated here.
[0083] The aforementioned heat pump temperature control device may also include a processor and a memory. The first acquisition module 400, the second acquisition module 402, the first determination module 404, the third acquisition module 406, etc., are all stored in the memory as program modules, and the processor executes the aforementioned program modules stored in the memory to realize the corresponding functions.
[0084] The processor contains a core that retrieves the corresponding program modules from memory. One or more cores may be configured. Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory includes at least one memory chip.
[0085] According to an embodiment of this application, an embodiment of a non-volatile storage medium is also provided. Optionally, in this embodiment, the non-volatile storage medium includes a stored program, wherein, when the program is running, it controls the device containing the non-volatile storage medium to execute any of the aforementioned heat pump temperature control methods.
[0086] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals, and the non-volatile storage medium includes stored programs.
[0087] Optionally, during program execution, the device containing the non-volatile storage medium is controlled to perform the following functions: acquire the actual indoor temperature of the target building at the first sampling time, and the preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is collected by a temperature sensor installed in the target building; perform a first closed-loop control based on the first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor; based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, determine the first indoor temperature of the target building at the second sampling time, wherein the second sampling time is later than the first sampling time; perform a second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0088] According to an embodiment of this application, an embodiment of a processor is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein the program executes any of the above-described heat pump temperature control methods.
[0089] According to an embodiment of this application, an embodiment of a computer program product is also provided, which, when executed on a data processing device, is adapted to execute a program that initializes the heat pump temperature control method steps described above.
[0090] Optionally, when the aforementioned computer program product is executed on a data processing device, it is suitable to execute an initialization program having the following method steps: acquiring the actual indoor temperature of the target building at a first sampling time, and a preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is collected by a temperature sensor installed in the target building; performing a first closed-loop control based on a first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor; determining the first indoor temperature of the target building at a second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, wherein the second sampling time is later than the first sampling time; and performing a second closed-loop control based on a second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0091] This invention provides an electronic device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: acquiring the actual indoor temperature of a target building at a first sampling time, and a preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is collected by a temperature sensor installed in the target building; performing a first closed-loop control based on a first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of a heat pump motor; determining the first indoor temperature of the target building at a second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, wherein the second sampling time is later than the first sampling time; and performing a second closed-loop control based on a second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time.
[0092] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0093] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of modules described above can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between modules, and may be electrical or other forms.
[0095] The modules described above as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0096] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0097] If the aforementioned integrated modules are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable non-volatile storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a non-volatile storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned non-volatile storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0098] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A heat pump temperature control method, characterized in that, include: The actual indoor temperature of the target building at the first sampling time and the preset indoor temperature corresponding to the actual indoor temperature are obtained, wherein the actual indoor temperature is collected by a temperature sensor installed in the target building; Based on the first temperature difference between the preset indoor temperature and the actual indoor temperature, a first closed-loop control is performed to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor. Based on the first three-phase voltage, using the pre-constructed heat pump working model corresponding to the heat pump motor and the building heat transfer model corresponding to the target building, the first indoor temperature of the target building at the second sampling time is determined, wherein the second sampling time is later than the first sampling time; A second closed-loop control is performed based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time. The step of determining the first indoor temperature of the target building at the second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor, and a building heat transfer model corresponding to the target building, includes: determining the first motor speed of the heat pump motor at the second sampling time based on the first three-phase voltage and the heat pump operating model; determining the first heating power of the heat pump motor at the first sampling time based on the first motor speed; and obtaining the first indoor temperature of the target building at the second sampling time based on the first heating power and the building heat transfer model. The step of determining the first heating power of the heat pump motor at the first sampling time based on the first motor speed includes: determining the first electromagnetic torque of the heat pump motor at the first sampling time based on the first stator current, wherein the first stator current is the first stator voltage of the heat pump motor at the first sampling time determined based on the first three-phase voltage; determining the first heat pump operating model in the heat pump operating model based on the first stator voltage; obtaining the thermal conversion efficiency corresponding to the heat pump motor; and determining the first heating power of the heat pump motor at the first sampling time based on the first electromagnetic torque, the thermal conversion efficiency, and the first motor speed.
2. The method according to claim 1, characterized in that, The first closed-loop control is performed based on the first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor, including: Based on the first temperature difference, a third closed-loop control is performed using a first proportional-integral controller to obtain the first output speed. Based on the first output speed, a second proportional-integral controller is used to perform a fourth closed-loop control on the first actual output speed of the heat pump motor at the first sampling time to obtain the first output current. Based on the first output current, a third proportional-integral controller is used to perform a fifth closed-loop control on the first actual output current of the heat pump motor at the first sampling time to obtain the first output voltage. Based on the first output voltage, a space vector pulse width modulation inverter is used to obtain the first three-phase voltage.
3. The method according to claim 1, characterized in that, When the heat pump operating model includes a first heat pump operating model and a second heat pump operating model, determining the first motor speed of the heat pump motor based on the first three-phase voltage and using the heat pump operating model includes: Based on the first three-phase voltage, determine the first stator voltage of the heat pump motor at the first sampling time; Based on the first stator voltage, the first stator current of the heat pump motor is determined using the first heat pump operating model, wherein the first heat pump operating model is used to indicate the relationship between the first stator voltage and the first stator current of the heat pump motor. Based on the first stator current, the second heat pump operating model is used to determine the first motor speed of the heat pump motor at the first sampling time, wherein the second heat pump operating model is used to indicate the relationship between the first stator current and the first motor speed.
4. The method according to claim 2, characterized in that, The step of performing a second closed-loop control based on a second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time includes: Based on the second temperature difference, the first proportional-integral controller is used to perform a sixth closed-loop control to obtain the first output speed. Based on the first output speed, the second proportional-integral controller is used to perform a seventh closed-loop control on the second actual output speed of the heat pump motor at the second sampling time to obtain the second output current. Based on the second output current, the third proportional-integral controller is used to perform an eighth closed-loop regulation on the second actual output current of the heat pump motor at the second sampling time to obtain the second output voltage. Based on the second output voltage, the space vector pulse width modulation inverter is used to obtain the regulated first three-phase voltage.
5. The method according to claim 1, characterized in that, Before determining the first indoor temperature of the target building at the second sampling time based on the first three-phase voltage, using a pre-constructed heat pump operating model corresponding to the heat pump motor, and a building heat transfer model corresponding to the target building, the method further includes: Obtain the actual outdoor temperature and the actual indoor temperature of the target building at the first sampling time; Obtain the specific heat capacity, density, volume, wall heat transfer coefficient, wall area, window heat transfer coefficient, and window area of the target building; The building heat transfer model is constructed based on the actual outdoor temperature, the actual indoor temperature, the specific heat capacity, the density, the volume, the wall heat transfer coefficient, the wall area, the window heat transfer coefficient, and the window area.
6. The method according to claim 1, characterized in that, After performing a second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time, the method further includes: Based on the adjusted first three-phase voltage, determine the second stator voltage of the heat pump motor at the second sampling time; Based on the second stator voltage, determine the second stator current of the heat pump motor at the second sampling time; Based on the second stator current, determine the bus current corresponding to the bus connected to the heat pump motor at the second sampling time; Obtain the equivalent loss resistance corresponding to the bus, and the DC power supply side bus voltage that supplies power to the heat pump motor; Based on the bus current, the equivalent loss resistance, and the DC power supply side bus voltage, the DC bus voltage on the heat pump motor side corresponding to the second sampling time is determined.
7. The method according to any one of claims 1 to 6, characterized in that, The preset indoor temperature is determined based on a preset temperature curve, which is used to indicate the relationship between the sampling time and the preset indoor temperature. The slope of the preset temperature curve shows an upward trend followed by a downward trend.
8. A heat pump temperature control device, characterized in that, include: The first acquisition module is used to acquire the actual indoor temperature of the target building at the first sampling time, and the preset indoor temperature corresponding to the actual indoor temperature, wherein the actual indoor temperature is acquired by a temperature sensor installed in the target building; The second acquisition module is used to perform a first closed-loop control based on the first temperature difference between the preset indoor temperature and the actual indoor temperature to obtain a first three-phase voltage, wherein the first three-phase voltage is a three-phase voltage used to control the operation of the heat pump motor. The first determining module is used to determine the first indoor temperature of the target building at the second sampling time based on the first three-phase voltage, using a pre-constructed heat pump working model corresponding to the heat pump motor and a building heat transfer model corresponding to the target building, wherein the second sampling time is the corresponding time of the next sampling cycle of the first sampling time; The third acquisition module is used to perform a second closed-loop control based on the second temperature difference between the first indoor temperature and the preset indoor temperature to obtain the adjusted first three-phase voltage of the heat pump motor at the second sampling time. The first determining module is further configured to determine the first motor speed of the heat pump motor at the second sampling time based on the first three-phase voltage and using the heat pump working model; determine the first heating power of the heat pump motor at the first sampling time based on the first motor speed; and obtain the first indoor temperature of the target building at the second sampling time based on the first heating power and using the building heat transfer model. The first determining module is further configured to determine the first electromagnetic torque of the heat pump motor at the first sampling time based on the first stator current, wherein the first stator current is determined based on the first three-phase voltage of the heat pump motor at the first sampling time; based on the first stator voltage, it is determined using the first heat pump operating model in the heat pump operating model; obtain the thermal conversion efficiency corresponding to the heat pump motor; and determine the first heating power of the heat pump motor at the first sampling time based on the first electromagnetic torque, the thermal conversion efficiency, and the first motor speed.
9. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores multiple instructions, which are adapted to be loaded by a processor and executed by the heat pump temperature control method according to any one of claims 1 to 7.