|
[Sponsors] |
June 17, 2011, 06:25 |
UDF direction
|
#1 |
New Member
Herman
Join Date: May 2011
Posts: 8
Rep Power: 15 |
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; } |
|
June 17, 2011, 07:09 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
x-component velocity = vel[0]
y-component velocity = vel[1] z-component velocity = vel[2] cheers |
|
June 17, 2011, 09:33 |
|
#3 |
New Member
Herman
Join Date: May 2011
Posts: 8
Rep Power: 15 |
Hahaha thanks! Wish I knew this sooner!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help please UDF flow direction | val17lr | FLUENT | 2 | September 4, 2010 06:30 |
looping UDF in given direction | ak6g08 | Fluent UDF and Scheme Programming | 0 | September 10, 2009 11:13 |
UDF for C.G.Motion in two direction | ciprian | FLUENT | 3 | August 20, 2009 22:45 |
Help: using udf to define direction | Bo | FLUENT | 1 | July 16, 2008 07:47 |
changing gravity vector direction using UDF | Nico | FLUENT | 0 | September 7, 2006 13:00 |