CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Zone position from UDF (https://www.cfd-online.com/Forums/fluent/78782-zone-position-udf.html)

montag dp August 2, 2010 10:32

Zone position from UDF
 
All,

I'm attempting to simulate a flapping and pitching wing in Fluent using a dynamic mesh and define_cg_motion macro. I'm having some issues keeping the wing rotating only about the two desired axes. I'm using the Euler rotation rate equations to transform the desired rotations into cg (body) coordinates, and I think it would be helpful if I could get the instantaneous position and rotation of the zone while the macro is running. If I run it for a little bit and then go to Dynamic Mesh Zones Fluent displays these positions, so it seems like it should be possible to access them from the UDF. Can anyone tell me how to do this?

Thanks,
Dan

montag dp August 2, 2010 16:11

For those interested, I found out how to do it. I stumbled across it while doing a search on the forums. The current zone orientation can be returned with the DT_THETA(dt) macro. Just be careful because it seems to return the orientation in degrees, not radians, so you must convert it to use in trig expressions.


All times are GMT -4. The time now is 11:07.