|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
Does anyone know how to process XFOIL commands through MALTAB? I am able to open the program through the !shell command, but how does one enter the commands in MATLAB for execution in XFOIL.
|
|
|
||
|
|
|
#2 |
|
New Member
Chris Day
Join Date: Sep 2010
Posts: 8
Rep Power: 4 ![]() |
I know this is an old question, but in case anyone needs to do this...
You have to write a text file of inputs, which have on each line what you would enter into the command prompt. Then run that file with the shell command into XFoil. I ran this first: Code:
fid = fopen('XFoil_inputs.dat', 'wt');
fprintf(fid,['naca ' airfoil '\r']); % load this profile
fprintf(fid,'ppar\r'); % enter panelling parameters menu
fprintf(fid,['n 280\r']); % change the number of panels from 140 (default) to 280 (maximum)
fprintf(fid,'\r'); % carriage return
fprintf(fid,'\r'); % carriage return
fprintf(fid,'gdes\r'); % enter the geometry design menu
fprintf(fid,'flap\r'); % create a flap
...
Code:
naca 23012 ppar n 280 gdes flap ... |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to start Fluent with Matlab?? | Jay Hu | FLUENT | 4 | August 8, 2012 14:17 |
| Quick OpenFoam to MatLab lesson plz :) | Rickard.Solsjo | OpenFOAM | 5 | October 24, 2011 06:00 |
| Frozen Xfoil | toto13000 | Main CFD Forum | 0 | July 28, 2011 10:46 |
| xfoil with matlab | nikolaous | Main CFD Forum | 3 | September 2, 2010 14:15 |
| MATLAB FORTRAN | Ally | Main CFD Forum | 4 | July 12, 2007 03:51 |