UDF direction
Hi all!
Can someone give me guidance how to change the velocity in the preceding udf from a x-velocity to a y-velocity....I'n really new to udf writing Thanks #include "udf.h" #include "dynamesh_tools.h" DEFINE_CG_MOTION(trans, dt, vel, omega, time, dtime) { /*reset velocities*/ NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if (!Data_Valid_P ()) { Message0("\n\nNo data->No mesh motion!!!\n\n"); return; } /*set x-component velocity*/ vel[0] = 1; } |
x-component velocity = vel[0]
y-component velocity = vel[1] z-component velocity = vel[2] cheers |
Hahaha thanks! Wish I knew this sooner!
|
All times are GMT -4. The time now is 12:18. |