28
Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

  • View
    212

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Evolving Sub-Grid Turbulence for Smoke Animation

Hagit Schechter

Robert Bridson

SCA 08

Page 2: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

The Challenge

licensed under Creative Commons

Page 3: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

The Goal

Scalability Speed Realism

Page 4: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Related Work

Kolmogorov spectrum Stam and Fiume 1993 Neyret 2003 Kim, Thürey, James, and Gross 2008

Vorticity confinement, Vortex particles Fedkiw, Stam, and Jensen 2001 Selle, Rasmussen, and Fedkiw 2005 Park and Kim 2005

Page 5: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Contributions

Multi-scale evolution of turbulent energy (K-Epsilon, Kolmogorov)

Turbulence procedure suitable to run on a GPU (parallelized trivially)

Reduced numerical dissipation of angular momentum

Page 6: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Talk Overview

Turbulence model Method overview Large-scale simulation Small-scale simulation Results

Page 7: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Turbulence model

Method overview

Large-scale simulation

Small-scale simulation

Results

Page 8: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Related Work (Physics)

Kolmogorov model Richardson, 1922 Kolmogorov, 1941, 1942

K-Epsilon model Davidov, 1961 Harlow and Nakayama, 1968 Hanjalic, 1970 Jones and Launder, 1972 Launder and Sharma, 1974

Page 9: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Decomposition of Turbulent Flow

sl UUU

Large-scale flow Sub-grid turbulence flow

Page 10: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

forces viscous

forces inertial

/Re

LV

L

V ss

1l 3l2l

Kolmogorov model:

Kinetic energy is transported from largest scale to smaller and smaller scales and is dissipated to heat in the smallest scales

Energy Cascade

Page 11: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

k

tD

kD

k

T

The K-Epsilon Model

Viscous

forces

Gained from

large-scale

Dissipation at

smallest scale

We use simplified viscosity term kApply K-Epsilon to all turbulent scales

Our turbulence model:

)()()( bbP

b kkk

Page 12: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

In space

Across scales

2D Energy Transport Model

Page 13: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Turbulence model

Method overview

Large-scale simulation

Small-scale simulation

Results

Page 14: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Method Overview

Large-scale flow Add forces Advect Project Output velocities

Turbulence properties Evaluate Transport Output properties

Large-scale simulation Small-scale simulation

Small-scale flow Read turbulence

properties Apply them to generate

small-scale velocities

Synthesize Read large-scale

velocities Synthesize velocities Advance particles

Page 15: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Turbulence model

Method overview

Large-scale simulation

Small-scale simulation

Results

Page 16: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Navier-Stokes

0

11)(

u

fPuut

u

Dt

uD

Buoyancy forces

gsCTTCb sambT

Large-Scale Simulation

temperature gravity

FLIP: MAC grid plus particles for advection

Page 17: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Turbulence Properties

)(bijkE

Evaluate, advect, and transport

For every turbulence scale

On every timestep

turbulent energy density

Page 18: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

)()1(

)(

)(1,,

)(1,,

)(,1,

)(,1,

)(,,1

)(,,1

)()(

6bijk

bijk

bijk

bkji

bkji

bkji

bkji

bkji

bkji

bijk

bijk

EtEt

Et

EEEEEEt

EE

Previous step

energy

Viscous forces

Gain from

larger scale

Loss to

smaller scale

Transport Turbulence Properties

k

tD

kD

k

TK-Epsilon

equation

Page 19: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Preserving Angular Momentum

Advection Projection

The problem: numerical dissipation (time-split)

Page 20: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

13

1~ nnnpredicted vvvv

Our solution: time-split predictor

Advect+predict Projection

Page 21: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Turbulence model

Method overview

Large-scale simulation

Small-scale simulation

Results

Page 22: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Small-Scale Simulation

Perlin 1985, 2002

321 ,,,

3,2,1,,

txv

itxNtx ii Bridson et al 2007

Perlin and Neyret 2001

Our model: Turbulence driven Curl-Noise to generate small-scale flow Synthesize with large-scale flow

Page 23: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

2. Compute small-scale velocity for every particle

Initialize: Plant marker particles

On Every time-step:

The Procedure

1. Rotate basis vectors for every turbulence scale

Time coherence: turbulence driven vorticity

Turbulence driven Curl-Noise

)(bijkE

Page 24: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Synthesize

),(),(),( txutxutxu sl

Small-scale algorithm can be trivially parallelized to run on a GPU !

Update positions

Page 25: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Results

Page 26: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

To Summarize

Capture the time evolution of turbulence Combine coarse grid simulation with

procedural method that is suitable to run on a GPU

Detail level is tunable and scalable

Page 27: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

Acknowledgements

Natural Sciences and Engineering Research Council of Canada, BC Innovation Council, and Precarn Incorporated

Page 28: Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08

The End

Questions?