2
3
Abstract
This guide documents the DualSPHysics code based on the Smoothed Particle
Hydrodynamics model named SPHysics. This manuscript describes how to compile and
run the DualSPHysics code (a set of C++ and CUDA files). New pre-processing tools
are implemented to create more complex geometries and new post-processing tools are
developed to analyse easily numerical results. Several working examples are
documented to enable the user to use the codes and understand how they work.
4
5
CONTENTS
1. Introduction
7
2. Developers and institutions
9
3. SPH formulation
11
4. CPU and GPU implementation
31
5. Running DualSPHysics
35
6. DualSPHysics open-source code
39
6.1 CPU source files
45
6.2 GPU source files
48
7. Compiling DualSPHysics
51
7.1 Windows compilation
51
7.2 Linux compilation
52
7.3 Cmake
54
8. Format Files
57
9. Pre-processing
59
10. Processing
65
11. Post-processing
71
11.1 Visualization of particle output data
71
11.2 Visualization of boundaries
76
11.3 Analysis of numerical measurements
79
11.4 Force computation
83
11.5 Analysis of floating data
85
11.6 Surface representation
87
12. Testcases
91
12.1 CaseDambreak
93
12.2 CasePeriodicity
97
12.3 CaseMovingSquare
98
12.4 CaseForces
99
12.5 CaseSloshing
100
12.6 CaseWavemaker
102
12.7 CaseWaveGeneration
106
12.8 CaseFloating
108
12.9 CasePump
113
12.10 CaseDEM
114
12.11 CaseMultiphase
116
13. How to modify DualSPHysics for your application
117
14. FAQ: Frequently asked questions about DualSPHysics
119
15. New on DualSPHysics v4.0
125
16. DualSPHysics future
129
17. References
131
18. Licenses
137