CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

xfoil with matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2010, 11:24
Default xfoil with matlab
  #1
New Member
 
nikos
Join Date: Jun 2010
Location: Greece
Posts: 13
Rep Power: 15
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
Default
  #2
New Member
 
César Vecchio
Join Date: Jul 2010
Location: Córdoba, Argentina
Posts: 21
Rep Power: 15
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
  #3
New Member
 
Byron Young
Join Date: Aug 2010
Posts: 3
Rep Power: 15
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.

http://people.bath.ac.uk/zw215/research.html

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
Default
  #4
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
@nikolaous

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.

Do
DoHander is offline   Reply With Quote

Reply


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 Off
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 04: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 17:00.