The lattice Boltzmann method in 25 lines of MATLAB code (LBM)

버전 1.0.0.0 (5.62 KB) 작성자: Seb
Here is two m-files showing the simplicity of LBM. A view of the density distributions is provided.
다운로드 수: 3K
업데이트 날짜: 2014/10/14

라이선스 보기

When "LBM_25_LINES.m" is started, the LBM solves the flow field in a "pseudo-porous" geometry with periodic boundary condition. A perturbation to the velocity field in the x-direction is applied so that the flow moves from the left to the right side of the computational domain.
When "LBM_VIEW.m" is started, the m-file script shows all LBM process at the mesoscopic level. At each time step, the collision, the bounce-back and the streaming step are showed with details and at the same time the macroscopic velocity field is plotted.

Note that these two m-files are not research code! Although, they might be use as a starting point.

Overall, I believe that these two m-files may be of a good addition for a general audience scientific presentation.

Enjoy!

If interested, my scientific publications may be found there:
http://scholar.google.ca/citations?user=_wUUbqwAAAAJ&hl=en

인용 양식

Seb (2024). The lattice Boltzmann method in 25 lines of MATLAB code (LBM) (https://www.mathworks.com/matlabcentral/fileexchange/48103-the-lattice-boltzmann-method-in-25-lines-of-matlab-code-lbm), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Computational Geometry에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

LBM_25_LINES_AND_VIEW/

LBM_25_LINES_AND_VIEW/distFig/

버전 게시됨 릴리스 정보
1.0.0.0