Skip to content

C implementation of the classical lattice Boltzmann method (LBM) using the D2Q9 and D3Q19 models

License

Notifications You must be signed in to change notification settings

NablaCFD/LBM-classic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classical Lattice Boltzmann Method (LBM)

Add by Qiang

  • See the video, which is based on this code.

C implementation of the classical lattice Boltzmann method (LBM) using the D2Q9 and D3Q19 models, based on Nils Thuerey's PhD thesis (see Ref. 1).

Compiling and running the C code:

  • Windows: Visual Studio project files are provided in the vcproj folder (standalone test and demonstration files) and the vcproj_mlink and vcproj_wstp folders (Mathematica MathLink/WSTP interface)
  • Linux, MacOSX etc: see the makefiles in the bin folder (standalone test and demonstration files) and the mlink folder (Mathematica MathLink/WSTP interface)

The Mathematica .cdf (computable document format) demonstration files in the test folder can be viewed with the free CDF Player or opened and edited with Mathematica.

License

Copyright (c) 2014, Christian B. Mendl
All rights reserved.
http://christian.mendl.net

This program is free software; you can redistribute it and/or modify it under the terms of the Simplified BSD License http://www.opensource.org/licenses/bsd-license.php

References

  1. Nils Thuerey
    Physically based animation of free surface flows with the lattice Boltzmann method
    PhD thesis, University of Erlangen-Nuremberg (2007) [pdf]
  2. Sauro Succi
    The lattice Boltzmann equation for fluid dynamics and beyond
    Oxford University Press, ISBN 0198503989 (2001)

About

C implementation of the classical lattice Boltzmann method (LBM) using the D2Q9 and D3Q19 models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Mathematica 89.0%
  • C 10.2%
  • Other 0.8%