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

Similar documents
A Toolbox of Level Set Methods

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

CS205b/CME306. Lecture 9

Level Set Methods and Fast Marching Methods

Overview of Traditional Surface Tracking Methods

CS 231. Fluid simulation

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

Unstructured Mesh Generation for Implicit Moving Geometries and Level Set Applications

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

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

Navier-Stokes & Flow Simulation

Level Sets Methods in Imaging Science

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

Medical Image Segmentation using Level Sets

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

Animation of Fluids. Animating Fluid is Hard

Navier-Stokes & Flow Simulation

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

Navier-Stokes & Flow Simulation

Dr. Ulas Bagci

Deforming meshes that split and merge

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

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

PARAMETRIC SHAPE AND TOPOLOGY OPTIMIZATION WITH RADIAL BASIS FUNCTIONS

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

Metafor FE Software. 2. Operator split. 4. Rezoning methods 5. Contact with friction

Level-set and ALE Based Topology Optimization Using Nonlinear Programming

Numerical Methods for (Time-Dependent) HJ PDEs

Realistic Animation of Fluids

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

Lecture 12 Level Sets & Parametric Transforms. sec & ch. 11 of Machine Vision by Wesley E. Snyder & Hairong Qi

An Embedded Boundary Method with Adaptive Mesh Refinements

Math 690N - Final Report

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

Studies of the Continuous and Discrete Adjoint Approaches to Viscous Automatic Aerodynamic Shape Optimization

Introduction to Computer Graphics. Modeling (3) April 27, 2017 Kenshi Takayama

Ian Mitchell. Department of Computer Science The University of British Columbia

Level Set Method in a Finite Element Setting

A Grid Based Particle Method for Evolution of Open Curves and Surfaces

Theoretical Background for OpenLSTO v0.1: Open Source Level Set Topology Optimization. M2DO Lab 1,2. 1 Cardiff University

The Immersed Interface Method

A new Eulerian computational method for the propagation of short acoustic and electromagnetic pulses

Permeable and Absorbent Materials in Fluid Simulations

Partial Differential Equations

A Study of Numerical Methods for the Level Set Approach

A Hybrid Particle Level Set Method for Improved Interface Capturing

The Level Set Method THE LEVEL SET METHOD THE LEVEL SET METHOD 203

Fluid Simulation Quality with Violated CFL Condition

CUDA. Fluid simulation Lattice Boltzmann Models Cellular Automata

Implicit Surface Reconstruction from 3D Scattered Points Based on Variational Level Set Method

Outline. Level Set Methods. For Inverse Obstacle Problems 4. Introduction. Introduction. Martin Burger

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

Literature Report. Daniël Pols. 23 May 2018

The Simulation of Liquids

Free Surface Lattice-Boltzmann fluid simulations. with and without level sets.

Interactive GPU-based Segmentation of Large Medical Volume Data with Level-Sets

Mass-Spring Systems. Last Time?

More Animation Techniques

Skåne University Hospital Lund, Lund, Sweden 2 Deparment of Numerical Analysis, Centre for Mathematical Sciences, Lund University, Lund, Sweden

Computer animation for fluid simulation of a high viscous fluid melting

Discrete representations of geometric objects: Features, data structures and adequacy for dynamic simulation. Part I : Solid geometry

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research

Overview. Applications of DEC: Fluid Mechanics and Meshing. Fluid Models (I) Part I. Computational Fluids with DEC. Fluid Models (II) Fluid Models (I)

Space-time Isosurface Evolution for Temporally Coherent 3D Reconstruction

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

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

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

An explicit and conservative remapping strategy for semi-lagrangian advection

Implicit Active Model using Radial Basis Function Interpolated Level Sets

Spacetime-coherent Geometry Reconstruction from Multiple Video Streams

Three-dimensional segmentation of bones from CT and MRI using fast level sets

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

A hybrid level-set method in two and three dimensions for modeling detonation and combustion problems in complex geometries

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

Automated Segmentation Using a Fast Implementation of the Chan-Vese Models

An adaptive discretization of incompressible flow using a multitude of moving Cartesian grids

8 Special Models for Animation. Chapter 8. Special Models for Animation. Department of Computer Science and Engineering 8-1

Realistic Animation of Fluids

Snakes, Active Contours, and Segmentation Introduction and Classical Active Contours Active Contours Without Edges

FLOWING FLUIDS AND PRESSURE VARIATION

The Level Set Method applied to Structural Topology Optimization

1.7.1 Laplacian Smoothing

Pressure Correction Scheme for Incompressible Fluid Flow

Modeling Rough Surfaces

Reach Sets and the Hamilton-Jacobi Equation

Cloth Simulation. Tanja Munz. Master of Science Computer Animation and Visual Effects. CGI Techniques Report

College of Engineering, Trivandrum.

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

Moment of fluid method for multimaterial flows

Geometric and Appearance Modeling of Vascular Structures in CT and MR

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

A Simple Embedding Method for Solving Partial Differential Equations on Surfaces

Spatially Adaptive Techniques for Level Set Methods and Incompressible Flow

The 3D DSC in Fluid Simulation

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

1.2 Numerical Solutions of Flow Problems

arxiv: v1 [math.na] 21 Feb 2019

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

3D MORPHISM & IMPLICIT SURFACES

Visualization Computer Graphics I Lecture 20

Transcription:

Level Set Methods

Overview Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field Convection Upwind ddifferencingi Hamilton Jacobi ENO/WENO, TVD Runge Kutta Motion involves mean curvature Equations of motion Numerical discretization Convection diffusion equations

Overview Hamilton Jacobi Equation Connection with Conservation Laws Numerical discretization Motion in the Normal Direction The Basic Equation Numerical discretization Adding a Curvature Dependent Term Adding an External Velocity Field

References S. Osher and R. Fedkiw, Level Set Methods and Dynamic Implicit itsurfaces, Springer, 2003. J.A. Sethian, Level Set Methods and Fast Marching Methods, Cambridge, 1996. Geometric Level Set Methods in Imaging, Vision, and Graphics, Stanley Osher, Nikos Paragios, Springer, 2003. Geometric Partial Differential Equations andimage Analysis, Guillermo Sapiro, Cambridge University Press, 2001. J. A. Sthi Sethian, Level Set StMthd Methods: An At Act of Violence, American Scientist, May June, 1997. N. Foster and R. Fedkiw, "Practical Animation of Liquids", SIGGRAPH 2001, pp.15 22, 2001.

Overview Level set methods Motion in an externally generated velocity field Convection Upwind differencing Hamilton Jacobi ENO/WENO, TVD Runge Kutta Motion involves mean curvature Equations of motion Numerical discretization Convection diffusion equations

3. Motion in an Externally Generated Velocity Field 1. Convection Assume the velocity of each point on the implicit surface is given as V (x), i.e. V (x) is known for every point x with V Given this velocity field (x) ( x ) 0

Motion in an Externally Generated Velocity Field ild Level set methods add dynamics to implicit surfaces Stanley Osher and James Sethian implemented the first approach to numerically solving a time dependent equation for a moving implicit i surface

Motion in an Externally Generated Velocity Field ild In the Eulerian approach the implicit function φ is used to both represent the interface and evolve theinterface. Given an external velocity field the level set equation is given as V 0 t Temporal partial derivative Advection term

Motion in an Externally Generated Velocity Field ild Using the forward difference approach for the partial derivative with respect to time n1 n t V n n 0

Motion in an Externally Generated Velocity Field ild At this point it looks like the next step would be to take the gradient of φ by using central differences. But first we should expand the equation and look at it one dimension at a time n1 n t u n n x v n n y w n n z 0

Motion in an Externally Generated Velocity Field ild If we look at the u component of the vector field we might see something like to the right for direction. If u ij i,j is pointing to the right we need to look to the cell to the right of φ i,j the same applies to values to the left. lft i i 1 x x i i x x Forward Backward Difference Difference 1

Motion in an Externally Generated Velocity Field ild For a 1 d case the level set equation would be of the form n1 t n u n i n x 0

Motion in an Externally Generated Velocity Field ild The update equation would be n1 n n n x tu where x i i i u 0 i x i1 u 0 x i 1

Overview Level set methods Motion in an externally generated velocity field Convection Upwind differencing Hamilton Jacobi ENO/WENO, TVD Runge Kutta Motion involves mean curvature Equations of motion Numerical discretization Convection diffusion equations

4. Motion involves mean curvature Equations of motion Numerical discretization Convection diffusion equations

Overview Hamilton Jacobi Equation Connection with Conservation Laws Numerical discretization Motion in the Normal Direction The Basic Equation Numerical discretization Adding a Curvature Dependent Term Adding an External Velocity Field

Hamilton Jacobi Equation Connection with Conservation Laws Numerical discretization

Overview Hamilton Jacobi Equation Connection with Conservation Laws Numerical discretization Motion in the Normal Direction The Basic Equation Numerical discretization Adding a Curvature Dependent Term Adding an External Velocity Field

Motion in the Normal Direction The Basic Equation Numerical discretization Adding a Curvature Dependent Term Adding an External Velocity Field

Practical Animation of Liquids Foster and Fedkiw wanted to create a good animation tool that captured the essence of a good fluid simulator for animators Most engineering methods available were based around setting initial and boundary conditions and letting the fluid go with minimal ability for an animator to change anything dynamically

Practical Animation of Liquids Method Outline Setup 1. Model static environment as a voxel grid 2. Model the liquid volume as a combination of particles and an implicit surface Repeat each iteration 1. Update the velocity field 2. Apply velocity constraints due to moving objects 3. Enforce incompressiblity 4. Update the position of the liquid volume using the velocity field

Practical Animation of Liquids Model static environment as a voxel grid The staggered grid shares velocity components between adjacent cells at the faces Each cell is marked as either empty or full

Practical Animation of Liquids Model the liquid volume as a combination of particles and an implicit surface Randomly generate particles with surfaces represented as implicit surfaces. Generate an initial isocontour of the liquid by taking the minimum signed distance for each grid cell and smoothing it out

Practical Animation of Liquids Hybrid Surface Model The Level Set method alone tends to have problems preserving fine feature details like thin splashing A layer of particles are maintained just inside the isocontour surface and are evolved forward in time using Lagrangian methods.

Practical Animation of Liquids Hybrid SurfaceModel For each particle the local curvature of φ is tested by k For areas of low curvature the particle is ignored but for areas of high h curvature the particle il is allowed to modify φ Particles that escape to the exterior region can be visualized aswater droplets ormist

Practical Animation of Liquids Update the velocity field Performed using Stam s formulation of Navier Stokes Enough said.

Practical Animation of Liquids Apply velocity constraints due to moving objects 1. Any cell within a solid object has its velocities i changed to that of the moving object 2. Apply the velocity update 3. Each cell that intersects the surface of the object gets its velocity set to be tangent to the surface of the object 4. Cells inside the object have their velocities put back to the object veclocity

Practical Animation of Liquids Enforce incompressiblity Last step of Navier Stokes update Update the position of the liquid volume using the velocity field Apply the level set equation to the liquid field u 0 t

Results

Implicit Functions A discrete approximation of the implicit function can be achieved via a Cartesian grid. 3.24 2.61 2.16 2.00 2.16 2.61 3.24 Outside Ω + 261 2.61 183 1.83 124 1.24 100 1.00 124 1.24 183 1.83 261 2.61 φ > 0 2.16 1.24 0.41 0.00 0.41 1.24 2.16 Interface y 2 2 x 1 0 x - 1 2.00 1.00 0.00. 0 0 0.00 1.00 2.00 2.16 1.24 0.41 0.00 0.41 1.24 2.16 2.61 1.83 1.24 1.00 1.24 1.83 2.61 Inside Ω φ < 0 3.24 2.61 2.16 2.00 2.16 2.61 3.24

Implicit Functions The finer the resolution of the grid the more numerically accurate the model will be. Outside Ω + φ > 0 y Interface Inside Ω 2 2 x 1 0 x φ < 0

Implicit Vs. Explicit Splitting and Merging The merge of two implicit functions is the union operation

Implicit Vs. Explicit Expansion and Contraction Although there is no need to resample the region there are prescribed limits of expansion and contractions based on initial grid size.

Implicit Functions Important Realizations The Cartesian grid represents the evolving implicit function φ(x). It may begin as the reflection of the form of a circle or sphere or any shape but will soon represent something else entirely. The only relation to its original form it must maintain is φ(x) = 0 represents the interface.

Implicit Functions Important Realizations The interface evolves as elements of the grid become less positive or negative. It is best not to think in terms of the interface itself moving but that the grid cells around it are getting values closer to 0.

Implicit Functions Example Using an active contour to segment an image

Implicit Functions: Discrete Representations Points Another way to represent φ(x) is to discretize Ω into grid cells and put the value of φ(x) in each cell. x x 2 1 8 3 0-1 0 3 8 3 2 1 0 1 2 3

Points Implicit Functions Or define φ(x) ) as a height. x x 2 1 0 3 2 1 0 1 2 3

Implicit Surface & Isosurface When c is 0, we say that f implicitly defines a locus, called an implicit surface, 3 { p R f ( p) c. } The implicit surface is sometimes called the zero set (or zero surface) of f. The isosurface (l (also called a levell set or levell surface) is, 3 { p R f ( p) 0}, where cisthe iso value of the surface.

Boolean Operations of Implicit Functions φ(x) = min (φ 1 (x), φ 2 (x)) is the union of the interior regions of φ 1 (x) and φ 2 (x). φ(x) = max (φ 1 (x), φ 2 (x)) is the intersection of the interior regions of φ 1 (x) and φ 2 (x). φ(x) = φ 1 (x) is the complement of φ 1 (x). φ(x) = max (φ 1 (x), φ 2 (x)) represents the subtraction of the interior regions of φ 1 (x) by the interior regions of φ 2 (x).