Smoothed Particle Hydrodynamics Techniques for the Physics Based - - PowerPoint PPT Presentation

smoothed particle hydrodynamics
SMART_READER_LITE
LIVE PREVIEW

Smoothed Particle Hydrodynamics Techniques for the Physics Based - - PowerPoint PPT Presentation

Smoothed Particle Hydrodynamics Techniques for the Physics Based Simulation of Fluids and Solids Part 4 Data-driven / ML Techniques Dan Jan Barbara Matthias Koschier Bender Solenthaler Teschner Mo Moti tivati tion Substantial


slide-1
SLIDE 1
slide-2
SLIDE 2

Smoothed Particle Hydrodynamics

Techniques for the Physics Based Simulation of Fluids and Solids

Part 4 Data-driven / ML Techniques

Dan Koschier Jan Bender Barbara Solenthaler Matthias Teschner

slide-3
SLIDE 3

Eurographics19 Tutorial - SPH

  • Substantial improvements in speed, robustness, versatility…

3

Mo Moti tivati tion

Ihmsen et al. 2013 Horvath & Solenthaler 2013

Incompressibility Multi-scale simulations

  • Potential of data-driven approaches?

– PhysicsForest: Real-time SPH simulations – Deep Learning & Fluids: Related work and Outlook

  • Computation time
  • Trial & error, parameters
  • Data reuse
  • Edit & control simulations
slide-4
SLIDE 4

Eurographics19 Tutorial - SPH

Real-time prediction of fluids with Regression Forests

4

Ma Machine Learn rning based Simulati tions

Ladicky et al. 2015, Apagom AG

slide-5
SLIDE 5

Eurographics19 Tutorial - SPH 5

Ph Physics cs For

  • rest

Current State Next State

Sn Sn+1

Regression Model

Training Simulation training data

Data size: 165 scenes x 6s x 30fps x 1-6M particles

slide-6
SLIDE 6

Eurographics19 Tutorial - SPH 6

Ph Physics cs For

  • rest

Current State

Sn

Next State

Sn+1 Test

Regression Model

1) Regression method? 2) Input and output of regression? 3) Feature vector?

slide-7
SLIDE 7

Eurographics19 Tutorial - SPH 7

Ph Physics cs For

  • rest

Current State

Sn

Next State

Sn+1 Test

Regression Model

1) Regression method? 2) Input and output of regression? 3) Feature vector?

Regression Forest

[Breiman 2001]

slide-8
SLIDE 8

Eurographics19 Tutorial - SPH 8

Ph Physics cs For

  • rest

Current State

Sn

Next State

Sn+1 Test

Regression Model

1) Regression method? 2) Input and output of regression? 3) Feature vector?

Regression Forest

[Breiman 2001]

slide-9
SLIDE 9

Eurographics19 Tutorial - SPH 9

Le Lear arnin ing St Strat ategie ies

Naïve approach

Feature Vector Regression Advection Collision Detection

Standard Regression Pipeline Learn accelerations

  • > mimics standard SPH (no incompressibility)

Sn Sn+1

Learn velocity or acceleration? Problem: no self-correction possible

slide-10
SLIDE 10

Eurographics19 Tutorial - SPH 10

Le Lear arnin ing St Strat ategie ies

Correction approach

Feature Vector Regression Apply Correction

Correction from Advected States Learn velocity corrections

  • > mimics PBD (incompressibility)

Sn Sn+1 Advection External Forces Collision Detection Collision Detection

Learn acceleration corrections

  • > mimics PCISPH (incompressibility)
slide-11
SLIDE 11

Eurographics19 Tutorial - SPH 11

Fea Featur ure Vec e Vector

F

= { FR0 FR1 FR2 … FRk}

Rk

Regression Forest

[Breiman 2001]

Integral features: Flat-kernel sums of rectangular regions around particle

  • Regional forces and constraints
  • ver the set of boxes
  • Fast evaluation
  • Robust to small input deviations
  • Evaluation in constant time

(linear in number of particles)

1) Regression method? 2) Input and output of regression? 3) Feature vector?

slide-12
SLIDE 12

Eurographics19 Tutorial - SPH

  • Data size: 165 scenes x 6s x 30fps x 1-6M particles
  • Training: 4 days on 12 CPUs
  • Size of trained model: 40MB
  • Only use most discriminative features (pressure, compressibility)

12

Tr Training Data and Performance

1-1.5M particles in real-time

Ladicky et al. 2015

RegFluid Ground Truth

slide-13
SLIDE 13

Eurographics19 Tutorial - SPH 13

Var Varying ing M Mat ater erial P ial Proper perties ies

Feature Vector Regression Apply Correction Sn

Sn+1

Advection External Forces Collision Detection Collision Detection

  • Viscosity
  • Surface Tension
  • Static Friction
  • Adhesion
  • Drag
  • Vorticity Confinement

Ladicky et al. 2015

slide-14
SLIDE 14

Eurographics19 Tutorial - SPH 14

Re Real-ti time Simulati tions wi with th Ph Physics csFor

  • rests

Apagom AG

slide-15
SLIDE 15

Eurographics19 Tutorial - SPH

  • RegressionFluid: fast, but hand-crafted features
  • > Deep Learning (DL)
  • Using DL for fluids (physics) is largely unexplored!

15

Re Relate ted Wo Work

bet- al- (IOU) se- percep- SP-

Schenk & Fox 2018 Wiewel et al. 2019 Kim et al. 2019 Xie et al. 2018 Kim et al. 2019

Talk tomorrow 9:30 Talk tomorrow 10:00 Panel discussion CreativeAI tomorrow 9:30

slide-16
SLIDE 16

Eurographics19 Tutorial - SPH

  • PBF with a deep neural network
  • > can compute full analytical gradients (differentiable solver)
  • Two new layers: ConvSP for particle-particle interactions

ConvSDF for particle-object interaction

  • Robots interacting with liquids (learning parameters, control)

16

SPNe Nets - Smoothed Particle Ne Network for PBF

ApplyViscosity P V

X

+

t

ApplyForces

+

Gravity

X

t

SolveConstraints

SolvePressure SolveCohesion SolveSurfaceTension

+

SolveObjectCollisions

SolveConstraints

SolvePressure SolveCohesion SolveSurfaceTension

+

SolveObjectCollisions

SolveConstraints

SolvePressure SolveCohesion SolveSurfaceTension

+

SolveObjectCollisions

  • X

1 t ConvSP

Positions Features

ConvSP

Positions Features

1

X

  • (t)(λv)

ρ0

X

+

P’ V’

Schenk & Fox 2018

slide-17
SLIDE 17

Eurographics19 Tutorial - SPH 17

La Latent Sp Space Physics – Learning Te Temporal Evolution

  • LSTM network to predict changes of pressure field over time (3D + time) within the

latent space

  • Uses a history of 6 steps to infer next [1…x] steps, followed by a regular sim step
  • 155x speed-up

Wiewel et al. 2019

Talk tomorrow 10:00

slide-18
SLIDE 18

Eurographics19 Tutorial - SPH 18

𝒗

𝐝

G†(𝐯)

G(𝒅) ෝ 𝒗𝒅

𝐝 = 𝐴 𝒒 Unsupervised Supervised

E G

De DeepFl Fluids: : Gen ener erati tive e Net Net for Paramet meter erized zed Si Simulation

Simulation Data

Input Parameters

source position inflow speed … time

  • Input parameterizable data set
  • Generative network with supervised training
  • Latent space time integration network
  • >1300x compression, >700x speed-up, trained model 30MB

Kim 2019

Talk tomorrow 9:30

slide-19
SLIDE 19

Eurographics19 Tutorial - SPH 19

Te TempoGAN - Su Superresolu

  • lution

ion Fl Flui uids ds

training that the solutions. en a long- such details costs and time scales. simulations typically based the under- algorithm not require ver time.

  • lumetric

that infer-

𝑦𝑏 𝑦𝑢−1 𝑦𝑢

𝑦𝑢+1 𝑧𝑢−1 𝑧𝑢 𝑧𝑢+1

𝐻(𝑦𝑢−1) 𝐻(𝑦𝑢) 𝐻(𝑦𝑢+1)

𝑧𝑏 𝐻(𝑦𝑏) Xie et al. 2018

  • Infer high-resolution details
  • Generator, guided during training by two discriminator networks (space and time)
  • Training data: low- and high-res density pairs (density, velocity, vorticity)
slide-20
SLIDE 20

Eurographics19 Tutorial - SPH

  • Transfer low- and high-level style features from images to 4D fluid data
  • Structurally and temporally coherent
  • Pre-trained networks on images, 3d reconstruction

20

Fl FlowStyle – Ne Neural Stylization of Flows

slide-21
SLIDE 21

Eurographics19 Tutorial - SPH 21

Pot Potential and and Ch Challenges of

  • f Da

Data-dr driv iven en Fl Flui uids ds

What are the challenges? Loads of data (expensive, lack of data sets), training time / re-training, visual quality (memory limitations), 4D data, network architecture and parameters Use DL as a black box? No; synergistic combination of mathematical models and data What is the potential of data-driven simulations? Computational speed, data compression, novel applications: quick simulation previews, interpolation of simulations, image-based modeling and control... Unexplored area Exciting research, triggers research and collaborations across disciplines