udf for sinusoidally oscillating wall
can anyone please help me to create an udf for sinusoidally oscillating wall in y direction with velocity of 0.01m/s in 2d
|
Quote:
i wish it helps you #include"udf.h" /* this function defines velocity of center of gravity for pure plunging motion*/ /* Plunging motion equation is z(t)=h*sin(2*pi*f*t) */ DEFINE_CG_MOTION(plung,dt,vel,omega,time,dtime) { Thread*t; face_t*f; /*reset velocities */ NV_S(vel,=,0.0); NV_S(omega,=,0.0); if(!Data_Valid_P()) return; /* Get the thread pointer for which this motion is defined */ t=DT_THREAD(dt); /* vel[1] is the vertical plunging velocity */ vel[1] = 10*cos(10*time); } i should note that this udf need microsoft visual stuido to compile. |
2d
amirhossein can i use this for 2d case also
|
Quote:
i used it for 2D case. |
how can i compile this in microsoft visual studio code
|
Quote:
http://www.cfd-online.com/Forums/flu...e-problem.html |
Quote:
https://www.simutechgroup.com/CFD/co...5-or-15-0.html |
All times are GMT -4. The time now is 14:22. |