materials - uniwersytet wrocławskimaq/zajecia/cfd2015/cfd... · – fhp + fluid flow problem...

72
Materials: Droz, Chopard (book) FHP paper (print)

Upload: others

Post on 11-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

● Materials:– Droz, Chopard (book)

– FHP paper (print)

Page 2: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Computer simulations of fluid dynamics

Maciej Matyka

Lecture 2: HPP, FHP Models

Page 3: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Announcement

● Today's class:

12:15, 518 ***be there***

Page 4: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

FHP model (cellular automata)

By Lucas Camposhttp://youtu.be/0xlRPnQGSXg

LatticeGasCUDA.mp4

Page 5: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Poll results● CFD 4/10● People know math well● Connection to fluid dynamics is loose● One person knows ~Navier-Stokes eqs.● Archimedes Law is more or less known● Visualization software is not known (Mathematica, Gnuplot,

Python ?)– 1 VisIt

● Motivations: various, from nothing, coupled fluid-DEM solvers to general „want to learn fluid solvers”

Page 6: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture goal

● In: I don't know what CFD is, and I have no idea how to write simple fluid solver.

● Out: I know how to write fluid solver using CFD, techniques, I know a few methods, I know how they work and what they are capable of. I know how to use visualization tool(s), I have two codes ready to use (written by myself). I know there are more sophisticated methods and software around that I can use for more complicated problems.

Page 7: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – Lecture cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 CFD in Wrocław, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 8: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 CFD in Wrocław, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 9: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 „CFD in Wrocław”, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 10: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 „CFD in Wrocław”, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 11: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 „CFD in Wrocław”, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 12: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 „CFD in Wrocław”, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 13: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 „CFD in Wrocław”, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 14: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lecture list● 1 Motivation (part 1): Fluid dynamics, Turbulence, 24.02● 2 Lattice Gas automata (our work, technical): FHP5 (Diffusion), HPP, FHP models, part 1, 3.03● 3 Lattice Gas automata (technical, review): FHP, review, part 2, 10.03

(17.03 – class cancelled)● 4 Motivation (part 2): Review fluid dynamics & effects (24.03)

5 „CFD in Wrocław”, Workshop, 31 – double lecture ( 9:30 – 14:00 )● 6 … Navier-Stokes equations (origin, math, analytics, millenium problem)● 7 … Motivation, Navier-Stokes solvers: review● 8 … Classification of PDE + solutions (Waves, Laplace, Poisson, Finite Differences) ● 9 … Motivation,The MAC Method (Finite Difference scheme + review)● 10 … The MAC Method (Free surfaces, markers, boundary conditions)● 11 … The MAC Method (Implementation) ● 12 … Finite Volume Methods (Overview, discretization, Algorithms, SIMPLE(R))● 14 … Motivation, Smoothed Particle Hydrodynamics (SPH), Review, Theory Implementation● 15 … Motivation, LBM , Review, Theory Implementation● 16 … Motivation, Software: Paraview, VisIT, OpenFOAM, Palabos, Sailfish etc. (Review)

Page 15: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

CFD in Wrocław

● 31. March, Room: ?, M. Borna 9

Page 16: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

● 5 speakers● 4 hours● What, who, where? (CFD in Wrocław)● 1st event of this kind here!● UWr, PIG, PWr, Vratis

Page 17: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Organization:– Maciej Matyka, Jarosław Gołembiewski (WfiA, UWr)

– Ziemowit Malecha (Pwr)

– Andrzej Kosior (Pwr, Vratis)

Page 18: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

CFD Course details

● 6 ECTS● 165 hours (60 lecture + class)● That gives 105 hours of self study● 7 hours / week● 1 working day each week for CFD course (!)

Page 19: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Classes Projects

● 1st project: – FHP + fluid flow problem (solution + report)

Deadline 1: 23. March (working prototype)

Deadline 2: 13. April (hydrodynamics + report)

● 2nd project:– One of: MAC, SIMPLE, LBM, SPH

– fluid flow problem (solution + report)

Deadline: 8. June (report)

● Presentations (visits):

Date: 9. June ( 15 minutes: aim, solver, tech, results)

Page 20: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Exam

● Oral exam, 16th June, 9am, 521● With report @ hand (detailed questions)

Page 21: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Today

● Lattice Gas Methods

Page 22: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

CFD Methods

• Navier–Stokes Equations (NSE)– Finite Difference Method (FDM)– Finite Volume Method (FVM)– Finite Element Method (FEM)

• Smoothed Particle Hydrodynamics (SPH)• Dissipative Particle Dynamics (DPD)• The Lattice Boltzmann Method (LBM)• Lattice Gas Automata (LGA)• Molecular Dynamics (MD)

Macroscale (continuum)

Microscale (atoms)

Page 23: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

CFD Methods

• Navier–Stokes Equations (NSE)– Finite Difference Method (FDM)– Finite Volume Method (FVM)– Finite Element Method (FEM)

• Smoothed Particle Hydrodynamics (SPH)• Dissipative Particle Dynamics (DPD)• The Lattice Boltzmann Method (LBM)• Lattice Gas Automata (LGA)• Molecular Dynamics (MD)

Macroscale (continuum)

Microscale (atoms)

Page 24: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Navier-Stokes equations

Page 25: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Molecular dynamics (interactions)

Too many atoms required…

Page 26: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

CFD Methods

• Navier–Stokes Equations (NSE)– Finite Difference Method (FDM)– Finite Volume Method (FVM)– Finite Element Method (FEM)

• Smoothed Particle Hydrodynamics (SPH)• Dissipative Particle Dynamics (DPD)• The Lattice Boltzmann Method (LBM)• Lattice Gas Automata, HPP, FHP (LGA)• Molecular Dynamics (MD)

Macroscale (continuum)

Microscale (atoms)

Page 27: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Metody CFD

• Navier–Stokes Equations (NSE)– Finite Difference Method (FDM)– Finite Volume Method (FVM)– Finite Element Method (FEM)

• Smoothed Particle Hydrodynamics (SPH)• Dissipative Particle Dynamics (DPD)• The Lattice Boltzmann Method (LBM)• Lattice Gas Automata, HPP, FHP (LGA)• Molecular Dynamics (MD)

Lecture 2

Page 28: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Lagrangian and Eulerian description ofFluids.

(movie MIT B&W)

Page 29: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

turning point :)

Page 30: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics
Page 31: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Our work (2007 paper, J. Appl. Phys.)

● Use of FHP in research

● Applications in building materials

● Simple model yet complex analysis (anomalous diffusion)

● Our early work in CFD area

● Fired-clay brick saturation

http://www.nexus.globalquakemodel.org/gem-building-taxonomy/overview/glossary/fired-clay-solid-bricks--clbrs

Page 32: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

(** fig Świerk **)

Page 33: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics
Page 34: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

- Profiles do not collapse into one curve with ^ 0.5 scaling

- They represent process faster than diffusion

Page 35: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Problem

Page 36: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

(ang. moisture → pol. wilgoć)

Page 37: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Our questions: is the process diffusive with changing C? Hydrodynamics?

Page 38: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics
Page 39: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

- study concentration front dynamics

- scatterers

- time evolution (LGA)

Page 40: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

- LGA (here FHP5) rules- Steps:

1. Propagation.2. Collisions.

Brief description of the model

Page 41: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Collision with scatterers

Page 42: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

C front propagation

time

Page 43: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Concentration profiles

Matyka, M. and Koza, Z., Spreading of a density front in the Kuentz-Lavallee model of porous media, J. Phys. D: Appl. Phys. 40, 4078-4083 (2007)

Page 44: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Concentration profiles

Matyka, M. and Koza, Z., Spreading of a density front in the Kuentz-Lavallee model of porous media, J. Phys. D: Appl. Phys. 40, 4078-4083 (2007)

Page 45: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

(shortcut)

Matyka, M. and Koza, Z., Spreading of a density front in the Kuentz-Lavallee model of porous media, J. Phys. D: Appl. Phys. 40, 4078-4083 (2007)

Page 46: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics
Page 47: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Metody CFD

• Navier–Stokes Equations (NSE)– Finite Difference Method (FDM)– Finite Volume Method (FVM)– Finite Element Method (FEM)

• Smoothed Particle Hydrodynamics (SPH)• Dissipative Particle Dynamics (DPD)• The Lattice Boltzmann Method (LBM)• Lattice Gas Automata, HPP, FHP (LGA)• Molecular Dynamics (MD)

Page 48: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

HPP gas model

● Gas of interacting particles

● Momentum conservation (collisions)

● Mass conservation

● Ballistic motion inbetween collisions

Page 49: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Cellular Automata● Wolfram rules

● Game of Lifehttps://www.google.pl/search?q=cellular+automata+sand ----- +wikipedia, GameOfLife

Sandmodel

Page 50: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

HPP in physics

(137 citations at pra.aps.org)

Page 51: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Review

● Chopard B., Droz. M. Cellular automata of physical systems, Cambridge University Press, 1998

(show printed)

Page 52: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Discrete lattice & velocities

1 particle traveling towards node from a given direction

Page 53: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Microscopic HPP rules

Ballistic motion

Collision 1

Collision 2

Page 54: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Basics HPP

● Two dimensional lattice (discrete)

● 1 particle from one direction gives 4 bit information at a node

s(r,t) = (1011) s(r,t) = (1000) s(r,t) = (0110)

● 4 bits is a number 0-16

Page 55: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Byte code

Page 56: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

HPP Algorithm

● Collision step

● Translation stepballistic motion along discrete velocity vectors

1010 → 0101

0101 → 1010

Page 57: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model HPP - zjawisko rozchodzenia się fali gęstości

( Animacja?)

Page 58: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

HPP (simularion + u field)

HPP liquid simulation.mp4

http://youtu.be/0ZWIwehGmOg

Page 59: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Results HPP

( program WINDOWS)

Page 60: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Wyniki HPP

problemy

Page 61: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model HPP – problem (symmetry)

Page 62: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model HPP – problem (symmetry)

Page 63: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model HPP - zjawisko rozchodzenia się fali gęstości

Page 64: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model FHP

(1198 cytowań wg prl.aps.org)

(2748 wg google scholar)

Page 65: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model FHP

● Wprowadzenie sieci trójkątnej

Page 66: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Model FHP

● Wprowadzenie sieci trójkątnej

Page 67: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

FHP models vary

Different collision set:

● FHP I, II, III● FHP5 (+ rest particle)● Collision number affects model viscosity

James Maxwell Buick (1997), Lattice Boltzmann Methods in Interfacial Wave Modelling. PhD Thesis, University of Edinburgh.

Page 68: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

Boundaries

James Maxwell Buick (1997), Lattice Boltzmann Methods in Interfacial Wave Modelling. PhD Thesis, University of Edinburgh.

Page 69: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

HPP, a FHP

● Sebastian Szczecina, Własności hydrodynamiczne modelu gazu sieciowego FHP-III, Praca Magisterska 2008

Page 70: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

FHP cellular automata.mp4

http://youtu.be/MuJr69IVvggSamo Kralj

Page 71: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

FHP (CUDA)

By Lucas Camposhttp://youtu.be/0xlRPnQGSXg

LatticeGasCUDA.mp4

Page 72: Materials - Uniwersytet Wrocławskimaq/zajecia/cfd2015/CFD... · – FHP + fluid flow problem (solution + report) Deadline 1: 23. March (working prototype) Deadline 2: 13. April (hydrodynamics

next week 10.03.2015:

- FHP implementation details- applications of FHP (review)

End of part 1