Incompressible Flows Sauro Succi. Incompressible flows.

55
Incompressible Flows Sauro Succi

Transcript of Incompressible Flows Sauro Succi. Incompressible flows.

Page 1: Incompressible Flows Sauro Succi. Incompressible flows.

Incompressible Flows

Sauro Succi

Page 2: Incompressible Flows Sauro Succi. Incompressible flows.

Incompressible flows

Page 3: Incompressible Flows Sauro Succi. Incompressible flows.
Page 4: Incompressible Flows Sauro Succi. Incompressible flows.

Incompressible constraint

Kinematic Constraint: elliptic (time-consuming)

“Slow” flows: sound speed to infinity (fluid<<sound)

Page 5: Incompressible Flows Sauro Succi. Incompressible flows.

Matrix Formulation

Cruelly non-local: no way!

Page 6: Incompressible Flows Sauro Succi. Incompressible flows.
Page 7: Incompressible Flows Sauro Succi. Incompressible flows.

Many options…

Colocated/StaggeredExplicit/Implicit,Exactly/Quasi Incompressible,……

Page 8: Incompressible Flows Sauro Succi. Incompressible flows.

Colocated; Control Volume

Hourglass in simple geos

No hourglass in complex ones

Page 9: Incompressible Flows Sauro Succi. Incompressible flows.

Staggered: stronger VP coupling

Page 10: Incompressible Flows Sauro Succi. Incompressible flows.

Staggered

Laborious, good for surfint > simple geos

No hourglass, VP coupled

Page 11: Incompressible Flows Sauro Succi. Incompressible flows.

Isotropic Laplacians

Page 12: Incompressible Flows Sauro Succi. Incompressible flows.

Colocated: Hourglass instability

Page 13: Incompressible Flows Sauro Succi. Incompressible flows.

Complex geos

Spherical cows!

Staggered: complicatedColocated: no hourglass

Page 14: Incompressible Flows Sauro Succi. Incompressible flows.

Modern FV: Implicit diffusion with structured colocated FV leads to 9-diag regular matrices,Can be solved efficiently with ADI.

Poisson solver has no hourglass, but still veryExpensive because the coeff’s are inhomogeneous

Page 15: Incompressible Flows Sauro Succi. Incompressible flows.

Handling non-locality

Rapid Poisson Solvers

Artificial compressibility

Predictor-Corrector methods

Explicit/Implicit time marching

Page 16: Incompressible Flows Sauro Succi. Incompressible flows.

Rapid Poisson: Spectral

Fourier transform: f(x) to f(k)

And back : f(k) to f(x)

Page 17: Incompressible Flows Sauro Succi. Incompressible flows.

Differential to algebraic problem

1. FT

2. Solve

3. IFT

Page 18: Incompressible Flows Sauro Succi. Incompressible flows.

2d homog. Inc. turbulence

Page 19: Incompressible Flows Sauro Succi. Incompressible flows.

Spectral: plus and minus

Problems:N^2 complexityPeriodic Geometries

RemediesFFT: N^2 to N*logNPeriodic constraint basically remains

Page 20: Incompressible Flows Sauro Succi. Incompressible flows.

Two basic families

Exactly Incompressible (EI)

Artificial Compressibility (AC)

Page 21: Incompressible Flows Sauro Succi. Incompressible flows.

Exactly incompressible

Strictly incompressible: elliptic

Two hyperbolic+one elliptic, stiff matrix

Page 22: Incompressible Flows Sauro Succi. Incompressible flows.

EI: Explicit

Divfree is enforced in time, but Poisson very CPU intensive ->Rapid Elliptic Solvers (RES)

Solve Poisson for p^0, then advance U^0 to U^1

Page 23: Incompressible Flows Sauro Succi. Incompressible flows.

Artificial Compressibility

Fictitious (pseudo)-time Exact at steady stateHard to soft constraint

Page 24: Incompressible Flows Sauro Succi. Incompressible flows.

Full Time-dependent

Exact at steady-state (only)

Page 25: Incompressible Flows Sauro Succi. Incompressible flows.

Divergence dynamics

Small-amplitude oscillations around epsilon=O(Mach^2)

“Hydrodynamic Charge”Similar to gravity: curvature of u

Page 26: Incompressible Flows Sauro Succi. Incompressible flows.

AC: Chorin

Pseudodyn is stable: small flucts around p0divu>0 p goes down and viceversaDivfree remains O(epsilon) all along, No Poisson, but dt very small

Page 27: Incompressible Flows Sauro Succi. Incompressible flows.

AC: another version ?

Pseudodyn is stable: small flucts around p0divu>0 p goes down and viceversaDivfree remains O(epsilon) all along, No Poisson, but dt very small

Page 28: Incompressible Flows Sauro Succi. Incompressible flows.

AC: Explicit: WRONG!

Divfree is not conserved in time, No Poisson, but p1 not ok: iteration needed:WRONG: if p0 obeys poisson divu frozen = 0!!!

Wrong: divfree frozen to 0

Page 29: Incompressible Flows Sauro Succi. Incompressible flows.

Hard vs Soft Constraints

Electronic structure: Born-Oppenheimer, Car-Parrinello: softOrbital Orthogonality : hard

Biomolecular dynamics: hard

FluidCompressibility: soft

With f hard to invertHard:

Soft: No need to invert f

Page 30: Incompressible Flows Sauro Succi. Incompressible flows.

CFL stability conditions

Diffusion is very-constraining Advection: ExplicitDiffusion: Implicit

Page 31: Incompressible Flows Sauro Succi. Incompressible flows.

EI: Linearly-Implicit

Poisson less of a drag: implicit anyway

Page 32: Incompressible Flows Sauro Succi. Incompressible flows.

Predict-Correct

Predict u*(p=0):

Correct u*:

Require:(Projection)

u^{n+1} isnow div-free

Page 33: Incompressible Flows Sauro Succi. Incompressible flows.

AC: Implicit Diffusion (Linear)

Page 34: Incompressible Flows Sauro Succi. Incompressible flows.

Summary

Exactly Incompressible:Explicit: Divfree is forced via Poisson, but Poisson solver is a dragRemedies: RPS: Rapid Poisson Solver (simple geo’s)Implicit: large dt, Poisson less of a drag, implicit anyway

Artificial Compressibility:Exact only at steady-state.Divfree is only quasi-conserved to O(eps) Can leave with it if steady-state is the only targetLess so for dynamics Implicit: PS no longer a drag, implicit anyway

Page 35: Incompressible Flows Sauro Succi. Incompressible flows.

Nonlinearity

Page 36: Incompressible Flows Sauro Succi. Incompressible flows.

Nonlinearity-Picard iteration

Page 37: Incompressible Flows Sauro Succi. Incompressible flows.

The face of the discrete operators:Finite Differences

Page 38: Incompressible Flows Sauro Succi. Incompressible flows.

MAC staggered grid(FD)

Page 39: Incompressible Flows Sauro Succi. Incompressible flows.

Pressure equation

Page 40: Incompressible Flows Sauro Succi. Incompressible flows.

Staggered grid: X component

Page 41: Incompressible Flows Sauro Succi. Incompressible flows.

Y-component

Page 42: Incompressible Flows Sauro Succi. Incompressible flows.

Explicit/Implicit

Page 43: Incompressible Flows Sauro Succi. Incompressible flows.

Boundary conditions

Spherical cows! ?

Page 44: Incompressible Flows Sauro Succi. Incompressible flows.

Boundary Conditions: Dirichlet

Page 45: Incompressible Flows Sauro Succi. Incompressible flows.

Boundary Conditions: Neumann

Page 46: Incompressible Flows Sauro Succi. Incompressible flows.

One-sided derivatives

Page 47: Incompressible Flows Sauro Succi. Incompressible flows.

End of Lecture

Page 48: Incompressible Flows Sauro Succi. Incompressible flows.

Colocated: Hourglass instability

Page 49: Incompressible Flows Sauro Succi. Incompressible flows.

Colocated

Simple, economic > complex geos

Hourglass, VP uncoupled

Page 50: Incompressible Flows Sauro Succi. Incompressible flows.

Incompressible/Compressible

Viscous/Inviscid

Steady/Unsteady

Navier-Stokes equations

Page 51: Incompressible Flows Sauro Succi. Incompressible flows.

Special features of NSE

Vector 3d Non-Linear

Non-local (incompressible)

Complex geos

Page 52: Incompressible Flows Sauro Succi. Incompressible flows.

Mathematical structure

3 explicit: soft and matrix-free. But … Incompressibility holds only at steady-state, OK if steady-state is the only target

Page 53: Incompressible Flows Sauro Succi. Incompressible flows.

Fully Explicit (AC)

Page 54: Incompressible Flows Sauro Succi. Incompressible flows.

nw ned

swsw

n

ew

s

P E

N

W

S

NE

SE

SW SE

Vertex-centered Colocated

Page 55: Incompressible Flows Sauro Succi. Incompressible flows.

Nonlinearly-Implicit

Nonlinear iterations, k=0,1,…