Matthew Zhu. At each time step calculate each particle’s acceleration and use Verlet numerical integration to update its position, velocity, and grid.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

My First Fluid Project Ryan Schmidt. Outline MAC Method How far did I get? What went wrong? Future Work.
Christopher McCabe, Derek Causon and Clive Mingham Centre for Mathematical Modelling & Flow Analysis Manchester Metropolitan University MANCHESTER M1 5GD.
A Prediction-Correction Approach for Stable SPH Fluid Simulation from Liquid to Rigid François Dagenais Jonathan Gagnon Eric Paquette.
VIS Group, University of Stuttgart Tutorial T4: Programmable Graphics Hardware for Interactive Visualization Pre-Integrated Splatting (Stefan Roettger)
Simulation of Fluids using the Navier-Stokes Equations Kartik Ramakrishnan.
Formulation of an algorithm to implement Lowe-Andersen thermostat in parallel molecular simulation package, LAMMPS Prathyusha K. R. and P. B. Sunil Kumar.
Matthias Müller, Barbara Solenthaler, Richard Keiser, Markus Gross Eurographics/ACM SIGGRAPH Symposium on Computer Animation (2005),
Mode-Splitting for Highly Detail, Interactive Liquid Simulation H. Cords University of Rostock Presenter: Truong Xuan Quang.
Blender Particle Fluids. Blender Particle Fluids integrate into the existent powerful Blender particle system a fluid simulation tool that allows a wide.
Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08.
1/32 Real Time Fluids in Games Matthias Müller-Fischer, ageia.
Multi Agent Simulation and its optimization over parallel architecture using CUDA™ Abdur Rahman and Bilal Khan NEDUET(Department Of Computer and Information.
Particle Systems and Fuzzy Shapes Presented by Dan Cogswell.
Particle-based fluid simulation for interactive applications
In The Beginning  N-body simulations (~100s particles) – to study Cluster formation  Cold collapse produces too steep a density profile (Peebles 1970)
1cs426-winter-2008 Notes  If you’re interested, read Bridson, Hourihan, Nordenstam, “Curl noise for procedural fluid flow”, SIGGRAPH ‘07.
Simulating Liquid Sound Will Moss Hengchin Yeh. Part I: Fluid Simulation for Sound Rendering.
Combined Lagrangian-Eulerian Approach for Accurate Advection Toshiya HACHISUKA The University of Tokyo Introduction Grid-based fluid.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Adaptive Cloud Simulation Using Position Based Fluids
Fluid Surface Rendering in CUDA Andrei Monteiro Marcelo Gattass Assignment 4 June 2010.
1cs426-winter-2008 Notes. 2 Velocity fields  Velocity field could be a combination of pre-designed velocity elements E.g. explosions, vortices, …  Or.
Modelling Realistic Water & Fire Sérgio Leal Socrates/Erasmus student at: AK Computer Graphics Institute for Computer Graphics and Vision Technical University.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Intro to Computational Fluid Dynamics Brandon Lloyd COMP 259 April 16, 2003 Image courtesy of Prof. A.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Introduction to Modeling Fluid Dynamics 1.
Fluid Simulation using CUDA Thomas Wambold CS680: GPU Program Optimization August 31, 2011.
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
Fluid Simulation for Computer Animation Greg Turk College of Computing and GVU Center Georgia Institute of Technology.
Motivation  Movie  Game  Engineering Introduction  Ideally  Looks good  Fast simulation  Looks good?  Look plausible  Doesn’t need to be exactly.
Fluid Animation CSE 3541 Matt Boggus. Procedural approximations – Heightfield fluids Mathematical background – Navier-Stokes equation Computational models.
Simple Load Balancing CS550 Operating Systems. Announcements Project will be posted – TBA This project will use the client-server model and will require.
Efficient Parallel Implementation of Molecular Dynamics with Embedded Atom Method on Multi-core Platforms Reporter: Jilin Zhang Authors:Changjun Hu, Yali.
Computational Fluid Dynamics
GPU Fluid Simulation Neil Osborne School of Computer and Information Science, ECU Supervisors: Adrian Boeing Philip Hingston.
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
Animation of Fluids.
COMPUTATIONAL FLUID DYNAMICS IN REAL-TIME An Introduction to Simulation and Animation of Liquids and Gases.
Molecular Dynamics Sathish Vadhiyar Courtesy: Dr. David Walker, Cardiff University.
Computational issues in Carbon nanotube simulation Ashok Srinivasan Department of Computer Science Florida State University.
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
A Human Eye Retinal Cone Synthesizer Michael F. Deering.
Force Fields and Numerical Solutions Christian Hedegaard Jensen - within Molecular Dynamics.
A particle-gridless hybrid methods for incompressible flows
GPU-Accelerated Surface Denoising and Morphing with LBM Scheme Ye Zhao Kent State University, Ohio.
Simplified Smoothed Particle Hydrodynamics for Interactive Applications Zakiya Tamimi Richard McDaniel Based on work done at Siemens Corporate.
Detail-Preserving Fluid Control N. Th ű rey R. Keiser M. Pauly U. R ű de SCA 2006.
Geometry Group Summer 08 Series Toon Lenaerts, Bart Adams, and Philip Dutre Presented by Michael Su May
1 Haptic Systems Mohsen Mahvash Lecture 3 11/1/06.
Catchwater The Game Interactive Particle-Based Fluid Simulation Modeling Water Flow Through Pipes Ken Brooks and Brian Clipp May 9, 2006.
1996 Eurographics Workshop Mathieu Desbrun, Marie-Paule Gascuel
Introduction: Lattice Boltzmann Method for Non-fluid Applications Ye Zhao.
FPGA Based Smoke Simulator Jonathan Chang Yun Fei Tianming Miao Guanduo Li.
FlowFixer: Using BFECC for Fluid Simulation ByungMoon Kim Yingjie Liu Ignacio Llamas Jarek Rossignac Georgia Institute of Technology.
COMPUTER SIMULATION OF BLOOD FLOW WITH COMPLIANT WALLS  ITC Software All rights reserved.
Progress on Component-Based Subsurface Simulation I: Smooth Particle Hydrodynamics Bruce Palmer Pacific Northwest National Laboratory Richland, WA.
An Efficient CUDA Implementation of the Tree-Based Barnes Hut n-body Algorithm By Martin Burtscher and Keshav Pingali Jason Wengert.
Sudhanshu Khemka.  Treats each document as a vector with one component corresponding to each term in the dictionary  Weight of a component is calculated.
Smoothed Particle Hydrodynamics Matthew Zhu CSCI 5551 — Fall 2015.
Particle-based Viscoelastic Fluid Simulation Simon Clavet Philippe Beaudoin Pierre Poulin LIGUM, Université de Montréal.
SIGGRAPH 2005 신 승 호 신 승 호. Water Drops on Surfaces Huamin Wang Peter J. Mucha Greg Turk Georgia Institute of Technology.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Computational Fluid Dynamics.
Fluid Animation CSE 3541 By: Matt Boggus.
Computational Techniques for Efficient Carbon Nanotube Simulation
ATCM 6317 Procedural Animation
Mechanical Separation
Plants from Images CS 658.
Procedural Animation Lecture 11: Fluid dynamics
5. Describing Flow CH EN 374: Fluid Mechanics.
Computational Techniques for Efficient Carbon Nanotube Simulation
Presentation transcript:

Matthew Zhu

At each time step calculate each particle’s acceleration and use Verlet numerical integration to update its position, velocity, and grid cell Particles — Sequential Particle Interactions Particle objects have data fields such as:  Density, pressure,  position, velocity, acceleration, and force.  For each grid cell:  Retrieve all particles in cell  For each particle:  Find interacting particles within distance H  Calculate inter-particle viscosity forces, pressure forces, surface tension forces, external forces, properties, and acceleration  Account for each neighbor particle’s contribution to density  Calculate pressure from density

Trivially Parallelizable SPH Simulation  Each thread accesses a particle,  finds the particle’s neighbors,  and computes their force contributions.

Symmetrizing Particle Interactions

Accounting for Symmetric Contributions A data race occurs if two particles try to access each other simultaneously  Each thread accesses a particle,  finds the particle’s neighbors,  and applies forces to both the particle and its neighbors.

Dividing Workload Particles keep track of grid cells and z-index Particle array sorted by z-indices Apply cell-fitting procedure

Two-dimensional Coloring Algorithm Interaction Pattern On cell (0, 0) Chromatic Number: 4  Interactions of a single color may be processed in parallel without data races  Four passes are required to process all interactions

Generalization to Three Dimensions (0,0,0) (1,0,0) (1,0,1) (0,0,1) (1,1,0) (0,1,0) (0,1,1) (1,1,1) 3D Interaction Pattern  To determine the color of a cell: Chromatic Number: 8  (x mod 2, y mod 2, z mod 2) yields one of eight possible colors  For example,the grid cell at (9, 9, 8) is assigned the color red

Simulation Algorithm — Particle Interactions (9,9,8) (10,9,8) (10,9,9) (9,9,9) (9,10,8) (9,10,9) Thread 1 Local Interaction ListColor Interaction List[red]  For each local cell:  For each pair of cells in the interaction pattern: (pattern includes interactions within a cell represented by dot) (9,9,8)  If cells are local to thread add pair to local interaction list  Otherwise add pair to interaction list of the cell’s color (9,9,8)(9,9,9) (9,9,8)(10,9,9) (9,9,8)(10,10,9) (9,9,9)(9,10,8) (9,9,8)(10,9,8) (9,9,8)(9,10,9)(9,9,8)(9,10,8) (9,9,9)(10,10,8) (9,9,8)(10,10,8) (9,9,9)(10,9,8) (9,10,8)(10,9,9) (9,10,9)(10,9,8) (9,10,8)(10,9,8)

Simulation Algorithm — Physics Computation (9,9,8) (9,9,9) (9,9,8)(10,9,9) (9,9,8)(10,10,9) (9,9,9)(9,10,8) (9,9,8)(10,9,8) (9,9,8)(9,10,9) (9,9,8)(9,10,8) (9,9,9)(10,10,8) (9,9,8)(10,10,8) (9,9,9)(10,9,8) (9,10,8)(10,9,9) (9,10,9)(10,9,8) (9,10,8)(10,9,8)

References [1] P. Goswami et al., “Interactive SPH Simulation and Rendering on the GPU,” in ACM SIGGRAPH Symposium on Computer Animation., 2010, pp [2] Y. R. López and D. Roose, “A Parallel SPH Implementation on Shared Memory Systems,” in 9th International SPHERIC Workshop., Paris, France, 2014, pp [3] M. Müller et al., “Particle-Based Fluid Simulation for Interactive Applications,” in SIGGRAPH Symposium on Computer Animation., 2003, pp. 1-7.