Docsity

Discrete Fluids, Schemes and Mind Maps of Fluid Mechanics

Toggle sidebar
bg1
Applications of DEC:
Fluid Mechanics and Meshing
Applications of DEC:
Fluid Mechanics and Meshing
Mathieu Desbrun
Applied Geometry Lab
Discrete Differential Geometry: An Applied Introduction
ACM SIGGRAPH 2006 Course
Discrete Differential Geometry: An Applied Introduction
ACM SIGGRAPH 2006 Course 2
Overview
Putting DEC to good use
Fluids, fluids, fluids
geometric interpretation of classical models
discrete geometric interpretation
¾new geometry-based integration technique
Quadrangle Meshing
discrete notion of harmonicity
practical method to directly create quads
Discrete Differential Geometry: An Applied Introduction
ACM SIGGRAPH 2006 Course 3
Part I
Computational Fluids
with DEC
based on work with
Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder
Discrete Differential Geometry: An Applied Introduction
ACM SIGGRAPH 2006 Course 4
Fluid Models (I)
Euler Equations
inviscid fluids (not viscous)
incompressible
non-linear PDE, with linear constraint
pressure
velocity
momentum eq.
body forces
Discrete Differential Geometry: An Applied Introduction
ACM SIGGRAPH 2006 Course 5
Fluid Models (I)
Euler Equations
inviscid fluids (not viscous)
incompressible
non-linear PDE, with linear constraint
momentum eq.
mass eq.
Discrete Differential Geometry: An Applied Introduction
ACM SIGGRAPH 2006 Course 6
Fluid Models (II)
Navier-Stokes Equations
only change: viscosity
¾coefficient
loss of total energy during motion
pf3
pf4
pf5

Partial preview of the text

Download Discrete Fluids and more Schemes and Mind Maps Fluid Mechanics in PDF only on Docsity!

Applications of DEC:

Fluid Mechanics and Meshing

Applications of DEC:

Fluid Mechanics and Meshing

Mathieu Desbrun Applied Geometry Lab

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^2)

Overview

Putting DEC to good use

Fluids, fluids, fluids

‰ geometric interpretation of classical models

‰ discrete geometric interpretation

¾ new geometry-based integration technique

Quadrangle Meshing

‰ discrete notion of harmonicity

‰ practical method to directly create quads

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^3)

Part I

Computational Fluids

with DEC

based on work with

Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^4)

Fluid Models (I)

Euler Equations

‰ inviscid fluids (not viscous)

‰ incompressible

‰ non-linear PDE, with linear constraint

pressure

velocity

momentum eq.

body forces

Discrete Differential Geometry: An Applied Introduction

Fluid Models (I)

Euler Equations

‰ inviscid fluids (not viscous)

‰ incompressible

‰ non-linear PDE, with linear constraint

momentum eq.

mass eq.

Discrete Differential Geometry: An Applied Introduction

Fluid Models (II)

Navier-Stokes Equations

‰ only change: viscosity

¾ coefficient

‰ loss of total energy during motion

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^7)

“Geometry” of Fluids?

Euler equations seem clear

‰ advection + div-free projection ad infinitum

¾ Stam’s Stable Fluids do this wonderfully well

¾ numerous follow-up work (Fedkiw et al. )

‰ but what does it mean, geometrically?

¾ “total energy” is rather unintuitive

¾ is there a notion of momentum preservation?

Yes

‰ but of course, we need to massage the PDE

‰ so as to reveal the geometric structure

( u ) u p

t

u

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^8)

Γ = ∫ ( )

t

t udl C

Geometry Revealed

Pressure disappears when we take the curl:

‰ vorticity measures the “spin” of a parcel

‰ vorticity is “advected” along the flow

‰ the circulation around any

closed loop is constant

as it gets advected (by Stokes)

− known as Kelvin’s theorem

− call it preserv. of angular momentum if you want

( u ) u p

t

u

(vorticity)

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^9)

Geometry Revealed

So we know:

Integral of vorticity constant on advected sheet

Additionally, ω defines u

¾ if we ignore complex topology for a moment

¾ because u is divergence free!

Vorticity is the only real variable here

and Kelvin’s isa defining property

(Navier-Stokes: loss along the way)

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^10)

Towards a Proper Discretization

Domain discretization = simplicial complex

‰ fluxes through faces for velocity

¾ intrinsic (coordinate-free) and eulerian

» reminiscent of staggered grids…

‰ net flux for divergence

− what comes in…must come out

‰ flux spin for vorticity

¾ Torque created on a “paddle wheel”

‰ valid for any grid…

Discrete Differential Geometry: An Applied Introduction

Enter Discrete Exterior Calculus

Need for proper link btw flux, vorticity, div

‰ hopefully matching differential counterparts

‰ to create a discrete differential structure

¾ i.e., structure-preserving discretization

‰ Fortunately, that’s DEC

¾ we know how to do all that, right??

¾ flux = 2-form

¾ div = exterior derivative of flux

¾ curl = d of flux

Discrete Differential Geometry: An Applied Introduction

Divergence Operator

Simply d of 2-form

‰ summing face values of tets

‰ returning values in tets

point- based scalar field

cell-based scalar field

edge-based vector field

face-based vector field

cell-based scalar field

point-based scalar field

face-based vector field

edge-based vector field

∇ ∇ × ∇•

∇• ∇ × ∇

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^19)

Channel

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^20)

Smoking Bunny

7k vertices, 32k tets; 0.45s per frame on PIV (3GHz)

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^21)

Merging Vortices

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^22)

Movie

Discrete Differential Geometry: An Applied Introduction

Part II

Quad Meshing

with DEC

based on work with

Yiying Tong, Pierre Alliez, David Cohen-Steiner

Discrete Differential Geometry: An Applied Introduction

Quadrangulations

Needed in CAGD, Reverse Engineering

‰ Ubiquitous (tensor-product nature)

¾ Modeling anisotropy/symmetries

¾ FEM, texture atlasing

‰ But global topology constraints…

A Variety of Requirements:

‰ Isotropy vs anisotropy

‰ Orthogonality, Alignment

‰ Regularity, Sizing

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^25)

Quad Meshes:Reverse Engineering

For a local patch of quadrangulation

‰ induce natural ( u , v) parametrization

‰ Edges: integer-valued isocurves of u/v

‰ “Nice” mesh ≈ square mesh in certain metric

¾ Cauchy-Riemann equations

¾ using language of differential form, this is

‰ Thus, u and v are both harmonic (Laplacian=0)

¾ du and dv too! Cool, DEC seems perfect for that

one-forms

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^26)

Methods for Quadrangulations

Among many:

‰ clustering/Morse [Boier-Martin et al. 03, Carr et al. 06]

‰ curvature lines [Alliez et al. 03, Marinov/Kobbelt 05]

‰ isocontours lDong et al. 04]

¾ two continuous potentials

¾ (much) more robust than streamlines

‰ periodic global param (PGP) [Ray et al. 06]

¾ Pbs: PGP non linear + no real control

What about using discrete forms?

‰ global conformal param [Gu/Yau 03]

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^27)

Problems, Problems…

Solving for two continuous potentials (u,v)

‰ with gradients fields satisfying CR eqs

Alas, singularities unavoidable

‰ either poles

‰ or line singularity

¾ T-junctions…

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^28)

Problems, Problems…

Solving for two continuous potentials (u,v)

‰ with gradients fields satisfying CR eqs

Alas, singularities unavoidable

‰ either poles

‰ or line singularity

¾ T-junctions…

Can we find a better way?

‰ Only requirement: continuity of 1-forms

‰ so we can actually use discontinuous (u,v)!

¾ [Yiying Tong et al. 2006]

Discrete Differential Geometry: An Applied Introduction

Discontinuous Potentials

“Tweaked” Laplacian

‰ continuity of 1-form induces:

generate smooth fields modulo the jump!

Similarly,

N N -

N N

Discrete Differential Geometry: An Applied Introduction

Discontinuous Potentials

“Tweaked” Laplacian

‰ continuity of 1-form induces:

generate smooth fields modulo the jump!

Similarly,

NN -

NN^

Discrete Differential Geometry: An Applied Introduction ACM SIGGRAPH 2006 Course (^37)

Take-Home Message

Don’t Arbitrarily Discretize!

‰ discretize geometric structures

¾ PDEs often hide these structures

‰ uncover the nature of the variables involved

¾ usually, natural locations on mesh

‰ turn the crank with some DEC tools….

Next

‰ circles may be the right discrete geometry!

¾ conformal geometry