Visualization method and device of three-dimensional wind field streamline, electronic equipment and storage medium

By randomly selecting locations in a 3D wind field grid to generate initial streamlines and calculating particle positions, colors, and transparency, the problem of unclear visualization of wind field streamlines in existing technologies is solved, thus improving the intuitiveness and efficiency of wind speed judgment.

CN121259249AActive Publication Date: 2026-01-02DIGITAL GUANGDONG NETWORK CONSTR CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511803098.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-03
Publication Date
2026-01-02
Estimated Expiration
2045-12-03

AI Technical Summary

Technical Problem

Existing wind field visualization methods mostly use two-dimensional wind fields to visualize streamlines, lacking regional topography and failing to reflect the fluidity of a large number of wind speed particles. The wind field streamline effect is not obvious, and users cannot visually and intuitively judge the wind speed, resulting in low visualization efficiency.

Method used

A visualization method for three-dimensional wind field streamlines is adopted. N positions are randomly selected in the three-dimensional wind field mesh to generate initial streamlines. The particle position, color and transparency are calculated within the life cycle of the streamlines, and the streamlines are rendered step by step until the life cycle ends.

Benefits of technology

It achieves the effect of rendering a large number of wind speed particles in a 3D wind field mesh, allowing users to visually and intuitively judge the wind speed and improving the visualization efficiency of wind field streamlines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121259249A_ABST
    Figure CN121259249A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional wind field streamline visualization method and device, equipment and a storage medium. The method comprises the following steps: randomly selecting N positions in a three-dimensional wind field grid; generating an initial streamline at each position, and taking the initial streamline at each position as a current streamline; if the current time point is in the life cycle corresponding to the current streamline, calculating the position of each particle in the current streamline at the next time point of the current time point and the color and transparency of each particle at the next position at the current time point; rendering the next streamline corresponding to the current streamline in the three-dimensional wind field grid at the next time point according to the color and the transparency; and repeating the operation until the current time point is not in the life cycle corresponding to the current streamline. The flowability of a large number of wind speed particles can be reflected, the wind field streamline effect is obvious, the wind speed can be visually judged, and therefore the visualization efficiency of the wind field streamline can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of data rendering, and particularly relate to a three-dimensional wind field streamline visualization method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the continuous development of science and technology, wind field streamline visualization has great potential in many fields. In weather forecasting, wind field streamline visualization can help researchers more intuitively analyze atmospheric flow patterns, thereby improving the accuracy of weather forecasting. Meanwhile, in the field of aerospace, through accurate simulation of wind field streamlines, the design of aircraft can be optimized, and its aerodynamic performance can be improved. In addition, wind field streamline visualization can also be applied to environmental monitoring to help assess the diffusion path of pollutants and provide a scientific basis for formulating environmental protection strategies. In the field of energy development, it also has important significance for wind farm layout planning and wind energy utilization efficiency improvement.

[0003] In the process of implementing the present application, the applicant found that at least the following problems exist in the prior art: The existing wind field visualization methods mostly use two-dimensional wind field to realize streamline visualization, lacking regional terrain and lacking efficient and realistic effect. The ordinary wind field visualization method cannot reflect the flow of a large number of wind speed particles, and the wind field streamline effect is not obvious, so users cannot intuitively judge the wind speed from the visual point of view, resulting in low efficiency of wind field streamline visualization. SUMMARY

[0004] Embodiments of the present application provide a three-dimensional wind field streamline visualization method, device, electronic equipment and storage medium, which can reflect the flow of a large number of wind speed particles, and the wind field streamline effect is obvious, so users can intuitively judge the wind speed from the visual point of view, thereby improving the efficiency of wind field streamline visualization.

[0005] In a first aspect, embodiments of the present application provide a three-dimensional wind field streamline visualization method, characterized in that the method comprises:

[0006] randomly selecting N positions in a three-dimensional wind field grid; wherein N is a natural number greater than 1;

[0007] generating an initial streamline at each position, and taking the initial streamline at each position as a current streamline;

[0008] if the current time point is within the life cycle corresponding to the current streamline, calculating the position of each particle in the current streamline at the next time point from the current time point, and the color and transparency of each particle in the current streamline at the next position; wherein the current streamline is composed of M particles; M is a natural number greater than or equal to 1;

[0009] render a next streamline of the current streamline in the three-dimensional wind field grid according to the color and the transparency of each particle in the current streamline at the next position at a next time point; repeat the above operations by taking the next streamline as the current streamline until the current time point is not within the life cycle corresponding to the current streamline.

[0010] In a second aspect, an embodiment of the present application provides a device for visualizing a three-dimensional wind field streamline, and the device comprises a selection module, a streamline generation module, a calculation module and a rendering module.

[0011] The selection module is configured to randomly select N positions in the three-dimensional wind field grid, where N is a natural number greater than 1.

[0012] The streamline generation module is configured to generate an initial streamline at each position and take the initial streamline as a current streamline.

[0013] The calculation module is configured to, if a current time point is within a life cycle corresponding to the current streamline, calculate a position of each particle in the current streamline at a next time point of the current time point and a color and a transparency of each particle in the current streamline at the next position.

[0014] The rendering module is configured to render a next streamline corresponding to the current streamline in the three-dimensional wind field grid according to the color and the transparency of each particle in the current streamline at the next position at the next time point.

[0015] The streamline generation module is further configured to take the next streamline as the current streamline, and the calculation module and the rendering module are further configured to repeat the above operations until the calculation module determines that the current time point is not within the life cycle corresponding to the current streamline.

[0016] In a third aspect, an embodiment of the present application further provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements a method for visualizing a three-dimensional wind field streamline when executing the program.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the program implements a method for visualizing a three-dimensional wind field streamline when executed by a processor.

[0018] The embodiment of the present application provides a three-dimensional wind field streamline visualization method, first randomly selecting N positions in a three-dimensional wind field grid; then generating an initial streamline at each position, and taking the initial streamline at each position as a current streamline; if a current time point is within a life cycle corresponding to the current streamline, calculating positions of each particle in the current streamline at a next time point of the current time point and colors and transparencies of each particle in the current streamline at the next position at the current time point; then rendering a next streamline corresponding to the current streamline in the three-dimensional wind field grid according to the colors and transparencies of each particle in the current streamline at the next position at the next time point; taking the next streamline as the current streamline, and repeatedly performing the above operation until the current time point is not within the life cycle corresponding to the current streamline. That is, in the technical solution of the present application, each streamline is rendered in the three-dimensional wind field grid only within the life cycle corresponding to the streamline, and the positions of each particle at the next time point and the colors and transparencies at the positions can be calculated at the current time point, so that the flow effect of a large number of wind speed particles can be rendered in the three-dimensional wind field grid, and a user can visually and intuitively judge the wind speed, thereby improving the visualization efficiency of the wind field streamline. In the prior art, the existing wind field visualization method mostly uses a two-dimensional wind field to realize the visualization of the streamline, lacks regional terrain, and lacks efficient and realistic effects. The ordinary wind field visualization method cannot reflect the flow of a large number of wind speed particles, the wind field streamline effect is not obvious, the user cannot visually and intuitively judge the wind speed, and the visualization efficiency of the wind field streamline is low. Therefore, compared with the prior art, the three-dimensional wind field streamline visualization method, device, electronic equipment and storage medium provided by the embodiment of the present application can reflect the flow of a large number of wind speed particles, the wind field streamline effect is obvious, the user can visually and intuitively judge the wind speed, thereby improving the visualization efficiency of the wind field streamline; and the technical solution of the embodiment of the present application is simple and convenient to implement, is easy to popularize, and has a wider application range. BRIEF DESCRIPTION OF DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.

[0020] Figure 1 The flow chart of the three-dimensional wind field streamline visualization method provided by an embodiment of the present application;

[0021] Figure 2 The method flow chart for calculating the positions of each particle at the next time point provided by an embodiment of the present application;

[0022] Figure 3 A flow chart of a method for calculating the color of each particle at the next position is provided for an embodiment of the present application.

[0023] Figure 4 A flow chart of a method for calculating the transparency of each particle at the next position is provided for an embodiment of the present application.

[0024] Figure 5 A structural schematic diagram of a visualization device of three-dimensional wind field streamlines is provided for an embodiment of the present application.

[0025] Figure 6 A structural schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0026] The present application will be further described below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, but not all the structures.

[0027] Figure 1 A flow chart of a visualization method of three-dimensional wind field streamlines is provided for an embodiment of the present application. The method can be executed by a visualization device of three-dimensional wind field streamlines provided by an embodiment of the present application. The device can be realized in the form of software and / or hardware. The following embodiments will be described by taking an example that the device is integrated in an electronic device, which can be a server, a computer device, etc. Referring to Figure 1 , the method can specifically include the following steps:

[0028] S101, randomly selecting N positions in the three-dimensional wind field grid; wherein N is a natural number greater than 1.

[0029] In this step, N non-repeated indexes can be generated randomly first; and then the indexes are converted into actual space coordinates. Specifically, the N non-repeated indexes can be generated randomly, which can include the following operation steps: obtaining the number of nodes of the three-dimensional wind field grid in x, y and z directions, denoted as nx, ny and nz respectively; then calculating the total number of nodes total in the three-dimensional wind field grid according to the number of nodes of the three-dimensional wind field grid in x, y and z directions; wherein ; randomly selecting N non-repeated numbers from the integers from 0 to total-1 to form a one-dimensional random number list; and then converting the one-dimensional random number in the one-dimensional random number list into a three-dimensional index.

[0030] S102, generating an initial stream line at each position, and taking the initial stream line at each position as a current stream line.

[0031] In specific embodiments of the present application, the flow line of each position at different time points is different. For example, assuming that the granularity of time points is 1 second; then at the 1st second, the flow line at a certain position can contain 1 particle; at the 2nd second, the flow line at the position can contain 2 particles; at the 3rd second, the flow line at the position can contain 3 particles; …; at the 10th second, the flow line at the position can contain 10 particles.

[0032] S103, if the current time point is within the life cycle corresponding to the current flow line, then the position of each particle in the current flow line at the next time point of the current time point is calculated at the current time point, and the color and transparency of each particle in the current flow line at the next position; wherein the current flow line consists of M particles; M is a natural number greater than or equal to 1.

[0033] In specific embodiments of the present application, each flow line can correspond to a life cycle, and the number of particles on different flow lines is also different. For example, assuming that the granularity of time points is 1 second, the life cycle corresponding to the flow line at a certain position is 100 seconds, and the flow line at the position can contain up to 10 particles; then at the 1st second, the flow line at the position can contain 1 particle, numbered as: particle 1; at the 2nd second, the flow line at the position can contain 2 particles, numbered as: particle 1 and particle 2; at the 3rd second, the flow line at the position can contain 3 particles, numbered as: particle 1, particle 2, particle 3; …; at the 10th second, the flow line at the position can contain 10 particles, numbered as: particle 1, particle 2, particle 3, …, particle 10; at the 11th second, the flow line at the position can contain 10 particles, numbered as: particle 2, particle 3, particle 4, …, particle 11; …; at the 100th second, the flow line at the position can contain 10 particles, numbered as: particle 91, particle 92, particle 93, …, particle 100.

[0034] In this step, it can be first judged whether the current time point is within the life cycle corresponding to the current streamline; if the current time point is within the life cycle corresponding to the current streamline, the position of each particle in the current streamline at the next time point of the current time point and the color and transparency of each particle in the current streamline at the next position are calculated at the current time point. For example, assuming that the granularity of the time point is 1 second, the life cycle corresponding to the streamline at a certain position is 100 seconds, and the streamline at the position can contain at most 10 particles; then at the 1st second, it is first judged whether the 1st second is within the life cycle (100 seconds) corresponding to the streamline, and then the position of particle 1 at the 2nd second, the color and transparency of particle 1 at the position are calculated at the 1st second; at the 2nd second, it is first judged whether the 2nd second is within the life cycle (100 seconds) corresponding to the streamline, and then the position of particle 1 at the 3rd second, the position of particle 2 at the 3rd second, the color and transparency of particle 1 at the position, the color and transparency of particle 2 at the position are calculated at the 2nd second; at the 3rd second, it is first judged whether the 3rd second is within the life cycle (100 seconds) corresponding to the streamline, and then the position of particle 1 at the 4th second, the position of particle 2 at the 4th second, the position of particle 3 at the 4th second, the color and transparency of particle 1 at the position, the color and transparency of particle 2 at the position, the color and transparency of particle 3 at the position are calculated at the 3rd second; and so on.

[0035] S104, according to the color and transparency of each particle in the current streamline at the next position, rendering the next streamline corresponding to the current streamline in the three-dimensional wind field grid at the next time point; taking the next streamline as the current streamline, repeating the above operation until the current time point is not within the life cycle corresponding to the current streamline.

[0036] In specific embodiments of the present application, the transparency of different particles in the same offline can be different. In one embodiment, the rightmost particle can be the clearest, and the leftmost particle can be the least clear. That is, the transparency of the rightmost particle can be 1 (indicating completely visible), and the transparency of the leftmost particle can be 0 (indicating completely invisible).

[0037] The method for visualizing three-dimensional wind field streamlines provided in the embodiments of the present application first randomly selects N positions in the three-dimensional wind field grid; then generates an initial stream line at each position and takes the initial stream line at each position as a current stream line; if the current time point is within the life cycle corresponding to the current stream line, calculates the position of each particle in the current stream line at the next time point at the current time point and the color and transparency of each particle in the current stream line at the next position at the current time point; and then renders the next stream line corresponding to the current stream line in the three-dimensional wind field grid at the next time point according to the color and transparency of each particle in the current stream line at the next position. The next stream line is taken as the current stream line, and the above operation is repeatedly performed until the current time point is not within the life cycle corresponding to the current stream line. That is, in the technical solution of the present application, each stream line is rendered in the three-dimensional wind field grid only within the life cycle corresponding to the stream line, and the position of each particle at the next time point and the color and transparency at the position can be calculated at the current time point. This can render the flow effect of a large number of wind speed particles in the three-dimensional wind field grid, and users can visually and intuitively determine the wind speed, thereby improving the visualization efficiency of wind field streamlines. In the prior art, the existing wind field visualization method mostly uses a two-dimensional wind field to realize the visualization of stream lines, lacks regional terrain, and lacks efficient and realistic effects. The ordinary wind field visualization method cannot reflect the flow of a large number of wind speed particles, the wind field stream line effect is not obvious, users cannot visually and intuitively determine the wind speed, and the visualization efficiency of wind field streamlines is low. Therefore, compared with the prior art, the method for visualizing three-dimensional wind field streamlines provided in the embodiments of the present application can reflect the flow of a large number of wind speed particles, the wind field stream line effect is obvious, users can visually and intuitively determine the wind speed, and the visualization efficiency of wind field streamlines can be improved. Moreover, the technical solution of the embodiments of the present application is simple and convenient to implement, easy to popularize, and has a wider application range.

[0038] Figure 2 The method for calculating the position of each particle at the next time point provided in an embodiment of the present application is shown in the flowchart. Based on the above technical solution, further optimization and extension can be performed, and the above various optional embodiments can be combined. As shown in Figure 2 the current stream line at the next time point can include the following steps:

[0039] S201, acquire the three-dimensional position coordinates and three-dimensional wind speed coordinates of each particle of the current stream line at the current time point at the current time point; wherein the three-dimensional position coordinates and the three-dimensional wind speed coordinates are stored in the form of a three-dimensional array; the three-dimensional position coordinates include the longitude, latitude and height of the particle in the three-dimensional wind field grid; and the three-dimensional wind speed coordinates include the wind speed component in the east-west direction, the wind speed component in the south-north direction and the wind speed component in the vertical direction.

[0040] In the embodiments of the present application, the three-dimensional position coordinates can be represented as (x, y, z); wherein x represents the longitude in the three-dimensional wind field grid, y represents the latitude in the three-dimensional wind field grid, and z represents the height in the three-dimensional wind field grid; the three-dimensional wind speed coordinates can be represented as (u, v, w); wherein u represents the wind speed component of the particle in the east-west direction, v represents the wind speed component of the particle in the south-north direction, and w represents the wind speed component of the particle in the vertical direction.

[0041] S202, according to the three-dimensional position coordinates and the three-dimensional wind speed coordinates of each particle of the current streamline at the current time point, the position of each particle in the current streamline at the next time point is calculated.

[0042] In this step, the wind speed component of each particle of the current streamline at the current time point in the east-west direction, the wind speed component in the south-north direction and the wind speed component in the vertical direction can be multiplied by the pre-set speed scaling factor respectively to obtain the wind speed scaling component of each particle of the current streamline at the current time point in the east-west direction; the wind speed scaling component in the south-north direction and the wind speed scaling component in the vertical direction; then the longitude of each particle of the current streamline at the current time point in the three-dimensional wind field grid is added to the corresponding particle in the east-west direction, the latitude of each particle of the current streamline at the current time point in the three-dimensional wind field grid is added to the corresponding particle in the south-north direction, and the height of each particle of the current streamline at the current time point in the three-dimensional wind field grid is added to the corresponding particle in the vertical direction, to obtain the position of each particle in the current streamline at the next time point.

[0043] In one embodiment, the position of each particle in the current streamline at the next time point can be calculated by using the following formula:

[0044] ;

[0045] Wherein, factor is a pre-determined speed scaling factor.

[0046] Figure 3 The method flow chart for calculating the color of each particle at the next position provided by an embodiment of the present application. Based on the above technical solutions, further optimization and expansion can be carried out, and can be combined with the above various optional embodiments. As shown in the following figure, calculating the color of each particle in the current streamline at the next position at the current time point can include the following steps: Figure 3

[0047] S301, at the current time point, the three-dimensional wind speed coordinates of each particle of the current streamline at the current time point are obtained.

[0048] ​S302, calculate the speed of each particle of the current streamline at the current time point according to the three-dimensional wind speed coordinates of each particle of the current streamline at the current time point.

[0049] In one embodiment, the speed of each particle of the current streamline at the current time point can be calculated by using the following formula: ; wherein u represents the wind speed component of the particle in the east-west direction, v represents the wind speed component of the particle in the north-south direction, and w represents the wind speed component of the particle in the vertical direction.

[0050] S303, determine the color of each particle in the current streamline at the next position according to the speed of each particle of the current streamline at the current time point.

[0051] In this step, the speed of each particle of the current streamline at the current time point can be divided into a corresponding speed interval according to the pre-set correspondence between the speed interval of the particle and the color; and then the color of each particle in the current streamline at the next position is determined according to the speed interval corresponding to the speed of each particle of the current streamline at the current time point.

[0052] The color in the embodiment of the application is not subjective setting, but is closely related to the speed, so that the visualization result can have a clear physical basis, and the credibility of the analysis conclusion is improved. The physical state (speed) of the invisible particle is converted into visible color information, and the speed of the particle motion can be quickly distinguished through the color difference (for example, the cold color tone can represent low speed, and the warm color tone can represent high speed), so that the technical problems of difficult quantification and difficult distinction of the motion state in the flow field visualization are solved, and the accuracy and continuity of the dynamic visualization are ensured, and the complexity of the flow field analysis is greatly reduced.

[0053] Figure 4 A method flowchart for calculating the transparency of each particle at the next position is provided in an embodiment of the application. Based on the above technical solutions, further optimization and expansion can be performed, and the above various optional embodiments can be combined. As shown in Figure 4 calculating the transparency of each particle in the current streamline at the next position at the current time point can include the following steps:

[0054] S401, determine the order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point at the current time point.

[0055] S402, calculate the transparency of each particle in the current streamline at the next position according to the order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point.

[0056] In the embodiments of the present application, the transparency of different particles in the same off-line can be different. In one embodiment, the particle on the right can be the clearest, and the particle on the left can be the least clear. That is, the transparency of the particle on the right can be 1 (indicating completely visible), and the transparency of the particle on the left can be 0 (indicating completely invisible). In this step, the order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point can be input into a preset transparency function, and the transparency of each particle in the current streamline at the next position is calculated by the transparency function; wherein the transparency is represented by a decimal number 0-1, 0 represents completely transparent, and 1 represents completely opaque.

[0057] In one embodiment, the order of the particle in the streamline can be represented as n, and the total number of all particles on the streamline can be represented as age; the transparency of each particle in the current streamline at the next position can be calculated using the following formula: ; wherein, is an exponential function .

[0058] The embodiments of the present application can be set in the manner that the transparency of the first launched particle is low and the transparency of the later launched particle is high, the motion direction of the streamline (from the clear end to the blurred end) can be quickly judged by the transparency gradient, and the front and rear stacking relationship of the particles in the streamline can be intuitively reflected. When the number of particles in the streamline is large and the motion trajectories intersect, the transparency difference can naturally guide the visual line to focus on the key particles (such as the head particles), and reduce the visual interference between different particles.

[0059] Figure 5 The structure schematic diagram of the visualization device of the three-dimensional wind field streamline provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the visualization device of the three-dimensional wind field streamline includes a selection module 501, a streamline generation module 502, a calculation module 503, and a rendering module 504; wherein, Figure 5

[0060] The selection module 501 is configured to randomly select N positions in the three-dimensional wind field grid; wherein N is a natural number greater than 1.

[0061] The streamline generation module 502 is configured to generate an initial streamline at each position, and take the initial streamline as a current streamline.

[0062] The calculation module 503 is configured to, if the current time point is within the life cycle corresponding to the current streamline, calculate the position of each particle in the current streamline at the next time point at the current time point, and the color and transparency of each particle in the current streamline at the next position; wherein the current streamline is composed of M particles; M is a natural number greater than or equal to 1.​

[0063] The rendering module 504 is used to render the next streamline corresponding to the current streamline in the three-dimensional wind field grid at the next time point according to the color and transparency of each particle in the current streamline at the next position.

[0064] The streamline generation module is further configured to use the next streamline as the current streamline, and the calculation module and the rendering module are further configured to repeatedly perform the above operations until the calculation module determines that the current time point is not within the life cycle corresponding to the current streamline.

[0065] The aforementioned visualization device for three-dimensional wind field streamlines can execute the methods provided in any embodiment of this application, and possesses the corresponding functional modules and beneficial effects for executing the methods. Technical details not described in detail in this embodiment can be found in the visualization methods for three-dimensional wind field streamlines provided in any embodiment of this application.

[0066] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of this application is shown. Figure 6 The electronic device 12 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0067] like Figure 6 As shown, the electronic device 12 is represented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0068] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0069] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0070] System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Electronic device 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Figure 6 Although not shown, a magnetic disk drive can also be utilized in some embodiments to read from and write to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive can be utilized in some embodiments for reading from and writing to a removable, non-volatile optical disk (e.g., a CD-ROM, DVD-ROM or other optical media). Figure 6 Although not shown, a magnetic disk drive can also be utilized in some embodiments to read from and write to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive can be utilized in some embodiments for reading from and writing to a removable, non-volatile optical disk (e.g., a CD-ROM, DVD-ROM or other optical media).

[0071] Program / utility 40 having a set (at least one) of program modules 42 can be stored in, for example, memory 28 by way of example, such program modules include an operating system, one or more application programs, other program modules, and program data, each or some combination thereof, can include implementation of the network environment. Program modules are generally executed by processing unit 16 in

[0072] Electronic device 12 can also communicate with one or more external devices 14 such as a keyboard or pointing device, a display 24, etc.; one or more devices that enable a user to interact with electronic device 12; and / or one or more devices that enable electronic device 12 to communicate with one or more other computing devices. Such communication can be via I / O interface 22. Still yet, electronic device 12 can communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or the Internet) through network adapter 20. As an example, network adapter 20 can include a modem, a network card (wireless or wired), or other well-known interface devices. It will be appreciated that other hardware and / or software modules can be used in conjunction with electronic device 12 in place of, or in addition to, those shown. Figure 6 It should be appreciated that the software modules described herein can be initially downloaded from an external source (for example, use of the Internet or an intranet) or initially stored in storage system 34. In either case, the software modules can be stored in memory 28 and / or storage system 34 for execution by processing unit 16.

[0073] Processing unit 16 executes the various functions and applications provided by electronic device 12 through the execution of program modules stored in system memory 28. In this regard, processing unit 16 can be a single- or multi-core processor, or some other processor capable of executing instructions.

[0074] The embodiment of the present application further provides a computer storage medium.

[0075] The computer readable storage medium of the embodiment of the present application can adopt any combination of one or more computer readable media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device.

[0076] The computer readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the computer readable program code is contained. Such propagated data signal can take many forms, including but not limited to electro-magnetic, optical or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport program for use by or in connection with an instruction execution system, apparatus or device.

[0077] The program code contained in the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, cable, optical fiber, RF, etc., or any suitable combination of the above.

[0078] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0079] The embodiments of the present application also provide a computer program product.

[0080] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on a chip systems (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0081] It is to be understood that the above description is directed to the preferred embodiments and that those skilled in the art will be able to devise various embodiments that although not specifically described, embody the principles of the application. Thus, the scope of protection is not limited to the preferred embodiments, but is only limited by the claims that follow. Therefore, many modifications and variations of this application can be made in light of its teachings without departing from the scope of the contemplated concepts. It is, therefore, to be understood that it is the intent of the patent to cover all such modifications and

Claims

1. A method of visualizing streamlines of a three-dimensional wind field, characterized by, The method comprises: randomly selecting N positions in a three-dimensional wind field grid; wherein N is a natural number greater than 1; generating an initial streamline at each position and taking the initial streamline at each position as a current streamline; if the current time point is within the life cycle corresponding to the current streamline, calculating the position of each particle in the current streamline at the next time point at the current time point, and the color and transparency of each particle in the current streamline at the next position at the current time point; wherein the current streamline is composed of M particles; M is a natural number greater than or equal to 1; according to the color and transparency of each particle in the current streamline at the next position, rendering the next streamline corresponding to the current streamline in the three-dimensional wind field grid at the next time point; taking the next streamline as the current streamline, repeating the above operations until the current time point is not within the life cycle corresponding to the current streamline.

2. The method of claim 1, wherein, calculating the position of each particle in the current streamline at the next time point at the current time point comprises: obtaining the three-dimensional position coordinates and three-dimensional wind speed coordinates of each particle of the current streamline at the current time point at the current time point; wherein the three-dimensional position coordinates and the three-dimensional wind speed coordinates are stored in a three-dimensional array; the three-dimensional position coordinates include the longitude, latitude and height of the particle in the three-dimensional wind field grid; the three-dimensional wind speed coordinates include the wind speed component of the particle in the east-west direction, the wind speed component of the particle in the north-south direction and the wind speed component of the particle in the vertical direction; calculating the position of each particle in the current streamline at the next time point according to the three-dimensional position coordinates and three-dimensional wind speed coordinates of each particle of the current streamline at the current time point.

3. The method of claim 2, wherein, calculating the position of each particle in the current streamline at the next time point according to the three-dimensional position coordinates and three-dimensional wind speed coordinates of each particle of the current streamline at the current time point comprises: multiplying the wind speed component of each particle of the current streamline in the east-west direction, the wind speed component of each particle of the current streamline in the north-south direction and the wind speed component of each particle of the current streamline in the vertical direction at the current time point by a pre-set speed scaling factor to obtain the wind speed scaling component of each particle of the current streamline in the east-west direction at the current time point; the wind speed scaling component of each particle of the current streamline in the north-south direction and the wind speed scaling component of each particle of the current streamline in the vertical direction; adding the longitude of each particle of the current streamline in the three-dimensional wind field grid at the current time point to the wind speed scaling component of the corresponding particle in the east-west direction, adding the latitude of each particle of the current streamline in the three-dimensional wind field grid at the current time point to the wind speed scaling component of the corresponding particle in the north-south direction, and adding the height of each particle of the current streamline in the three-dimensional wind field grid at the current time point to the wind speed scaling component of the corresponding particle in the vertical direction to obtain the position of each particle in the current streamline at the next time point.

4. The method of claim 1, wherein, calculating the color of each particle in the current streamline at the next position at the current time point comprises: obtaining the three-dimensional wind speed coordinates of each particle of the current streamline at the current time point at the current time point; According to the three-dimensional wind speed coordinates of each particle of the current streamline at the current time point, the speed of each particle of the current streamline at the current time point is calculated; According to the speed of each particle of the current streamline at the current time point, the color of each particle in the current streamline at the next position is determined.

5. The method of claim 4, wherein, According to the speed of each particle of the current streamline at the current time point, the color of each particle in the current streamline at the next position is determined, comprising: According to the pre-set corresponding relationship between the speed interval of the particle and the color, the speed of each particle of the current streamline at the current time point is divided into the corresponding speed interval; According to the speed interval corresponding to the speed of each particle of the current streamline at the current time point, the color of each particle in the current streamline at the next position is determined.

6. The method of claim 1, wherein, At the current time point, the transparency of each particle in the current streamline at the next position is calculated, comprising: At the current time point, the order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point are determined; According to the order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point, the transparency of each particle in the current streamline at the next position is calculated.

7. The method of claim 6, wherein, According to the order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point, the transparency of each particle in the current streamline at the next position is calculated, comprising: The order of each particle of the current streamline at the current time point in the current streamline and the total number of all particles of the current streamline at the current time point are input into the pre-set transparency function, and the transparency of each particle in the current streamline at the next position is calculated by the transparency function; wherein the transparency is represented by a decimal number 0-1, 0 represents complete transparency, and 1 represents complete opacity.

8. A device for visualizing streamlines of a three-dimensional wind field, characterized in that The device comprises a selection module, a streamline generation module, a calculation module and a rendering module; wherein, The selection module is used for randomly selecting N positions in the three-dimensional wind field grid; wherein N is a natural number greater than 1; The streamline generation module is used for generating an initial streamline at each position and taking the initial streamline as a current streamline; The calculation module is used for, if the current time point is within the life cycle corresponding to the current streamline, calculating the position of each particle in the current streamline at the next time point at the current time point, and the color and transparency of each particle in the current streamline at the next position; wherein the current streamline is composed of M particles; M is a natural number greater than or equal to 1; The rendering module is used for rendering the next streamline corresponding to the current streamline in the three-dimensional wind field grid at the next time point according to the color and transparency of each particle in the current streamline at the next position. The stream line generation module is further configured to take the next stream line as the current stream line, and the calculation module and the rendering module are further configured to repeatedly perform the above operations until the calculation module determines that the current time point is not within the life cycle corresponding to the current stream line.

9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, The processor implements the three-dimensional wind field stream line visualization method of any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the three-dimensional wind field stream line visualization method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dynamic simulation of wind field in three-dimensional space based on particle flow trajectory tracking algorithm

    CN109063279A

  • Near space atmospheric wind field real-time adaptive visualization method based on Web

    CN112634393A

  • WebGL-based three-dimensional wind field inversion method, system and device and storage medium

    CN112991509A

  • Fluid wind field graph rendering method in three-dimensional scene

    CN114676616A

  • Attribute value fusion rendering method based on flow trajectory and flow texture of wind field

    CN116384207A