Realistic Animation of Fluids

Similar documents
Realistic Animation of Fluids

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation

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

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

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

A Framework for Real-Time Animation of Liquid-Rigid Body Interaction

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

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

Chapter 1 - Basic Equations

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

Mass-Spring Systems. Last Time?

PHYSICALLY BASED ANIMATION

Chapter 5: Introduction to Differential Analysis of Fluid Motion

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

CS 231. Fluid simulation

Lecture 1.1 Introduction to Fluid Dynamics

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

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research

Animation of Fluids. Animating Fluid is Hard

FLUID SIMULATION. Kristofer Schlachter

Divergence-Free Smoothed Particle Hydrodynamics

An added mass partitioned algorithm for rigid bodies and incompressible flows

The 3D DSC in Fluid Simulation

CHAPTER 3. Elementary Fluid Dynamics

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

MOTION CONTROL FOR FLUID ANIMATION: FLOW ALONG A CONTROL PATH

Numerical Modeling Study for Fish Screen at River Intake Channel ; PH (505) ; FAX (505) ;

A Novel Approach to High Speed Collision

Fluids in Games. Jim Van Verth Insomniac Games

Overview of Traditional Surface Tracking Methods

ENERGY-224 Reservoir Simulation Project Report. Ala Alzayer

Finite Volume Discretization on Irregular Voronoi Grids

3D Simulation of Dam-break effect on a Solid Wall using Smoothed Particle Hydrodynamic

Rigid Body Dynamics, Collision Response, & Deformation

A Particle Cellular Automata Model for Fluid Simulations

Numerical Methods for PDEs. SSC Workgroup Meetings Juan J. Alonso October 8, SSC Working Group Meetings, JJA 1

Math 690N - Final Report

FEMLAB Exercise 1 for ChE366

Development of the Compliant Mooring Line Model for FLOW-3D

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

Simulation of Liquid-Gas-Solid Flows with the Lattice Boltzmann Method

INTERNATIONAL JOURNAL OF CIVIL AND STRUCTURAL ENGINEERING Volume 2, No 3, 2012

Particle-based Fluid Simulation

Numerical Simulation of Coupled Fluid-Solid Systems by Fictitious Boundary and Grid Deformation Methods

Permeable and Absorbent Materials in Fluid Simulations

Simulating Fluid-Solid Interaction

Solidification using Smoothed Particle Hydrodynamics

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

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

MODELLING-Representing space and time in a numerical model

Preliminary Spray Cooling Simulations Using a Full-Cone Water Spray

1.2 Numerical Solutions of Flow Problems

IMPROVED WALL BOUNDARY CONDITIONS WITH IMPLICITLY DEFINED WALLS FOR PARTICLE BASED FLUID SIMULATION

Simple and Fast Fluids

The Jello Cube Assignment 1, CSCI 520. Jernej Barbic, USC

Moving Interface Problems: Methods & Applications Tutorial Lecture II

Solving Partial Differential Equations on Overlapping Grids

NUMERICAL MODELING STUDY FOR FLOW PATTERN CHANGES INDUCED BY SINGLE GROYNE

Vector Visualisation 1. global view

Two-Phase flows on massively parallel multi-gpu clusters

The Simulation of Liquids

Hardware Accelerated Real-Time Fluid Surface Simulation

CUDA. Fluid simulation Lattice Boltzmann Models Cellular Automata

Driven Cavity Example

6 Fluid. Chapter 6. Fluids. Department of Computer Science and Engineering 6-1

Microwell Mixing with Surface Tension

Coastal impact of a tsunami Review of numerical models

Technical Report TR

Chapter 6. Semi-Lagrangian Methods

Literature Report. Daniël Pols. 23 May 2018

2.29 Numerical Marine Hydrodynamics Spring 2007

Chapter 2 Water and Bubbles

A higher-order finite volume method with collocated grid arrangement for incompressible flows

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

Simulation of Offshore Wave Impacts with a Volume of Fluid Method. Tim Bunnik Tim Bunnik MARIN

More Animation Techniques

NUMERICAL VISCOSITY. Convergent Science White Paper. COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved.

SIMULATION OF INTERFACIAL FLOWS USING FRONT TRACKING APPROACH

Modeling and simulation the incompressible flow through pipelines 3D solution for the Navier-Stokes equations

Solution for Euler Equations Lagrangian and Eulerian Descriptions

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

Physically Based Simulation and Animation of Gaseous Phenomena in a Periodic Domain

NUMERICAL SIMULATION OF SHALLOW WATERS EFFECTS ON SAILING SHIP "MIRCEA" HULL

Volcanic Smoke Animation using CML

Computer animation for fluid simulation of a high viscous fluid melting


A 3D VOF model in cylindrical coordinates

Coupling of STAR-CCM+ to Other Theoretical or Numerical Solutions. Milovan Perić

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

Animation. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 4/23/07 1

WAVE PATTERNS, WAVE INDUCED FORCES AND MOMENTS FOR A GRAVITY BASED STRUCTURE PREDICTED USING CFD

Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Computation in Astrophysics Seminar (Spring 2006) L. J. Dursi

Animation of Bubbles in Liquid

Investigation of cross flow over a circular cylinder at low Re using the Immersed Boundary Method (IBM)

1 Mathematical Concepts

Georgia Institute of Technology. Atlanta, GA [obrienj j dynamic models of the uid and the impacting. object.

A MULTIPHASE CFD METHOD FOR PREDICTION OF FLOODWATER DYNAMICS

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

Transcription:

Realistic Animation of Fluids p. 1/2 Realistic Animation of Fluids Nick Foster and Dimitri Metaxas

Realistic Animation of Fluids p. 2/2 Overview Problem Statement Previous Work Navier-Stokes Equations Explicit solving Results

Realistic Animation of Fluids p. 3/2 Problem Statement Simulate fluids for graphics applications Scalability Usability Easy to setup Controllable

Realistic Animation of Fluids p. 4/2 Related Work Non-physics based Paramtric functions Sinusoidal phase functions Physics based CFD Too expensive Not controllable Kass and Miller Shallow water Chen and Lobo Navier-Stokes in 2-D Fluid zero depth Use instantaneous pressure

Realistic Animation of Fluids p. 5/2 Navier-Stokes Equation Conservation of Momentum ( u 2 t + u u x + v u y + w u z = p x + g u x + µ x 2 + 2 u y 2 + 2 u z 2 ( 2 v v t + u v x + v v y + w v z = p y + g y + µ w t + u w x + v w y + w w z = p z + g z + µ Conservation of Mass u x + v y + w z = 0 ) ) x 2 + 2 v y 2 + 2 v z 2 ( 2 ) w x 2 + 2 w y 2 + 2 w z 2

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form ρ DV Dt = p + ρg + µ 2 V

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form Normalize for ρ ρ DV Dt = p + ρg + µ 2 V

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form Normalize for ρ DV Dt = p + g + µ 2 V

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form Normalize for ρ LHS Intertial force DV Dt = p + g + µ 2 V

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form Normalize for ρ LHS Intertial force DV Dt = p + g + µ 2 V RHS Surface forces due to pressure differences

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form Normalize for ρ LHS Intertial force DV Dt = p + g + µ 2 V RHS Surface forces due to pressure differences Gravity

Realistic Animation of Fluids p. 6/2 Conservation of Momentum Vector form Normalize for ρ LHS Intertial force DV Dt = p + g + µ 2 V RHS Surface forces due to pressure differences Gravity Sheer force due to viscosity

Realistic Animation of Fluids p. 7/2 LHS Begin with Newton s Second Law F = m dv dt

Realistic Animation of Fluids p. 7/2 LHS Begin with Newton s Second Law Using the Chain Rule F = m dv dt dv dt = V x dx dt + V y dy dt + V z dz dt + V t

Realistic Animation of Fluids p. 7/2 LHS Begin with Newton s Second Law Using the Chain Rule F = m dv dt dv dt = V x dx dt + V y dy dt + V z dz dt + V t = u V x + v V y + w V z + V t

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 dy F xx = µ 2 u x 2 dx

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2

Realistic Animation of Fluids p. 8/2 RHS Pressure Gravity Sheer forces F yx = µ 2 u y 2 F xx = µ 2 u x 2 In 3-D: ( 2 ) u F x = µ x 2 + 2 u y 2 + 2 u z 2

Realistic Animation of Fluids p. 9/2 Conservation of Mass Incompressible fluid Divergence should be zero

Realistic Animation of Fluids p. 9/2 Conservation of Mass Incompressible fluid Divergence be zero should ρ t + ρu x + ρv y + ρw z = 0

Realistic Animation of Fluids p. 9/2 Conservation of Mass Incompressible fluid Divergence be zero should ρ t + ρu x + ρv y + ρw z = 0 u x + v y + w z = 0

Realistic Animation of Fluids p. 10/2 Solving Navier-Stokes Specify obstacle/boundaries Discretize on a rough grid Solve equations Interpolate surface of fluid

Realistic Animation of Fluids p. 11/2 Discretization Rectangular Cartesian grid Finite differences Velocity defined on cell faces Pressure defined in cell Stability 1 > max [ u δt ] δt δt,v,w δx δy δz

Realistic Animation of Fluids p. 11/2 Discretization Rectangular Cartesian grid Finite differences Velocity defined on cell faces Pressure defined in cell Stability 1 > max [ u δt ] δt δt,v,w δx δy δz

Realistic Animation of Fluids p. 11/2 Discretization Rectangular Cartesian grid Finite differences Velocity defined on cell faces Pressure defined in cell Stability 1 > max [ u δt ] δt δt,v,w δx δy δz dy dx

Realistic Animation of Fluids p. 11/2 Discretization Rectangular Cartesian grid Finite differences Velocity defined on cell faces Pressure defined in cell Stability 1 > max [ u δt ] δt δt,v,w δx δy δz

Realistic Animation of Fluids p. 12/2 Types of Cells Empty A cell containing no particles Surface A cell containing at least 1 particle that is adajacent to an Empty cell Full A cell containing at least 1 particle and not a Surface cell

Realistic Animation of Fluids p. 13/2 Calculating Velocities Velocities from momentum equations u t = p t + g x u u ( 2 ) x v u y w u z + µ u x 2 + 2 u y 2 + 2 u z 2 Pressure from continuity equations δp is proportional to D D = u x + v y + w z

Realistic Animation of Fluids p. 14/2 Consistency Velocity and pressure are updated Iterate until D < ǫ δp = βd u i+1/2,j,k u i 1/2,j,k v i,j+1/2,k v i,j 1/2,k w i,j,k+1/2 w i,j,k 1/2 p i,j,k = u i+1/2,j,k + (δt/δx)δp = u i 1/2,j,k (δt/δx)δp = u i,j+1/2,k + (δt/δy)δp = u i,j 1/2,k (δt/δy)δp = u i,j,k+1/2 + (δt/δz)δp = u i,j,k 1/2 (δt/δz)δp = p i,j,k + δp

Realistic Animation of Fluids p. 15/2 Boundary Conditions Stationary Obstacles Non-slip Free-slip Infow and outflow Free Surfaces u 0 = 0 p 0 = p 1 w 0 = w 1 w 0 = w 1

Realistic Animation of Fluids p. 16/2 Free Surface Free faces set so divergence zero Surface pressure set to atmospheric pressure Cases 3-D: 64 configurations

Realistic Animation of Fluids p. 16/2 Free Surface Free faces set so divergence zero Surface pressure set to atmospheric pressure Cases 3-D: 64 configurations

Realistic Animation of Fluids p. 16/2 Free Surface Free faces set so divergence zero Surface pressure set to atmospheric pressure Cases 3-D: 64 configurations

Realistic Animation of Fluids p. 17/2 Recap 1. Set boundary conditions 2. Classify cells 3. Calculate velocities for Full cells 4. Calculate pressures for Full cells 5. Update velocities for Surface cells 6. Iterate

Realistic Animation of Fluids p. 18/2 Problem Stability condition Limited spatial resolution Computational complexity Main contribution Interpolating methods for displaying the surface 3 methods for tracking fluid positions

Realistic Animation of Fluids p. 19/2 Marker Particles Convect massless particles with local fluid velocity Use weighted average of 4 nearest velocities Weighting based on area Multiplied by timestep Labeling done based on particles 1 particle test

Realistic Animation of Fluids p. 20/2 Free Surface Particles Only keep particles at surface Rules for adding and removing particles If far apart: Insert a particle If close: remove and connect neighbors Region growing algorithm

Realistic Animation of Fluids p. 21/2 Height Field Scalar function h t = w u h x v h y Cell configuration trivial Need other methods Overturning wave Spray Foam

Realistic Animation of Fluids p. 21/2 Height Field Scalar function h t = w u h x v h y Cell configuration trivial Need other methods Overturning wave Spray Foam

Realistic Animation of Fluids p. 22/2 Buoyancy Rigid object Force formula f ni = p i dv i + m i g f fluid = i f ni Lagrange equations of motions M q + D q = f q + g q Do not affect water flow Collisions treated separately

Realistic Animation of Fluids p. 23/2 Control Inflow and Outflow Instead of atmospheric pressure, apply surface pressure history Constant Time-depedent Height of surface P P P P P P p applied (z) = A + B cos(cz wt) δt

Results Realistic Animation of Fluids p. 24/2

Results Realistic Animation of Fluids p. 25/2

Results Realistic Animation of Fluids p. 26/2

Results Realistic Animation of Fluids p. 27/2

Results Realistic Animation of Fluids p. 28/2