A simulation method of three-dimensional cloud over WRF big data
- 196 Downloads
Nowadays, due to the expansion of people’s living ranges and the impact of human life on the natural environment, climate changes fiercely than before. In order to observe the changing climate environment accurately, multi-modal sensors are used to collect the various data around us, and we could analyze and predict the weather based on these collected data. One of the applications is 3D visualization simulation, and the 3D visualization simulation of cloud data has always been the research hotspot in the field of computer graphics and meteorology. Currently, it is a key challenge to resolve the problems of 3D cloud simulation, such as reducing complexity of modeling and computation and improving the real-time performance. Technically, a method for data modeling and optimizing based on Weather Research and Forecasting (WRF) is proposed in this paper, aiming to solve the problems of the existing 3D cloud simulation and realize 3D virtual simulation of real-world cloud data. According to the characteristics (e.g., color, size, shape) of the cloud, the spherical particle system is designed to model, and the initial color, size, shape, and other attributes are given to these spherical particles to realize the modeling of WRF cloud data. From the perspective of new particles’ generation, the level of detail (LOD) technique, based on the relationship between the quantity of new generated spherical particles and the distance of the viewpoint, is used to change the quantity of new particles generated in real time according to the distance of the simulated scene distance. Finally, illumination model is introduced to render and simulate the modeling particles. Experimental simulation results verify the effectiveness of this method in improving the modeling and rendering speed of cloud data as well as the fidelity of the 3D virtualization model.
KeywordsVisualization Cloud data Multi-modal sensors WRF Particle system
Level of detail
Weather research and forecasting
Recently, various sensors are developed to collect the data in different areas, and different sensors collect different types of data . In order to collect the needed data including the temperature, pressure, and humidity, the sensors are distributed in the corresponding areas. In addition, the data collected by the sensors are widely used in the Weather Research and Forecasting (WRF). The collected data is analyzed, and the analyzed results are leveraged to forecast the trend of the weather .
It has been a hot and difficult point in the study of computer graphics that computer models and graphic algorithms are adopted to realize the simulation of natural objects with irregular shapes and abundant surface details, such as clouds, flowing water, atmosphere, rain, and snow .The complex visual and physical properties of clouds, as an integral part of weather systems, have attracted the attention of meteorologists and physicists and are of great importance for simulation. It is universally known that the physical state and physical meaning of different natural scenes are different. Thus, it is practicable to integrate the physical information into the process of simulation and rendering. The cloud data of WRF model have cloud physical variables, including pressure, air temperature, wind direction, and speed, which are concerned with the structure and characteristics of the cloud [4, 5]. However, it is difficult to describe it with accurate methods and models, and even more difficult to truly display the three-dimensional cloud scene, due to its complex structure, uncertain dynamic characteristics, and special lighting effects of clouds [6, 7]. From the perspective of graphics, the characteristics of cloud, such as no definite boundary, no definite surface, and complex illumination effect, make the traditional geometric modeling method not suitable for cloud modeling. Therefore, WRF cloud data simulation has always been one of the most challenging research directions in the field of meteorological application [8, 9, 10].
Clouds are mixture of ice crystals and water droplets. In order to vividly describe clouds’ structure, particle system has been considered in that it is the most successful graphic generation algorithm to simulate the irregular fuzzy objects. Reeve was the first to put forward the concept of particle system and its mapping algorithm [11, 12]. Fuzzy objects are represented by plenty of particles, and each of them has a certain life cycle, and other properties, such as color, shape, size, and speed. Hence, the simulation effect depends on the number and size of particles. The smaller particles are and the larger the number, the more details the simulated objects have. Meanwhile, it takes longer time to run and consume more computing resources [13, 14].
On the one hand, the platform with better computing performance can be used to reduce the running time and computing resources [15, 16]. On the other hand, the generation algorithm of the particle system can be optimized to reduce the number of particles in the simulation system, which also has good simulation effect. In traditional geometric modeling, the level of detail (LOD) technique means that the number of vertices in the geometric model is determined according to the distance of the object from the viewpoint [17, 18, 19]. For particle system, object simulation can also be carried out from this idea, that is, when the viewpoint is relatively close, more particles can be generated each time; conversely, fewer particles can be generated when the viewpoint is relatively far. Therefore, the computing time is reduced and the rendering efficiency of the system is improved.
With the observation above, it is still a challenge to model the cloud based on weather forecast data which could reflect the structure and characteristics of cloud physically. Meanwhile, it is a time-consuming procedure of modeling based on weather forecast data, which makes it difficult to render clouds in short time . Moreover, influenced by the illumination, some parts of cloud may be gloomy, but other parts may present bright effect. Hence, an illumination model is introduced to describe the cloud layer illumination in this paper.
Analyze the weather forecast data and build a spherical particle systematic model that constructs the basic shape of clouds.
Analyze the relationship between the number of particles generated in real-time and the distance of the simulated scene distance as well as build an illumination model to render the cloud.
Sufficient experimental evaluation and comparative analysis are carried out to verify the effectiveness and validity of the proposed method.
The rest of this paper is organized as follows. Section 2 describes the proposed method. In Section 3, experiments and evaluations are conducted. In Section 4, related work is presented. Section 5 concludes the paper and presents the future work.
2 Model description and methodology
In this section, we propose a particle system of cloud, which consists of the structure model, simplification model, and illumination model. Specifically, the shape of cloud is described by the structure model; the computing performance is improved by the simplification model. Light transport in clouds could be described by its illumination model, which conforms to the laws of radiative transfer.
2.1 Basic concepts
2.2 Particle system of cloud
Each operation of the particle system is a process computing model, so it can be combined with any model that describes the motion and characteristics of the object. To truly simulate an object, particles are given the following properties: position, size, speed and direction of movement, color, transparency, and life cycle. The WRF model provides with various options for parameterizations of the boundary layer physics . It provides the user various options for the parameterization of microphysics and cumulus parameterization, such as the composition, size, shape, and concentration of cloud .
Obviously, the cloud optical thickness is related to the droplet concentration per unit volume, droplet radius, and cloud thickness. It is shown that the appearance of clouds with large optical thickness is characterized by thick cloud cover and high concentration of cloud droplet particles. Therefore, the optical thickness of the cloud can be used to approximately represent the thickness of the cloud, which is in line with the visual perception of people. The cloud top height data describe the horizontal and vertical distribution of the cloud, which ensures the accuracy of the cloud distribution. At the same time, the optical thickness approximately reflects the cloud cover. The combination of the two can reflect the objective distribution of cloud particles.
where col and row respectively represents the column and row in the grid. The column and row number of the grid is multiplied by the side length of the grid to get the plane position of the particle.
where λ represents the current cloud optical thickness value, λmax represents the maximum cloud optical thickness, and K is a constant, which is used to control the probability of a random number being selected. τ is a random number from 0 to 1. When M is more than 0, the random number is retained, and when M is less than 0, the random number is generated again until M is more than 0. It can be seen from (5) that where the cloud optical thickness is large, the probability of randomly generated particles being selected is high, and the smaller the cloud optical thickness is, the smaller the probability of being selected is.
2.3 Simulation of cloud evolution
In the real world, clouds will drift and spread, due to the influence of natural factors such as high airflow. Therefore, simulating the dynamic behavior of clouds is the key to enhancing the realism of cloud scenes. Cloud motion is affected by four factors: pressure, diffusion, advection, and external forces. Affected by the above factors, cloud particles generate acceleration and thus form dynamic behaviors such as fluttering.
Formula (6) is the calculation method of any coordinate component of 3D coordinates system, where S is the coordinate component, S0 is the initial value of the coordinate component, V0 is the velocity component, a is the acceleration component, and T is the time in the current life cycle.
2.4 Display with the distance
2.5 Illumination model
The formula for calculating the illumination intensity of each particle is obtained. The particles at the boundary of the cloud are illuminated directly by the light source without any shielding, so these particles should be brighter. Points within the cloud layer are different in depth from the boundary of the cloud cluster, and the light intensity calculated according to formula (17) is also different. According to the light intensity, a corresponding gray value is assigned.
3 Experiment and evaluation
3.1 Experiment settings
The implementation is done on a PC with an NVIDIA GeForce GTX 1080Ti Founders Edition. Its basic configuration consists of screen resolution 1920 × 1080, RAM 8.00 GB, and Windows 7 operating system. C++ was used to complete the rendering process, and OpenGL was used to assist the visualization.
3.2 The experimental process
Four steps make up our experimental process:
(1) Traversing the data of top cloud, the data points with empty filling values are removed, where the area grid without cloud. Get a one-dimensional array of valid values.
(2) Read the data of cloud optical thickness, generate cloud particles according to the method in Section 2.2, initialize the initial position of each particle, and determine the distribution of particles according to the cloud optical thickness.
(3) The wind field model is introduced to calculate the airflow direction and velocity at the position of particles, further calculate the acceleration of each particle, and assign an initial velocity and life cycle length to the particle. When the wind field model is introduced, it is introduced in the horizontal direction and the vertical direction respectively.
(4) Parallel light source is added to simulate sunlight. When rendering frame by frame, their positions are not fixed due to the dynamic characteristics of cloud particles, so it is necessary to recalculate the light intensity at the positions of all particles. Suppose that the current particle is particle A, and particle B is the particle closest to the light source between particle A and the light source (within a certain range), then the distance between particle A and B in the direction of the light source is taken as the depth of particle A from the cloud boundary. According to formula (18), the light intensity at the depth is calculated as well as the color and transparency of the particles.
3.3 Results and evaluation
3.3.1 Steps for particle system to simulate clouds
3.3.2 Comparison of particles’ quantity
3.3.3 Comparison of FPS
3.3.4 Comparison of CPU utilization
From the above analysis, the cloud generated by the cloud data visualization system has a good visualization effect, and the application of LOD technology in the visualization system can effectively improve the real-time performance of the visualization system, which plays an important role in the performance of the system.
4 Related work
To simulate the 3D clouds, it is crucial that the simulation results have the laws and characteristics of real clouds . In order to obtain realistic effects, researchers have proposed a variety of modeling methods, which are generally divided into two categories: methods based on individual growth and methods based on physical processes. Typical methods based on individual growth are mainly managed to obtain the visual characteristics and enhance the realism of clouds without taking the physical process into account, such as particle system, metaball, fractal method, texture method, and noise- and cloud-driven method . Methods based on physical processes—the numerical simulation method—are mainly to solve the fluid dynamics equation—Navier-Stokes. The most representative method was the Harris, which solved the numerical equation including the cloud motion equation, the water balance equation, and the thermodynamic equation .
These methods could vividly simulate the dynamics of the cloud, and the effect is realistic, but the computation is large . Moukalled  described the dynamic changes of cloud through a set of Boolean rules in cellular automata method and used Sigmoid function to convert the discrete results into continuous density distribution, thus improved the real-time performance of cloud simulation. These methods do not need to simulate the real physical process of cloud growth and are fast in drawing and rendering, so they are suitable for the simulation of small and medium-sized virtual cloud. Prashant Goswami adopted a physical method to intuitively control the entire life cycle of the cloud through the calculation of parameters such as pressure and viscosity between the clouds [36, 37]. Lots of computing has reduced the rendering details of the cloud as well as the visual effect.
According to the classification of clouds, the ambient light, diffuse light, and specular reflection light were introduced to process the light and shadow of clouds by Luo  and realized the cloud simulation at different times of the day. Meanwhile, it constructed and simulated ten kinds of representative clouds. The method has achieved good simulation effects; however, the sense of reality and real-time of cloud simulation need to be improved. A different strategy was employed by Chulichkov et al. [39, 40, 41] to divide clouds according to the different morphological characteristics of clouds at different heights. The strategy is to map the detailed characteristics of different types of clouds by using different simulation methods in different cloud regions under the condition of altitude. In addition, on the premise of not changing the overall movement trend of the cloud, a velocity function related to cloud position and viewpoint distance is constructed and added to the original velocity field to enhance the floating effect of the cloud, so as to achieve a more realistic simulation effect. There are many factors influencing the morphological characteristics of clouds. This method only considered the altitude as the simulation condition, which not only simplifies the simulation process, but also inevitably sacrifices the detailed characteristics of clouds.
The limitations of above methods are that these methods simply make simplifying assumptions about real environmental phenomena based on physical equation and other parameters of numerical simulation and the input data is not the real meteorological data and thus does not belong to the true sense of real 3D simulation of cloud. Moreover, few feasible methods are raised for generating clouds in interactive frame rates from the weather forecast data.
5 Conclusion and future work
In this paper, we have studied simulation methods and graphic algorism of irregular fuzzy objects, such as clouds, flowing water, and snow. Specifically, a particle system of three-dimensional cloud based on WRF data has been established. Then, a simplification rate has been calculated to simplify the particle system and improve the speed of modeling and rendering. At last, experimental evaluations have been carried out to verify the validity of our proposed method.
There are quantities of ways in which various meteorological factors are related to each other, and it is tough to establish a model according to small accounts of data. Moreover, clouds generated by data visualization system has good visual effect, but compared with the actual clouds, there is a large gap, and many clouds’ details are ignored or changed. In the future, more factors which can determine simulation results of cloud data will also be taken into consideration.
This research is supported by the National Natural Science Foundation of China under grant no. 41675155.
YX, XK, and PL conceived and designed the study. YX and XK performed the simulations. XK wrote the paper. All authors reviewed and edited the manuscript. All authors read and approved the final manuscript.
The authors declare that they have no competing interests.
- 1.W. T. Reeves, Particle systems—a technique for modeling a class of fuzzy objects, (1998). https://doi.org/10.1145/800059.801167.
- 3.J. Zhang, N. Xie, X. Zhang, K. Yue, W. Li, D. Kumar, Machine learning based resource allocation of cloud computing in auction. Comput. Mater. Continua. 56(1), 123–135 (2018).Google Scholar
- 4.X. Xu, Y. Chen, X. Zhang, Q. Liu, X. Liu, L. Qi, A blockchain-based computation offloading method for edge computing in 5G networks. Softw. Pract. Experience. https://doi.org/10.1002/spe.2749.
- 6.A. P. Biazar, A. White, R. McNider, M. Khan, B. Dornblaser, Y. Wu, in EGU General Assembly Conference Abstracts, vol. 19. Satellite cloud assimilation in the weather research & forecasting (wrf) model and its impact on air quality simulations, (2017), p. 10641.Google Scholar
- 7.X. Xu, X. Zhang, H. Gao, Y. Xue, L. Qi, W. Dou, Become: blockchain-enabled computation offloading for IOT in mobile edge computing. IEEE Trans. Ind. Inform. (2019). https://doi.org/10.1109/tii.2019.2936869.
- 8.P. Goswami, F. Neyret, in Proceedings of the 19th Symposium on Interactive 3D Graphics and Games. Real-time landscape-size convective clouds simulation (ACM, 2015), pp. 135–135. https://doi.org/10.1145/2699276.2721396.
- 12.X. Xu, X. Zhang, M. Khan, W. Dou, S. Xue, S. Yu, A balanced virtual machine scheduling method for energy-performance trade-offs in cyber-physical cloud systems. Futur. Gener. Comput. Syst. (2017). https://doi.org/10.1016/j.future.2017.08.057.
- 14.L. Qi, Y. Chen, Y. Yuan, S. Fu, X. Zhang, X. Xu, A QoS-aware virtual machine scheduling method for energy conservation in cloud-based cyber-physical systems, (2019). https://doi.org/10.1007/s11280-019-00684-y.
- 21.Q. Y. Pan, B. I. Shuo-Ben, L. U. Liang-Hu, Y. Shi, Fast algorithm based on particle system for simulating 3D dynamic clouds. J. Syst. Simul. (2014).Google Scholar
- 23.H. Liu, L. Wang, Qun. D.U., An overview of recent studies on atmospheric boundary layer physics (2012–2017). Chin. J. Atmos. Sci. (2018).Google Scholar
- 27.Z. Gao, H. -Z. Xuan, H. Zhang, S. Wan, K. -K. R. Choo, Adaptive fusion and category-level dictionary learning model for multi-view human action recognition. IEEE Int. Things J. (2019). https://doi.org/10.1109/jiot.2019.2911669.
- 30.E. Yusov. High-performance rendering of realistic cumulus clouds using pre-computed lighting, (2014), pp. 127–136.Google Scholar
- 36.P. Goswami, F. Neyret, Real-time landscape-size convective clouds simulation. Acm Interact. Graph., 135–135 (2016). https://doi.org/10.1145/2699276.2721396.
- 37.Y. Yuan, W. Banzhaf, ARJA: automated repair of java programs via multi-objective genetic programming. arXiv preprint (2017). arXiv:1712.07804.Google Scholar
- 38.R. Luo, W. Liao, H. Zhang, L. Zhang, P. Scheunders, Y. Pi, W. Philips, Fusion of hyperspectral and LiDaR data for classification of cloud-shadow mixed remote sensed scene. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens.PP(99), 1–14 (2017).Google Scholar
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.