Wind field prediction method, device, equipment and storage medium
By obtaining and optimizing the initial values of wind direction and speed in the wind field prediction model, calculating the wind field coefficient matrix, and iteratively predicting wind direction and wind speed, the problem of low accuracy of existing wind field prediction methods is solved, and a more accurate and universal wind prediction method is achieved. field forecast.
Patent Information
- Application Number
- CN202410566146.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-09
AI Technical Summary
The accuracy of existing wind field prediction methods is low and is limited by the uncertainty of initial conditions and boundary conditions, model parameter settings, and calculation accuracy, resulting in errors in prediction results.
By obtaining the initial value of wind direction and wind speed from the national basic meteorological monitoring station, the intermediate predicted wind field is obtained based on the wind field prediction model fitting, the wind field coefficient matrix is calculated, and the target wind field coefficient matrix is obtained through minimum square error optimization, and the wind direction and wind speed are iteratively predicted , improve the accuracy of forecasting wind fields.
It improves the accuracy and universality of wind field prediction, reduces the impact of uncertainty due to initial conditions and boundary conditions, and enhances the reliability of prediction results.
Smart Images

Figure CN118153401B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a wind field prediction method, device, equipment and storage medium. Background Art
[0002] Wind field forecasting can be used for weather forecasting, but it is a complex task. The current forecasting method is to use mathematical models and multi-dimensional observation data to predict wind field conditions in the future through computer simulation. This method is affected by the uncertainty of initial and boundary conditions, and the prediction results are easily limited by model parameter settings and calculation accuracy, resulting in errors in the prediction results, which affects the wind field prediction results.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a wind field prediction method, device, equipment and storage medium, aiming to solve the technical problem of low accuracy of wind field prediction results in the prior art.
[0005] To achieve the above object, the present invention provides a wind field prediction method, which comprises the following steps:
[0006] Obtain the initial values of wind direction and speed observed by the national basic meteorological monitoring station;
[0007] Fitting the initial values of wind direction and wind speed based on a wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field;
[0008] Performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix;
[0009] The predicted wind direction and predicted wind speed are obtained according to the target wind field coefficient matrix, and the predicted wind field is obtained by iteration according to the predicted wind direction and the predicted wind speed.
[0010] Optionally, fitting the initial values of wind direction and wind speed based on a wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field, includes:
[0011] Analyzing the initial value of wind direction to obtain an initial value of wind direction and an initial value of wind speed;
[0012] An intermediate predicted wind field is obtained by fitting the initial value of the wind direction and the initial value of the wind speed;
[0013] According to the wind field coefficient matrix of the intermediate predicted wind field.
[0014] Optionally, performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix includes:
[0015] Determine historical observation values based on historical observation data;
[0016] Obtaining a historical prediction value at a preset time based on the historical observation value and the wind field coefficient matrix;
[0017] Determine the historical true value at the preset time from the historical observation data;
[0018] Calculate an error parameter based on the historical predicted value and the historical true value;
[0019] The wind field coefficient matrix is iterated according to the error parameter to optimize the minimum square error and obtain the target wind field coefficient matrix.
[0020] Optionally, fitting the initial values of wind direction and wind speed based on a wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field, includes:
[0021] Perform partial calculus on wind speed and direction and determine the differential operator;
[0022] An integral of a first wind speed and direction value is calculated according to the differential operator, and a second wind speed and direction value is obtained according to the integral of the first wind speed and direction value and the initial wind speed and direction value, wherein the first wind speed and direction value is a result of a previous iteration of the second wind speed and direction value;
[0023] The intermediate predicted wind field is obtained according to the second wind speed and wind direction value, and the wind field coefficient matrix is obtained according to the intermediate predicted wind field.
[0024] Optionally, the step of fitting the initial values of wind direction and wind speed based on a wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field, further includes:
[0025] Perform partial calculus on wind speed and direction and determine the differential operator;
[0026] According to the differential value of the first wind speed and direction value calculated based on the differential operator, a second wind speed and direction value is obtained by multiplying the product of the differential value of the first wind speed and direction value and the single-step value with the first wind speed and direction value, wherein the first wind speed and direction value is the last iteration result of the second wind speed and direction value;
[0027] The intermediate predicted wind field is obtained according to the second wind speed and wind direction value, and the wind field coefficient matrix is obtained according to the intermediate predicted wind field.
[0028] Optionally, obtaining the intermediate predicted wind field according to the second wind speed and wind direction value, and obtaining the wind field coefficient matrix according to the intermediate predicted wind field includes:
[0029] Expand the intermediate predicted wind field according to linear iteration to obtain a corresponding relationship between the second wind speed and wind direction value and the initial wind speed and wind direction value;
[0030] estimating an upper limit of the second wind speed and direction value according to the second wind speed and direction value;
[0031] According to the upper limit of the second wind speed and direction value, the second wind speed and direction value and the initial wind speed and direction value in the corresponding relationship between them are replaced to obtain the replaced intermediate predicted wind field, and the wind field coefficient matrix is obtained according to the replaced intermediate predicted wind field.
[0032] Optionally, after obtaining the predicted wind direction and predicted wind speed according to the target wind field coefficient matrix and iteratively obtaining the predicted wind field according to the predicted wind direction and the predicted wind speed, the method further includes:
[0033] Determining a prediction time, and obtaining a maximum number of iterations according to the prediction time;
[0034] Iterate according to the target wind field coefficient matrix, and obtain a predicted wind field when the number of iterations reaches the maximum number of iterations;
[0035] A wind field prediction image is drawn according to the predicted wind field, and the wind field prediction image is output.
[0036] In addition, to achieve the above object, the present invention also provides a wind field prediction device, the wind field prediction device comprising:
[0037] The data acquisition module is used to obtain the initial values of wind direction and wind speed observed by the national basic meteorological monitoring station;
[0038] A wind field fitting module, used for fitting the initial values of wind direction and wind speed to obtain an intermediate predicted wind field based on a wind field prediction model, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field;
[0039] A fitting optimization module, used for performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix;
[0040] The wind field prediction module is used to obtain the predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iteratively obtain the predicted wind field according to the predicted wind direction and the predicted wind speed.
[0041] In addition, to achieve the above-mentioned purpose, the present invention also proposes a wind field prediction device, which includes: an RFID reader / writer, an RFID tag, an RFID sensor, a memory, a processor, and a wind field prediction program stored in the memory and executable on the processor, wherein the wind field prediction program is configured to implement the steps of the wind field prediction method described above.
[0042] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a wind field prediction program is stored, and when the wind field prediction program is executed by a processor, the steps of the wind field prediction method described above are implemented.
[0043] In order to improve the accuracy of measurement, this paper also proposes a set of wind field measurement devices based on RFID. RFID has many advantages, such as lightness, flexibility, durability, low cost, easy combination, and passiveness. These advantages enable the RFID-based suspended three-dimensional wind speed and direction measurement device to cover a wider range of sample controls at a lower cost, avoid errors caused by individual or locality, provide references for the data generated by each sub-measurement unit, and improve the accuracy of wind field prediction.
[0044] The present invention obtains initial values of wind direction and wind speed observed by a national basic meteorological monitoring station, fits the initial values of wind direction and wind speed based on a wind field prediction model to obtain an intermediate predicted wind field, and obtains a wind field coefficient matrix according to the intermediate predicted wind field; performs minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix, obtains predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iterates to obtain a predicted wind field according to the predicted wind direction and the predicted wind speed, thereby realizing the development trend of the wind field predicted according to finite element analysis and improving the universality of wind field prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a structural schematic diagram of a wind field prediction device in a hardware operating environment involved in an embodiment of the present invention;
[0046] Figure 2 It is a schematic flow chart of the first embodiment of the wind field prediction method of the present invention;
[0047] Figure 3 A plot of iterative solutions and analytical solutions of an embodiment of a wind field prediction method of the present invention;
[0048] Figure 4 It is a schematic flow chart of a second embodiment of a wind field prediction method of the present invention;
[0049] Figure 5 This is a schematic diagram of an algorithm flow of an embodiment of a wind field prediction method of the present invention;
[0050] Figure 6This is a structural block diagram of the first embodiment of the wind field prediction device of the present invention.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a wind field prediction device in the hardware operating environment involved in the embodiment of the present invention.
[0054] like Figure 1 As shown, the wind farm prediction device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the wind farm prediction device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0056] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a wind farm prediction program.
[0057] exist Figure 1In the wind field prediction device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the wind field prediction device of the present invention can be set in the wind field prediction device, and the wind field prediction device calls the wind field prediction program stored in the memory 1005 through the processor 1001, and executes the wind field prediction method provided by the embodiment of the present invention.
[0058] The embodiment of the present invention provides a wind field prediction method, referring to Figure 2 , Figure 2 It is a flow chart of a first embodiment of a wind field prediction method of the present invention.
[0059] In this embodiment, the wind field prediction method includes the following steps:
[0060] Step S10: Obtain the initial values of wind direction and wind speed observed by the national basic meteorological monitoring station.
[0061] It should be noted that the executor of this embodiment is a wind field prediction device, wherein the wind field prediction device has functions such as data processing, data communication and program running. The wind field prediction device can be an integrated controller, a control computer and other devices, and of course it can also be other devices with similar functions, and this embodiment does not limit this.
[0062] It can be understood that the initial values of wind direction and wind speed refer to the wind direction data observed by the national basic meteorological monitoring stations, which are distributed in various areas of the monitoring area.
[0063] Step S20: fitting the initial values of wind direction and wind speed based on the wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field.
[0064] In the specific implementation, the intermediate predicted wind field is obtained by fitting based on the initial values of wind direction and wind speed. The meteorological observation data obtained from the national basic meteorological monitoring station can be used as the initial data. Since the east-west distance width at the highest latitude and the lowest latitude differs by about 22 km, the longitude and latitude and their projection can be converted into rectangular coordinates proportional to the actual distance without sacrificing data accuracy. The initial data is input into the wind field prediction model, the intermediate predicted wind field is fitted, and the wind field coefficient matrix is obtained based on the intermediate wind field. The wind field coefficient matrix is a set of parameters used to constrain the wind field prediction model. The wind field prediction model can be expressed as:
[0065]
[0066] Among them, the static viscosity coefficient is the value of air at 10°C under standard atmospheric pressure, that is, , F is the differential operator, and the initial value data of wind direction and wind speed at a certain moment Convert to rectangular coordinates.
[0067] Furthermore, the initial values of wind direction and wind speed are fitted based on the wind field prediction model to obtain an intermediate predicted wind field, and a wind field coefficient matrix is obtained according to the intermediate predicted wind field, including:
[0068] Analyzing the initial value of wind direction to obtain an initial value of wind direction and an initial value of wind speed;
[0069] An intermediate predicted wind field is obtained by fitting the initial value of the wind direction and the initial value of the wind speed;
[0070] According to the wind field coefficient matrix of the intermediate predicted wind field.
[0071] In the specific implementation, the initial wind direction value and the initial wind speed value are obtained by analyzing the initial wind direction value, and the initial wind direction value and the initial wind speed value are fitted to obtain the intermediate predicted wind field, specifically: ,
[0072] in, are polynomial coefficients. During fitting, the values of the polynomial coefficients are first randomly assigned, and the polynomial coefficients are continuously adjusted to make the fitting result valid. When the fitting result is valid, the obtained polynomial coefficients are the wind field coefficient matrix.
[0073] Step S30: performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix.
[0074] In the specific implementation, when obtaining the wind field coefficient matrix, it is possible to combine the given actual observation data, namely the wind direction data and wind speed data , calculate the predicted value of the model The actual observed value The residual between: At this time, the model can be trained according to the historical observation data, and the historical observation values can be determined from the historical observation data. The historical prediction values of the preset world are obtained according to the historical observation values and the wind field coefficient matrix. The historical prediction values are predicted based on the historical data, and the predicted values are obtained. At this time, because it is historical data, the real wind field data of the historical data can be obtained and based on The error parameters between the predicted value and the historical true value are calculated, that is, the residuals between the true data and the predicted data. The Jacobian matrix is constructed, and each row of the Jacobian matrix corresponds to a data point and each column corresponds to a coefficient. The Levenberg-Marquardt algorithm (LM algorithm) is applied to perform the minimum square error optimization and calculate the increment. To minimize the residual sum of squares, and update the coefficients, check whether convergence is achieved based on the change in the residual or the change in the coefficients. If convergence is not achieved, adjust the damping parameters and repeat the process.
[0075] Step S40: obtaining a predicted wind direction and a predicted wind speed according to the target wind field coefficient matrix, and iterating to obtain a predicted wind field according to the predicted wind direction and the predicted wind speed.
[0076] In a specific implementation, the predicted wind direction and predicted wind speed are obtained according to the target wind field coefficient matrix, and the predicted wind field is obtained by iteration according to the predicted wind direction and the predicted wind speed. After the predicted wind field is obtained, the prediction time is determined, the maximum number of iterations is obtained according to the prediction time, and the iteration is performed according to the target wind field coefficient matrix. When the number of iterations reaches the maximum number of iterations, the predicted wind field is obtained, a wind field prediction image is drawn according to the predicted wind field, and the wind field prediction image is output. Specifically, it can be calculated by a nonlinear fluid mechanics operator, where the Taylor-Green vortex is a solution to the fluid mechanics equation, and its specific form is:
[0077]
[0078]
[0079]
[0080] Substituting the initial value of the Taylor-Green vortex solution into the discrete iterative formula, we get:
[0081]
[0082]
[0083] Pick , iterate 4 times, and plot the iterative solution and analytical solution. Figure 3 , Figure 3 The following is a plot of the iterative solution and the analytical solution. It can be seen that the obtained results are not much different from the actual data.
[0084] This embodiment obtains the initial values of wind direction and wind speed observed by the national basic meteorological monitoring station, fits the initial values of wind direction and wind speed based on the wind field prediction model to obtain an intermediate predicted wind field, and obtains a wind field coefficient matrix according to the intermediate predicted wind field; performs minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix, obtains predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iterates to obtain the predicted wind direction and predicted wind speed to obtain the predicted wind field, thereby realizing the development trend of the wind field predicted according to the finite element analysis and improving the universality of wind field prediction.
[0085] refer to Figure 4 , Figure 4 It is a flow chart of a second embodiment of a wind field prediction method of the present invention.
[0086] Based on the above first embodiment, step S20 of the wind field prediction method of this embodiment further includes:
[0087] Step S201: Perform partial calculus on wind speed and direction to determine the differential operator;
[0088] Step S202: obtaining an integral of a first wind speed and direction value according to the differential operator, and obtaining a second wind speed and direction value according to the integral of the first wind speed and direction value and the initial wind speed and direction value, wherein the first wind speed and direction value is a result of a previous iteration of the second wind speed and direction value;
[0089] Step S203: obtaining the intermediate predicted wind field according to the second wind speed and wind direction value, and obtaining the wind field coefficient matrix according to the intermediate predicted wind field.
[0090] In the specific implementation, when predicting the wind field, it is necessary to make predictions based on the fluid mechanics equation. The fluid mechanics equation is essentially a conservation law equation, that is, it is derived based on the conservation of mass, momentum and energy in the fluid. Specifically, the change of the conserved quantity in a unit volume over time is equal to the amount flowing into the volume. The expression is:
[0091]
[0092] in, is mass, momentum or energy, is the abstract velocity field in relative space, is the divergence differential operator, which is expressed in three-dimensional space as follows:
[0093]
[0094] Rewriting the equation in the form of a generalized differential operator and separating the partial derivative with respect to time on the left side yields:
[0095]
[0096] remember , and and Treated as a high-dimensional vector , then rewrite the above as:
[0097]
[0098] in It's the differential operator.
[0099] Initial value of wind speed and direction Perform partial calculus and determine the differential operator. The specific calculation process is:
[0100]
[0101]
[0102] Then, the integral of the first wind speed and direction is calculated according to the differential operator, and the second wind speed and direction value is obtained according to the integral of the first wind speed and direction value and the initial wind speed and direction value. The first wind speed and direction value is the last iteration result of the second wind speed and direction value. The intermediate predicted wind field is obtained according to the second wind speed and direction value, and the wind field coefficient matrix is obtained according to the intermediate predicted wind field. When performing integral iteration, there is:
[0103]
[0104] If the algorithm converges, then when the number of iterations approaches The partial differential solution can be obtained, that is, the wind field coefficient matrix is obtained:
[0105]
[0106] Furthermore, the wind field prediction model is used to fit the initial values of wind direction and wind speed to obtain an intermediate predicted wind field, and a wind field coefficient matrix is obtained according to the intermediate predicted wind field, and further includes:
[0107] Perform partial calculus on wind speed and direction and determine the differential operator;
[0108] According to the differential value of the first wind speed and direction value calculated based on the differential operator, a second wind speed and direction value is obtained by multiplying the product of the differential value of the first wind speed and direction value and the single-step value with the first wind speed and direction value, wherein the first wind speed and direction value is the last iteration result of the second wind speed and direction value;
[0109] The intermediate predicted wind field is obtained according to the second wind speed and wind direction value, and the wind field coefficient matrix is obtained according to the intermediate predicted wind field.
[0110] In the specific implementation, in order to reduce the computational complexity of the integral operation, discrete iteration can be used to replace the integral iteration to improve the iteration efficiency. The specific algorithm of discrete iteration is:
[0111]
[0112] in Represents the value of a single step, which is a constant real number. The smaller the value, the more accurate the result, but the time and number of steps required to complete the calculation also increase accordingly. When the step size k tends to positive infinity, the integral iteration is equivalent to the discrete iteration.
[0113] The first right-hand side of the discrete iterative Expand:
[0114]
[0115] And so on, repeatedly expand the first ,get:
[0116]
[0117] The summation term on the right side of the equation is as well as It meets the definition of integral, that is:
[0118]
[0119] It can be seen from this that the integral iteration is equivalent to the discrete iteration.
[0120] Reference Figure 5 , Figure 5 This is a schematic diagram of the algorithm flow. At the beginning of the prediction, the model is established to obtain the differential operator , get the parameters , , for the initial value Fitting to obtain the polynomial matrix , the parameter and coefficient matrix Substituting operators and update , and determine whether If yes, then the predicted solution is obtained, otherwise the parameter and coefficient matrix are returned. Substituting operators and update steps.
[0121] Further, obtaining the intermediate predicted wind field according to the second wind speed and wind direction value, and obtaining the wind field coefficient matrix according to the intermediate predicted wind field, includes:
[0122] Expand the intermediate predicted wind field according to linear iteration to obtain a corresponding relationship between the second wind speed and wind direction value and the initial wind speed and wind direction value;
[0123] estimating an upper limit of the second wind speed and direction value according to the second wind speed and direction value;
[0124] According to the upper limit of the second wind speed and direction value, the second wind speed and direction value and the initial wind speed and direction value in the corresponding relationship between them are replaced to obtain the replaced intermediate predicted wind field, and the wind field coefficient matrix is obtained according to the replaced intermediate predicted wind field.
[0125] In a specific implementation, the intermediate predicted wind field is expanded according to linear iteration to obtain the corresponding relationship between the second wind speed and direction value and the initial wind speed and direction value, the upper limit of the second wind speed and direction value is estimated based on the second wind speed and direction value, and the second wind speed and direction value and the initial wind speed and direction value in the corresponding relationship between the second wind speed and direction value and the initial wind speed and direction value are replaced based on the upper limit of the second wind speed and direction value to obtain the replaced intermediate predicted wind field, and the wind field coefficient matrix is obtained based on the replaced intermediate predicted wind field. In practical applications, the measured data points often need to be approximated by numerical methods such as interpolation before they can be inserted into the model for calculation. These interpolated data are generally n-order polynomials, where n is the total number of data points. The iterative formula is expanded and the linear condition is substituted:
[0126]
[0127] because Smooth and reciprocal all have solutions, that is, there is a constant , so that , then we can estimate The upper bound of :
[0128]
[0129] From this we can see that the iterative method converges, assuming that the initial value The derivatives of all orders have global bounds ,Right now , For nonlinear differential operators , the estimation of the upper bound can be simplified by replacing the initial values of the coordinate variables in the iteration formula, that is:
[0130]
[0131] The differential operator after replacement is , we get the algebraic iterative formula describing the lower bound:
[0132]
[0133] For example, suppose the nonlinear differential operator has the following form:
[0134]
[0135] The iterative formula is:
[0136]
[0137]
[0138] After replacing the valuation, we get the estimated iterative formula for the bound:
[0139]
[0140]
[0141] In this way, the estimation of the bound is reduced from high dimension to one dimension, and the algebraic form of the initial value is simplified to , the computational complexity is greatly reduced. In this embodiment, the data measured in the real world are mostly finite discrete data points, which need to be interpolated or fitted to obtain polynomials for simulation prediction. In practical applications, since algorithm simulation consumes a lot of time and computing resources, it is often necessary to quickly obtain the solution convergence speed and the approximate existence interval before calculation. Therefore, the wind field is predicted by integral iteration, discrete iteration and valuation replacement.
[0142] In addition, an embodiment of the present invention further provides a storage medium, on which a wind field prediction program is stored. When the wind field prediction program is executed by a processor, the steps of the wind field prediction method described above are implemented.
[0143] Reference Figure 6 , Figure 6 This is a structural block diagram of the first embodiment of the wind field prediction device of the present invention.
[0144] like Figure 6 As shown, the wind field prediction device proposed in the embodiment of the present invention includes:
[0145] The data acquisition module 10 is used to obtain the initial values of wind direction and wind speed observed by the national basic meteorological monitoring station;
[0146] A wind field fitting module 20 is used to fit the initial values of wind direction and wind speed based on a wind field prediction model to obtain an intermediate predicted wind field, and to obtain a wind field coefficient matrix according to the intermediate predicted wind field;
[0147] A fitting optimization module 30 is used to perform minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix;
[0148] The wind field prediction module 40 is used to obtain the predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iteratively obtain the predicted wind field according to the predicted wind direction and the predicted wind speed.
[0149] This embodiment obtains the initial values of wind direction and wind speed observed by the national basic meteorological monitoring station, fits the initial values of wind direction and wind speed based on the wind field prediction model to obtain an intermediate predicted wind field, and obtains a wind field coefficient matrix according to the intermediate predicted wind field; performs minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix, obtains predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iterates to obtain the predicted wind direction and predicted wind speed to obtain the predicted wind field, thereby realizing the development trend of the wind field predicted according to the finite element analysis and improving the universality of wind field prediction.
[0150] In one embodiment, the wind field fitting module 20 is further used to analyze the initial wind direction value to obtain the initial wind direction value and the initial wind speed value; to obtain an intermediate predicted wind field according to the initial wind direction value and the initial wind speed value; and to obtain a wind field coefficient matrix according to the intermediate predicted wind field.
[0151] In one embodiment, the fitting optimization module 30 is also used to determine historical observation values based on historical observation data; obtain historical prediction values at a preset time based on the historical observation values and the wind field coefficient matrix; determine the historical true value at the preset time from the historical observation data; calculate error parameters based on the historical prediction values and the historical true values; iterate the wind field coefficient matrix based on the error parameters to optimize the minimum square error and obtain the target wind field coefficient matrix.
[0152] In one embodiment, the wind field fitting module 20 is also used to perform partial calculus on wind speed and direction to determine a differential operator; the integral of a first wind speed and direction value is calculated according to the differential operator, and a second wind speed and direction value is obtained according to the integral of the first wind speed and direction value and the initial wind speed and direction value, wherein the first wind speed and direction value is the previous iteration result of the second wind speed and direction value; the intermediate predicted wind field is obtained according to the second wind speed and direction value, and the wind field coefficient matrix is obtained according to the intermediate predicted wind field.
[0153] In one embodiment, the wind field fitting module 20 is also used to perform partial calculus on wind speed and direction to determine a differential operator; based on the differential value of the first wind speed and direction value calculated based on the differential operator, the second wind speed and direction value is obtained by multiplying the differential value of the first wind speed and direction value and the single-step value by the first wind speed and direction value, and the first wind speed and direction value is the result of the previous iteration of the second wind speed and direction value; the intermediate predicted wind field is obtained based on the second wind speed and direction value, and the wind field coefficient matrix is obtained based on the intermediate predicted wind field.
[0154] In one embodiment, the wind field fitting module 20 is also used to expand the intermediate predicted wind field according to linear iteration to obtain the corresponding relationship between the second wind speed and direction value and the initial wind speed and direction value; estimate the upper limit of the second wind speed and direction value according to the second wind speed and direction value; replace the second wind speed and direction value and the initial wind speed and direction value in the corresponding relationship between the second wind speed and direction value and the initial wind speed and direction value according to the upper limit of the second wind speed and direction value to obtain the replaced intermediate predicted wind field, and obtain the wind field coefficient matrix according to the replaced intermediate predicted wind field.
[0155] In one embodiment, the wind field prediction module 40 is also used to determine the prediction time, and obtain the maximum number of iterations according to the prediction time; iterate according to the target wind field coefficient matrix, and obtain the predicted wind field when the number of iterations reaches the maximum number of iterations; draw a wind field prediction image according to the predicted wind field, and output the wind field prediction image.
[0156] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0157] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0158] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0159] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0160] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0162] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A wind field prediction method, characterized in that: The wind field prediction method comprises: Obtain the initial values of wind direction and speed observed by the national basic meteorological monitoring station; Fitting the initial values of wind direction and wind speed based on a wind field prediction model to obtain a continuous intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field; Performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix; Obtain predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iterate to obtain predicted wind field according to the predicted wind direction and predicted wind speed; The step of performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix includes: Determine historical observation values based on historical observation data; Obtaining a historical prediction value at a preset time based on the historical observation value and the wind field coefficient matrix; Determine the historical true value at the preset time from the historical observation data; Calculate an error parameter based on the historical predicted value and the historical true value; The wind field coefficient matrix is iterated according to the error parameter to optimize the minimum square error and obtain the target wind field coefficient matrix.
2. The method according to claim 1, characterized in that The method of fitting the initial values of wind direction and wind speed based on the wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field, includes: Analyzing the initial values of wind direction and wind speed to obtain an initial value of wind direction and an initial value of wind speed; An intermediate predicted wind field is obtained by fitting the initial value of the wind direction and the initial value of the wind speed; A wind field coefficient matrix is obtained according to the intermediate predicted wind field.
3. The method according to claim 1, characterized in that The method of fitting the initial values of wind direction and wind speed based on the wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field, includes: Determining model parameters of the differential operator based on historical observation data of wind speed and direction in combination with meteorological parameters, wherein the meteorological parameters include at least temperature, humidity and air pressure; The wind speed is input into the differential operator for calculus calculation to obtain a first iterative value of wind speed and direction, the first iterative value of wind direction and wind speed is input into the differential operator for integral calculation to obtain a second iterative value of wind speed and wind direction, and the model parameters of the differential operator are adjusted based on the first iterative value of wind speed and wind direction and the second iterative value of wind speed and wind direction, and the wind speed and wind direction prediction coefficient matrix at the target time is approximated; The wind field coefficient matrix is obtained according to the wind speed and wind direction prediction coefficient matrix.
4. The method according to claim 1, characterized in that The method of fitting the initial values of wind direction and wind speed based on the wind field prediction model to obtain an intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field, further includes: Perform partial calculus on wind speed and direction and determine the differential operator; According to the differential value of the first wind speed and direction value calculated based on the differential operator, a second wind speed and direction value is obtained by multiplying the product of the differential value of the first wind speed and direction value and the single-step value with the first wind speed and direction value, wherein the first wind speed and direction value is the last iteration result of the second wind speed and direction value; The intermediate predicted wind field is obtained according to the second wind speed and wind direction value, and the wind field coefficient matrix is obtained according to the intermediate predicted wind field.
5. The method according to claim 4, characterized in that The step of obtaining the intermediate predicted wind field according to the second wind speed and wind direction value, and obtaining the wind field coefficient matrix according to the intermediate predicted wind field, includes: Expand the intermediate predicted wind field according to linear iteration to obtain a corresponding relationship between the second wind speed and wind direction value and the initial wind speed and wind direction value; estimating an upper limit of the second wind speed and direction value according to the second wind speed and direction value; According to the upper limit of the second wind speed and direction value, the second wind speed and direction value and the initial wind speed and direction value in the corresponding relationship between them are replaced to obtain the replaced intermediate predicted wind field, and the wind field coefficient matrix is obtained according to the replaced intermediate predicted wind field.
6. The method according to claim 1, characterized in that After obtaining the predicted wind direction and predicted wind speed according to the target wind field coefficient matrix, and iteratively obtaining the predicted wind field according to the predicted wind direction and the predicted wind speed, the method further includes: Determining a prediction time, and obtaining a maximum number of iterations according to the prediction time; Iterate according to the target wind field coefficient matrix, and obtain a predicted wind field when the number of iterations reaches the maximum number of iterations; A wind field prediction image is drawn according to the predicted wind field, and the wind field prediction image is output.
7. A wind field prediction device, characterized in that: The wind field prediction device comprises: The data acquisition module is used to obtain the initial values of wind direction and wind speed observed by the national basic meteorological monitoring station; A wind field fitting module, used for fitting the initial values of wind direction and wind speed based on a wind field prediction model to obtain a continuous intermediate predicted wind field, and obtaining a wind field coefficient matrix according to the intermediate predicted wind field; A fitting optimization module, used for performing minimum square error optimization on the wind field coefficient matrix to obtain a target wind field coefficient matrix; A wind field prediction module, used to obtain a predicted wind direction and a predicted wind speed according to the target wind field coefficient matrix, and iteratively obtain a predicted wind field according to the predicted wind direction and the predicted wind speed; The fitting optimization module is also used to determine historical observation values based on historical observation data; Obtaining a historical prediction value at a preset time based on the historical observation value and the wind field coefficient matrix; Determine the historical true value at the preset time from the historical observation data; Calculate an error parameter based on the historical predicted value and the historical true value; The wind field coefficient matrix is iterated according to the error parameter to optimize the minimum square error and obtain the target wind field coefficient matrix.
8. A wind field prediction device, characterized in that: The device comprises: a memory, a processor, and a wind field prediction program stored in the memory and executable on the processor, wherein the wind field prediction program is configured to implement the steps of the wind field prediction method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores a wind field prediction program, and when the wind field prediction program is executed by the processor, the steps of the wind field prediction method according to any one of claims 1 to 6 are implemented.
