24小时热门版块排行榜    

查看: 6797  |  回复: 12
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

water217

银虫 (小有名气)

[求助] 如何用Compute_Force_And_Moment函数求流体对运动翼型的俯仰力矩 已有1人参与

使用fluent的动网格功能模拟了流体绕俯仰-升沉振荡二维翼型的流场后,想得到作用于翼型俯仰参考轴上的俯仰力矩随时间的变化关系,采用了函数Compute_Force_And_Moment(domain, thread, body_centroid, force, moment, FALSE);来求解,可是算下来的俯仰力矩明显有问题(图片中的俯仰力矩都是正值,可是俯仰振荡以后攻角有正有负,俯仰力矩肯定有负值的情况),更换模型俯仰轴的参考位置后,结果也没有什么变化(一个参考轴取距前缘0.3倍的弦长,一个取0.6倍的弦长,结果峰值差不多,变化规律基本一样),请问Compute_Force_And_Moment默认的力矩参考轴是什么位置?我的程序为什么输出的力矩系数有问题?
这个程序里求得的力矩是相对于,大地坐标系,还是随体坐标系,谢谢
附程序:
#include "udf.h"
#include "mem.h"
#include "dynamesh_tools.h"
#include "math.h"
/************************************************************/
FILE*fp;
real current_time = 0.0000 ;
static real vel[3]={0,0,0};/* 初始速度*/
static real omega[3]={0,0,0};/* 初始角速度*/
static real body_centroid[3]={0,0,0};/* 初始形心位置,需要修改*/
static real Chord=0.1,F_density=998.2,U_flow=2;
static real pi=3.1416,frequency=2.0000,Y_amplitude=0.1,w_amplitude=0.8727;
real NV_VEC( origin ),NV_VEC( force ),NV_VEC( moment );
real C_momentr;
/************************************************************/
DEFINE_CG_MOTION(hydrofoil,dt,vel,omega,time,dtime)
{
        Domain * domain ;
        Thread * thread ;
        face_t  f;
        current_time = CURRENT_TIME ;
        vel[0] = 0.0 ;
        vel[1] =2*pi*frequency*Y_amplitude*cos(2*pi*frequency*current_time+pi/2);
        vel[2] = 0.0 ;
        omega[0] = 0.0 ;
        omega[1] = 0.0 ;
        omega[2] =2*pi*frequency*w_amplitude*cos(2*pi*frequency*current_time);
        thread=DT_THREAD(dt);
        domain = THREAD_DOMAIN (thread);
/************************************************************/
                body_centroid[0]=DT_CG(dt)[0];/* 获取形心坐标*/
                body_centroid[1]=DT_CG(dt)[1];/* 获取形心坐标*/
         Compute_Force_And_Moment(domain, thread, body_centroid, force, moment, FALSE);/* 计算水翼总的受力情况*/
        C_moment=moment[2]/(0.5*F_density*U_flow*U_flow*Chord*Chord);/* 计算俯仰力矩系数*/
fp=fopen("D:\\moment_coefficient.dat", "a+";
        fprintf(fp, "%12f",C_moment);
        fprintf(fp, "\n";
        fclose(fp);
}

未命名.JPG

[ Last edited by water217 on 2013-1-24 at 17:55 ]
回复此楼

» 收录本帖的淘帖专辑推荐

CFD_study

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

率性而为……
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dhonghui

银虫 (小有名气)

"This function needs size of 3 for force and moment. It works in parallel and
the common arguments are the of the same type as your arguments.
In addition you have to pass the domain as first arg and a boolean as
last argument. This boolean has to be TRUE if you also call the function
on the host else it has to be FALSE."

Compute_Force_And_Moment (domain, tf, CG, force, moment, FALSE);

domain = THREAD_DOMAIN (DT_THREAD ((Dynamic_Thread *)dt)); - pointer on Domain
tf = Lookup_Thread(domain, ID); - pointer on the Thread in Domain

I don't know if "force" includes viscose and pressure force or only pressure force!!!
************************************************** **************
compute viscose force in UDF

you have to define in mem.h header or in local c-file this macro:

#define F_VISCOSE(f,tf) F_STORAGE_R_N3V(f,tf,SV_WALL_SHEAR)

Thread *tf = DT_THREAD(dt); /*pointer on thread*/
face_t f; /*number of faces*/

begin_f_loop(f, tf)
{
NV_VS(F_VISC, += , F_VISCOSE(f, tf), *, -1.0 * k); /* compute viscose force vector. k is a factor for depth in 2D computation and -1.0 corrects the sign of viscose force*/

}
end_f_loop(f, tf);
from http://www.cfd-online.com/Forums ... rce_and_moment.html
9楼2014-09-17 14:11:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 13 个回答

dragonship

铁杆木虫 (正式写手)

膜拜。请问你这些是从哪里学习的,我也想弄,因为船舶受力和机翼有很多相似之处。望指点。
2楼2013-01-30 09:32:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

watcher007

新虫 (正式写手)

★ ★
xiegangmai: 金币+2, 鼓励讨论交流! 2013-02-11 10:09:27
楼主 你Compute_Force_And_Moment(domain, thread, body_centroid, force, moment, FALSE)这个里面的为什么是用FALSE,我一直用的是TRUE,我刚才用一个简单的算例算了一下这个里面的force好像没错
3楼2013-02-02 11:27:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xhd1_moon

银虫 (正式写手)

不是很懂,
4楼2013-02-05 22:31:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 国际合作可查了,中了面上 +17 Ldrop2023 2026-08-26 17/850 2026-08-26 10:49 by qingmu1201
[基金申请] 系统查不到 +3 董八千 2026-08-26 3/150 2026-08-26 10:38 by dly19880520
[基金申请] 怎么看青基中了没有啊 +3 叶九微 2026-08-26 3/150 2026-08-26 10:38 by LemmonTr
[基金申请] 国合里面能看到了 +6 一怀馨秋 2026-08-26 6/300 2026-08-26 10:19 by guo2070
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 出来了 +8 trojank 2026-08-26 8/400 2026-08-26 09:00 by gxc
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 范进中举一文的中心思想 +8 炎黄贵胄 2026-08-22 9/450 2026-08-26 07:47 by WASM
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 放榜前的不淡定 20+4 snowwithsea 2026-08-19 19/950 2026-08-25 17:57 by chick875
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +17 医学老男孩 2026-08-20 22/1100 2026-08-25 15:36 by 医学老男孩
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 人气不行了 +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by 孤独的英雄6
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +3 苏东坡二世 2026-08-23 3/150 2026-08-25 10:35 by shisan1313
[基金申请] 只有每年这种时候来逛逛小木虫 +25 yaoyewhu2008 2026-08-20 27/1350 2026-08-25 08:01 by Equinoxhua
[基金申请] 让我中一个面上吧! +13 大萍1987 2026-08-20 16/800 2026-08-24 10:23 by 太傻了
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
信息提示
请填处理意见