Design and Implementation of Simulation and Visualization for Discrete Particle Systems Based on OpenGL
- Author
- HuYingFang
- Advisor
- JiangShunLiang
- School
- Nanchang University
- Major
- Computer
- Classification
- TP391.41 Image recognition device
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 140
- Citations
- 0
Abstract
The discrete particle system includes physical discrete particle system and imaginary discrete particle system, the physical discrete particle system is composed of a large number of granular particles and the imaginary discrete particle system is generated by simplifying the continuous system. Since a large number of particles exist generally in the particle system, it is important efficiently to simulate and display the particle system.The discrete particle system used in the thesis is the particle system to simulate the fluid flow with smoothed particle hydrodynamic (SPH) method, SPH is meshless and lagrangian. The OpenGL and GLUT are used for graphical technologies, the simulating example is making wave in a pool.Simulating the fluid flow by SPH method is hot research area, Fluids v.l is very good and provides open source codes, my work is conducted based on the Fluids v.l. The display list approach is used in Fluids v.l to display the particle, the display modules and technologies are explained and some improvement is made.In the thesis, the GLUT technologies are introduced for developing the computer display system, the SPH method is given to simulate the fluid flow. The technologies of the display module are elaborated and includes the display list, soft shadowing and shadow map technologies, the expansive technologies of the graphic card to accelerate graphics display, and the frame buffer technologies putting the shadow in the FBO (Frame Buffer Object).The sphere model is used in Fluids v.l to display particles, its limitation is that the same model is used for each particle and the sphere model is composed of a number of triangles. But the, particle size is variant in the actual discrete particle systems, the different models to display different particles are more reasonable. However, if a different sphere model is used to display each particle, Fluids v.l performance will decline significantly. In this thesis, two improvement are made, one is that the different model are adopted for various size particle; another is that less triangles are used to represent a sphere while the display performance is still excellent.
Table of contents
Summary 3-4
ABSTRACT 4-8
Chapter 1 Introduction 8-13
1.1 Introduction 8-9
1.2 Smoothed Particle Hydrodynamics method (SPH) 9-11
1.3 the OpenGL the development and application 11-12
the content and structure of the thesis 1.4 -13
Chapter 2 the GLUT technology 13-23
2.1 OpenGL system 13-14
2.2 OpenGL functionality 14-15 <br / > 2.3 GLUT class library generation 15-16
2.3.1 OpenGL and GLUT 15
2.3.2 GLUT basic functions 15-16 < br /> 2.4 GLUT basic structure 16-18
2.4.1 the GLUT initialization of 16
the 2.4.2 Create display window 16-17 <br nbsp the /> 2.4.3 settings \18
2.6 GLUT class library to draw 18-23
2.6.1 GLUT installed 18-19
2.6.2 using GLUT achieve 3D dynamic effects 19-23
Chapter 3 discrete particle system: smooth particle dynamics of fluid flow the method 23-28
3.1 computational fluid dynamics 24
3.2 Smoothed Particle Hydrodynamics (SPH) method 24-28
the 3.2.1 kernel function selection 25-26
3.2.2 SPH particle force calculation 26
3.2.3 SPH calculation 26-28
Chapter 4 discrete particle system displayed achieve 28-41
4.1 discrete particle system commonly used module 28-30
4.1.1 Particle initialization module to support domain search module 28
4.1.2 Particle 28-29
4.1 .3 time integral 29-30
4.1.4 boundary treatment and propulsion module 30
4.2 system GLUT framework 30-33
4.2. a form to create a module 30-31
4.2.2 display module 31
4.2.3 window to change the processing module 31-32
4.2. mouse and keyboard events module 32-33
4.3 particle shadow module 33-41
4.3.1 the soft shadows Display 33-34
4.3. 2 Shadow map technology 34
4.3.3 Using the general texture object to achieve the Shadow map 34-37
4.3.4 frame buffer object shadow map 37 - 41
Chapter 5 discrete particles displayed improved nbsp 41-68
5.1 GLUT ball drawing function; the nbsp functions of 41-43
5.1.1 glutSolidShpere; the 41-42
5.1.2 the analog glutSolidShpere function the 42-43
5.2 to use MSC draw sphere 43-45
5.3 draw grid 45 - 51
5.4 the MSC interface the 51-54
5.5 added frame rate measurement module 54-55
5.6 to achieve self-adaptive particle display system 55-56
5.7 using the display list to enhance display 56-58
5.8 Experiments and results analysis 58-68
Conclusion 68-69 < br /> Acknowledgements to References 69-70
70-73
Related dissertations
- The Control Based on the Brain Computer Interface and Research of Virtual Scene Application
- Natural Landscape Simulation Research Based on Particle System
- Molecular Surface Calculation and Processing of Protein Folding
- Dynamic Simulation Based on Particle System
- The simulation of irregular objects based on particle system
- Research on Particle System Based Fireworks Simulation and Large-scale Fireworks Ordering
- The Simulation and Realization of Fountain Based on Particle System
- Realization of 3D Coal Mine Virtual Realistic System
- Visual Realization of Grinding and Cooling Lubrication Process
- Study on the key technologies of the the drilling simulator visual simulation system
- Research on group behavior of nonlinear decision model based on pressure field
- Modelling and Simulation of Organizational Structure Based on Total Relationship Flow Management Theorems
- The Effects of the Basic Medical Insurance for Urban Workers on the Patients’ Hospital Choice Behavior in Shenyang:a Study Based on Multi-Agent Modelling Simulation
- Research on the Effect of Income Difference on R&D Network Cooperative Evolution
- The Research on the Knowledge Transfer Model and Strategy of Transformation Bussiness
- A Study on Food Security of Central City
- The Simulation Research of Jiangsu Industrial Development Based on Regional Innovation System
- Research on Interaction between Modern Logistics Industry and Economic Development of Shaanxi Province
- Estimation of Hong Kong RMB Cash Stocks and Flows on Biomarker Method Modeling Research
- Research on Dynamic Pricing Strategy of Market Maker Based on Heterogeneous Agents Beliefs