yangyang14641/Cavit​yFlowInLBMInMATLAB

Simple Cavity Lid-driven flow D2Q9 LBM Solver

https://github.com/yangyang14641/CavityFlowInLBMInMATLAB

You are now following this Submission

# 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 .

Categories

Find more on Fluid Dynamics in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.4.0.0

Update the description.

1.3.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.