资源简介
matlab开发-rafaelaeroXFOILinterface。Xfoil和Matlab之间的类接口,具有并行运行多个实例的能力。
代码片段和文件信息
%% Create a new instance of the XFOIL class and set some properties
xf = XFOIL;
xf.KeepFiles = true; % Set it to true to keep all intermediate files created (Airfoil Polars ...)
xf.Visible = true; % Set it to false to hide XFOIL plotting window
%% Create a NACA 5-series airfoil
xf.Airfoil = Airfoil.createNACA5(‘23012‘150);
% To create a NACA 4-series use >> xf.Airfoil = Airfoil.createNACA4(‘0012‘);
% To load an existing airfoil use >> xf.Airfoil = Airfoil(‘naca0012.dat‘);
%% Setup the action list
%Add five filtering steps to smooth the airfoil coordinates and help convergence
xf.addFiltering(5);
%Switch to OPER mode and set Reynolds = 3E7 Mach = 0.1
xf.addOperation(3E7 0.1);
%Set maximum number of iterations
xf.addIter(100)
%Initializate the calculations
xf.addAlpha(0true);
%Create a new polar
xf.addPolarFile(‘Polar.txt‘);
% %Calculate a sequence of angle of attack from 0 to 25 degrees step size of 0.1 degrees
xf.addAlpha(0:0.1:25);
%Another option is to keep all the CP curves replace the previous line with this:
%for alpha = 0:0.1:25
% xf.addAlpha(alpha);
% xf.addActions(sprintf(‘CPWR alpha_%f.txt‘alpha));
%end
%Close the polar file
xf.addClosePolarFile;
%And finally add the action to quit XFOIL
xf.addQuit;
%% Now we‘re ready to run XFOIL
xf.run
disp(‘Running XFOIL please wait...‘)
%% Wait up to 100 seconds for it to finish...
%It is possible to run more than one XFOIL instance at the same time
finished = xf.wait(100);
%% If successfull read and plot the polar
if finished
disp(‘XFOIL analysis finished.‘)
xf.readPolars;
figure
xf.plotPolar(1);
else
xf.kill;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\
文件 378 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\.gitattributes
文件 649 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\.gitignore
目录 0 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@Airfoil\
文件 3183 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@Airfoil\Airfoil.m
文件 6778 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@Airfoil\createNACA4.m
文件 7062 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@Airfoil\createNACA5.m
目录 0 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@XFOIL\
文件 10057 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@XFOIL\XFOIL.m
文件 1192 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\@XFOIL\readPolars.m
文件 1655 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\exampleXFOIL.m
文件 1328 2016-07-28 08:37 rafael-aero-XFOILinterface-3b15951\license.txt
相关资源
- matlab开发-mtype340
-
matlab开发-单相三电平去阻尼Pwmba
s - matlab开发-scatter3sph
- matlab开发-TraCI4Matlab
- matlab开发-三个27电平转换器,带有单
- matlab开发-DynaSimDynaSim
- matlab开发-spy2m
- matlab开发-landmask
- matlab开发-经济调度通用算法解决方案
- matlab开发-图片加密和解密
- matlab开发-分子通讯粘着剂
- matlab开发-IEEE754二进制表示
- matlab开发-kmvcreditriskmodel违约风险概率
- matlab开发-17电平模块多电平转换器
- matlab开发-Xfoilformatlab
- matlab开发-脑瘤的分割
- matlab开发-车辆网络工具箱支持kvaser和
- matlab开发-CryoSat2DEMs
- matlab开发-BlandAltmanplot
- matlab开发-使用PSO的最佳模糊控制器
- matlab开发-电机磁轴承
- matlab开发-Treynorblackportfoliomanagement模型
- matlab开发-黑白图像增强器
- matlab开发-二维波动方程模拟
- matlab开发-ResponseSpectra
- matlab开发-huashiyiqikeLSTMMATLAB
- matlab开发-HestonOptionPricer
- matlab开发-三相电压调节器
- matlab开发-单级电液伺服阀
-
matlab开发-iau2006 acioba
sedDusingXy系列
评论
共有 条评论