CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

xfoil with matlab

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 1, 2010, 11:24
Default xfoil with matlab
New Member
Join Date: Jun 2010
Location: Greece
Posts: 13
Rep Power: 9
nikolaous is on a distinguished road
hello guys,
does anyone know how can i use matlab in order to run simulations with xfoil ? i want to open xfoil from matlab, attach a file which includes all the commands needed by xfoil (for example naca2212 ,oper, visc,3e4,mach0.2,alfa0,cpwr etc) and change one parameter (probably alfa) in order to run for different input. As it is time consuming to make it manually, changing a little bite one parameter each time, i would be really grateful if anyone could tell me how can i make this.thank you
nikolaous is offline   Reply With Quote

Old   August 17, 2010, 12:05
New Member
César Vecchio
Join Date: Jul 2010
Location: Córdoba, Argentina
Posts: 21
Rep Power: 9
CAVT is on a distinguished road
I know MatLab has the ability to run Fortran and C++ codes if you specify the correct compiler (for example g++ or gfortran). That appears in MatLabs help, but unfortunately I've never tried it.
Now, depending on your simulation, an available airfoil code for MatLab is PABLO, it was programmed at the KTH in Sweden. It's not as powerful as XFoil but it may suite your needs. It's under GPL license.
CAVT is offline   Reply With Quote

Old   August 24, 2010, 18:03
Default This guy has it figured out
New Member
Byron Young
Join Date: Aug 2010
Posts: 1
Rep Power: 0
TheBeefBaron is on a distinguished road
This guy has linked matlab to xfoil successfully. I've adapted his code to work with non-symmetric airfoils.

Just download his code and follow the function calls. It calls a batch script which calls a .vbs script I think. Let me know how it goes.
TheBeefBaron is offline   Reply With Quote

Old   September 2, 2010, 14:15
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 13
DoHander is on a distinguished road

If you have a text file with all the inputs Xfoil needs in order to do a simulation you can simply call Xfoil in a Matlab session just like you do in a Dos window. You need to have Xfoil in your path, say your Xfoil commands are stored in "Session.txt" then you can start Xfoil from Matlab this way:

!xfoil < Session.txt

If you need specific help send me a message.

DoHander is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
XFOIL in MATLAB asd Main CFD Forum 1 January 18, 2011 05:38
Pohlhausen energy equation MATLAB help abe_cooldude Main CFD Forum 2 May 3, 2010 16:58
[ICEM] version 12 incompatible with MATLAB R2009 siw ANSYS Meshing & Geometry 1 September 8, 2009 09:20
2-D Euler Solver for compressible flow in Matlab Volkan Main CFD Forum 1 October 28, 2007 01:40
CFD/FEM and MATLAB clifford bradford Main CFD Forum 6 September 4, 2000 14:53

All times are GMT -4. The time now is 13:37.