4.9375

4.9 | 16 ratings Rate this file 195 downloads (last 30 days) File Size: 1.55 MB File ID: #10626

Navier-Stokes Solver (Navier2d)

by Darren Engwirda

 

04 Apr 2006 (Updated 09 May 2006)

No BSD License  

A 2D, unstructured mesh Navier-Stokes solver

Download Now | Watch this File

File Information
Description

The motion of incompressible fluids are simulated via a solution of the Navier-Stokes equations.  
 
General 2D domains and flow conditions are supported through the use of unstructured meshes.  
 
A GUI is used, allowing for easy problem specification.  
 
Setting up CFD simulations is non-trivial and a *.pdf readme file is included which contains some examples.  
 
Look at "readme.pdf"  
 
A windows and non-windows version is included, although the non-windows version is significantly slower (no mex files...). If you have the MATLAB compiler this can be fixed.  
 
Two example meshes are included, but you will need a mesh generator for general domains. My mesh generator can be downloaded at:  
 
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=10307&objectType=FILE  
 
It should also be possible to use other mesh generators.  
 
THIS SOFTWARE IS DISTRIBUTED UNDER THE GNU GPL.  
 
UPDATE 22/04/2006 - Major improvements  
- A new module for thermal flows  
- A new module to calculate lift/drag forces  
- Better boundary conditions  
- Much lower memory overhead  
- Faster  
 
UPDATE 04/05/2006 - Faster!  
- Reduced runtime & memory use  
- Better outflow BC's  
 
Some people have started to use Navier2d in real work, including the investigation of high lift wings and oscillatory channel flows.

MATLAB release MATLAB 6.5 (R13)
Zip File Content  
Other Files
Navier2d/Additional Examples.doc,
Navier2d/GNUlicense.txt,
Navier2d/Not windows/build_operators.m,
Navier2d/Not windows/cavity_benchmark.m,
Navier2d/Not windows/copyright.m,
Navier2d/Not windows/cylinder.mat,
Navier2d/Not windows/data_structure.m,
Navier2d/Not windows/Navier2d.m,
Navier2d/Not windows/square.mat,
Navier2d/Not windows/tvd_rk2.m,
Navier2d/readme.pdf,
Navier2d/Windows/build_operators.m,
Navier2d/Windows/cavity_benchmark.m,
Navier2d/Windows/copyright.m,
Navier2d/Windows/cylinder.mat,
Navier2d/Windows/data_structure.m,
Navier2d/Windows/LUsubs.c,
Navier2d/Windows/LUsubs.dll,
Navier2d/Windows/Navier2d.m,
Navier2d/Windows/smvp.c,
Navier2d/Windows/smvp.dll,
Navier2d/Windows/square.mat,
Navier2d/Windows/tvd_rk2.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (18)
27 Apr 2006 Juan García  
20 May 2006 Jack Ling  
11 Sep 2006 Naveen Gopinathrao  
28 Oct 2006 cheney Ho i'm wondering what's "idx"? i couldnot find it in MATLAB OR YOUR OWN CODES.  
where % Take triangles with A>tol  
t = t(abs(d12(:,1).*d13(:,2)-d12(:,2).*d13(:,1))>tol,:);  
t = idx(t); %%%%%%%%%%%%%
23 Nov 2006 Todd Lowe Excellent work--even more impressive to know this was for an undergrad thesis! As with any NS solver, use with care, but well done on the execution-end.  
 
Corresponsing mesh generator is fun as well.
31 Jan 2007 W. H. Brave Perfect work, easy to use, efficient...  
 
Would be great if it supports non-constants BC's too in the future.
21 Feb 2007 Svante Hellzén Good work,  
You mentioned to implement a boundary layer  
code too. I can suggest that you buy or borrow the D.C Wilocox book or the Tuncer Cebeci and Jean Coustex book: Modelling and computation of boundary layer flows.  
There you will find nice codes too study.  
22 Mar 2007 Shidrati Ali  
31 May 2007 B. J. Balakumar Wonderful work!
10 Aug 2007 Georges Vael Excellent work.
17 Oct 2007 B Davis This is awesome. Thank you! And please keep updating this!
06 Nov 2007 alvise benetazzo Great for an hydraulic engineer.
05 Mar 2008 Joey Liu it's really unbelieveable of your masterpiece. thank you for share.
08 Oct 2008 Stephen KANG  
22 Dec 2008 Shubham ITS NOT WORKING!!!!!!!!!!!! PLEASE HELP... 
hey i copied all the .m files in my current directory, and could even run the demo, by typing 'meshdemo' in the command line. 
But, as soon as I type 'navier2d' or 'Navier2D' or 'Navier2d', it says  
??? Undefined function or variable 'Navier2D'. 
Why is the file not running, please tell.. 
SHUBHAM SHARMA 
IIT R.
22 Dec 2008 Shubham  
22 Dec 2008 Shubham Hello everyone. 
Regarding the above post, it was my own fault that it was not working, it was me who somehow missed out copying on of the .m files provided, I apologise for that. 
And I am thankful for you, Mr. Darren Sir, for this wonderful thing. 
Best Regards, and wishes, 
Shubham Sharma.
29 Jun 2009 ricky martin  
Please login to add a comment or rating.
Updates
24 Apr 2006 Major updates
04 May 2006 New Laplacian + outflow BC's
09 May 2006 small code changes
Tag Activity for this File
Tag Applied By Date/Time
chemistry Darren Engwirda 22 Oct 2008 08:21:22
physics Darren Engwirda 22 Oct 2008 08:21:22
unstructured mesh Darren Engwirda 22 Oct 2008 08:21:22
navierstokes Darren Engwirda 22 Oct 2008 08:21:22
cfd Darren Engwirda 22 Oct 2008 08:21:22
incompressible fluids Darren Engwirda 22 Oct 2008 08:21:22
motion Darren Engwirda 22 Oct 2008 08:21:22

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com