More Accurate Pressure Solves. Solid Boundaries  Voxelized version works great if solids aligned with grid  If not: though the error in geometry is.

Slides:



Advertisements
Similar presentations
Christopher Batty and Robert Bridson University of British Columbia
Advertisements

A Fast Variational Framework for Accurate Solid-Fluid Coupling Christopher Batty Florence Bertails Robert Bridson University of British Columbia.
Compatible Spatial Discretizations for Partial Differential Equations May 14, 2004 Compatible Reconstruction of Vectors Blair Perot Dept. of Mechanical.
Active Contours, Level Sets, and Image Segmentation
Kinetic Molecular Theory and the the Nature of Fluids
II. Properties of Fluids. Contents 1. Definition of Fluids 2. Continuum Hypothesis 3. Density and Compressibility 4. Viscosity 5. Surface Tension 6. Vaporization.
APPLIED MECHANICS Lecture 10 Slovak University of Technology
Section 4: Implementation of Finite Element Analysis – Other Elements
1cs533d-winter-2005 Notes  Please read O'Brien and Hodgins, "Graphical modeling and animation of brittle fracture", SIGGRAPH '99 O'Brien, Bargteil and.
Notes Assignment questions… cs533d-winter-2005.
Combating Dissipation. Numerical Dissipation  There are several sources of numerical dissipation in these simulation methods  Error in advection step.
1cs533d-winter-2005 Notes  Please read Fedkiw, Stam, Jensen, “Visual simulation of smoke”, SIGGRAPH ‘01.
Fluid Dynamics.
Intro to Fluid Simulation (I) Jeff Pool COMP
Physics 430: Lecture 10 Energy of Interaction Dale E. Gary NJIT Physics Department.
University of North Carolina - Chapel Hill Fluid & Rigid Body Interaction Comp Physical Modeling Craig Bennetts April 25, 2006 Comp Physical.
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
1cs533d-winter-2005 Notes  I’m now in X663 Well, sort of…  Questions about assignment 3?
Work-Energy (WE) for Rigid Bodies
Theory of Elasticity Theory of elasticity governs response – Symmetric stress & strain components Governing equations – Equilibrium equations (3) – Strain-displacement.
1 MFGT 242: Flow Analysis Chapter 3: Stress and Strain in Fluid Mechanics Professor Joe Greene CSU, CHICO.
MECH 221 FLUID MECHANICS (Fall 06/07) Chapter 4: FLUID KINETMATICS
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Coupling Water and Smoke to Thin Deformable and Rigid Shells Eran Guendelman 1,2 Andrew Selle 1,3 Frank Losasso 1,2 Ronald Fedkiw 1,2 1 Stanford University,
1cs533d-term Notes  Typo in test.rib --- fixed on the web now (PointsPolygon --> PointsPolygons)
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
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.
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.
Hydrostatic Pressure distribution in a static fluid and its effects on solid surfaces and on floating and submerged bodies. Fluid Statics M. Bahrami ENSC.
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Section 5: The Ideal Gas Law The atmospheres of planets (and the Sun too) can be modelled as an Ideal Gas – i.e. consisting of point-like particles (atoms.
Force on Floating bodies:
Simple and basic dynamical ideas…..  Newton’s Laws  Pressure and hydrostatic balance  The Coriolis effect  Geostrophic balance  Lagrangian-Eulerian.
Mechanistic Modeling and CFD Simulations of Oil-Water Dispersions in Separation Components Mechanistic Modeling and CFD Simulations of Oil-Water Dispersions.
Explaining Motion P4. Speed In real life, it’s pretty rare for an object to go at exactly the same speed for a long period of time Objects usually start.
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
E Construction Surveying HYDRAULICS. Introduction surveyors –usually not be directly involved in the design of hydraulics systems –most certainly.
Animation of Fluids.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
Compressible Flow Introduction
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
Viscoelasticity While water and air are Newtonian, lots of other common stuff isn’t: –Blood, paint, and many others have nonlinear viscosity (the faster.
CE 1501 CE 150 Fluid Mechanics G.A. Kallio Dept. of Mechanical Engineering, Mechatronic Engineering & Manufacturing Technology California State University,
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
Review for Test #3  Responsible for: - Chapters 9 (except 9.8), 10, and 11 (except 11.9) - The spring (6.2, 7.3, ) - Problems worked in class,
Chapter 21: Molecules in motion Diffusion: the migration of matter down a concentration gradient. Thermal conduction: the migration of energy down a temperature.
Mathematical Equations of CFD
Basic Fluid Properties and Governing Equations
Properties of Gases Kinetic Molecular Theory. Kinetic-Molecular Theory  Based on idea that particles of matter are always in motion.  Provides reasoning.
Chapter 15FLUIDS 15.1 Fluid and the World Around Us 1.A fluid is a substance that cannot support a shearing stress. 2.Both gases and liquids are fluids.
Chapter 03: Macroscopic interface dynamics Xiangyu Hu Technical University of Munich Part A: physical and mathematical modeling of interface.
FLUID PROPERTIES Independent variables SCALARS VECTORS TENSORS.
Unit 7-Behavior of Gas Molecules Kinetic Molecular Theory Collision Theory of Gas Molecules.
Ship Computer Aided Design Displacement and Weight.
02 Mechanics BY HEI MAN KWOK. 2.1 KINEMATICS Definitions Displacement: distance moved in a particular direction – vector; SL Unit: m; Symbol: s Velocity:
Fluid Mechanics SEMESTER II, 2010/2011
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Particle-based Viscoelastic Fluid Simulation Simon Clavet Philippe Beaudoin Pierre Poulin LIGUM, Université de Montréal.
Air Pressure and Hot Air Balloons!. Hot Air Balloons!!! Have you ever seen a hot air balloon? What makes it fly through the air? Air pressure is a big.
Efficient Simulation of Large Bodies of Water by Coupling Two and Three Dimensional Techniques SIGGRAPH 2006 Geoffrey Irving Eran Guendelman Frank Losasso.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
Animating smoke with dynamic balance Jin-Kyung Hong Chang-Hun Kim 발표 윤종철.
Fluid Animation CSE 3541 By: Matt Boggus.
Introduction to Fluid Dynamics & Applications
Particle-in-Cell Methods
FLUID MECHANICS - Review
Presentation transcript:

More Accurate Pressure Solves

Solid Boundaries  Voxelized version works great if solids aligned with grid  If not: though the error in geometry is O(∆x), translates into O(1) error in velocities!  The simulation physics sees stair-steps, and gives you motion for the stair-step case

Quick Fix  Measure accurate normals  Before pressure solve, on boundary, fix  Then do voxelized pressure, set up to not modify boundary

Quick Fix Fails  This is equivalent for grid-aligned solids  Works great for highly dynamic splashing etc.  Fails miserably in steadier situations

Quick Fix Fails  This is equivalent for grid-aligned solids  Works great for highly dynamic splashing etc.  Fails miserably in steadier situations GRAVITY

Quick Fix Fails  This is equivalent for grid-aligned solids  Works great for highly dynamic splashing etc.  Fails miserably in steadier situations BOUNDARY FIX

Quick Fix Fails  This is equivalent for grid-aligned solids  Works great for highly dynamic splashing etc.  Fails miserably in steadier situations PRESSURE SOLVE

Quick Fix Fails  This is equivalent for grid-aligned solids  Works great for highly dynamic splashing etc.  Fails miserably in steadier situations  Fictitious currents emerge and unstably grow

Rethinking the problem  See Batty et al. (tomorrow)  If we keep our fluid blobs constant volume, incompressibility constraint means: blobs stay in contact with each other (no interpenetration, no gaps)  Staying in contact == inelastic, sticky collision

Inelastic, sticky collisions  Take two particles. Interaction force update:  (F is like pressure gradient)  Contact constraint is: (like divergence-free condition)

Inelastic, sticky collisions (2)  Can solve for F to satisfy kinematic constraint  Equivalently, find F that minimizes kinetic energy of system:  Kinematics comes for free…

Variational Pressure Solve  Pressure update is fluid particle interaction  Incompressible means no stored energy: fully inelastic  Thus it must minimize kinetic energy + work with constraint p=0 on free surface  Can prove it’s equivalent to regular PDE form!

Variational goodness  The solid wall boundary condition vanishes! (automatically enforced at minimum)  Discretizing kinetic energy integral much simpler:  Just need average fluid density in each cell, and volume fraction of fluid inside cell

Linear System  Plug in discrete pressure update in discrete KE  Quadratic in pressures  Find discrete minimum == solve linear system  Linear system guaranteed to be symmetric, positive definite  In fact, it’s exactly the same as voxelized – except each term is weighted by volume fractions

Benefits  Actually converges! (error is O(∆x) or better)  Handles resting case perfectly: KE is minimized by zeroing out velocity, which we get from hydrostatic pressure field  Can handle sub-grid-scale geometry  E.g. particles immersed in flow, narrow channels, hair…  Just need to know volume displaced!

Extra goodness  Can couple solids in flow easily:  Figure out formula for discrete pressure update to solid velocity  Add solid’s kinetic energy to minimization  Automatically gives two-way “strong” coupling between rigid bodies and flow, perfectly compatible velocities at boundary, no tangential coupling…

Free Surfaces  The other problem we see with voxelization is free surface treatment  Physics only sees voxels: waves less than O(∆x) high are ignored  At least position errors will converge to zero… but errors in normal are O(1)! (rendering will always look awful)

Ghost Fluid Method  Due to Fedkiw and coauthors pipi p i+1 p=0

Ghost Fluid Method  Voxelized version: pipi p i+1 p=0

Ghost Fluid Method  GFM version: pipi p i+1 p=0

GFM with solids  Complementary to variational solve: GFM just changes the pressure update  However, for triple junctions (solid+liquid+air) it gets difficult to make this just right

Reinterpret GFM  The multiple fluid (“two-phase”) jump conditions:  So take finite difference for  Use average fluid density for pressure update (average between liquid and air)

Variational free surface  Simply need volume fractions per cell (how much of cell is liquid+air), and average densities per cell (mix between liquid and air)  Use average density for pressure update, volume fraction for KE estime  Speed things up: all-air cells eliminated (set p=0 there)  This is the discrete free surface approximation!