如果获取fluent动网格计算中运动表面的时变受力?

浏览:38448 回答:6
如图所示的一个算例,类似滑动轴承的工作,轴在轴承孔中自转,并绕轴承孔中心线进动,自转速度为w,润滑介质采用水,动网格计算已经通过cg_motion宏实现,但是想要获得每个时间步中作用于轴表面上的x方向和y方向作用力,请教高手如何通过udf或其他方式实现。谢谢
例题.jpg
邀请回答 我来回答

全部回答

(6)
默认 最新
wolfplain
"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 CFD_online.com
2014年12月14日
评论 点赞
叶强

这个函数是difine宏么
2014年6月3日
评论 点赞
bridge123
Compute_Force_And_Moment(domin, tread, body_centroid, force, moment, TRUE);
试试这个
2014年5月25日
评论 点赞
叶强
试了版主的方法,获取的是壁面剪应力,不是我想要的x或y方向的合力,另外我通过monitor-force面板中的设置获得了两个方向力的drag和lift系数,但不知道这两个系数的定义,也没在帮助中找到,请版主指教。
2014年5月23日
评论 点赞
叶强
谢谢,
2014年5月15日
评论 点赞
谢清乐

这个不需要使用udf,检测你所需要的力的过程:
QQ截图20150514231008.jpg

2014年5月14日
评论 点赞

没解决?试试专家一对一服务

换一批
    App下载
    技术邻APP
    工程师必备
    • 项目客服
    • 培训客服
    • 平台客服

    TOP