Overview of Traditional Surface Tracking Methods

Similar documents
Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation

CGT 581 G Fluids. Overview. Some terms. Some terms

CS-184: Computer Graphics Lecture #21: Fluid Simulation II

CS 231. Fluid simulation

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research

Water. Notes. Free surface. Boundary conditions. This week: extend our 3D flow solver to full 3D water We need to add two things:

Smoke Simulation using Smoothed Particle Hydrodynamics (SPH) Shruti Jain MSc Computer Animation and Visual Eects Bournemouth University

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11]

The Level Set Method. Lecture Notes, MIT J / 2.097J / 6.339J Numerical Methods for Partial Differential Equations

Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field

Interactive Fluid Simulation using Augmented Reality Interface

Surface Tension Approximation in Semi-Lagrangian Level Set Based Fluid Simulations for Computer Graphics

Interaction of Fluid Simulation Based on PhysX Physics Engine. Huibai Wang, Jianfei Wan, Fengquan Zhang

PHYSICALLY BASED ANIMATION

Robust Simulation of Sparsely Sampled Thin Features in SPH-Based Free Surface Flows

Interactive Fluid Simulation Using Augmented Reality Interface

Divergence-Free Smoothed Particle Hydrodynamics

CUDA. Fluid simulation Lattice Boltzmann Models Cellular Automata

Realistic Animation of Fluids

Shape of Things to Come: Next-Gen Physics Deep Dive

The 3D DSC in Fluid Simulation

An Adaptive Sampling Approach to Incompressible Particle-Based Fluid

Computer animation for fluid simulation of a high viscous fluid melting

AN ADAPTIVE SAMPLING APPROACH TO INCOMPRESSIBLE PARTICLE-BASED FLUID. A Dissertation WOO-SUCK HONG

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

CS205b/CME306. Lecture 9

Fluid Simulation. Dhruv Kore, Giancarlo Gonzalez, and Jenny Sum CS 488: Introduction to Computer Graphics Professor Angus Forbes

FLUID SIMULATION. Kristofer Schlachter

Adaptive Particles for Incompressible Fluid Simulation (Technical Report tamu-cs-tr )

An Overview of Surface Tracking and Representation in Fluid Simulation

T6: Position-Based Simulation Methods in Computer Graphics. Jan Bender Miles Macklin Matthias Müller

Considerations about level-set methods: Accuracy, interpolation and reinitialization

Mass-Spring Systems. Last Time?

2.7 Cloth Animation. Jacobs University Visualization and Computer Graphics Lab : Advanced Graphics - Chapter 2 123

Simulation of Swirling Bubbly Water using Bubble Particles

Moment of fluid method for multimaterial flows

Textured Liquids based on the Marker Level Set

Investigating The Stability of The Balance-force Continuum Surface Force Model of Surface Tension In Interfacial Flow

Fluids in Games. Jim Van Verth Insomniac Games

A Geometric Approach to Animating Thin Surface Features in SPH Water

Chapter 3: Computer Animation Reminder: Descriptive animation. Procedural animation : Examples. Towards methods that generate motion?

Animation of Bubbles in Liquid

Unstructured Mesh Generation for Implicit Moving Geometries and Level Set Applications

weighted minimal surface model for surface reconstruction from scattered points, curves, and/or pieces of surfaces.

Deforming meshes that split and merge

BACK AND FORTH ERROR COMPENSATION AND CORRECTION METHODS FOR REMOVING ERRORS INDUCED BY UNEVEN GRADIENTS OF THE LEVEL SET FUNCTION

Abstract. Introduction. Kevin Todisco

Particle-based Fluid Simulation

Fluid Simulation Quality with Violated CFL Condition

A TSTT integrated FronTier code and its applications in computational fluid physics

A Survey of Interface Tracking Methods in Multi-phase Fluid Visualization

Alex Li 11/20/2009. Chris Wojtan, Nils Thurey, Markus Gross, Greg Turk

An Efficient Adaptive Vortex Particle Method for Real-Time Smoke Simulation

A Multigrid Fluid Pressure Solver Handling Separating Solid Boundary Conditions

Particle-Based Fluid Simulation. CSE169: Computer Animation Steve Rotenberg UCSD, Spring 2016

Simulation in Computer Graphics. Deformable Objects. Matthias Teschner. Computer Science Department University of Freiburg

Smoothed Particle Hydrodynamics on GPUs

Realistic Animation of Fluids

A Novel Approach to High Speed Collision

(LSS Erlangen, Simon Bogner, Ulrich Rüde, Thomas Pohl, Nils Thürey in collaboration with many more

Chapter 2 Water and Bubbles

Droplet collisions using a Level Set method: comparisons between simulation and experiments

A High Quality, Eulerian 3D Fluid Solver in C++ A Senior Project. presented to. the Faculty of the Computer Science Department of

Permeable and Absorbent Materials in Fluid Simulations

Conservative high order semi-lagrangian finite difference WENO methods for advection in incompressible flow. Abstract

Procedural Synthesis using Vortex Particle Method for Fluid Simulation

FLUID SIMULATION BY PARTICLE LEVEL SET METHOD WITH AN EFFICIENT DYNAMIC ARRAY IMPLEMENTATION ON GPU

Comparison between incompressible SPH solvers

A New Incompressibility Discretization for a Hybrid Particle MAC Grid Representation with Surface Tension

Bubble Dynamics using Free Surfaces in a VOF framework

Adaptive Fluid Simulation Using a Linear Octree Structure

Spatially Adaptive Techniques for Level Set Methods and Incompressible Flow

Literature Report. Daniël Pols. 23 May 2018

Introduction to Computer Graphics. Animation (2) May 26, 2016 Kenshi Takayama

CMPT 898 Final Report. Adam L. Preuss. Numerical Simulation Laboratory. Department of Computer Science. University of Saskatchewan

Deforming Meshes that Split and Merge

FEM techniques for interfacial flows

Real-Time Marker Level Set on GPU

LIQUID SIMULATION WITH MESH-BASED SURFACE TRACKING

A 3D VOF model in cylindrical coordinates

Simple and Fast Fluids

Divergence-Free Smoothed Particle Hydrodynamics

A Toolbox of Level Set Methods

SPH: Why and what for?

Modeling of Granular Materials

NVIDIA. Interacting with Particle Simulation in Maya using CUDA & Maximus. Wil Braithwaite NVIDIA Applied Engineering Digital Film

Simulating Smoke with an Octree Data Structure and Ray Marching

Support for Multi physics in Chrono

An explicit and conservative remapping strategy for semi-lagrangian advection

Sand Simulation. Abhinav Golas. COMP Physically Based Simulation. Final Project Presentation. May 6,

Debojyoti Ghosh. Adviser: Dr. James Baeder Alfred Gessow Rotorcraft Center Department of Aerospace Engineering

Screen Space Meshes. Matthias Müller Simon Schirm Stephan Duthaler. Abstract

Two-Phase flows on massively parallel multi-gpu clusters

Lattice Boltzmann with CUDA

USE OF THE PARTICLE LEVEL SET METHOD FOR ENHANCED RESOLUTION OF FREE SURFACE FLOWS

Conservative Semi-Lagrangian solvers on mapped meshes

An Unconditionally Stable MacCormack Method

Simulation in Computer Graphics. Introduction. Matthias Teschner. Computer Science Department University of Freiburg

Transcription:

Liquid Simulation With Mesh-Based Surface Tracking Overview of Traditional Surface Tracking Methods Matthias Müller

Introduction Research lead of NVIDIA PhysX team PhysX GPU acc. Game physics engine www.nvidia.com\physx www.matthiasmueller.info [Fast and Robust Tracking of Fluid Surfaces, SCA 09]

The Problem initial surface deformation field deformed surface

Applications Shape deformation Displacement field Liquid surface tracking Fluid velocity field

Applications [Sumner et al., Embedded Deformation for Shape Manipulation, SIGGRAPH 2007] [Thürey et al., A Multiscale Approach to Meshbased Surface Tension Flows, SIGGRAPH 2010]

Solver Tracker Interaction Solver Update velocity field getvelat(pos) Tracker Update surface Solve Navier Stokes Eqs. inside liquid isliquid(pos) Solve advection eqn. on liquid surface

Eulerian vs. Lagrangian Solver Eulerian: solve Navier Stokes Eqns. on grid Lagrangian: particle based, e.g. SPH Tracker Eulerian: solve advection eqn. φ = u φ t Lagrangian: move particles using dx = u(x) dt

getvelat(pos) Eulerian simulation: tri-linear interpolation Lagrangian simulation: spherical basis functions

Handling Topological Changes Eulerian Lagrangian iso surface of advected scalar field iso surface of scalar field induced by particles

Combinations Eulerian Lagrangian This course Solver Tracker

Eulerian Tracking Methods Level Set Method (LSM) Volume Of Fluid method (VOF) Density based

Scalar Field LSM: Signed distance VOF: Volume fraction Pseudo density

Level Set Method [Osher and Fedkiw, The Level Set Method and Dynamic Implicit Surfaces, 2003] Initialize: construct signed distance field φ Advect using fluid velocity: φ t = u φ Advection destroys distance field property φ = 1 Periodically re-initialize φ

Fast Marching 2D upwind discretization of φ = 1 max φ i,j φ i 1,j, φ i,j φ i+1,j, 0 2 + max φ i,j φ i,j 1, φ i,j φ i,j+1, 0 2 = 1 (1) Explicitly φ values near the surface, others are Compute adjacent φ i,j by solving (1) and push on heap Pop smallest φ i,j from heap, mark as fixed Compute all adjacent values of φ i,j by solving (1) and push on heap

Advection Solve φ t = u φ with finite differences Semi-Lagrangian advection (uncond. stable) [Jos Stam, Stable fuids, SIGGRAPH 99] t n+1 t n

Semi Lagrangian Advection Update φ x, t n+1 = φ x tu(x, t n+1, t n ) Euler backtrace tri-linear interpolation Simple version: feature and volume loss!

Accuracy Improvements Back-tracing Runge Kutta 2 scheme: use midway velocity MacCormack: backward + forward error estimation Interpolation Cubic Interpolation Propagation (CIP) also advects spatial derivatives of φ [Selle et al., J.Sci.Comp. 2008] [Kim et al., Eurographics 2008]

Back Tracing Methods Correct vs. Euler Runge Kutta 2 MacCormack

Particle Level Set Method [Enright et al., SIGGRAPH 2002] Add passively advected signed particles + + - - + - + + + - + - + - + + Sign inversion indicates error Periodical particle re-seeding

Other Correction Methods Semi-Lagrangian Contouring [Bargteil et al., SIGGRAPH 2006] Explicit mesh, recreated at each time step Volume controller [Kim et al., SIGGRAPH 2007] Global volume pressure correction Octree for feature preservation Feature thickening [Losasso et al., SIGGRAPH 2004] [Chentanez et al., SCA 2007]

Semi-Lagrangian Contouring [Bargteil et al., SIGGRAPH 2006]

Octree for feature preservation [Losasso et al., SIGGRAPH 2004]

Feature thickening [Chentanez et al., SCA 2007]

Volume Of Fluid [Puckett et al., A high-order projection method for tracking fluid interfaces in variable density incompressible flows, J. Comp. Phys. 1997]

Basic Idea Signed distance field does not contain global volume information Store fluid volume contained in each cell Keep sum constant using conserving exchange operations

Surface Reconstruction Fluid volume fraction per cell: 0 f i,j 1 Assume planar in cell, not unique: Unique with specified normal Least squares VOF Interface Reconstruction Algorithm (LVIRA) Optimize to cut adjacent cells according to their f i±1,j±1

Advection For each face: subtract from upwind cell, add to downwind cell u u t VOF difficulty: Definition of smooth normal and curvature Straight forward in LSM: n= φ, κ = n

CLSVOF [Sussman et al., A coupled level set and volume-of-fluid method for computing 3d and axisymmetric incompressible two-phase flows. J. Comp. Phys. 2000] Coupling Level Sets and an Volume Of Fluid Volume conservation and smooth interface VOF interface used to re-distance φ Curvature computed from φ

VOF Demo More popular in computational sciences than in graphics: Software FLUENT 12.1 CPU: 19 hours [Mario Saavedra]

CLSVOF Demo [Kang et al., Computer Graphics forum 2010]

Density Based Approach [Mullen et al., A variational approach to eulerian geometry processing. SIGGRAPH 2007]

Pseudo Density Each cell stores density ρ i,j Surface defined as an iso-surface Pseudo density fluid density ρ i,j > 0 liquid in cell

Advection Mass conserving advection equation ρ t = ρu = u ρ - ρ( u) ρ i,j t h u i+ 1 2,j Subtract from upwind cell, ρ i,j ρ i+1,j add to downwind cell u 1 i+ 2,j h

Remarks Finite difference advection: CFL condition must hold Due to numerical errors ρ i,j > 1: add divergence to the fluid simulation Blurred density profile at liquid surface: apply sharpening flow.

Density Based Approach [Mullen et al., A variational approach to eulerian geometry processing. SIGGRAPH 2007]

Lagrangian Tracking Methods

Tracking Particles Particle based simulation Tracking particles = simulation particles Eulerian simulation Marker particles (MAC) [Harlow and Welch, Phys. Fluids 1965] [Foster and Metaxas, GMIP 1996] Mesh vertices (this course)

Marker Particles Large number render particles directly (many in 3D!) Liquid Houdini Ink Simulation

Implicit Surface Two steps Derive scalar field from particles Extract iso-surface (Marching Cubes) Advantage Topological changes handled automatically Global volume conserved

Blobby [Blinn, ACM Trans. Graph. 1982] Popular kernel: 1 w i x = 1 h 2 h2 x x i 2 3 if x x i h 0 -h 0 h Scalar field: ρ x = w i (x) i Surface: S = x: ρ x = 0.5

Blobby Example Image courtesy of Jihun Yu

Averaged Centers [Zhu and Bridson, ACM Trans. Graph. 2005] Compute averaged center i a x = x iw i x i w i x Evaluate kernel at this center ρ x = 1 h 2 h2 x a(x) 2 3

Averaged Centers Example Blobby Averaged centers

Anisotropic Kernels [Yu and Turk, SCA 2010] Multiply distance by matrix G i R 3 3 w i x = 1 h 2 h2 G i (x x i ) 2 3 Yields anisotropic kernels G i from PCA of neighboring particle positions

Anisotropic Kernels Example Blobby Averaged centers Anisotropic kernels

Comparison [Yu and Turk. Reconstructing surfaces of particle-based fluids using anisotropic kernels. SCA 2010]

Explicit Surface Tracking Skip scalar field generation Simply advect vertices of a triangle mesh Use triangles as surface

Naïve Mesh Tracking Implicit Explicit Videos by Nuttapong Chentanez

My Mesh-Based Tracking? Previous Eulerian and Lagrangian tracking methods are implicit Topological changes handled automatically Detail limited by grid resolution Mesh-based tracking Detail perfectly preserved! Explicit handling of topological changes and mesh quality