46
Unified Spray, Foam and Bubbles for Particle-Based Fluids Markus Ihmsen et al. CGI 2012 Copyright of figures and other materials in the paper belongs original authors. Presented by MyungJin Choi 2013.06. 06 Computer Graphics @ Korea University

Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

Unified Spray, Foam and Bubbles for Particle-Based Fluids

Markus Ihmsen et al.CGI 2012

Copyright of figures and other materials in the paper belongs original authors.

Presented by MyungJin Choi

2013.06. 06

Computer Graphics @ Korea University

Page 2: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 2Computer Graphics @ Korea University

β€’ Basic Knowledge

β€’ Previous Works

β€’ Contribution

Introduction

Page 3: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 3Computer Graphics @ Korea University

Introduction: Basic Knowledge

Three Types of Approaches for Fluid

β€’ Eulerian

Focus on Space(Grid)

β€’ Lagrangian

Focus on Particle

β€’ Hybrid approach

Eulerian + Lagrangian

Page 4: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 4Computer Graphics @ Korea University

Introduction: Three Types of Approaches for Fluid

Eulerian Approach

β€’ Eulerian approach

Focus on change of each spaces(grid)

β€’ Grid-Based

Simulating Water and Smoke with an Octree Data StructureLosasso, F et al. / SIGGRAPH 2004

Fluid Animation with Dynamic MeshesKlingner, B et al. / SIGGRAPH 2006

Efficient Simulation of Large Bodies of Water by Coupling Two and Three Dimensional Techniques

Irving, G et al. / SIGGRAPH 2006

Real-Time Eulerian Water Simulation Using a Restricted Tall Cell GridChentanez, N et al. / SIGGRAPH 2011

Page 5: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 5Computer Graphics @ Korea University

Introduction: Three Types of Approaches for Fluid

Lagrangian Approach

β€’ Lagrangian approach

Focus on change of each particles

β€’ Particle-Based

Two-Scale Particle SimulationSolenthaler, B et al. / SIGGRAPH 2011

Page 6: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 6Computer Graphics @ Korea University

Introduction: Three Types of Approaches for Fluid

Hybrid Approach

β€’ Hybrid approach

Eulerian(Grid) + Lagrangian(Particle)

β€’ Pressure value can be modified by Eulerian methods

Hybrid Smoothed Particle HydrodynamicsRaveendran, K et al./ SIGGRAPH 2011

Page 7: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 7Computer Graphics @ Korea University

Introduction: Previous Works

Grid-Based

β€’ Using two types of gridβ€’ Not real-time simulation

Animation of Open Water Phenomena with Coupled ShallowWater and Free Surface SimulationsThurey, N. et al. / SIGGRAPH 2006

Two-way Coupled SPH and Particle Level Set Fluid SimulationLosasso, F. et al. / TVCG 2008

β€’ Using SPH and Particles Level-Set method

β€’ Unwanted noise with FLIP

Real-Time Eulerian Water Simulation Using a Restricted Tall Cell GridChentanez, N et al. / SIGGRAPH 2011

β€’ Real-time simulationβ€’ Not focus on detail feature

Page 8: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 8Computer Graphics @ Korea University

Introduction: Previous Works

Grid-Based

Realistic Animation of Fluid with Splash and FoamTakahashi, T. et al. / EUROGRAPHICS 2003

β€’ Numerical problemsβ€’ Restriction of time stepβ€’ Hypothetical model

Page 9: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 9Computer Graphics @ Korea University

Introduction: Previous Works

Particle-Based

β€’ Numerical problemsβ€’ Restriction of time stepβ€’ Hypothetical model

A Layered Particle-Based Fluid Model for Real-Time Rendering of WaterBagar, F. et al. / EGSR 2010

Page 10: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 10Computer Graphics @ Korea University

β€’ Grid-Based

Be restricted to their grid-based method

Can be lost more detail feature

Not considered other feature

β€’ Particle-Based

Does not distinguish between foam and fluid particles

Does not generate additional particles

Introduction: Previous Works

Weak Points of Previous Works

Page 11: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 11Computer Graphics @ Korea University

Introduction:

Contribution

β€’ Author propose a technique for adding diffuse material to Particle-Based fluid simulations

Not grid-based

β€’ Difference from other works

β€’ Can be used all particle methods

E.g. : WC SPH, PIC SPH, etc

Just relies on same type of material

β€’ Only water particle

Page 12: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 12Computer Graphics @ Korea University

β€’ Diffuse Material Overview

Formation of Diffuse Material

β€’ Advection and Dissolution Overview

Advection

Dissolution

Algorithm

Page 13: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 13Computer Graphics @ Korea University

β€’ How to classify diffuse material

Potential

β€’ How to determine the amount of diffuse material

Energy

β€’ How to determine property of diffuse particles

Sampling

Algorithm: Diffuse Material

Overview

Page 14: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 14Computer Graphics @ Korea University

β€’ Diffuse material means Foam, spray and bubble

It develops when the surface tension of water molecules is reduced and water mixes with air

Algorithm: Diffuse Material

How to classify diffuse materials

Page 15: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 15Computer Graphics @ Korea University

β€’ Remember below clamping function

It returns the value between 0 and 1

Algorithm: Diffuse Material

How to classify diffuse materials

I : input dataπœπ‘šπ‘Žπ‘₯ : user defined value πœπ‘šπ‘–π‘› : user defined value

𝛷 𝐼, πœπ‘šπ‘–π‘›, πœπ‘šπ‘Žπ‘₯ =min 𝐼, πœπ‘šπ‘Žπ‘₯ βˆ’min 𝐼, πœπ‘šπ‘–π‘›

πœπ‘šπ‘Žπ‘₯ βˆ’ πœπ‘šπ‘–π‘›

Page 16: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 16Computer Graphics @ Korea University

β€’ Trapped Air Air is trapped by impacts

β€’ E.g. : when the lip of a wave hits shallow water In this case air is dragged under water

In this regions have high turbulencesβ€’ To classify this regions the curl operator might

be good choice Because of turbulence

β€’ But, author proposes to use relative velocities Because of unintended result of curl operator

Algorithm: Diffuse Material

How to classify Trapped Air

Page 17: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 17Computer Graphics @ Korea University

β€’ The amount of trapped air is larger when fluid particles move towards each other It can be measured by below function

β€’ It has the value between 0 and 2

Algorithm: Diffuse Material

How to classify Trapped Air

1 βˆ’ 𝑣𝑖𝑗 βˆ™ π‘₯𝑖𝑗

( 𝑣𝑖𝑗 =𝑣𝑖 βˆ’π‘£π‘—

𝑣𝑖 βˆ’π‘£π‘—, π‘₯𝑖𝑗 =

π‘₯𝑖 βˆ’π‘₯𝑗

π‘₯𝑖 βˆ’π‘₯𝑗)

Page 18: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 18Computer Graphics @ Korea University

Algorithm: Diffuse Material

How to classify Trapped Air

i j

π‘₯𝑖𝑗

𝑣𝑖 𝑣𝑗

𝑣𝑖𝑗

Move away from each other

i j

π‘₯𝑖𝑗

𝑣𝑖 𝑣𝑗

𝑣𝑖𝑗

Move towards from each other

𝑣𝑖𝑗 π‘₯𝑖𝑗

𝑣𝑖𝑗 βˆ™ π‘₯𝑖𝑗 = -1

πœƒ = 2πœ‹

1 βˆ’ 𝑣𝑖𝑗 βˆ™ π‘₯𝑖𝑗 = 2

𝑣𝑖𝑗

π‘₯𝑖𝑗

𝑣𝑖𝑗 βˆ™ π‘₯𝑖𝑗 = 1

πœƒ = 0

1 βˆ’ 𝑣𝑖𝑗 βˆ™ π‘₯𝑖𝑗 = 0

Page 19: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 19Computer Graphics @ Korea University

β€’ The scaled velocity difference

β€’ The Potential of Trapped Air πΌπ‘‘π‘Ž

Algorithm: Diffuse Material

How to classify Trapped Air

𝑣𝑖𝑑𝑖𝑓𝑓

=

𝑗

𝑣𝑖𝑗 1 βˆ’ 𝑣𝑖𝑗 βˆ™ π‘₯𝑖𝑗 π‘Š(π‘₯𝑖𝑗 , β„Ž) ,

π‘Š π‘₯𝑖𝑗 , β„Ž = 1 βˆ’π‘₯𝑖𝑗

β„Ž, π‘₯𝑖𝑗 ≀ β„Ž

0 , π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’

πΌπ‘‘π‘Ž = 𝛷 𝑣𝑖𝑑𝑖𝑓𝑓

, πœπ‘šπ‘–π‘›, πœπ‘šπ‘Žπ‘₯ βˆ™ π‘Š(π‘₯𝑖𝑗 , β„Ž)

Page 20: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 20Computer Graphics @ Korea University

β€’ Wave Crest At the crest of a wave, whitewater is created

β€’ By strong wind or when the wave gets unstable

In this regions have high curvatureβ€’ Curvature is used to classify this regions

The surface is locally convex

Algorithm: Diffuse Material

How to classify Wave Crest

Page 21: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 21Computer Graphics @ Korea University

β€’ The surface curvature It can be approximated with below function

β€’ It has the value between 0 and 2

But it can’t distinguish convex from concave regions

β€’ The angles between 𝑛𝑖 and π‘₯𝑗𝑖(relative position)

Algorithm: Diffuse Material

How to classify Wave Crest

π‘˜π‘– =

𝑗

π‘˜π‘–π‘— =

𝑗

(1 βˆ’ 𝑛𝑖 βˆ™ 𝑛𝑗) βˆ™ π‘Š(π‘₯𝑖𝑗 , β„Ž)

𝑛: normalized surface normal

Page 22: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 22Computer Graphics @ Korea University

β€’ Wave Crest identifier π‘˜π‘–

Algorithm: Diffuse Material

How to classify Wave Crest

π‘˜π‘–π‘— = 0, π‘₯𝑗𝑖 βˆ™ 𝑛𝑖 β‰₯ 0

π‘˜π‘–π‘— π‘₯𝑗𝑖 βˆ™ 𝑛𝑖 < 0

π‘˜π‘– =

𝑗

π‘˜π‘–π‘—

Page 23: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 23Computer Graphics @ Korea University

β€’ But, all convex regions doesn’t generate diffuse materials Only the fluid particle moves in normal

β€’ Check this Using Additional function

Algorithm: Diffuse Material

How to classify Wave Crest

𝛿𝑖𝑣𝑛 =

0, 𝑣𝑖 βˆ™ 𝑛𝑖 < 0.61, 𝑣𝑖 βˆ™ 𝑛𝑖 β‰₯ 0.6

Page 24: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 24Computer Graphics @ Korea University

β€’ We finally gets the Potential of Wave Crest 𝐼𝑀𝑐

Algorithm: Diffuse Material

How to classify Wave Crest

𝐼𝑀𝑐 = 𝛷 π‘˜π‘– βˆ™ 𝛿𝑖𝑣𝑛, πœπ‘šπ‘–π‘›, πœπ‘šπ‘Žπ‘₯

π‘˜π‘– ∢ value for checking convex𝛿𝑖𝑣𝑛: value for checking move direction

Page 25: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 25Computer Graphics @ Korea University

β€’ When the surface tension is decrease, diffuse material is generated Using Weber number

β€’ But its exact computation requires to correctly model the change in surface tension

Because of this reason, kinetic energy is used

β€’ The kinetic energy πΌπ‘˜

Algorithm: Diffuse Material

How to determine the amount of diffuse material

πΌπ‘˜ = 𝛷 πΈπ‘˜,𝑖 , πœπ‘šπ‘–π‘›, πœπ‘šπ‘Žπ‘₯ ,

πΈπ‘˜,𝑖 = 0.5π‘šπ‘–π‘£π‘–2

Page 26: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 26Computer Graphics @ Korea University

β€’ The number of diffuse particles 𝑛𝑑 is

Algorithm: Diffuse Material

How to determine the amount of diffuse material

𝑛𝑑 = πΌπ‘˜(π‘˜π‘‘π‘ŽπΌπ‘‘π‘Ž + π‘˜π‘€π‘πΌπ‘€π‘)βˆ†π‘‘

πΌπ‘˜: kinetic energyπ‘˜π‘‘π‘Ž: maximum number of diffuse particles of trapped airπΌπ‘‘π‘Ž: potential of trapped airπ‘˜π‘€π‘: maximum number of diffuse particles of wave crestπΌπ‘‘π‘Ž: potential of wave crestβˆ†π‘‘: time step

Page 27: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 27Computer Graphics @ Korea University

β€’ Property has velocity and position

Generated diffuse particles have cylinder shape

Algorithm: Diffuse Material

How to determine property of diffuse particles

Page 28: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 28Computer Graphics @ Korea University

β€’ Position of diffuse particle π‘₯𝑑 is

β€’ Velocity of diffuse particle 𝑣𝑑 is

Algorithm: Diffuse Material

How to determine property of diffuse particles

π‘₯𝑑 = π‘₯ + π‘Ÿπ‘π‘œπ‘ πœƒπ‘’1β€² + π‘Ÿπ‘ π‘–π‘›πœƒπ‘’2

β€² + β„Ž 𝑣𝑓

π‘Ÿ = π‘Ÿπ‘‰ π‘‹π‘Ÿ , πœƒ = π‘‹πœƒ2πœ‹, β„Ž = π‘‹β„Ž βˆ™ βˆ†π‘‘π‘£π‘“

π‘‹π‘Ÿ, π‘‹πœƒ , π‘‹β„Ž ∈ 0. . 1 π‘Žπ‘›π‘‘ π‘‘β„Žπ‘’π‘¦ π‘Žπ‘Ÿπ‘’ π‘Ÿπ‘Žπ‘›π‘‘π‘œπ‘š π‘£π‘Žπ‘Ÿπ‘–π‘Žπ‘π‘™π‘’π‘ 

𝑣𝑑 = π‘Ÿπ‘π‘œπ‘ πœƒπ‘’1β€² + π‘Ÿπ‘ π‘–π‘›πœƒπ‘’2

β€² + 𝑣𝑓

Page 29: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 29Computer Graphics @ Korea University

β€’ Advection

Advection is about how to determine move of diffuse material

β€’ Dissolution

It is about when diffuse particles are destroyed

Algorithm: Advection and Dissolution

Overview

Page 30: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 30Computer Graphics @ Korea University

β€’ Diffuse material is influenced from water by their environment

In air, small influenced

On surface, medium influenced

In water, highly influenced

β€’ Three types of diffuse materials

Spray, foam and bubble

β€’ It is classified by their position

Algorithm: Advection

Classify type of diffuse materials

Page 31: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 31Computer Graphics @ Korea University

β€’ The type of diffuse materials can be determined by two method

The gradient of the density field

The number of neighbors

β€’ In author’s all experiments

Less than 6 neighbors are considered as spray

More than 20 neighbors are considered as bubbles

All other cases are considered as foam

Algorithm: Advection

Classify type of diffuse materials

Page 32: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 32Computer Graphics @ Korea University

β€’ Spray Assume that the motion of spray is influenced by

external force 𝐹𝑒π‘₯𝑑 and gravity 𝑔

Using Euler-Cromer method, the velocity of a spray particle is updated as

The position is updated as

Algorithm: Advection

The motion of diffuse materials

π‘£π‘ π‘π‘Ÿπ‘Žπ‘¦ 𝑑 + βˆ†π‘‘ = π‘£π‘ π‘π‘Ÿπ‘Žπ‘¦ 𝑑 + βˆ†π‘‘(𝐹𝑒π‘₯𝑑 𝑑

π‘š+ 𝑔)

π‘₯π‘ π‘π‘Ÿπ‘Žπ‘¦ 𝑑 + βˆ†π‘‘ = π‘₯π‘ π‘π‘Ÿπ‘Žπ‘¦ 𝑑 + βˆ†π‘‘π‘£π‘ π‘π‘Ÿπ‘Žπ‘¦ 𝑑 + βˆ†π‘‘

Page 33: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 33Computer Graphics @ Korea University

β€’ Foam Foam is purely advected according to the averaged

local fluid velocity

The position is updated as

Algorithm: Advection

The motion of diffuse materials

𝑉𝑓 𝑋𝑑 , 𝑑 + βˆ†π‘‘ = 𝑓𝑉𝑓 𝑑 + βˆ†π‘‘ 𝐾(𝑋𝑑 𝑑 βˆ’ 𝑋𝑓 𝑑 , β„Ž)

𝑓𝐾 𝑋𝑑 𝑑 βˆ’ 𝑋𝑓 𝑑 , β„Ž,

π‘₯π‘“π‘œπ‘Žπ‘š 𝑑 + βˆ†π‘‘ = π‘₯π‘“π‘œπ‘Žπ‘š 𝑑 + βˆ†π‘‘ 𝑉𝑓 𝑋𝑑, 𝑑 + βˆ†π‘‘

𝑉𝑓 𝑑 + βˆ†π‘‘ =𝑋𝑓 𝑑 + βˆ†π‘‘ βˆ’ 𝑋𝑓 𝑑

βˆ†π‘‘

f: fluid particlesd: diffuse particle

Page 34: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 34Computer Graphics @ Korea University

β€’ Bubble Bubble is advected according to the averaged local

fluid velocity

Bubble is governed by buoyancy

β€’ Due to high density contrast of water and air

β€’ Buoyancy counteracts gravity

The position is updated as

Algorithm: Advection

The motion of diffuse materials

𝑣𝑏𝑒𝑏 𝑑 + βˆ†π‘‘ = 𝑣𝑏𝑒𝑏 𝑑 + βˆ†π‘‘(βˆ’π‘˜π‘π‘” + π‘˜π‘‘ 𝑉𝑓 π‘₯𝑑, 𝑑 + βˆ†π‘‘ βˆ’ 𝑣𝑏𝑒𝑏 𝑑

βˆ†π‘‘)

π‘₯𝑏𝑒𝑏 𝑑 + βˆ†π‘‘ = π‘₯𝑏𝑒𝑏 𝑑 + βˆ†π‘‘π‘£π‘π‘’π‘ 𝑑 + βˆ†π‘‘

π‘˜π‘: user defined valueπ‘˜π‘‘: user defined value

Page 35: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 35Computer Graphics @ Korea University

β€’ Bubbles and spray doesn’t have life time

But if they becomes foam, have life time

β€’ Life time is predetermined value

β€’ Subtract time step form life time

β€’ Large clusters of foam are more stable

Set the life time in relation to the generation potentials

Algorithm: Dissolution

When diffuse particles are destroyed?

Page 36: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 36Computer Graphics @ Korea University

β€’ The color of diffuse particles is determined by two algorithm

Ray Casting

Alpha Blending

Rendering

Page 37: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 37Computer Graphics @ Korea University

β€’ Ray Casting

Eye ray is cast through the diffuse volume with direction πœ”

β€’ Bounded by an axis aligned bounding box

With start point π‘₯𝑠 and end point π‘₯𝑒 With equally spaced intervals βˆ†π‘₯

When ray reached to diffuse particle at point π‘₯, local volume density 𝜌 π‘₯ is computed

β€’ Finally, compute the radiance L

Rendering:

Ray Casting

Page 38: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 38Computer Graphics @ Korea University

β€’ The radiance L

It is in the range between zero and one

Rendering:

Ray Casting

𝐿 π‘₯, πœ” =

𝑖=0

𝑠

π‘’βˆ’πœŒ(𝑋𝑠+π‘–βˆ†π‘‹)πœβˆ†π‘‹,

𝑠 =π‘₯ βˆ’ π‘₯π‘ βˆ†π‘₯

, 𝜏 𝑖𝑠 π‘’π‘ π‘’π‘Ÿ 𝑑𝑒𝑓𝑖𝑛𝑒𝑑 π‘ π‘π‘Žπ‘™π‘’ π‘“π‘Žπ‘π‘‘π‘œπ‘Ÿ

Page 39: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 39Computer Graphics @ Korea University

β€’ Final color 𝐢𝑝 is

Rendering:

Alpha Blending

𝐢𝑝= (1-𝐿 π‘₯𝑒 , πœ” )𝐢𝑑 + 𝐿 π‘₯𝑒 , πœ” 𝐢𝑏

𝐢𝑑: color of diffuse material𝐢𝑏: color of background

Page 40: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 40Computer Graphics @ Korea University

β€’ Author simulates 4 scenarios

Wave, Tower, Ship, Lighthouse

In all scenarios, use follow user defined values

β€’ πœπ‘€π‘π‘šπ‘–π‘› = 2, πœπ‘€π‘

π‘šπ‘Žπ‘₯ = 8

β€’ πœπ‘‘π‘Žπ‘šπ‘–π‘› = 5, πœπ‘‘π‘Ž

π‘šπ‘Žπ‘₯ = 20

β€’ πœπ‘˜π‘šπ‘–π‘› = 5, πœπ‘˜

π‘šπ‘Žπ‘₯ = 50

Results

Page 41: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 41Computer Graphics @ Korea University

β€’ Wave

Results

Page 42: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 42Computer Graphics @ Korea University

β€’ Tower

Results

Page 43: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 43Computer Graphics @ Korea University

β€’ Ship

Results

Page 44: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 44Computer Graphics @ Korea University

β€’ Light house

Results

Page 45: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 45Computer Graphics @ Korea University

β€’ Timings and particle counts for the presented show cases

Wave: 5s per frame

Tower: 92s per frame

Ship: 31s per frame

Light house: 27s per frame

Results

Page 46: Unified Spray, Foam and Bubbles for Particle-Based Fluidskucg.korea.ac.kr/new/seminar/2013/ppt/ppt-2013-06-07.pdfEfficient Simulation of Large Bodies of Water by Coupling Two and Three

MyungJin Choi | 2013. 06. 07 | # 46Computer Graphics @ Korea University

β€’ Resulting in visually plausible, highly detailed flow patterns

β€’ The realism of fluid simulations is significantly improved especially for low resolution fluids

β€’ But this dose not conserve mass

Conclusion