input data : unscaled time history of moment/thrust from ANSYS fluent

example of input data, "moment.out"

# iteration     moment
4283 6.983 -0.1910873139538953
4284 6.984 -0.191019809738711
4285 6.985 -0.1909838904131738
4286 6.986 -0.190943968230172
4287 6.987 -0.1908886443401208
4288 6.988 -0.1908541205872921

1. To load input data:
> load moment.out

2.  extract *time* and *unscaled moment* and assign it to a variable named "m"
> m=moment(:, 3);    # assign the 3rd column data of "moment.out" to variable "m"
> time = moment(:,2);

3. calculating power coefficient, Cp
cp=coeff(m);  # "coeff " is a function to calculate the Cp of 3 rotor  based on input moment (one rotor )

function cp=coeff(m)
% v : velocity
% m : unscaled moment of one blade
% rho : density
% cp : power coefficient of 3 blades
% omega: angular velocity, rad/s
v = 0.6;
A = 0.166;
omega = 11.087;
rho = 998.2;
cp=(3*m*omega)/(0.5*rho*v*v*v*A)

4. assign "time" and "cp" variables to a new variable "cp_his"
> cp_his = [time cp];

5. save the workspace variable, "cp_his", to a txt file
> save -ascii cp_his.txt cp_his
## syntax: save ; file format; export file name; variable

6. plotting the time history of Cp
> plot (time, cp);

最新文章

  1. Centos下yum安装PHP
  2. ANSYS17.0详细安装图文教程
  3. PHP 使用 password_hash() 给密码加密
  4. 通过图片对比带给你不一样的KMP算法体验
  5. 去处HTML标签
  6. NTFS reparse point
  7. CRM-性能测试报告
  8. ZOJ3768 夹逼查找【STL__lower_bound()_的应用】
  9. Aquarium Tank(csu1634+几何+二分)Contest2087 - 湖南多校对抗赛(2015.05.24)-G
  10. Springboot解决war包放到Tomcat服务器上404的特殊情况
  11. linux ulimit具体修改服务器配置
  12. linux inode 详解 / 线上inode爆满解决方案
  13. JAVA 关于JNI本地库加载
  14. nginx下No input file specified错误的解决
  15. yii开发第一部分之执行流程
  16. C语言扩展动态内存报错:realloc(): invalid next size: 0x0000000002365010 ***
  17. 进程池(Pool)
  18. strstr实现
  19. Java之泛型
  20. php-7.2.3源代码和php-5.6.26源代码摘录,对比 “汇编php文件”和“执行opcode代码”

热门文章

  1. 解决juqery easyui combobox只能选择问题
  2. Java中wait和sleep方法的区别
  3. Helios Service Release 2安装SVN
  4. js原始数据类型和引用数据类型=>callback数据传输原理
  5. sublime text2 配置php本地环境时遇到的错误。
  6. EditText(8)EditText中drawableRight图片的点击事件
  7. [ TJOI 2007 ] 线段
  8. 从React看weight开发
  9. jdbc 实现分页
  10. HDU_3496_(二维费用背包)