| 查看: 488 | 回复: 1 | ||
[求助]
壁面上不同部位具有不同幅度的往复振动的UDF问题,求解
|
|
本人是ANSYS的初学者,现在准备模拟一个壁面的往复振动,类似于两端固定梁的振动似的。现在能模拟成功整个壁面的往复振动,但是模拟不同振幅的往复振动就一直不成功。求助大拿!! 不同的振幅我用的DEFINE_PROFILE求解的,振动用的DEFINE_CG_MOTION宏。是因为用的UDF函数不对吗?还是编写的不对? 新人就只有6个金币,全悬赏了! #include "udf.h" real y; /*declare the vibration amplitude*/ DEFINE_PROFILE(WALLheight, thread, position) { real x[ND_ND]; real a=-0.005; /*declare the amplitude parameter*/ real b=0.001; /*declare the amplitude parameter*/ face_t f; { begin_f_loop(f, thread) { F_CENTROID(x, f, thread); y=a*x[0]*x[0]+b*x[0]; F_PROFILE(f, thread, position)=y; /*get the different amplitude along the wall*/ } end_f_loop(f, thread) } } DEFINE_CG_MOTION(wall1, dt, vel, omega, time, dtime) { real pi=3.1415926; real f=50000;/*declare the frequence of the vibration*/ vel[1]=2*pi*f*y*cos(2*pi*f*time);/*get the different reciproactine speed along the wall*/ } |
» 猜你喜欢
售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急
已经有4人回复
上海大学实验技术岗位非升即走
已经有3人回复
有带发论文的吗
已经有4人回复
风把牡丹吹跑了
已经有9人回复
青C资助名额大幅增加!
已经有15人回复
售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急
已经有3人回复
评审感受-评审感受-评审感受
已经有18人回复
这年头没有找到涵评专家,还有中面上的可能吗
已经有10人回复
售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急
已经有3人回复
售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急
已经有4人回复

2楼2017-10-17 15:10:27












回复此楼
精华III:
20