Temperature control method and device of gas water heater, gas water heater and medium
By using a first-order linear self-immune interference controller and related observers in the gas water heater, the disturbance is estimated and compensated in real time, the problem of unstable temperature control is solved, and the stability of the effluent temperature and anti-interference ability are improved.
Patent Information
- Application Number
- CN202411176090.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-12
AI Technical Summary
The temperature control system of existing gas water heaters has a large time lag and weak anti-interference ability, which leads to unstable water outlet temperature. Especially when the water flow fluctuates, the interference caused by model changes and the switching of the combustion area of the fire discharge plate is difficult to effectively suppress.
The first-order linear self-immune disturbance controller is adopted, combined with a differential tracker, a linear state error feedback compensator and a first-order linear expansion state observer to estimate and compensate the internal and external disturbances of the system in real time, generate the target effluent temperature, and enhance the interference amount Suppression effect.
It improves the control stability of the gas water heater on the outlet temperature, reduces temperature fluctuations caused by interference, enhances anti-interference ability, and ensures efficient operation of the system under complex working conditions.
Smart Images

Figure CN118935746A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gas water heaters, and in particular to a temperature control method and device for a gas water heater, a gas water heater and a medium. Background Art
[0002] The gas water heater control system has the characteristics of large time lag, weak anti-interference ability and large inertia. In the actual operation of the gas water heater, the fluctuation of water flow will cause the gas water heater model to change. In addition, in order to ensure the combustion efficiency of the gas and avoid the incomplete combustion of the gas to produce different concentrations of carbon monoxide, which will pollute the environment, the advanced gas water heaters in the industry usually design the fire row slices into three sections, and switch the opening and closing of the section valve according to different working conditions to control the combustion area of the fire row slices. By switching the section valve, changing the combustion area of the fire row slice will also cause changes in the gas water heater model parameters, and there will be problems with manual and automatic control switching in the process of switching the section valve. Therefore, there are various interferences in the actual gas water heater control, which requires the controller of the gas water heater system to have a strong anti-interference ability.
[0003] Due to the complexity of actual working conditions, the existing gas water heater uses a second-order nonlinear anti-disturbance control algorithm constructed by the anti-disturbance control algorithm for temperature control, and the second-order nonlinear anti-disturbance control algorithm is only a simple combination of PID and expanded observer, and the TD module in the ADRC algorithm is abandoned. However, the existing method has a low suppression effect on the interference quantity. Each fluctuation of the interference quantity may cause the outlet water temperature to fluctuate, resulting in low stability of the outlet water temperature control of the gas water heater. Summary of the invention
[0004] The embodiments of the present invention provide a temperature control method and device for a gas water heater, a gas water heater and a medium to enhance the suppression effect of interference and improve the stability of the gas water heater in controlling the outlet water temperature.
[0005] In a first aspect, an embodiment of the present invention provides a temperature control method for a gas water heater, comprising:
[0006] Get the set temperature and input power of the gas water heater;
[0007] The gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller to generate a target water outlet temperature.
[0008] In a second aspect, an embodiment of the present invention provides a temperature control device for a gas water heater, comprising:
[0009] A parameter acquisition unit, used to obtain the set temperature and input power of the gas water heater;
[0010] The outlet water temperature generating unit is used to perform an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order linear auto-disturbance rejection controller to generate a target outlet water temperature.
[0011] In a third aspect, an embodiment of the present invention provides a gas water heater, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the temperature control method of the gas water heater described in the first aspect when executing the computer program.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the temperature control method of the gas water heater described in the first aspect above.
[0013] The embodiment of the present invention provides a temperature control method, device, gas water heater and medium for a gas water heater, the method comprising: obtaining a set temperature and input power of the gas water heater; performing an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller to generate a target outlet water temperature. The embodiment of the present invention performs an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller, which can enhance the suppression effect of the interference amount, reduce the fluctuation of the outlet water temperature caused by the interference amount, and is conducive to improving the stability of the gas water heater in controlling the outlet water temperature. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0015] Figure 1 A schematic flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;
[0016] Figure 2 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;
[0017] Figure 3 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;
[0018] Figure 4A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;
[0019] Figure 5 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;
[0020] Figure 6 A schematic flow chart of a temperature control method for a gas water heater provided in another embodiment of the present invention;
[0021] Figure 7 A schematic diagram of a second-order nonlinear anti-interference control system provided by an embodiment of the present invention;
[0022] Figure 8 A schematic diagram of a simulation of a first-order linear anti-interference control system provided by an embodiment of the present invention;
[0023] Fig. 9 A schematic diagram of the effect of a linear differential tracker provided by an embodiment of the present invention;
[0024] Fig.10 A schematic diagram of the system control effect provided by an embodiment of the present invention;
[0025] Fig.11 A schematic diagram of the tracking effect of the observer output estimation z1 provided in an embodiment of the present invention;
[0026] Fig.12 A schematic diagram of control quantity simulation provided by an embodiment of the present invention;
[0027] Fig.13 A schematic diagram of the disturbance estimation z2 tracking effect provided by an embodiment of the present invention;
[0028] Fig.14 A schematic block diagram of a temperature control device for a gas water heater provided in an embodiment of the present invention;
[0029] Fig.15 A schematic block diagram of a gas water heater provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0032] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0033] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0034] See also Figure 1 , Figure 1 A flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention. The temperature control method for a gas water heater provided in an embodiment of the present invention is applied to a gas water heater.
[0035] S1. Obtain the set temperature and input power of the gas water heater.
[0036] Specifically, the algorithm used in the embodiment of the present application is the ADRC algorithm, which is called Active Disturbance Rejection Control. This algorithm is an advanced control algorithm that achieves precise control of the system by real-time estimation and compensation of internal and external disturbances of the system. The scenario to be used in the embodiment of the present application is to control the outlet water temperature of the gas water heater. Therefore, in the embodiment of the present application, the set temperature and input power of the gas water heater are used as the input of the entire system, and the water flow rate can be used as the interference quantity.
[0037] The set temperature refers to the outlet water temperature of the gas water heater that the user wants to set, and the set temperature is set by the user according to the actual situation. The input power refers to the initial power of the gas water heater, and the user can also set the corresponding power level of the gas water heater, and one power level corresponds to one input power.
[0038] S2. Performing an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order linear auto-disturbance rejection controller to generate a target water outlet temperature.
[0039] Specifically, the existing method is to use a second-order linear anti-disturbance control controller to control the temperature of the gas water heater. However, in order to solve the limitations of linear anti-disturbance control and further ensure the accuracy of the model, this method needs to continuously adjust the relevant parameters of LADRC to ensure the reliability of the control algorithm and reduce the disturbance as much as possible. For large disturbances, the method of switching models and parameters is used to perform segmented control, but the improvement effect is not significant. In addition, the existing second-order nonlinear anti-disturbance control algorithm is only a simple combination of PID controller and expanded observer. The PID controller abandons the TD module in the ADRC algorithm. The existing simple combination of PID controller and expanded observer, although the feedback system can achieve fast response, for the water heater system, the system itself covers a large number of interference quantities such as: water inlet temperature, gas flow, water flow, air flow and other series of interference quantities. The fluctuation of each interference quantity will cause the fluctuation of the outlet water temperature. Therefore, to ensure the stability of the product's water outlet temperature, a large number of experiments are required before writing the code to verify the appropriate interference control parameters; and every time a new product of the same type is developed, it is necessary to re-experiment and re-match the parameters. The same model of water heater corresponds to different water flow rates, or the same water flow rate but different parameters of water heaters, the experimental data are all different, which will bring a lot of repetitive work to software developers.
[0040] In addition, some existing models use PID as the main temperature control algorithm to suppress various disturbances, but the PID algorithm has many disadvantages: (1) It is not reasonable to directly generate the original error in the form of e=uy, where e is the error signal, u is the control power, and y is the output value of the gas water heater. The control target can "jump" during the feedback process, but the changes in the output value of the gas water heater have inertia and cannot jump. It is unreasonable to require the slowly changing output value of the gas water heater to track the control target that can jump. (2) Since the differentiator cannot be physically realized and can only be realized approximately, when the input signal is contaminated by noise, the approximate differential signal in the output value of the gas water heater is masked by the amplified noise component and cannot be used, resulting in a large error; (3) Linear combination is not necessarily the best combination. The control quantity u given by the PID controller is the weighted sum of the error present e(t), the error past (integral), and the error future (differential), which is a linear combination of these three. A large number of engineering practices have shown that the linear combination of the three is not necessarily the best combination. In order to avoid the defects of the linear combination, a variety of "variable gain PID controllers" have been produced. (4) The introduction of error signal integral feedback has many negative effects. A large number of engineering practices have shown that the introduction of error integral feedback makes the closed loop sluggish, prone to oscillation, and control quantity saturation caused by integral saturation.
[0041] The embodiment of the present application uses a first-order linear anti-disturbance control controller to perform anti-disturbance control on the gas water heater based on the set temperature and input power to generate a target water outlet temperature, which can effectively suppress the interference.
[0042] The first-order linear anti-disturbance controller in the embodiment of the present application includes a differential tracker, a linear state error feedback compensator and a first-order linear extended state observer, and the differential tracker (TD module) in the ADRC algorithm is not abandoned. The advantage of the differential tracker adopted in the embodiment of the present application is that the signal can be discretized so that the system output can quickly track the set value signal without overshoot; when processing the tracking of noisy signals and the first-order differential extraction, the input signal can be quickly and accurately tracked, while suppressing the overshoot phenomenon. The differential tracker can adjust the speed factor according to the transition time, realize the matching of the expected transition time with the actual time, and make the system in a steady state without overshoot in a short time. The differential tracker can not only track the original signal, but also accurately extract its differential signal, and provide the necessary differential information for the control system. The differential tracker can effectively suppress the noise amplification effect of the differential link, improve the anti-noise ability of the system, and the differential tracker has adjustable parameters (such as speed factor r and filter factor h0), which can be adjusted according to the specific application scenario to obtain better control effect. The differential tracker avoids the high-frequency vibration phenomenon after the system enters the steady state through the design of the discrete system's fastest control comprehensive function, and improves the stability of the system. In practical applications, the differential tracker can work stably in various environments and provide reliable differential signals and transition signals for the control system.
[0043] In summary, the tracking differentiator has the advantages of fast tracking without overshoot, differential signal extraction, strong anti-noise ability, adjustable parameters with clear physical meaning and good stability, and is a tool with important application value in control system design. The tracking differentiator used in the embodiment of the present application can improve the anti-interference ability of the gas water heater and enhance the control stability of the outlet water temperature.
[0044] See also Figure 2 , Figure 2 A specific implementation of step S2 is shown, which is described in detail as follows:
[0045] S21: The differential tracker performs a smooth transition calculation based on the set temperature to generate a transition temperature.
[0046] Specifically, the differential tracker can smooth the set temperature signal. This helps to reduce the overshoot of the system to temperature changes and improve the dynamic response performance of the system. The differential tracker is designed as a link with a filtering function, which can eliminate noise in the input signal and generate a smooth tracking signal. In an embodiment of the present application, a smooth transition calculation is performed based on the set temperature by the differential tracker to generate a transition temperature, which is used as one of the inputs of the linear state error feedback compensator.
[0047] S22: Acquire an adjustment factor and a current output value of the gas water heater, and generate a state estimation value and a disturbance estimation value based on the input power, the adjustment factor and the current output value through the first-order linear extended state observer.
[0048] Specifically, the first-order linear extended state observer (LESO) is the application of the extended state observer (ESO) in the first-order system, which is mainly used to estimate and compensate for the uncertainty and disturbance in the system. In the first-order system, the first-order linear extended state observer regards the uncertainty or disturbance of the system as an extended state variable and estimates the value of this state variable through the observer. In this way, even if there are inaccuracies in the system model or external disturbances, the first-order linear extended state observer can improve the control performance of the system by estimating and compensating for these uncertainties.
[0049] In an embodiment of the present application, a first-order linear extended state observer estimates the state variables and total disturbance of the system in real time based on the input and output data of the gas water heater (such as input power, water outlet temperature, etc.), that is, evaluates and generates state estimation values and disturbance estimation values.
[0050] Among them, the state estimate is an estimate of the current state of the system calculated by a first-order linear extended state observer based on the input and output data of the system through a specific algorithm. In a gas water heater, these state estimates are estimates of the outlet water temperature, which are based on the changes in input power and outlet water temperature. The first-order linear extended state observer can estimate the outlet water temperature inside the water heater. This helps the controller understand the current water temperature state and adjust the gas flow and water flow to achieve the target outlet water temperature. Among them, the adjustment factor is used to compensate for the relationship between the control quantity and the disturbance. In practical applications, the value of the adjustment factor needs to be adjusted according to the system characteristics and performance requirements.
[0051] Specifically, the disturbance estimate is the result of a first-order linear extended state observer that estimates the various disturbance factors that affect the system output in real time. In a gas water heater, these disturbance factors may include: Water temperature fluctuations: Water temperature fluctuations caused by changes in external ambient temperature or changes in the heat exchange efficiency inside the water heater. Water pressure changes: Instability in water supply pressure affects water flow and outlet water temperature. Gas pressure changes: Changes in gas pressure directly affect combustion efficiency and heat output.
[0052] Furthermore, the discretization formula of the linear extended state observer provided in the embodiment of the present application is:
[0053]
[0054] Where, e(k) is the system temperature difference, y(k) is the outlet water temperature, z 1 (k) is the estimated value of the state, z 2 (k) is the disturbance estimate, β 01 , β 02 is the observer gain, u(k) is the controller output value, h is the sampling step, and b is the system model coefficient. bu(k) represents the influence of the control input value u(k) on the system state through the system model coefficient b at time point k.
[0055] See also Figure 3 , Figure 3 A specific implementation of step S22 is shown, which is described in detail as follows:
[0056] S221: Acquire the adjustment factor, and acquire the initial water outlet temperature of the gas water heater through a sensor.
[0057] S222: Convert the initial water outlet temperature into an electrical signal to generate the current output value.
[0058] S223: Multiply the adjustment factor by the input power to generate observer input power.
[0059] S224: Calculating estimated values based on the observer input power and the current output value by the first-order linear extended state observer to generate the state estimated value and the disturbance estimated value.
[0060] Specifically, the initial water outlet temperature of the gas water heater is obtained through the sensor, and the initial water outlet temperature is converted into an electrical signal. If the first-order linear anti-disturbance controller does not control the gas water heater, the water outlet temperature at this time is used as the current output value of the gas water heater; if the gas water heater is controlled and output by the first-order linear anti-disturbance controller, the output of the gas water heater, that is, the processed water outlet temperature is obtained as the current output value. In addition, the adjustment factor is multiplied by the input power to generate the observer input power, and the observer input power is used as the first input of the linear extended state observer, and the current output value is used as the second input of the linear extended state observer; finally, the first-order linear extended state observer is used to calculate the estimated value based on the first input and the second input to generate the state estimated value and the disturbance estimated value.
[0061] S23: performing compensation calculation based on the transition temperature, the adjustment factor, the state estimation value, the input power and the disturbance estimation value through the linear state error feedback compensator to generate control power.
[0062] Specifically, the linear state error feedback compensator calculates the control input according to the output of the differential tracker (i.e., the smoothed set temperature) and the estimation result of the extended state observer (i.e., the estimated value of the system state and total disturbance) to compensate for the linear characteristics and external disturbances inside the system. The linear state error feedback compensator converts the controlled system into a linear integral series system, and compensates for the uncertain factors of the system in real time, thereby suppressing and reducing the system disturbance, and realizing real-time adjustment of the control input, so that the system output (i.e., the outlet water temperature) can quickly and accurately track the set temperature.
[0063] See also Figure 4 , Figure 4 A specific implementation of step S23 is shown, which is described in detail as follows:
[0064] S231: Perform error calculation on the transition temperature and the state estimation value to generate an error signal.
[0065] Specifically, the difference between the transition temperature and the state estimate is calculated, that is, the error signal = transition temperature - state estimate. This difference reflects the degree of deviation between the current system state and the target state. The calculated error value is output as an error signal. This error signal will be used in subsequent compensation calculations to guide the control system on how to adjust its output to reduce the error.
[0066] S232: Obtain the proportional gain and integral gain of the linear state error feedback compensator.
[0067] S233: Perform gain calculation based on the error signal, the proportional gain and the integral gain according to a preset formula to generate an initial control amount.
[0068] Specifically, the proportional gain K of the linear state error feedback compensator is obtained p and integral gain K i . Proportional gain K p and integral gain K i They play a vital role in the control system. They determine the response speed and stability of the control system to the error signal. The proportional gain is responsible for the immediate response error, while the integral gain is responsible for eliminating the steady-state error. The preset formula is:
[0069] u 0 =K p e+K i ∫edt;
[0070] Where e is the error signal, u 0 is the initial control quantity, ∫edt represents the integral of the error signal, which accumulates the past error signals and helps to eliminate the long-standing steady-state error.
[0071] S234: Perform compensation calculation on the initial control amount using the disturbance estimation value and the adjustment factor to generate the control power.
[0072] See also Figure 5 , Figure 5 A specific implementation of step S234 is shown, which is described in detail as follows:
[0073] S2341: Calculate the difference between the initial control amount and the disturbance estimation value to obtain a control amount error value.
[0074] S2342: Divide the control amount error value by the adjustment factor to perform compensation calculation on the initial control amount to obtain the control power.
[0075] Specifically, in order to eliminate the influence of disturbance on the outlet water temperature, the initial control amount needs to be compensated. By calculating the difference between the initial control amount and the disturbance estimate, the control amount error value is obtained; then the control amount error value is divided by the adjustment factor to compensate the initial control amount and obtain the control power. It is expressed by the formula: U1 = (U0-Z3) / b, where U1 is the control power, Z3 is the disturbance estimate, b is the adjustment factor, and U0 is the initial control amount.
[0076] S24: Calculating the outlet water temperature of the gas water heater based on the control power using a pre-built physical model to obtain the target outlet water temperature.
[0077] Specifically, the above steps have calculated the control power of the gas water heater, so the outlet water temperature of the gas water heater is calculated based on the control power through the pre-built physical model to obtain the target outlet water temperature.
[0078] See also Figure 6 , Figure 6 A specific implementation method before step S24 is shown, which is described in detail as follows:
[0079] S241: Collecting the water flow, water inlet temperature and initial input power in the gas water heater.
[0080] S242: Taking the water flow rate, the water inlet temperature and the initial input power as input quantities, taking the temperature rise as output quantity, and using the parameter identification toolbox of MATLAB to determine model parameters based on the input quantities and the output quantities.
[0081] S243: constructing a transfer function model of the gas water heater based on the model parameters, and using the transfer function model as a physical model of the gas water heater.
[0082] Specifically, a physical model of a gas water heater can be constructed, and the outlet water temperature can be calculated based on the control power according to the physical model to obtain the target outlet water temperature. Then, the water flow rate, water inlet temperature and initial input power are used as input quantities, and the temperature rise is used as output quantity. The parameter identification toolbox of MATLAB is used to determine the model parameters based on the input quantities and the output quantities. Among them, the model parameters include the adjustment factor b, the proportional gain K p and integral gain K i Finally, a transfer function model of the gas water heater is constructed based on the model parameters, and the transfer function model is used as the physical model of the gas water heater. The initial input power refers to the input control power of the gas water heater.
[0083] Among them, MATLAB (Matrix Laboratory) is a mathematical computing software developed by MathWorks, which is widely used in algorithm development, data analysis, visualization and numerical calculation of advanced technical computing language and interactive environment. MATLAB's parameter identification toolbox (System Identification Toolbox) is a powerful toolbox that is specifically used to deal with system identification problems, that is, to estimate the dynamic model of the system based on the input and output data of the system. This toolbox provides a variety of model structures and parameter estimation methods to help users extract the mathematical model of the system from experimental data.
[0084] See also Figures 7 to 13 , Figure 7 A schematic diagram of a second-order nonlinear anti-interference control system provided by an embodiment of the present invention; Figure 8 A schematic diagram of a simulation of a first-order linear anti-interference control system provided by an embodiment of the present invention;
[0085] Fig. 9 A schematic diagram of the effect of a linear differential tracker provided by an embodiment of the present invention; Fig.10 A schematic diagram of the system control effect provided by an embodiment of the present invention; Fig.11 A schematic diagram of the tracking effect of the observer output estimation z1 provided in an embodiment of the present invention; Fig.12 A schematic diagram of control quantity simulation provided by an embodiment of the present invention; Fig.13 A schematic diagram of the disturbance estimation z2 tracking effect provided in an embodiment of the present invention.
[0086] It should be noted that Fig. 9 The solid line in the middle is the original differential signal being tracked, the dotted line is the differential signal output by the linear tracking differentiator, the horizontal axis is the sampling time, and the vertical axis is the temperature; Fig.10 The solid line in is the set follow target, the dotted line is the actual system control output target, the horizontal axis is the sampling time, and the vertical axis is the temperature; Fig.11 The solid line in represents the coincident actual output temperature and the observer output estimate z1, the horizontal axis is the sampling time, and the vertical axis is the temperature; Fig.12 The solid line in represents the controlled quantity (power), the horizontal axis is power, and the vertical axis is temperature; Fig.13 The solid line in represents the given power disturbance, the dotted line is the disturbance estimate z2, the horizontal axis is power, and the vertical axis is temperature.
[0087] In order to verify the feasibility of the corresponding algorithm of the first-order linear active disturbance rejection controller adopted in the embodiment of the present application and to determine the optimal model parameters, the embodiment of the present application performs simulation verification on the first-order linear active disturbance rejection control algorithm.
[0088] First, the mechanism modeling of the gas water heater is carried out. Under normal circumstances, ignoring the complexity of the pipeline system, the thermal balance relationship of the gas water heater in steady state is:
[0089] Among them, Q g =η 1 V g H;
[0090] Among them, Q g is the heat load of the gas water heater, η is the thermal efficiency of the heat exchanger, is the water flow rate, c p is the specific heat capacity of water, T in and T out are the inlet and outlet water temperatures, η 1 is the utilization rate of combustion calorific value, V g is the gas flow rate, and H is the gas calorific value.
[0091] Taking into account the water quality in the water heater and the hysteresis of the system, according to the law of conservation of energy, the differential equation of the gas water heater is established as:
[0092] Where ΔT = T out -T in ;
[0093] Among them, t is the working time, M is the water quality of the gas water heater, t d is the system lag time constant, and T is the difference between the set temperature and the inlet water temperature.
[0094] Then, according to the differential equation of the gas water heater, the expansion observer is adjusted to the linear differential tracker and the first-order linear expansion observer in the embodiment of the present application. Then, the input and output data of the water heater corresponding to different temperature rises and different water flow rates are obtained. After processing the data, the system transfer function of the water heaters with different temperature rises and different water flow rates is identified using the parameter identification toolbox of MATLAB, thereby constructing a transfer function model. The following Table 1 shows a system with the same water flow and different temperature rises. The transfer function remains consistent, the duty cycle is kept constant at 70%, and the transfer function of the system with different water flow rates is measured.
[0095] Table 1
[0096]
[0097] Then, based on the existing second-order nonlinear ADRC algorithm (ADRC) formula, the logic formula of the currently used first-order linear ADRC algorithm is derived. Among them, the first-order linear ADRC algorithm uses linear state error feedback and a first-order linear expansion error observer to reduce the second-order linear expansion observer in the second-order nonlinear ADRC algorithm to a first-order linear expansion observer. The observer input is the system output (temperature) and the system control quantity (the input power of the water heater). The observer observes the system output and the total disturbance of the system. Then, an open-loop test is performed on the actual water heater system, and a simulation model (such as Figure 7 ), verify algorithm parameters, and observe control effects (such as Figures 8 to 13 ).
[0098] Therefore, through the verification of the Simlink simulation model, the first-order linear active disturbance rejection controller has excellent control effect on the transfer function of the gas water heater, can make a high estimation and tracking of various disturbance errors of the system, and the system output can quickly track the input response with fast speed, low overshoot and easy parameter adjustment.
[0099] In the embodiment of the present application, the set temperature and input power of the gas water heater are obtained; the gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller to generate a target outlet water temperature. In the embodiment of the present invention, the gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller, which can enhance the suppression effect of the interference amount, reduce the fluctuation of the outlet water temperature caused by the interference amount, and is conducive to improving the stability of the gas water heater in controlling the outlet water temperature.
[0100] It should be noted that Figure 7 is a schematic diagram of a second-order nonlinear anti-interference control system, while the embodiment of the present application provides a first-order linear anti-interference control system, which uses a linear state error feedback compensator and a first-order linear extended state observer, and the differential tracker does not generate Figure 7 V2 in the first-order linear extended state observer output is Figure 7 In the output, z2 (state estimate) and z3 (disturbance estimate) are used, but z1 is not output.
[0101] The embodiment of the present invention further provides a temperature control device for a gas water heater, which is used to execute any embodiment of the temperature control method for a gas water heater. Fig.14 , Fig.14 A schematic block diagram of a temperature control device for a gas water heater provided in an embodiment of the present invention.
[0102] Among them, Fig.14 As shown, the temperature control device 3 of the gas water heater includes a parameter acquisition unit 31 and a water outlet temperature generation unit 32 .
[0103] A parameter acquisition unit 31 is used to acquire a set temperature and input power of the gas water heater;
[0104] The outlet water temperature generating unit 32 is used to perform an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order linear auto-disturbance rejection controller to generate a target outlet water temperature.
[0105] Furthermore, the first-order linear active disturbance rejection controller includes a differential tracker, a first-order linear extended state observer and a linear state error feedback compensator, and the outlet water temperature generation unit 32 includes:
[0106] A transition temperature generating unit, configured to generate a transition temperature by performing a smooth transition calculation based on the set temperature through the differential tracker;
[0107] a state estimation value generating unit, configured to obtain an adjustment factor and a current output value of the gas water heater, and generate a state estimation value and a disturbance estimation value based on the input power, the adjustment factor and the current output value through the first-order linear extended state observer;
[0108] a compensation calculation unit, configured to perform compensation calculation based on the transition temperature, the adjustment factor, the state estimation value, the input power and the disturbance estimation value through the linear state error feedback compensator to generate control power;
[0109] The outlet water temperature calculation unit is used to calculate the outlet water temperature of the gas water heater based on the control power through a pre-built physical model to obtain the target outlet water temperature.
[0110] Furthermore, the discretization formula of the linear extended state observer is:
[0111]
[0112] Where, e(k) is the system temperature difference, y(k) is the outlet water temperature, z 1 (k) is the estimated value of the state, z 2 (k) is the disturbance estimate, β 01 , β 02 is the observer gain, u(k) is the controller output value, h is the sampling step, and b is the system model coefficient.
[0113] Furthermore, the state estimation value generating unit includes:
[0114] An initial outlet water temperature acquisition unit, used to acquire the adjustment factor and acquire the initial outlet water temperature of the gas water heater through a sensor;
[0115] a current output value determining unit, configured to convert the initial water outlet temperature into an electrical signal to generate the current output value;
[0116] an observer input power generating unit, configured to multiply the adjustment factor by the input power to generate an observer input power;
[0117] An estimated value calculation unit is used to perform estimated value calculation based on the observer input power and the current output value through the first-order linear extended state observer to generate the state estimated value and the disturbance estimated value.
[0118] Further, the compensation calculation unit includes:
[0119] an error calculation unit, used for performing error calculation between the transition temperature and the state estimation value to generate an error signal;
[0120] A gain acquisition unit, used to acquire a proportional gain and an integral gain of the linear state error feedback compensator;
[0121] an initial control amount generating unit, configured to perform gain calculation based on the error signal, the proportional gain and the integral gain according to a preset formula to generate an initial control amount;
[0122] A control power generation unit is used to perform compensation calculation on the initial control amount through the disturbance estimation value and the adjustment factor to generate the control power.
[0123] Further, controlling the power generation unit comprises:
[0124] A control amount error value calculation unit, used for calculating the difference between the initial control amount and the disturbance estimation value to obtain a control amount error value;
[0125] A calculation unit is used to divide the control amount error value by the adjustment factor to perform compensation calculation on the initial control amount to obtain the control power.
[0126] Furthermore, the outlet water temperature calculation unit also includes:
[0127] A parameter collection unit, used to collect water flow, water inlet temperature and initial input power in the gas water heater;
[0128] A model parameter determination unit, configured to use the water flow rate, the water inlet temperature and the initial input power as input quantities, and the temperature rise as output quantity, and use a parameter identification toolbox of MATLAB to determine model parameters based on the input quantities and the output quantities;
[0129] A model building unit is used to build a transfer function model of the gas water heater based on the model parameters, and use the transfer function model as the physical model of the gas water heater.
[0130] In the embodiment of the present application, the set temperature and input power of the gas water heater are obtained; the gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller to generate a target outlet water temperature. In the embodiment of the present invention, the gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller, which can enhance the suppression effect of the interference amount, reduce the fluctuation of the outlet water temperature caused by the interference amount, and is conducive to improving the stability of the gas water heater in controlling the outlet water temperature.
[0131] The temperature control device of the gas water heater can be implemented in the form of a computer program. The computer program can be used in Fig.15 Shown running on gas water heater.
[0132] See also Fig.15 , Fig.15 5 is a schematic block diagram of a gas water heater provided by an embodiment of the present invention. The gas water heater 500 includes a processor 502 , a memory and a network interface 505 connected via a device bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0133] The storage medium 503 can store an operating device 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a temperature control method for a gas water heater.
[0134] The processor 502 is used to provide computing and control capabilities to support the operation of the entire gas water heater 500 .
[0135] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the temperature control method of the gas water heater.
[0136] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art can understand that the structure shown in the embodiment of the present application is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the gas water heater 500 to which the solution of the present invention is applied. The specific gas water heater 500 may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0137] The processor 502 is used to run the computer program 5032 stored in the memory to implement the temperature control method of the gas water heater disclosed in the embodiment of the present invention.
[0138] Those skilled in the art can understand that the embodiments of the gas water heater shown in the embodiments of the present application do not constitute a limitation on the specific structure of the gas water heater. In other embodiments, the gas water heater may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, in some embodiments, the gas water heater may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are consistent with the above-mentioned embodiments, and will not be described in detail here.
[0139] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0140] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the temperature control method of the gas water heater disclosed in the embodiment of the present invention is implemented.
[0141] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0142] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0143] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0144] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.
[0146] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A temperature control method for a gas water heater, characterized in that: include: Get the set temperature and input power of the gas water heater; The gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order linear auto-disturbance rejection controller to generate a target water outlet temperature.
2. The temperature control method of a gas water heater according to claim 1, characterized in that: The first-order linear active disturbance rejection controller includes a differential tracker, a first-order linear extended state observer and a linear state error feedback compensator. The first-order linear active disturbance rejection controller performs active disturbance rejection control on the gas water heater based on the set temperature and the input power to generate a target water outlet temperature, including: Performing a smooth transition calculation based on the set temperature by the differential tracker to generate a transition temperature; Acquire an adjustment factor and a current output value of the gas water heater, and generate a state estimation value and a disturbance estimation value based on the input power, the adjustment factor and the current output value through the first-order linear extended state observer; Performing compensation calculation based on the transition temperature, the adjustment factor, the state estimation value, the input power and the disturbance estimation value by the linear state error feedback compensator to generate control power; The target water outlet temperature is obtained by calculating the water outlet temperature of the gas water heater based on the control power through a pre-built physical model.
3. The temperature control method of a gas water heater according to claim 2, characterized in that: The discretization formula of the linear extended state observer is: Where, e(k) is the system temperature difference, y(k) is the outlet water temperature, z1(k) is the state estimate, z2(k) is the disturbance estimate, β 01 , β 02 is the observer gain, u(k) is the controller output value, h is the sampling step, and b is the system model coefficient.
4. The temperature control method of a gas water heater according to claim 2, characterized in that: The obtaining of the adjustment factor and the current output value of the gas water heater, and generating a state estimation value and a disturbance estimation value based on the input power, the adjustment factor and the current output value by the first-order linear extended state observer, comprises: Obtaining the adjustment factor, and obtaining the initial water outlet temperature of the gas water heater through a sensor; Converting the initial water outlet temperature into an electrical signal to generate the current output value; multiplying the adjustment factor by the input power to generate an observer input power; The state estimation value and the disturbance estimation value are generated by performing estimation value calculation based on the observer input power and the current output value by the first-order linear extended state observer.
5. The temperature control method of a gas water heater according to claim 2, characterized in that: The generating control power by performing compensation calculation based on the transition temperature, the adjustment factor, the state estimation value, the input power and the disturbance estimation value by the linear state error feedback compensator includes: Perform error calculation on the transition temperature and the state estimation value to generate an error signal; Obtaining a proportional gain and an integral gain of the linear state error feedback compensator; Performing gain calculation based on the error signal, the proportional gain and the integral gain according to a preset formula to generate an initial control amount; The control power is generated by performing compensation calculation on the initial control amount through the disturbance estimation value and the adjustment factor.
6. The temperature control method of the gas water heater according to claim 5, characterized in that: The compensating calculation of the initial control amount by using the disturbance estimation value and the adjustment factor to generate the control power includes: Calculating the difference between the initial control amount and the disturbance estimation value to obtain a control amount error value; The control amount error value is divided by the adjustment factor to perform compensation calculation on the initial control amount to obtain the control power.
7. The temperature control method of a gas water heater according to any one of claims 2 to 6, characterized in that: Before calculating the outlet water temperature of the gas water heater based on the control power by using a pre-built physical model to obtain the target outlet water temperature, the method further includes: Collecting water flow, water inlet temperature and initial input power in the gas water heater; Taking the water flow, the water inlet temperature and the initial input power as input quantities, taking the temperature rise as output quantity, and using the parameter identification toolbox of MATLAB to determine the model parameters based on the input quantities and the output quantities; A transfer function model of the gas water heater is constructed based on the model parameters, and the transfer function model is used as a physical model of the gas water heater.
8. A temperature control device for a gas water heater, characterized in that: include: A parameter acquisition unit, used to obtain the set temperature and input power of the gas water heater; The outlet water temperature generating unit is used to perform an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order linear auto-disturbance rejection controller to generate a target outlet water temperature.
9. A gas water heater, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the temperature control method of the gas water heater according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the temperature control method of the gas water heater according to any one of claims 1 to 7.
Citation Information
Cited By
Laminating temperature control method and system for tempered laminated glass
CN120178989A
Indoor temperature control method and device, equipment and medium
CN121876558A
