Smoothed Particle Hydrodynamics (SPH) Huamin Wang

Similar documents
Particle-based Fluids

CSCI1950V Project 4 : Smoothed Particle Hydrodynamics

Fluid Dynamics. Part 2. Massimo Ricotti. University of Maryland. Fluid Dynamics p.1/17

Pressure corrected SPH for fluid animation

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Physics-Based Animation

PDE Solvers for Fluid Flow

Kazhdan, Bolitho and Hoppe. Poisson Surface Reconstruction 3/3

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Improvement of Calculation Stability for Slow Fluid Flow Analysis Using Particle Method *

Fluid Animation. Christopher Batty November 17, 2011

Computing a null divergence velocity field. using smoothed particle hydrodynamics

Treecodes for Cosmology Thomas Quinn University of Washington N-Body Shop

Heat Transfer Benchmark Problems Verification of Finite Volume Particle (FVP) Method-based Code

Fluid-soil multiphase flow simulation by an SPH-DEM coupled method

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

The Initial Mass Function Elisa Chisari

Smoothed Particle Hydrodynamics (SPH) 4. May 2012

An Overview of Fluid Animation. Christopher Batty March 11, 2014

Godunov methods in GANDALF

CHAPTER 4. Basics of Fluid Dynamics

KELVIN-HELMHOLTZ INSTABILITY BY SPH

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

MOMENTUM TRANSPORT Velocity Distributions in Turbulent Flow

Chapter 5. The Differential Forms of the Fundamental Laws

Random projection trees and low dimensional manifolds. Sanjoy Dasgupta and Yoav Freund University of California, San Diego

Sink particle accretion test

SPH for the Modeling of non-newtonian Fluids with Thermal-Dependent Rheology

- Marine Hydrodynamics. Lecture 4. Knowns Equations # Unknowns # (conservation of mass) (conservation of momentum)

Physically Based Simulations (on the GPU)

Smooth Particle Hydrodynamic (SPH) Presented by: Omid Ghasemi Fare Nina Zabihi XU Zhao Miao Zhang Sheng Zhi EGEE 520

Image Filtering. Slides, adapted from. Steve Seitz and Rick Szeliski, U.Washington

Fluid Mechanics Qualifying Examination Sample Exam 2

arxiv:astro-ph/ v2 22 Nov 1996

White dwarf dynamical interactions. Enrique García-Berro. Jornades de Recerca, Departament de Física

CSE 190: Reinforcement Learning: An Introduction. Chapter 8: Generalization and Function Approximation. Pop Quiz: What Function Are We Approximating?

2D Wavelets. Hints on advanced Concepts

Dynamics and Time Integration

Numerical Simulations. Duncan Christie

Numerical simulation of landslide impulsive waves by incompressible smoothed particle hydrodynamics

Introduction to Heat and Mass Transfer. Week 10

Chapter 9. Solids and Fluids (c)

Fundamentals of Fluid Dynamics: Ideal Flow Theory & Basic Aerodynamics

Fluid Dynamics. Massimo Ricotti. University of Maryland. Fluid Dynamics p.1/14

Edge Detection. Image Processing - Computer Vision

Finite Volume Schemes: an introduction

Mohammad Zare Manfred Koch

Fast Local Laplacian Filters: Theory and Applications

Dan s Morris s Notes on Stable Fluids (Jos Stam, SIGGRAPH 1999)

Chapter 8: Generalization and Function Approximation

OPEN QUIZ WHEN TOLD AT 7:00 PM

Experience with DNS of particulate flow using a variant of the immersed boundary method

Detailed 3D modelling of mass transfer processes in two phase flows with dynamic interfaces

PDEs in Image Processing, Tutorials

Study of the diffusion operator by the SPH method

Control of Swarms Based on Hydrodynamic Models

CS 542G: The Poisson Problem, Finite Differences

Gluonic superfluid in high energy p-pb collisions. Chris Zin Derek Everett, Sean Gavin, AbhijitMajumder Graduate Research Day Wayne State University

A first model of learning

Absorption of gas by a falling liquid film

Smoothed Particle Hydrodynamics

Computational Astrophysics

Random walks and anisotropic interpolation on graphs. Filip Malmberg

Michela Mapelli. N-body techniques for astrophysics: Lecture 1 General Introduction

UL XM522 Mutivariable Integral Calculus

Flow and Transport. c(s, t)s ds,

Dynamics and Time Integration. Computer Graphics CMU /15-662, Fall 2016

Forming Intermediate-Mass Black Holes in Dense Clusters Through Collisional Run-away

Chapter 9 Solids and Fluids. Elasticity Archimedes Principle Bernoulli s Equation

Properties of Coordinate Systems

Image Stitching II. Linda Shapiro CSE 455

Improving gradient evaluation in Smoothed Particle Hydrodynamics

A Framework for Hybrid Parallel Flow Simulations with a Trillion Cells in Complex Geometries

Big & Quic: Sparse Inverse Covariance Estimation for a Million Variables

COMS 4771 Regression. Nakul Verma

CSE 190: Reinforcement Learning: An Introduction. Chapter 8: Generalization and Function Approximation. Pop Quiz: What Function Are We Approximating?

Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials

Image Stitching II. Linda Shapiro EE/CSE 576

Navier-Stokes Equation: Principle of Conservation of Momentum

Non-linear Dimensionality Reduction

Cheng Soon Ong & Christian Walder. Canberra February June 2018

Numerical Analysis of Type I Settling

Laplacian Mesh Processing

Intensity Analysis of Spatial Point Patterns Geog 210C Introduction to Spatial Data Analysis

Fluid Dynamics and Balance Equations for Reacting Flows

Deformation Properties of Single Red Blood Cell in a Stenosed Microchannel

SHALLOW WATER MODEL FOR ALUMINIUM ELECTROLYSIS CELLS WITH VARIABLE TOP AND BOTTOM

PREDICTING DPF PERFORMANCE BASED ON 3D MICROSCOPIC STRUCTURE FROM CT- SCAN

Fast approximate curve evolution

Fluid Mechanics Abdusselam Altunkaynak

meters, we can re-arrange this expression to give

2. Modeling of shrinkage during first drying period

Learning Eigenfunctions: Links with Spectral Clustering and Kernel PCA

Week 6 Notes, Math 865, Tanveer

Application of meshless EFG method in fluid flow problems

A monolithic Lagrangian approach for fluid structure interaction problems

An Empirical Comparison of Graph Laplacian Solvers

Lecture 7: The wave equation: higher dimensional case

General Curvilinear Ocean Model (GCOM): Enabling Thermodynamics

Transcription:

Smoothed Particle Hydrodynamics (SPH) Huamin Wang

Fluid Representation Fluid is represented using a set of particles. Particle i has position x i, velocity v i, and mass m i.

Animation Example Using 10 million particles http://www.youtube.com/watch?v=q4_quqtgtm A

Smoothed Particle Interpolation Suppose each particle has a physical quantity A. The quantity can be: velocity, pressure, density, temperature. How to estimate the quantity at a new location X i? A simple solution: A i smooth = A For X i X < r A 0 A 5 A 4 A 6 A i? A 1 A 3 A 2

Smoothed Particle Interpolation Instead of assuming a particle is volumeless, let us assume each one has a volume V i. So a better solution is: A i smooth = V A For X i X < r A 0 A 5 A 4 A 6 A i? A 1 A 3 A 2

Smoothed Particle Interpolation One problem of this solution: A i smooth = V A Not smooth! (red 7 -> green 9!) For X i X < r i

Smoothed Particle Interpolation Final solution: A i smooth = V A W i W i is called smoothing kernel. When X i X is large, W i is small. When X i X is small, W i is large. For X i X < r i

Particle Volume But how do we get the volume of particle i? ρ i = V ρ W i V i = m i ρ i V i = m 0 ρ i = m W i m i m W i m 5 m 4 m 6 m 3 m 2 m 1

Final Interpolation Solution So the actual solution is: A i smooth = V A W i V = k m m k W k A i smooth = k m m k W k A W i

The advantage of This Interpolation We can easily compute its derivatives: Gradient A i smooth = V A W i A smooth i = V A W i Laplacian A i smooth = V A W i A smooth i = V A W i

A Smoothing Kernel Example W i = 3 2πh 3 2 3 q2 + 1 2 q3 (0 q < 1) 1 6 (2 q)3 (1 q < 2) 0 (2 q) q = x i x h h is called smoothing length

Kernel Derivatives Gradient at particle i (a vector) i W i = W i x i W i y i W i z i = W i q q = W i i q x i x x i x h q = x i x h W i = 3 2πh 3 2 3 q2 + 1 2 q3 (0 q < 1) 1 6 (2 q)3 (1 q < 2) 0 (2 q) W i q = 3 2πh 3 2q + 3 2 q2 (0 q < 1) 1 2 (2 q)2 (1 q < 2) 0 (2 q)

Kernel Derivatives Laplacian at particle i (a scalar) i W i = 2 W i x i 2 + 2 W i y i 2 + 2 W i z i 2 = 2 W i q 2 1 h 2 + W i q 2 h q = x i x h W i q = 3 2πh 3 2q + 3 2 q2 (0 q < 1) 1 2 (2 q)2 (1 q < 2) 0 (2 q) 2 W i q 2 = 2 + 3q (0 q < 1) 3 2 q (1 q < 2) 2πh 3 0 (2 q)

Fluid Dynamics We model fluid dynamics by applying three forces on particle i. Gravity Fluid Pressure Fluid Viscosity i

Gravity Force is: Gravity Force F i gravity = m i g i

Pressure Force Pressure is related to the density First compute the density of Particle i: ρ i = m W i Convert it into pressure (some empirical function): P i = k ρ i ρ constant 7 1 High Pressure Low pressure

Pressure Force Pressure force depends on the difference of pressure: High Pressure High Pressure High Pressure High Pressure High Pressure Low Pressure High Pressure i High Pressure High Pressure i Low Pressure No pressure force! Pressure force!

Pressure Force Mathematically, the difference of pressure => Gradient of pressure. F i pressure = V i i P smooth To compute this pressure gradient, we assume that the pressure is also smoothly represented: So: P i smooth = F i pressure = V i V P W i V P i W i

Viscosity Force Viscosity effect means: particles should move together in the same velocity. In other words, minimize the difference between the particle velocity and the velocities of its neighbors. Before Ultimately

Viscosity Force Mathematically, it means: F i vis cos ity = νm i i v smooth To compute this Laplacian, we assume that the velocity is also smoothly represented: So: v i smooth = F i vis cos ity = νm i V v W i V v i W i

For every particle i Algorithm Compute its neighborhood set Using the neighborhood, compute: Force = 0 Force + = The gravity force Force + = The pressure force Force + = The viscosity force Update v i = v i + t * Force / m i ; Update x i = x i + t *v i ; What is the bottleneck of the performance here?

Exhaustive Neighborhood Search Search over every particle pair? O(N 2 ) 10M particles means: 100 Trillion pairs i

Solution: Spatial Partition Separate the space into cells Each cell stores the particles in it To find the neighborhood of i, ust look at the surrounding cells i

Spatial Partition What if particles are not uniformly distributed? Solution: Octree, Binary Spatial Partitioning tree i

Fluid Display Need to reconstruct the water surface from particles!

Ongoing Research How to make the simulation more efficient? How to make fluids incompressible? When simulating water, only use water particles, no air particles. So particles are sparse on the water-air boundary. How to avoid artifacts there?