Numerical Simulation of Fluids NuSiF Free Boundary Value Problems - - PowerPoint PPT Presentation

numerical simulation of fluids nusif
SMART_READER_LITE
LIVE PREVIEW

Numerical Simulation of Fluids NuSiF Free Boundary Value Problems - - PowerPoint PPT Presentation

Description and motivation Theory of operation Our implementation Visualization techniques Numerical Simulation of Fluids NuSiF Free Boundary Value Problems Daniel Brinkers, Florian Forster, Tobias Preclik Friedrich Alexander


slide-1
SLIDE 1

Description and motivation Theory of operation Our implementation Visualization techniques

Numerical Simulation of Fluids – NuSiF

„Free Boundary Value Problems“ Daniel Brinkers, Florian Forster, Tobias Preclik

Friedrich Alexander Universität Erlangen-Nürnberg

Numerical Simulation of Fluids, 2006-07-24 http://faui2k3.org/svn/nusif/

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-2
SLIDE 2

Description and motivation Theory of operation Our implementation Visualization techniques

Outline

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-3
SLIDE 3

Description and motivation Theory of operation Our implementation Visualization techniques

What are „Free Boundary Value Problems“

◮ Domain Ω has a shared boundary with another fluid ◮ This domain may change in time ◮ Many applications fall into this category

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-4
SLIDE 4

Description and motivation Theory of operation Our implementation Visualization techniques

Illustration of a „Free Boundary“

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-5
SLIDE 5

Description and motivation Theory of operation Our implementation Visualization techniques

Outline

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-6
SLIDE 6

Description and motivation Theory of operation Our implementation Visualization techniques

Devision of the domain

◮ The domain G is devided into three parts:

◮ The time-dependend fluid domain Ωt ◮ The obstacle domain H ◮ The empty domain G\{H ∪ Ωt}

◮ At each timestep, compute the shape of the fluid domain Ωt ◮ Cells which touch the empty domain are considered to be

„Surface Cells“ and are handled separately

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-7
SLIDE 7

Description and motivation Theory of operation Our implementation Visualization techniques

Tracing the domain

◮ Need to track the shape of the fluid domain Ωt. ◮ Done using (many!) particles: About 3 × 3 or 4 × 4

particles per cell.

◮ The only extension to the basic solver is the handling of the

surface cells

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-8
SLIDE 8

Description and motivation Theory of operation Our implementation Visualization techniques

Cells with one empty neighbor

◮ Velocity on the free boundary calculated using the

continuity equation, e.g. on a north boundary: vi,j = vi,j−1 − δx δy (ui,j − ui−1,j)

◮ Pressure approximated by:

pi,j = 2 Re vi,j − vi,j−1 δx

◮ Many values in the empty domain have to be calculated,

too

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-9
SLIDE 9

Description and motivation Theory of operation Our implementation Visualization techniques

Other cell combinations

◮ Corner-cells can be handled okay ◮ Other cells cannot satisfy the boundary conditions ◮ Such cells are only moved by the „body forces“, e.g. gravity

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-10
SLIDE 10

Description and motivation Theory of operation Our implementation Visualization techniques

Outline

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-11
SLIDE 11

Description and motivation Theory of operation Our implementation Visualization techniques

Working parts

◮ The „easy“ surface cells are all calculated correctly, so in

general it works

◮ Arbitrary geometries can be handled

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-12
SLIDE 12

Description and motivation Theory of operation Our implementation Visualization techniques

Current/unsolved problems

◮ „Flying-Super-Cells“1: Sometimes a NES- and a NSW-cell

fly horizontally through the domain

◮ Visualization troublesome

1I like that term ;) Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-13
SLIDE 13

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Outline

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-14
SLIDE 14

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

LIC (line integral convolution)

◮ Visualize vector field ◮ Use random texture (white noise) ◮ Sum up colors along streamlines ◮ High correlation between two neighbour pixels on a

streamline

◮ Downside: Many calculations

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-15
SLIDE 15

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Ibfv (image based flow visualization)

◮ Uses graphic hardware (OpenGL) ◮ Random texture is drawn on a plane ◮ Movement is done by shaping the plane ◮ New random texture is blended in every frame ◮ Result is animated ◮ http://www.win.tue.nl/~vanwijk/ibfv/

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-16
SLIDE 16

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

freesurface flows

◮ Obstacle cells are colored black ◮ Empty cells are colored white ◮ Interior cells are moved and blended ◮ Surface cells are just moved

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-17
SLIDE 17

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Illustration of LIC/IBFV

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-18
SLIDE 18

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Surface Reconstruction

◮ Iterate along fluid boundaries ◮ Use fluid particles as polygon vertices ◮ Eliminate degenerations and tiny

polygons

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-19
SLIDE 19

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Triangle Mesh Extraction

◮ Extrude fluid polygons ◮ Triangulate fluid polygons for front and back face ◮ Export as a povray scene description

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-20
SLIDE 20

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Final Rendering

◮ Raytrace each frame ◮ Sleep a night or two ◮ Wait staring at

screen

◮ Encode video

Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF

slide-21
SLIDE 21

Description and motivation Theory of operation Our implementation Visualization techniques Image based flow visualization Raytracing Polygon extraction Povray and „blob“s

Using Povray and „blob“s

◮ Add one sphere per fluid cell and let Povray2 merge the

„drops“

◮ Very easy to implement ◮ Fast ◮ Quite coarse

2http://www.povray.org/ Daniel Brinkers, Florian Forster, Tobias Preclik Numerical Simulation of Fluids – NuSiF