|
[Sponsors] |
March 7, 2009, 07:08 |
CG_MOTION
|
#1 |
Guest
Posts: n/a
|
Hi guys,
I'm doing about vibration disk oscillating under water and here is my udf for cg-motion can someone please help me check. I've tried to run it but it said incorrect cg-motion on zone......assume no motion. Does it mean I set the boundary wrong or my udf is wrong? Thank you very much.... #include "udf.h" real loc, vel; DEFINE_CG_MOTION (disk, dt, cg_vel, cg_omega, time, dtime) { # if 1 FILE *fp; # endif /* reset velocities */ NV_S(cg_vel,=, 0.0); NV_S(cg_omega,=, 0.0); if (!Data_Valid_P()) return; loc = 0.000003*sin(2*M_PI*1460000*time); vel = 0.000003*M_PI*1460000*cos(2*M_PI*1460000*time); cg_vel[1] = vel; |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF CG_MOTION rotation dynamic mesh | Mads | FLUENT | 2 | April 15, 2014 03:30 |
cg_motion | Geri | FLUENT | 0 | May 11, 2008 09:48 |
CG_MOTION : CG_orientation angle : theta_Z ???? | calogero | FLUENT | 0 | April 15, 2003 02:29 |