Académique Documents
Professionnel Documents
Culture Documents
SPH Simulator
Readme
January, 2012
David Schellander
Christian Doppler Laboratory on Particulate Flow Modelling
Johannes Kepler University | Linz | Austria
Overview
2D - SPH Simulator
Free Software published under G
GNU GENERAL PUBLIC LICENSE
www.particulate-flow.at
Overview
2D - SPH Simulator
Smoothed Particle Hydrodynamics
File System
Project Structure
Geometry files
Simulation save files
Simulation video files
Variables
Future
Contact
www.particulate-flow.at
Overview
Main
www.particulate-flow.at
www.particulate-flow.at
File System
Main
Create Main folder with project name
Create in this folder, a folder with name simulation
Main folder:
Contains save files of project
Contains tempSave.txt
Temporary Savefile which can be used to restart
simulation if it is crashed
Subfolder simulation:
Contains particle positions at special time
Used for showing the simulation
Christian Doppler Laboratory on Particulate Flow Modelling
www.particulate-flow.at
File System
Setup Project
www.particulate-flow.at
File System
Geometry File Structure
First line contains info if safe file or geometry file
Geometry\n
Second Line contains general Parameters
dt;gX;gY;timestep;time\n
Third line contains fluid parameters
dx;h;rhoInit;alpha;beta;c\n
Following line contains Geometry data
Each line represents one Geometry
www.particulate-flow.at
File System
Geometry File Structure
Possible Geometries
Line
Line;x1;y1;x2;y2;rho;isWall \n
Triangle
Triangle;x1;y1;x2;y2;x3;y3;rho;isWall \n
Rectangle
Rectangle;x1;y1;x2;y2;x3;y3;x4;y4;rho;isWall \n
The positions for rectangle and triangle geometries must be
set counter clockwise in correct order.
Circle
Circle;x1;y1;radius;rho;isWall \n
www.particulate-flow.at
File System
Geometry File Structure
www.particulate-flow.at
10
File System
Save File Structure
First line contains info if safe file or geometry file
Safe\n
Second Line contains general Parameters
dt;gX;gY;timestep;time\n
Third line contains fluid parameters
dx;h;rhoInit;alpha;beta;c\n
Following line contains particle data
Each line represents one particle
posX;posY;velX;velY;rho;pressure;E;U;isWall\n
www.particulate-flow.at
11
File System
Video file structure
www.particulate-flow.at
12
Variables
Variables
Variable
Meaning
dt
gX, gY
timestep
Nr of timestep
time
Simulation time
dx
Smoothing length in m
rhoInit
Initial density
alpha
beta
www.particulate-flow.at
13
Variables
Variables
Variable
Meaning
posX, posY
Position of particle
velX, velY
Velocity of particle
rho
Density of particle
pressure
isWall
0 is fluid, 1 is wall
nr
Particle number
www.particulate-flow.at
14
Variables
Example projects
In directory examples
3 example projects can be found
One working with geometry data
Two with safe-files
Open it and run it, then you can use the simulation button to
show the simulation results
www.particulate-flow.at
15
Future
Is there any?
www.particulate-flow.at
16
Contact
Contact
www.particulate-flow.at
17