yangyang14641/CavityFlowInLBMInMATLAB
# 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 (2026). yangyang14641/CavityFlowInLBMInMATLAB (https://github.com/yangyang14641/CavityFlowInLBMInMATLAB), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Sciences > Physics > Fluid Dynamics >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.4.0.0 | Update the description. |
|
|
| 1.3.0.0 |
|
