|
[Sponsors] |
June 1, 2010, 11:24 |
xfoil with matlab
|
#1 |
New Member
nikos
Join Date: Jun 2010
Location: Greece
Posts: 13
Rep Power: 15 |
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 |
|
August 17, 2010, 12:05 |
|
#2 |
New Member
César Vecchio
Join Date: Jul 2010
Location: Córdoba, Argentina
Posts: 21
Rep Power: 15 |
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. |
|
August 24, 2010, 18:03 |
This guy has it figured out
|
#3 |
New Member
Byron Young
Join Date: Aug 2010
Posts: 3
Rep Power: 15 |
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. |
|
September 2, 2010, 14:15 |
|
#4 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 19 |
@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 |
|
|
|
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 |