Physically Based Simulations (on the GPU)

Size: px
Start display at page:

Download "Physically Based Simulations (on the GPU)"

Transcription

1 Physically Based Simulations (on the GPU) (some material from slides of Mark Harris) CS535 Fall 2014 Daniel G. Aliaga Department of Computer Science Purdue University

2 Simulating the world Floating point arithmetic on GPUs and their speed enable us to simulate a wide variety of phenomena using PDEs

3 Some Basics Operators (on images/lattices) Diffusion Bouyancy

4 Operators Given an image: Gradient (vector) f x, y Laplacian (scalar) 2 f x, y = f x x + f y y = 2 f x f y 2

5 Discrete Laplacian 2 f x, y = f x 1, y + f x + 1, y + f x, y 1 + f x, y + 1 4f x, y Matrix form =??

6 Discrete Laplacian 2 f x, y = f x 1, y + f x + 1, y + f x, y 1 + f x, y + 1 4f x, y Matrix form =

7 Heat Equation f t = 2 f

8 Diffusion Equation [Weisstein 1999] f x, y = f x, y + c d 4 2 f(x, y) where c d is the coefficient of diffusion

9 (Anisotropic) Diffusion

10 Buoyancy Used in convection, cloud formations, etc. Given a temperature state T: a vertical buoyancy velocity is upwards if a node is hotter than its neighbors and a vertical buoyancy velocity is downwards if a node is cooler than its neighbors

11 Buoyancy v x, y = v x, y + c b (2f x, y f x + 1, y f(x 1, y)) 2 where c b is the buoyancy strength

12 Bouyancy (considering neighbors) f x, y = f x, y σ f x, y 2 [ρ(f x, y + 1 ρ(f x, y 1 ] where ρ f = tanh α f f c (an approx. of density relative to temperature f) and σ is buoyancy strength and α and f c are constants

13 Euler Method (for ODE) Given: Do: y t = f t, y t with y t 0 = y 0 y n+1 = y n + hf(t n, y n )

14 Classical Runge Kutta Method Given: y t = f t, y t with y t 0 = y 0 Do: y n+1 = y n + h/6(k 1 + 2k 2 + 2k 3 + k 4 ) t n+1 = t n + h where

15 Example: (Water) Boiling Based on [Harris et al. 2002] State = Temperature Three operations: Diffusion, buoyancy, & latent heat 3D Simulation Stack of 2D texture slices

16 Turing: Morphogenesis and Reaction-Diffusion (1952) Alan Turing in 1952 describing the way in which non-uniformity (stripes, spots, spirals, etc.) may arise naturally out of a homogeneous, uniform state. The theory (which can be called a reaction diffusion theory of morphogenesis), has served as a basic model in theoretical biology, and is seen by some as the very beginning of chaos theory. U t = D U 2 U k UV 16 V t = D V 2 V + k UV 12 V

17 Gray-Scott Reaction-Diffusion State = two scalar chemical concentrations Simple: just Diffusion and Reaction ops U t V t D u 2 U UV 2 F(1 U ), D v 2 V UV 2 (F k)v U, V are chemical concentrations, F, k, D u, D v are constants

18 Some research usion/reaction_diffusion.html

19 Navier-Stokes Equations Describe flow of an incompressible fluid u t (u )u 1 p 2 u f Advection Pressure Gradient Diffusion (viscosity) External Force u 0 Velocity is divergence-free

20 Fluid Dynamics Solution of Navier-Stokes flow eqs. Stable for arbitrary time steps (=fast!) [Stam 1999], [Fedkiw et al. 2001] Can be implemented on latest GPUs Quite a bit more complex than R-D or boiling See Fast Fluid Dynamics Simulation on the GPU (Harris, GPU Gems, 2004)

21 Fluid Simulations

22 Thermodynamics Temperature affected by Heat sources Advection Latent heat released / absorbed during condensation / evaporation temperature = advection + latent heat release + temperature input

23 Cloud Dynamics 3 components 7 unknowns Fluid dynamics Motion of the air Thermodynamics Temperature changes Water continuity Evaporation, condensation Velocity: u (u,v,w) Pressure: p Potential temperature: q (see dissertation) Water vapor mixing ratio: q v Liquid water mixing ratio: q c

24 Cloud Dynamics

25 Wave Equation Remember heat equation: Rate of change of value proportional to Laplacian Wave equation: Rate of change of the rate of change is also proportional to the Laplacian

26 Wave Equation 2 u t 2 = c2 2 u where u models the displacement and c is the propagation speed

27 Water Simulation: Wave Equation U = value, V = rate of change U t = b k + d 2 U V t = k 2 U

28 Water Simulation: Wave Equation Demo

29 Water Simulation: Sine Waves Asin(ωx + t)

30 Water Simulation: Sine Waves A 1 sin(ω 1 x + t 1 ) + A 2 sin ω 2 x + t 2 +

31 Water Simulation: Sine Waves Using sine-wave summations: H x, y, t = A i sin(d i x, y ω i + tφ i ) [use H as height or a pixel intensity] Pixel values over time are: P x, y, t = (x, y, H x, y, t )

32 Water Simulation: Sine Waves (here, pixel normals are computed as well for reflections)

33 Water: Surface Normals Use binormal and tangent: B x, y, t = dx, dy dx dx, dh x,y,t dx T x, y, t = = 0,1, Normal is: N x, y, t = B T N x, y, t dh x, y, t = ( dx, = (1,0, dh x, y, t dy dh x, y, t dy dh x,y,t dx, 1) )

34 Water Simulation: Gerstner Waves These waves also change the x, y of the wave imitating how points at top of wave are squished together and points at bottom are separated

35 Water Simulation: Gerstner Waves P x, y, t x + Q i A i D i. x cos (ω i D i x, y + φ i t) = y + Q i A i D i. y cos (ω i D i x, y + φ i t) A i sin (ω i D i x, y + φ i t) where Q i =sharpness

36 Water Simulation: Gerstner Waves

37 Video i4s

38 Simulation Algorithm Advect quantities Similar to [Stam, 1999] Compute and apply accelerations Buoyancy Compute condensation, evaporation, and temperature changes Enforce momentum conservation Otherwise velocity dissipates, loses swirls Projection step of Stable Fluids [Stam, 1999]

39 Simulation Algorithm Most steps are simple Most use one fragment program, one pass Programs come directly from equations Tricky parts: Staggered grid discretization Stable Fluids projection step Boundary conditions 3D Simulation

40 Flat 3D Textures

41 Flat 3D Textures Advantages One texture update per operation Better use of GPU parallelism Non-power-of-two Textures Quick simulation preview Disadvantage Must compute texture offsets

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids Fluid dynamics Math background Physics Simulation Related phenomena Frontiers in graphics Rigid fluids Fields Domain Ω R2 Scalar field f :Ω R Vector field f : Ω R2 Types of derivatives Derivatives measure

More information

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan Applications Mostly Hollywood Shrek Antz Terminator 3 Many others Games Engineering Animating Fluids is

More information

PDE Solvers for Fluid Flow

PDE Solvers for Fluid Flow PDE Solvers for Fluid Flow issues and algorithms for the Streaming Supercomputer Eran Guendelman February 5, 2002 Topics Equations for incompressible fluid flow 3 model PDEs: Hyperbolic, Elliptic, Parabolic

More information

1 Introduction to Governing Equations 2 1a Methodology... 2

1 Introduction to Governing Equations 2 1a Methodology... 2 Contents 1 Introduction to Governing Equations 2 1a Methodology............................ 2 2 Equation of State 2 2a Mean and Turbulent Parts...................... 3 2b Reynolds Averaging.........................

More information

Chapter 5. The Differential Forms of the Fundamental Laws

Chapter 5. The Differential Forms of the Fundamental Laws Chapter 5 The Differential Forms of the Fundamental Laws 1 5.1 Introduction Two primary methods in deriving the differential forms of fundamental laws: Gauss s Theorem: Allows area integrals of the equations

More information

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies Soft-Body Physics Soft Bodies Realistic objects are not purely rigid. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies Deformed

More information

Boiling Heat Transfer and Two-Phase Flow Fall 2012 Rayleigh Bubble Dynamics. Derivation of Rayleigh and Rayleigh-Plesset Equations:

Boiling Heat Transfer and Two-Phase Flow Fall 2012 Rayleigh Bubble Dynamics. Derivation of Rayleigh and Rayleigh-Plesset Equations: Boiling Heat Transfer and Two-Phase Flow Fall 2012 Rayleigh Bubble Dynamics Derivation of Rayleigh and Rayleigh-Plesset Equations: Let us derive the Rayleigh-Plesset Equation as the Rayleigh equation can

More information

Dan s Morris s Notes on Stable Fluids (Jos Stam, SIGGRAPH 1999)

Dan s Morris s Notes on Stable Fluids (Jos Stam, SIGGRAPH 1999) Dan s Morris s Notes on Stable Fluids (Jos Stam, SIGGRAPH 1999) This is intended to be a detailed by fairly-low-math explanation of Stam s Stable Fluids, one of the key papers in a recent series of advances

More information

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost Game and Media Technology Master Program - Utrecht University Dr. Nicolas Pronost Soft body physics Soft bodies In reality, objects are not purely rigid for some it is a good approximation but if you hit

More information

Fluid Animation. Christopher Batty November 17, 2011

Fluid Animation. Christopher Batty November 17, 2011 Fluid Animation Christopher Batty November 17, 2011 What distinguishes fluids? What distinguishes fluids? No preferred shape Always flows when force is applied Deforms to fit its container Internal forces

More information

Needs work : define boundary conditions and fluxes before, change slides Useful definitions and conservation equations

Needs work : define boundary conditions and fluxes before, change slides Useful definitions and conservation equations Needs work : define boundary conditions and fluxes before, change slides 1-2-3 Useful definitions and conservation equations Turbulent Kinetic energy The fluxes are crucial to define our boundary conditions,

More information

Lecture 3. Turbulent fluxes and TKE budgets (Garratt, Ch 2)

Lecture 3. Turbulent fluxes and TKE budgets (Garratt, Ch 2) Lecture 3. Turbulent fluxes and TKE budgets (Garratt, Ch 2) The ABL, though turbulent, is not homogeneous, and a critical role of turbulence is transport and mixing of air properties, especially in the

More information

2. FLUID-FLOW EQUATIONS SPRING 2019

2. FLUID-FLOW EQUATIONS SPRING 2019 2. FLUID-FLOW EQUATIONS SPRING 2019 2.1 Introduction 2.2 Conservative differential equations 2.3 Non-conservative differential equations 2.4 Non-dimensionalisation Summary Examples 2.1 Introduction Fluid

More information

Pressure corrected SPH for fluid animation

Pressure corrected SPH for fluid animation Pressure corrected SPH for fluid animation Kai Bao, Hui Zhang, Lili Zheng and Enhua Wu Analyzed by Po-Ram Kim 2 March 2010 Abstract We present pressure scheme for the SPH for fluid animation In conventional

More information

Particle-based Fluids

Particle-based Fluids Particle-based Fluids Particle Fluids Spatial Discretization Fluid is discretized using particles 3 Particles = Molecules? Particle approaches: Molecular Dynamics: relates each particle to one molecule

More information

Lecture 1: Introduction to Linear and Non-Linear Waves

Lecture 1: Introduction to Linear and Non-Linear Waves Lecture 1: Introduction to Linear and Non-Linear Waves Lecturer: Harvey Segur. Write-up: Michael Bates June 15, 2009 1 Introduction to Water Waves 1.1 Motivation and Basic Properties There are many types

More information

Numerical methods for the Navier- Stokes equations

Numerical methods for the Navier- Stokes equations Numerical methods for the Navier- Stokes equations Hans Petter Langtangen 1,2 1 Center for Biomedical Computing, Simula Research Laboratory 2 Department of Informatics, University of Oslo Dec 6, 2012 Note:

More information

Principles of Convection

Principles of Convection Principles of Convection Point Conduction & convection are similar both require the presence of a material medium. But convection requires the presence of fluid motion. Heat transfer through the: Solid

More information

AA210A Fundamentals of Compressible Flow. Chapter 1 - Introduction to fluid flow

AA210A Fundamentals of Compressible Flow. Chapter 1 - Introduction to fluid flow AA210A Fundamentals of Compressible Flow Chapter 1 - Introduction to fluid flow 1 1.2 Conservation of mass Mass flux in the x-direction [ ρu ] = M L 3 L T = M L 2 T Momentum per unit volume Mass per unit

More information

3. FORMS OF GOVERNING EQUATIONS IN CFD

3. FORMS OF GOVERNING EQUATIONS IN CFD 3. FORMS OF GOVERNING EQUATIONS IN CFD 3.1. Governing and model equations in CFD Fluid flows are governed by the Navier-Stokes equations (N-S), which simpler, inviscid, form is the Euler equations. For

More information

2. Conservation laws and basic equations

2. Conservation laws and basic equations 2. Conservation laws and basic equations Equatorial region is mapped well by cylindrical (Mercator) projection: eastward, northward, upward (local Cartesian) coordinates:,, velocity vector:,,,, material

More information

Multi-Scale Modeling of Turbulence and Microphysics in Clouds. Steven K. Krueger University of Utah

Multi-Scale Modeling of Turbulence and Microphysics in Clouds. Steven K. Krueger University of Utah Multi-Scale Modeling of Turbulence and Microphysics in Clouds Steven K. Krueger University of Utah 10,000 km Scales of Atmospheric Motion 1000 km 100 km 10 km 1 km 100 m 10 m 1 m 100 mm 10 mm 1 mm Planetary

More information

An Overview of Fluid Animation. Christopher Batty March 11, 2014

An Overview of Fluid Animation. Christopher Batty March 11, 2014 An Overview of Fluid Animation Christopher Batty March 11, 2014 What distinguishes fluids? What distinguishes fluids? No preferred shape. Always flows when force is applied. Deforms to fit its container.

More information

Open boundary conditions in numerical simulations of unsteady incompressible flow

Open boundary conditions in numerical simulations of unsteady incompressible flow Open boundary conditions in numerical simulations of unsteady incompressible flow M. P. Kirkpatrick S. W. Armfield Abstract In numerical simulations of unsteady incompressible flow, mass conservation can

More information

Transport equation cavitation models in an unstructured flow solver. Kilian Claramunt, Charles Hirsch

Transport equation cavitation models in an unstructured flow solver. Kilian Claramunt, Charles Hirsch Transport equation cavitation models in an unstructured flow solver Kilian Claramunt, Charles Hirsch SHF Conference on hydraulic machines and cavitation / air in water pipes June 5-6, 2013, Grenoble, France

More information

ATS 421/521. Climate Modeling. Spring 2015

ATS 421/521. Climate Modeling. Spring 2015 ATS 421/521 Climate Modeling Spring 2015 Lecture 9 Hadley Circulation (Held and Hou, 1980) General Circulation Models (tetbook chapter 3.2.3; course notes chapter 5.3) The Primitive Equations (tetbook

More information

Quick Recapitulation of Fluid Mechanics

Quick Recapitulation of Fluid Mechanics Quick Recapitulation of Fluid Mechanics Amey Joshi 07-Feb-018 1 Equations of ideal fluids onsider a volume element of a fluid of density ρ. If there are no sources or sinks in, the mass in it will change

More information

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method file:///d:/chitra/nptel_phase2/mechanical/cfd/lecture1/1_1.htm 1 of 1 6/19/2012 4:29 PM The Lecture deals with: Classification of Partial Differential Equations Boundary and Initial Conditions Finite Differences

More information

AE/ME 339. K. M. Isaac. 9/22/2005 Topic 6 FluidFlowEquations_Introduction. Computational Fluid Dynamics (AE/ME 339) MAEEM Dept.

AE/ME 339. K. M. Isaac. 9/22/2005 Topic 6 FluidFlowEquations_Introduction. Computational Fluid Dynamics (AE/ME 339) MAEEM Dept. AE/ME 339 Computational Fluid Dynamics (CFD) 1...in the phrase computational fluid dynamics the word computational is simply an adjective to fluid dynamics.... -John D. Anderson 2 1 Equations of Fluid

More information

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 7

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 7 Numerical Fluid Mechanics Fall 2011 Lecture 7 REVIEW of Lecture 6 Material covered in class: Differential forms of conservation laws Material Derivative (substantial/total derivative) Conservation of Mass

More information

Simulation of free surface fluids in incompressible dynamique

Simulation of free surface fluids in incompressible dynamique Simulation of free surface fluids in incompressible dynamique Dena Kazerani INRIA Paris Supervised by Pascal Frey at Laboratoire Jacques-Louis Lions-UPMC Workshop on Numerical Modeling of Liquid-Vapor

More information

Free energy concept Free energy approach LBM implementation Parameters

Free energy concept Free energy approach LBM implementation Parameters BINARY LIQUID MODEL A. Kuzmin J. Derksen Department of Chemical and Materials Engineering University of Alberta Canada August 22,2011 / LBM Workshop OUTLINE 1 FREE ENERGY CONCEPT 2 FREE ENERGY APPROACH

More information

Development and analysis of a Lagrange-Remap sharp interface solver for stable and accurate atomization computations

Development and analysis of a Lagrange-Remap sharp interface solver for stable and accurate atomization computations ICLASS 2012, 12 th Triennial International Conference on Liquid Atomization and Spray Systems, Heidelberg, Germany, September 2-6, 2012 Development and analysis of a Lagrange-Remap sharp interface solver

More information

AE301 Aerodynamics I UNIT B: Theory of Aerodynamics

AE301 Aerodynamics I UNIT B: Theory of Aerodynamics AE301 Aerodynamics I UNIT B: Theory of Aerodynamics ROAD MAP... B-1: Mathematics for Aerodynamics B-: Flow Field Representations B-3: Potential Flow Analysis B-4: Applications of Potential Flow Analysis

More information

Chapter 2: Fluid Dynamics Review

Chapter 2: Fluid Dynamics Review 7 Chapter 2: Fluid Dynamics Review This chapter serves as a short review of basic fluid mechanics. We derive the relevant transport equations (or conservation equations), state Newton s viscosity law leading

More information

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION 7.1 THE NAVIER-STOKES EQUATIONS Under the assumption of a Newtonian stress-rate-of-strain constitutive equation and a linear, thermally conductive medium,

More information

Webster s horn model on Bernoulli flow

Webster s horn model on Bernoulli flow Webster s horn model on Bernoulli flow Aalto University, Dept. Mathematics and Systems Analysis January 5th, 2018 Incompressible, steady Bernoulli principle Consider a straight tube Ω R 3 havin circular

More information

EULERIAN DERIVATIONS OF NON-INERTIAL NAVIER-STOKES EQUATIONS

EULERIAN DERIVATIONS OF NON-INERTIAL NAVIER-STOKES EQUATIONS EULERIAN DERIVATIONS OF NON-INERTIAL NAVIER-STOKES EQUATIONS ML Combrinck, LN Dala Flamengro, a div of Armscor SOC Ltd & University of Pretoria, Council of Scientific and Industrial Research & University

More information

Meteorology 6150 Cloud System Modeling

Meteorology 6150 Cloud System Modeling Meteorology 6150 Cloud System Modeling Steve Krueger Spring 2009 1 Fundamental Equations 1.1 The Basic Equations 1.1.1 Equation of motion The movement of air in the atmosphere is governed by Newton s Second

More information

Homework 4 in 5C1212; Part A: Incompressible Navier- Stokes, Finite Volume Methods

Homework 4 in 5C1212; Part A: Incompressible Navier- Stokes, Finite Volume Methods Homework 4 in 5C11; Part A: Incompressible Navier- Stokes, Finite Volume Methods Consider the incompressible Navier Stokes in two dimensions u x + v y = 0 u t + (u ) x + (uv) y + p x = 1 Re u + f (1) v

More information

ESCI 485 Air/Sea Interaction Lesson 1 Stresses and Fluxes Dr. DeCaria

ESCI 485 Air/Sea Interaction Lesson 1 Stresses and Fluxes Dr. DeCaria ESCI 485 Air/Sea Interaction Lesson 1 Stresses and Fluxes Dr DeCaria References: An Introduction to Dynamic Meteorology, Holton MOMENTUM EQUATIONS The momentum equations governing the ocean or atmosphere

More information

Thermodynamics Review [?] Entropy & thermodynamic potentials Hydrostatic equilibrium & buoyancy Stability [dry & moist adiabatic]

Thermodynamics Review [?] Entropy & thermodynamic potentials Hydrostatic equilibrium & buoyancy Stability [dry & moist adiabatic] Thermodynamics Review [?] Entropy & thermodynamic potentials Hydrostatic equilibrium & buoyancy Stability [dry & moist adiabatic] Entropy 1. (Thermodynamics) a thermodynamic quantity that changes in a

More information

Introduction to Partial Differential Equations

Introduction to Partial Differential Equations Introduction to Partial Differential Equations Philippe B. Laval KSU Current Semester Philippe B. Laval (KSU) 1D Heat Equation: Derivation Current Semester 1 / 19 Introduction The derivation of the heat

More information

6.2 Governing Equations for Natural Convection

6.2 Governing Equations for Natural Convection 6. Governing Equations for Natural Convection 6..1 Generalized Governing Equations The governing equations for natural convection are special cases of the generalized governing equations that were discussed

More information

Computational Physics (6810): Session 8

Computational Physics (6810): Session 8 Computational Physics (6810): Session 8 Dick Furnstahl Nuclear Theory Group OSU Physics Department February 24, 2014 Differential equation solving Session 7 Preview Session 8 Stuff Solving differential

More information

EQUATIONS OF MOTION: NORMAL AND TANGENTIAL COORDINATES (Section 13.5)

EQUATIONS OF MOTION: NORMAL AND TANGENTIAL COORDINATES (Section 13.5) EQUATIONS OF MOTION: NORMAL AND TANGENTIAL COORDINATES (Section 13.5) Today s Objectives: Students will be able to apply the equation of motion using normal and tangential coordinates. APPLICATIONS Race

More information

Equations of fluid dynamics for image inpainting

Equations of fluid dynamics for image inpainting Equations of fluid dynamics for image inpainting Evelyn M. Lunasin Department of Mathematics United States Naval Academy Joint work with E.S. Titi Weizmann Institute of Science, Israel. IMPA, Rio de Janeiro

More information

Eddy viscosity. AdOc 4060/5060 Spring 2013 Chris Jenkins. Turbulence (video 1hr):

Eddy viscosity. AdOc 4060/5060 Spring 2013 Chris Jenkins. Turbulence (video 1hr): AdOc 4060/5060 Spring 2013 Chris Jenkins Eddy viscosity Turbulence (video 1hr): http://cosee.umaine.edu/programs/webinars/turbulence/?cfid=8452711&cftoken=36780601 Part B Surface wind stress Wind stress

More information

A Space-Time Expansion Discontinuous Galerkin Scheme with Local Time-Stepping for the Ideal and Viscous MHD Equations

A Space-Time Expansion Discontinuous Galerkin Scheme with Local Time-Stepping for the Ideal and Viscous MHD Equations A Space-Time Expansion Discontinuous Galerkin Scheme with Local Time-Stepping for the Ideal and Viscous MHD Equations Ch. Altmann, G. Gassner, F. Lörcher, C.-D. Munz Numerical Flow Models for Controlled

More information

General Curvilinear Ocean Model (GCOM): Enabling Thermodynamics

General Curvilinear Ocean Model (GCOM): Enabling Thermodynamics General Curvilinear Ocean Model (GCOM): Enabling Thermodynamics M. Abouali, C. Torres, R. Walls, G. Larrazabal, M. Stramska, D. Decchis, and J.E. Castillo AP0901 09 General Curvilinear Ocean Model (GCOM):

More information

Differential relations for fluid flow

Differential relations for fluid flow Differential relations for fluid flow In this approach, we apply basic conservation laws to an infinitesimally small control volume. The differential approach provides point by point details of a flow

More information

Getting started: CFD notation

Getting started: CFD notation PDE of p-th order Getting started: CFD notation f ( u,x, t, u x 1,..., u x n, u, 2 u x 1 x 2,..., p u p ) = 0 scalar unknowns u = u(x, t), x R n, t R, n = 1,2,3 vector unknowns v = v(x, t), v R m, m =

More information

2 Equations of Motion

2 Equations of Motion 2 Equations of Motion system. In this section, we will derive the six full equations of motion in a non-rotating, Cartesian coordinate 2.1 Six equations of motion (non-rotating, Cartesian coordinates)

More information

Numerical modelling of phase change processes in clouds. Challenges and Approaches. Martin Reitzle Bernard Weigand

Numerical modelling of phase change processes in clouds. Challenges and Approaches. Martin Reitzle Bernard Weigand Institute of Aerospace Thermodynamics Numerical modelling of phase change processes in clouds Challenges and Approaches Martin Reitzle Bernard Weigand Introduction Institute of Aerospace Thermodynamics

More information

Chapter 1. Governing Equations of GFD. 1.1 Mass continuity

Chapter 1. Governing Equations of GFD. 1.1 Mass continuity Chapter 1 Governing Equations of GFD The fluid dynamical governing equations consist of an equation for mass continuity, one for the momentum budget, and one or more additional equations to account for

More information

Chapter 9: Differential Analysis

Chapter 9: Differential Analysis 9-1 Introduction 9-2 Conservation of Mass 9-3 The Stream Function 9-4 Conservation of Linear Momentum 9-5 Navier Stokes Equation 9-6 Differential Analysis Problems Recall 9-1 Introduction (1) Chap 5: Control

More information

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion http://www.nd.edu/~gtryggva/cfd-course/ http://www.nd.edu/~gtryggva/cfd-course/ Computational Fluid Dynamics Lecture 4 January 30, 2017 The Equations Governing Fluid Motion Grétar Tryggvason Outline Derivation

More information

Analysis of water condensation and two-phase flow in a channel relevant for plate heat exchangers

Analysis of water condensation and two-phase flow in a channel relevant for plate heat exchangers Advanced Computational Methods in Heat Transfer IX 351 Analysis of water condensation and two-phase flow in a channel relevant for plate heat exchangers J. Yuan, C. Wilhelmsson & B. Sundén Department of

More information

Mathematical Concepts & Notation

Mathematical Concepts & Notation Mathematical Concepts & Notation Appendix A: Notation x, δx: a small change in x t : the partial derivative with respect to t holding the other variables fixed d : the time derivative of a quantity that

More information

F11AE1 1. C = ρν r r. r u z r

F11AE1 1. C = ρν r r. r u z r F11AE1 1 Question 1 20 Marks) Consider an infinite horizontal pipe with circular cross-section of radius a, whose centre line is aligned along the z-axis; see Figure 1. Assume no-slip boundary conditions

More information

Detailed Outline, M E 320 Fluid Flow, Spring Semester 2015

Detailed Outline, M E 320 Fluid Flow, Spring Semester 2015 Detailed Outline, M E 320 Fluid Flow, Spring Semester 2015 I. Introduction (Chapters 1 and 2) A. What is Fluid Mechanics? 1. What is a fluid? 2. What is mechanics? B. Classification of Fluid Flows 1. Viscous

More information

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing FEniCS Course Lecture 6: Incompressible Navier Stokes Contributors Anders Logg André Massing 1 / 11 The incompressible Navier Stokes equations u + u u ν u + p = f in Ω (0, T ] u = 0 in Ω (0, T ] u = g

More information

Partial Differential Equations II

Partial Differential Equations II Partial Differential Equations II CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Justin Solomon CS 205A: Mathematical Methods Partial Differential Equations II 1 / 28 Almost Done! Homework

More information

Department of Mathematics University of California Santa Barbara, Santa Barbara, California,

Department of Mathematics University of California Santa Barbara, Santa Barbara, California, The Ghost Fluid Method for Viscous Flows 1 Ronald P. Fedkiw Computer Science Department Stanford University, Stanford, California 9435 Email:fedkiw@cs.stanford.edu Xu-Dong Liu Department of Mathematics

More information

Chapter 9: Differential Analysis of Fluid Flow

Chapter 9: Differential Analysis of Fluid Flow of Fluid Flow Objectives 1. Understand how the differential equations of mass and momentum conservation are derived. 2. Calculate the stream function and pressure field, and plot streamlines for a known

More information

PHYS 432 Physics of Fluids: Instabilities

PHYS 432 Physics of Fluids: Instabilities PHYS 432 Physics of Fluids: Instabilities 1. Internal gravity waves Background state being perturbed: A stratified fluid in hydrostatic balance. It can be constant density like the ocean or compressible

More information

EQUATIONS OF MOTION: NORMAL AND TANGENTIAL COORDINATES

EQUATIONS OF MOTION: NORMAL AND TANGENTIAL COORDINATES EQUATIONS OF MOTION: NORMAL AND TANGENTIAL COORDINATES Today s Objectives: Students will be able to: 1. Apply the equation of motion using normal and tangential coordinates. In-Class Activities: Check

More information

5.1 Fluid momentum equation Hydrostatics Archimedes theorem The vorticity equation... 42

5.1 Fluid momentum equation Hydrostatics Archimedes theorem The vorticity equation... 42 Chapter 5 Euler s equation Contents 5.1 Fluid momentum equation........................ 39 5. Hydrostatics................................ 40 5.3 Archimedes theorem........................... 41 5.4 The

More information

CSCI1950V Project 4 : Smoothed Particle Hydrodynamics

CSCI1950V Project 4 : Smoothed Particle Hydrodynamics CSCI1950V Project 4 : Smoothed Particle Hydrodynamics Due Date : Midnight, Friday March 23 1 Background For this project you will implement a uid simulation using Smoothed Particle Hydrodynamics (SPH).

More information

Week 6 Notes, Math 865, Tanveer

Week 6 Notes, Math 865, Tanveer Week 6 Notes, Math 865, Tanveer. Energy Methods for Euler and Navier-Stokes Equation We will consider this week basic energy estimates. These are estimates on the L 2 spatial norms of the solution u(x,

More information

Q ( q(m, t 0 ) n) S t.

Q ( q(m, t 0 ) n) S t. THE HEAT EQUATION The main equations that we will be dealing with are the heat equation, the wave equation, and the potential equation. We use simple physical principles to show how these equations are

More information

Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models

Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models 0-0 Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models B. Srinivasan, U. Shumlak Aerospace and Energetics Research Program, University of Washington, Seattle,

More information

MATHS 267 Answers to Stokes Practice Dr. Jones

MATHS 267 Answers to Stokes Practice Dr. Jones MATH 267 Answers to tokes Practice Dr. Jones 1. Calculate the flux F d where is the hemisphere x2 + y 2 + z 2 1, z > and F (xz + e y2, yz, z 2 + 1). Note: the surface is open (doesn t include any of the

More information

Basic concepts in viscous flow

Basic concepts in viscous flow Élisabeth Guazzelli and Jeffrey F. Morris with illustrations by Sylvie Pic Adapted from Chapter 1 of Cambridge Texts in Applied Mathematics 1 The fluid dynamic equations Navier-Stokes equations Dimensionless

More information

V (r,t) = i ˆ u( x, y,z,t) + ˆ j v( x, y,z,t) + k ˆ w( x, y, z,t)

V (r,t) = i ˆ u( x, y,z,t) + ˆ j v( x, y,z,t) + k ˆ w( x, y, z,t) IV. DIFFERENTIAL RELATIONS FOR A FLUID PARTICLE This chapter presents the development and application of the basic differential equations of fluid motion. Simplifications in the general equations and common

More information

Introduction to Heat and Mass Transfer. Week 12

Introduction to Heat and Mass Transfer. Week 12 Introduction to Heat and Mass Transfer Week 12 Next Topic Convective Heat Transfer» Heat and Mass Transfer Analogy» Evaporative Cooling» Types of Flows Heat and Mass Transfer Analogy Equations governing

More information

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II Advection / Hyperbolic PDEs Notes In addition to the slides and code examples, my notes on PDEs with the finite-volume method are up online: https://github.com/open-astrophysics-bookshelf/numerical_exercises

More information

OPAC102. The Acoustic Wave Equation

OPAC102. The Acoustic Wave Equation OPAC102 The Acoustic Wave Equation Acoustic waves in fluid Acoustic waves constitute one kind of pressure fluctuation that can exist in a compressible fluid. The restoring forces responsible for propagating

More information

Multivariable calculus: What is it good for?

Multivariable calculus: What is it good for? : What is it good for? Department of Mathematics and Statistics, UMBC http://www.math.umbc.edu/ rouben/ January 2011 Purpose The purpose of these slides is to show that the material that one learns in

More information

Chapter 7: Natural Convection

Chapter 7: Natural Convection 7-1 Introduction 7- The Grashof Number 7-3 Natural Convection over Surfaces 7-4 Natural Convection Inside Enclosures 7-5 Similarity Solution 7-6 Integral Method 7-7 Combined Natural and Forced Convection

More information

Computer Fluid Dynamics E181107

Computer Fluid Dynamics E181107 Computer Fluid Dynamics E181107 2181106 Transport equations, Navier Stokes equations Remark: foils with black background could be skipped, they are aimed to the more advanced courses Rudolf Žitný, Ústav

More information

Mimetic Methods and why they are better

Mimetic Methods and why they are better Mimetic Methods and why they are better Blair Perot Theoretical and Computational Fluid Dynamics Laboratory February 25, 2015 Numerical Methods: Are more than Mathematics Math: Accuracy Stability Convergence

More information

Fluid Dynamics Exercises and questions for the course

Fluid Dynamics Exercises and questions for the course Fluid Dynamics Exercises and questions for the course January 15, 2014 A two dimensional flow field characterised by the following velocity components in polar coordinates is called a free vortex: u r

More information

2. Conservation of Mass

2. Conservation of Mass 2 Conservation of Mass The equation of mass conservation expresses a budget for the addition and removal of mass from a defined region of fluid Consider a fixed, non-deforming volume of fluid, V, called

More information

Vortex stretching in incompressible and compressible fluids

Vortex stretching in incompressible and compressible fluids Vortex stretching in incompressible and compressible fluids Esteban G. Tabak, Fluid Dynamics II, Spring 00 1 Introduction The primitive form of the incompressible Euler equations is given by ( ) du P =

More information

Modeling of Humidification in Comsol Multiphysics 4.4

Modeling of Humidification in Comsol Multiphysics 4.4 Modeling of Humidification in Comsol Multiphysics 4.4 Indrajit Wadgaonkar *1 and Suresh Arikapudi 1 1 Tata Motors Ltd. Pimpri, Pune, India, 411018. *Corresponding author: Indrajit Wadgaonkar, Tata Motors

More information

Heat and Mass Transfer Prof. S.P. Sukhatme Department of Mechanical Engineering Indian Institute of Technology, Bombay

Heat and Mass Transfer Prof. S.P. Sukhatme Department of Mechanical Engineering Indian Institute of Technology, Bombay Heat and Mass Transfer Prof. S.P. Sukhatme Department of Mechanical Engineering Indian Institute of Technology, Bombay Lecture No. 18 Forced Convection-1 Welcome. We now begin our study of forced convection

More information

The dependence of the cross-sectional shape on the hydraulic resistance of microchannels

The dependence of the cross-sectional shape on the hydraulic resistance of microchannels 3-weeks course report, s0973 The dependence of the cross-sectional shape on the hydraulic resistance of microchannels Hatim Azzouz a Supervisor: Niels Asger Mortensen and Henrik Bruus MIC Department of

More information

MATH 332: Vector Analysis Summer 2005 Homework

MATH 332: Vector Analysis Summer 2005 Homework MATH 332, (Vector Analysis), Summer 2005: Homework 1 Instructor: Ivan Avramidi MATH 332: Vector Analysis Summer 2005 Homework Set 1. (Scalar Product, Equation of a Plane, Vector Product) Sections: 1.9,

More information

A recovery-assisted DG code for the compressible Navier-Stokes equations

A recovery-assisted DG code for the compressible Navier-Stokes equations A recovery-assisted DG code for the compressible Navier-Stokes equations January 6 th, 217 5 th International Workshop on High-Order CFD Methods Kissimmee, Florida Philip E. Johnson & Eric Johnsen Scientific

More information

ME 144: Heat Transfer Introduction to Convection. J. M. Meyers

ME 144: Heat Transfer Introduction to Convection. J. M. Meyers ME 144: Heat Transfer Introduction to Convection Introductory Remarks Convection heat transfer differs from diffusion heat transfer in that a bulk fluid motion is present which augments the overall heat

More information

ASTR 320: Solutions to Problem Set 2

ASTR 320: Solutions to Problem Set 2 ASTR 320: Solutions to Problem Set 2 Problem 1: Streamlines A streamline is defined as a curve that is instantaneously tangent to the velocity vector of a flow. Streamlines show the direction a massless

More information

AE/ME 339. Computational Fluid Dynamics (CFD) K. M. Isaac. Momentum equation. Computational Fluid Dynamics (AE/ME 339) MAEEM Dept.

AE/ME 339. Computational Fluid Dynamics (CFD) K. M. Isaac. Momentum equation. Computational Fluid Dynamics (AE/ME 339) MAEEM Dept. AE/ME 339 Computational Fluid Dynamics (CFD) 9//005 Topic7_NS_ F0 1 Momentum equation 9//005 Topic7_NS_ F0 1 Consider the moving fluid element model shown in Figure.b Basis is Newton s nd Law which says

More information

Logistics. Goof up P? R? Can you log in? Requests for: Teragrid yes? NCSA no? Anders Colberg Syrowski Curtis Rastogi Yang Chiu

Logistics. Goof up P? R? Can you log in? Requests for: Teragrid yes? NCSA no? Anders Colberg Syrowski Curtis Rastogi Yang Chiu Logistics Goof up P? R? Can you log in? Teragrid yes? NCSA no? Requests for: Anders Colberg Syrowski Curtis Rastogi Yang Chiu Introduction to Numerical Weather Prediction Thanks: Tom Warner, NCAR A bit

More information

CAMCOS Reports Day May 17, 2006

CAMCOS Reports Day May 17, 2006 CAMCOS Reports Day May 17, 2006 Mathematical and Statistical Analysis of Heat Pipe Design Sandy DeSousa Sergio de Ornelas Marian Hofer Adam Jennison Kim Ninh Cuong Dong Michelle Fernelius Tracy Holsclaw

More information

Nov : Lecture 22: Differential Operators, Harmonic Oscillators

Nov : Lecture 22: Differential Operators, Harmonic Oscillators 14 Nov. 3 005: Lecture : Differential Operators, Harmonic Oscillators Reading: Kreyszig Sections:.4 (pp:81 83),.5 (pp:83 89),.8 (pp:101 03) Differential Operators The idea of a function as something that

More information

Transfer Equations: An Attempt to Pose an Optimization Problem. Project for CE291 Henry Kagey

Transfer Equations: An Attempt to Pose an Optimization Problem. Project for CE291 Henry Kagey Transfer Equations: An Attempt to Pose an Optimization Problem Project for CE291 Henry Kagey Background System Solar Disinfection of Greywater The goal of this study is to define the mass transfer in a

More information

Linear Transport Relations (LTR)

Linear Transport Relations (LTR) Linear Transport Relations (LTR) Much of Transport Phenomena deals with the exchange of momentum, mass, or heat between two (or many) objects. Often, the most mathematically simple way to consider how

More information

To study the motion of a perfect gas, the conservation equations of continuity

To study the motion of a perfect gas, the conservation equations of continuity Chapter 1 Ideal Gas Flow The Navier-Stokes equations To study the motion of a perfect gas, the conservation equations of continuity ρ + (ρ v = 0, (1.1 momentum ρ D v Dt = p+ τ +ρ f m, (1.2 and energy ρ

More information

Homework #4 Solution. μ 1. μ 2

Homework #4 Solution. μ 1. μ 2 Homework #4 Solution 4.20 in Middleman We have two viscous liquids that are immiscible (e.g. water and oil), layered between two solid surfaces, where the top boundary is translating: y = B y = kb y =

More information