My First Fluid Project Ryan Schmidt. Outline MAC Method How far did I get? What went wrong? Future Work.

Slides:



Advertisements
Similar presentations
Stable Fluids A paper by Jos Stam.
Advertisements

Realistic Simulation and Rendering of Smoke CSE Class Project Presentation Oleksiy Busaryev TexPoint fonts used in EMF. Read the TexPoint manual.
Simulation of Fluids using the Navier-Stokes Equations Kartik Ramakrishnan.
Navier-Stokes.
Particle Acceleration Particle t t+dt. Physical Interpretation Total acceleration of a particle Local acceleration Convective acceleration time velocity.
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Presenter: Jonathon Nooner. Suppose that we have an f(x,y,t): --- n is treated as a time index, i and j are treated as spatial indices.
Lectures on CFD Fundamental Equations
Equations of Continuity
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.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
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.
Fluid Simulation using CUDA Thomas Wambold CS680: GPU Program Optimization August 31, 2011.
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.
FLUID DYNAMICS Phys 5306 By Mihaela-Maria Tanasescu
Lecture Objectives Review SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations Define Residual and Relaxation.
SURVIVAL MODE Quiz 3 –
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
Animation of Fluids.
COMPUTATIONAL FLUID DYNAMICS IN REAL-TIME An Introduction to Simulation and Animation of Liquids and Gases.
Louisiana Tech University Ruston, LA Momentum Balance Steven A. Jones BIEN 501/CMEN 513 Monday, March 19, 2007.
Short introduction for the quasi-equilibrium binary neutron star solutions. Introducing two patches of fluid coordinate grids, the initial data code can.
Page 1 JASS 2004 Tobias Weinzierl Sophisticated construction ideas of ansatz- spaces How to construct Ritz-Galerkin ansatz-spaces for the Navier-Stokes.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
A particle-gridless hybrid methods for incompressible flows
Prof. dr. A. Achterberg, Astronomical Dept., IMAPP, Radboud Universiteit.
Lecture 4: Isothermal Flow. Fundamental Equations Continuity equation Navier-Stokes equation Viscous stress tensor Incompressible flow Initial and boundary.
Simplified Smoothed Particle Hydrodynamics for Interactive Applications Zakiya Tamimi Richard McDaniel Based on work done at Siemens Corporate.
Stirling-type pulse-tube refrigerator for 4 K M. Ali Etaati CASA-Day April 24 th 2008.
Grid or Mesh or Adaptive Procedure Fluid Dynamics is Made for This And this was developed in the Early 1970s.
FPGA Based Smoke Simulator Jonathan Chang Yun Fei Tianming Miao Guanduo Li.
Lecture Objectives Review Define Residual and Relaxation SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations.
FALL 2015 Esra Sorgüven Öner
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
© Fox, Pritchard, & McDonald Introduction to Fluid Mechanics Chapter 5 Introduction to Differential Analysis of Fluid Motion.
CP502 Advanced Fluid Mechanics
Outline Time Derivatives & Vector Notation
CHAPTER 14 Vector Calculus Slide 2 © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 14.1VECTOR FIELDS 14.2LINE INTEGRALS.
CP502 Advanced Fluid Mechanics
V. Fundamentals of Fluid Dynamics. Contents 1. State of Stress in Moving Fluid 2. Equations of Motion 3. Bernoulli Equation.
Lecture Objectives: Define 1) Reynolds stresses and
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 발표 윤종철.
Motivation – Why deal.II?  Adaptive Mesh Refinement (AMR)  Start with solving on coarse grid  Compute error  Refine mesh until error < tolerance 
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Computational Fluid Dynamics.
Fluid Animation CSE 3541 By: Matt Boggus.
Chapter 4 Fluid Mechanics Frank White
Continuum Mechanics (MTH487)
DIFFERENTIAL EQUATIONS FOR FLUID FLOW Vinay Chandwani (Mtech Struct.)
FLUID DYNAMICS Made By: Prajapati Dharmesh Jyantibhai ( )
Lecture Objectives: Review Explicit vs. Implicit
Objective Review Reynolds Navier Stokes Equations (RANS)
Lecture Objectives: Advance discretization methods
Objective Unsteady state Numerical methods Discretization
Space Distribution of Spray Injected Fluid
Objective Numerical methods Finite volume.
topic8_NS_vectorForm_F02
Driven Lid Partially Filled Porous Cavity - Single Domain Approach
Introduction to Fluid Dynamics & Applications
Objective Reynolds Navier Stokes Equations (RANS) Numerical methods.
MAE 3241: AERODYNAMICS AND FLIGHT MECHANICS
topic8_NS_vectorForm_F02
Part 5:Vorticity.
Particle-in-Cell Methods
Topic 8 Pressure Correction
Presentation transcript:

My First Fluid Project Ryan Schmidt

Outline MAC Method How far did I get? What went wrong? Future Work

The MAC Method Marker-and-Cell – Harlow&Welch 1965 Standard technique for simulating incompressible fluids w/Navier-Stokes fluid equations LANL Technical Report (access restricted!!!)

Navier-Stokes Fluid Dynamics Velocity field u, Pressure field p Viscosity v, density d (constants) External force f Navier-Stokes Equation: Mass Conservation Condition:

Navier-Stokes Equation Derived from momentum conservation condition 4 Components: Advection/Convection Diffusion (damping) Pressure External force (gravity, etc) System of Nonlinear partial differential equations

Incompressibility Condition We want incompressible fluids* Velocity field u has zero divergence Mass conservation over any subregion Flow in == flow out Incompressible fluid Comes from continuum assumption *gasses assumed to be locally incompressible

Spatial Discretization Staggered grid for u Centered grid for p (Cells)

Equation Discretization Central differences for spatial derivatives Forward difference for time derivative u component:

Mathematical Trickery Advection form different in literature: These two are equivalent if the fluid is incompressible. Proof:

Markers Cell resolution very coarse (20-150) Want higher resolution surface Also need to track which cells contain fluid Solution: Marker particles Massless particles that flow freely in u field Do not contribute to computation Very fast to process

MAC Algorithm Initialize u,p grids (easier said than done) Forward-difference u to get new velocities Enforce zero-divergence condition Rinse and repeat

Enforcing Zero Divergence 2 possibilities: Iterative procedure Projection method of Stam99 Iterative Procedure – Pressure Iteration Individually set each cell divergence to 0 Calculate pressure change and modify velocities Repeat over entire grid until maximum cell divergence < predefined tolerance

Pressure Iteration For each cell calculate change in pressure Now update cell:

Bad Formatting? Does this: Mean this?: Inverse dependence on But set to If <<, D i,j will be small? If not, system explodes!

How far did I get?

Well…

Its not pretty…

Symmetry? Tried to reproduce experiments in literature Correct Physical Constants! d=1, v=0.01, g=981 for breaking dam Inflow supposed to be symmetric…

What went wrong?

Initial Conditions ?!? System becomes unstable as soon as there is any large amount of divergence How do we specify initial conditions that will give us motion w/o immediately causing unstable divergence? (I dont know…) Inflow is simple case, but it still doesnt work…

Boundary Conditions Many, many cases Too many to have special cases of finite difference equation Solution: construct velocities & pressures in boundary cells so that standard finite difference equation comes out right I may have them wrong… Not sure when to apply them Unclear how order of application affects velocties…

Wall Boundaries Normal velocity is 0 Prevents flow into boundary cell Also have to set internal pressure No-slip zero tangential velocity Free-slip free tangential velocity

Wall Boundary Problem Assumption is made that there is only one adjacent fluid cell What if there is more than one? Cannot do both…

Free-Surface Boundaries Have to make sure that divergence in surface cells is 0 Lots of cases I think this is where my problem is 28 cases and counting… Asymmetry?

Outer Tangential Velocities Interpolation in surface cells reaches out into empty cells Finite difference equations may as well Need to have same velocity set there

Future Work Go back and check boundary conditions Harass Nick Foster Finish report and put it on the web, hope that someone reads it and has some insight

Thanks! Questions?