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/)
-   -   Define CG_Motion UDF Macro query (https://www.cfd-online.com/Forums/fluent-udf/195094-define-cg_motion-udf-macro-query.html)

bhat_nikhil October 31, 2017 02:33

Define CG_Motion UDF Macro query
 
1 Attachment(s)
I want to use the UDF for specifying the rotation of 2 bodies. Please see figure attached(Rotation domain.pdf). As shown in the figure there are 2 bodies, nozzle 1 and nozzle 2. Nozzle 1 rotates about the global coordinate system whereas nozzle 2 rotates about axis 2. I managed to achieve the rotation of nozzle 1 around a circle(as shown in figure) by coinciding its axis of rotation with the global coordinate axis(since in the Define_CG_motion UDF, the axis of rotation by default is global Z axis). However I not able to achieve the rotation of nozzle 2 about axis 2 which is different from the global coordinate axis( as by default the UDF will assume that nozzle 2 rotates around global z axis).
So how do I specify the rotation of nozzle 2 around axis 2 in the UDF?

Thanks in advance


All times are GMT -4. The time now is 19:40.