CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Help creating a DEFINE_CG_MOTION UDF (https://www.cfd-online.com/Forums/fluent-udf/121472-help-creating-define_cg_motion-udf.html)

Maralady July 29, 2013 13:58

Help creating a DEFINE_CG_MOTION UDF
 
Hello, I want to create 2 udf (Maybe 1 not too sure) to rotate 2 cell zones inside the same geometry, I would like to know if someone can help me to clear some doubts:

DEFINE_CG_MOTION(rotation,dt,vel,omega,time,dtime)

"vel" will be 0 because it will rotate only

My main doubt is to know, how can I specify the direction of omega? I have been trying to find similar cases but have not found anything yet, please can someone help me a little bit?

Maralady July 31, 2013 04:38

For those who wonder the same:

Omega[0] = X component
Omega[1] = Y component
Omega[2] = Z component

Same for Linear Velocities


All times are GMT -4. The time now is 21:47.