File Exchange

## uFVM

version 1.55 (2.36 MB) by Mhamad Mahdi Alloush

### Mhamad Mahdi Alloush (view profile)

Learning the Finite Volume Method in CFD with MATLAB Programming

Updated 14 Feb 2020

uFVM is an academic CFD tool made for learning purposes. The main outcome of that is learning how to code the finite volume method. plenty of tutorials are available within the file that the user can easily follow and track. CFD cases can be prepared exactly as OpenFOAM files and simulated. The code aims at highlighting the basics of CFD, but not simulating complex cases. It provides a package of libraries and algorithms that the user can comfortably follow up. The code includes a toy post processing package for the visualization of the results. Refer to the quick guide provided in the files for more information on how to use the code.

Handling, distributing or modifying is fully permissible; the user has the full permission to add any piece of code or modify an existing one. The code is developed in the computational mechanics lab at the American University of Beirut, Beirut, Lebanon. The development has started in 2003 and was built and updated gradually through years. The team has decided to share this code (Actually a limited edition but nevertheless very interesting one) with the community. Lots of versions were made each of them had a different structure but necessarily the same theoretical background. The major contributor to the code is Professor Marwan Darwish, a CFD professor at AUB, and Mhamad Mahdi Alloush, a PhD candidate at AUB as well. The other contributors to the code are Master and PhD students who accomplished their theses and dissertations from the computational mechanics lab at the American University of Beirut.

CFD Group @ AUB

### Cite As

Tried following the example but got the following errors

Undefined function 'rms' for input arguments of type 'double'.

Error in cfdComputeScaledRMSResiduals (line 30)
rmsScaledResidual = rms(abs(bc)./(ac*p_scale));

Error in cfdPostAssembleContinuityEquation (line 13)
cfdComputeScaledRMSResiduals('p');

Error in cfdAssembleContinuityEquation (line 18)
cfdPostAssembleContinuityEquation;

Error in cfdAssembleAndCorrectContinuityEquation (line 19)
cfdAssembleContinuityEquation;

Error in cfdAssembleAndCorrectNSSystem (line 15)
cfdAssembleAndCorrectContinuityEquation;

Error in cfdRunFalseTransientCase (line 48)
cfdAssembleAndCorrectNSSystem;

Error in cfdRunCase (line 15)
cfdRunFalseTransientCase;

Error in cfdRun (line 21)
cfdRunCase;

xiaoqun wang

### xiaoqun wang (view profile)

Thank you very much！ It is very helpful！It would be perfect if there are functions for grid transformation such as fluent3DMeshToFoam~

### Ganesh kumar Badri narayan (view profile)

Can you please tell me on the list of toolbox required to run this code. Currently I have MATLAB, MATLAB coder, symbolic MATH toolbox.
When i tried running this code, It said the signal processing toolbox in missing in my lic.

Thank you

Regards
Ganesh

### Mhamad Mahdi Alloush (view profile)

Please refer to the youtube video to set the paths properly .. here's the link it is a tutorial on how to work with ufvm :-)

skywalker connor

### skywalker connor (view profile)

run tutorials\incompressible\elbow ----

Undefined function or variable 'setupTerm'。

theTerm = setupTerm(theTermName);%%connor del

error cfdDefineMomentumEquation (line 30)

Shaopeng Li

### Shaopeng Li (view profile)

efficient and covers everything. Very extensive and exhaustive

Ali Saleh

### Ali Saleh (view profile)

Thank you for sharing this valuable CFD resources. It facilitates much more solving and understanding CFD.

Hussein Daoud

### Mohammad Ali Fakih (view profile)

Amazing package! Thank you so much for sharing such a valuable source code! I'm sure it will make the lives of so many people much easier :-)!

Walid Abou Hweij

### Mhamad Mahdi Alloush (view profile)

We are always updating the app, so feel free to provide feedback!

 14 Feb 2020 1.55 Few Updates + Connected to github 6 Apr 2019 1.54 Updated user guide to include how to setup a customized flow simulation + made some fixes as per user requests 26 Mar 2019 1.53 More fixes as per users' feedback 24 Mar 2019 1.52 Bug Fixed - Related to Buoyancy 22 Mar 2019 1.51 Bug Fixed
##### MATLAB Release Compatibility
Created with R2016a
Compatible with any release
##### Platform Compatibility
Windows macOS Linux