File Exchange

image thumbnail

yangyang14641/Cavit​yFlowInLBMInMATLAB

version 1.4.0.0 (4.62 MB) by Yang Yang
Simple Cavity Lid-driven flow D2Q9 LBM Solver

10 Downloads

Updated 12 Apr 2018

GitHub view license on GitHub

# CavityFlowInLBMInMATLAB
## :floppy_disk:Cavity Lid-driven flow in Lattice Boltzmann Method, MATLAB implementation.
> This repository is part of my undergraduate B.Eng. Thesis.
> I had written several codes for my B.Eng. Thesis, Including MATLAB codes for Lid-driven Flow and parallel Fortran codes to compute co-laminar flow with mass transfer.
> For the MATLAB codes, I designed three version of codes, one was implemented by for-loop while vectorization implemented others. My purpose is to show
> the running speed and the better way for MATLAB programming.
# MATLAB Program Instruction
## 1. LidDrivedFlowMain.m (the Main function, run this file and adjust computing parameters through this M-file)
## 2. initialfield.m (Subroutine to initial computing area)
## 3. f_eq.m (Subroutine to compute equilibrium​ distribution)
## 4. plotfunction.m (Plot computing result in the run-time)
## 5. RelativeErro.m (Computing Residuals)
## 6. FieldOutputs.m (Output the computing result in the runtime in the Tecplot format)

Cite As

Yang Yang (2019). yangyang14641/CavityFlowInLBMInMATLAB (https://www.github.com/yangyang14641/CavityFlowInLBMInMATLAB), GitHub. Retrieved .

Comments and Ratings (2)

Yang Yang

Dear Abdulaziz Arefaie,
These codes have no problem when running in MATLAB 9.3 (R2017b), and the HTML file shows these running results in MATLAB 9.3 (R2017b), it works pretty well. Maybe your Matlab version is lower than 9.3, and errors occur in the vectorization code, please check data form in the time evolution loop, and adjust it into a proper version, according to your Matlab version.

Dear
there is some error in the code.

the would not run!

Updates

1.4.0.0

Update the description.

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

LatticeBoltzmannMethod/LidDrivenFlow/FluidFlow/Loop

LatticeBoltzmannMethod/LidDrivenFlow/FluidFlow/UnitConversion

LatticeBoltzmannMethod/LidDrivenFlow/FluidFlow/Vectorization

LatticeBoltzmannMethod/LidDrivenFlow/FluidFlow/Loop

LatticeBoltzmannMethod/LidDrivenFlow/FluidFlow/UnitConversion

LatticeBoltzmannMethod/LidDrivenFlow/FluidFlow/Vectorization