| 查看: 852 | 回复: 0 | ||
weipei0529木虫 (正式写手)
|
[求助]
UDF功能给定振动杆和振动盘的周期性振动的位移和速度表达式
|
|
用UDF功能给定振动杆和振动盘的周期性振动的位移和速度表达式,扰动频率为2500Hz,扰动振幅为2e-7um,在0.08s时开始施加扰动,使用动网格的源程序如下: #include "stdio.h" #include "udf.h" #define Ac 2.e-7 #define m 0.5 #define fc 2500. #define fm 833. #fefine t0 0.08 DEFINE_CG_MOTION(droplet,dt,cg_vel,cg_omega,time,dtime) { Thread *t; face_t f; real velo,loc; /*reset velocities*/ NV_S(cg_vel,=,0.0); NV_S(cg_omega,=,0.0); if(!Data_Valid_P()) return; /*get the thread Pointer for which this motion is defined*/ t = DT_THREAD(dt); /*compute velocity and location of vibration*/ velo=Ac*2*M_PI*(m*fm*sin(2*M_PI*fc*(time-t0))*cos(2*M_PI*fm*(time-t0))+m*fc*cos(2*M_PI*fc* (time-t0))*sin(2*M_PI*fm*(time-t0))+fc*cos(2*M_PI*fc*(time-t0))); loc=Ac*(1+m*sin(2*M_PI*fm*(time-t0)))*sin(2*M_PI*fc*(time-t0)); Message("\nUDF droplet:time=%f,x_vel=%10.8f,loc(m)=%10.8f\n",time,velo,loc); /*set y_component of velocity*/ cg_vel[0]=velo; } 但是提示19行,c: line 19: structure reference not implemented 求大神指导啊 |
» 猜你喜欢
求助中医院临床中医中标的青年标书学习,谢谢
已经有6人回复
浙大物院表面物理课题组长期招收普博及直博学生
已经有259人回复
物理学I论文润色/翻译怎么收费?
已经有165人回复
【征稿】Springer Nature热电专题 Discover Materials / Discover Chemistry
已经有47人回复
25届硕士申请,材料计算方向
已经有2人回复
课题组招1-2名硕士
已经有1人回复
机时越来越贵之后,我把一部分 DFT 流程搬到了 AI 计算平台上
已经有0人回复
斯坦福大学与Elsevier世界前2%学者新排名查询
已经有1人回复
27申博推荐:南京航空航天大学国际前沿院光学方向招收博士生!
已经有19人回复
华南师范大学+双一流学科物理学+广东省杰青团队2027年博士招生+机器学习驱动材料设计
已经有1人回复
apl投稿状态
已经有2人回复










回复此楼
50