Xfoil error reading input file run from matlab
3 次查看(过去 30 天)
显示 更早的评论
i created input file as a vbs scrpit. now want to run the xfoil using the dos command
dos(cscript//nologo input.vbs | xfoil)
but it is giving me error
can someone guide me where i am doing mistake
the input.vbs is given below
you will need NACA0012.dat and xfoil exe for this
Wscript.sleep 100
Wscript.echo "load NACA0012.dat"
Wscrpit.sleep 1000
Wscrpit.echo "ppar"
Wscrpit.sleep 1000
Wscrpit.echo "N 160"
Wscrpit.sleep 1000
Wscrpit.echo ""
Wscrpit.sleep 1000
Wscrpit.echo ""
Wscrpit.sleep 1000
Wscrpit.echo "oper"
Wscrpit.sleep 1000
Wscrpit.echo "visc"
Wscrpit.sleep 1000
Wscrpit.echo "1.852014e+04"
Wscrpit.sleep 1000
Wscrpit.echo "Mach"
Wscrpit.sleep 1000
Wscrpit.echo "1.000000e-01"
Wscrpit.sleep 1000
Wscrpit.echo "iter"
Wscrpit.sleep 1000
Wscrpit.echo "600"
Wscrpit.sleep 1000
Wscrpit.echo "alfa -4.000000"
Wscrpit.sleep 2000
Wscrpit.echo "init"
Wscrpit.sleep 2000
Wscrpit.echo "pacc"
Wscrpit.sleep 2000
Wscrpit.echo "NACA5610pol1.pol"
Wscrpit.sleep 2000
Wscrpit.echo ""
Wscrpit.sleep 2000
Wscrpit.echo "iter"
Wscrpit.sleep 2000
Wscrpit.echo "600"
Wscrpit.sleep 2000
Wscrpit.echo "aseq -4.0 0.25"
Wscrpit.sleep 2000
Wscrpit.echo "aseq 0.25 12.0 0.25"
Wscrpit.sleep 2000
Wscrpit.echo "pacc"
Wscrpit.sleep 2000
Wscrpit.echo ""
Wscrpit.sleep 2000
Wscrpit.echo "quit"
cannot attached it so just pasted it
4 个评论
采纳的回答
Walter Roberson
2019-10-5
The third line of your input.vbs file contains
Wscrpit.sleep 1000
when it needs to contain
Wscript.sleep 1000
scrpit compare to script
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Airfoil tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!