MATLAB Code to solve the convection equation

版本 1.0.0 (55.4 KB) 作者: R Surya Narayan
MATLAB code to implement numerical solutions to the two dimensional convection equation using Finite Volume Method
634.0 次下载
更新时间 2020/4/14

查看许可证

This is a MATLAB code that solves the 2D convection equation using Finite Volume Method. Interpolation scheme used is a combination of Central Differencing and Upwind Interpolation and hence is called "Deferred Correction" scheme that uses a blending factor beta. Setting beta =1 uses the second order accurate central differencing while setting beta=0 uses first order accurate upwind differencing. Boundary conditions involve both Dirchlet and Neumann boundary conditions with the scalar field phi set to 1 along the north and 0 along the west, while the east and south boundaries are characterized by setting d(phi)/dx to zero on the west face and d(phi)/dy to zero on the south face. Different plots for the equations can be obtained by tweaking the blending factor.

引用格式

R Surya Narayan (2024). MATLAB Code to solve the convection equation (https://www.mathworks.com/matlabcentral/fileexchange/75001-matlab-code-to-solve-the-convection-equation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0