CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Zone position from UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 2, 2010, 10:32
Default Zone position from UDF
Join Date: Jul 2010
Posts: 38
Rep Power: 7
montag dp is on a distinguished road

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?

montag dp is offline   Reply With Quote

Old   August 2, 2010, 16:11
Join Date: Jul 2010
Posts: 38
Rep Power: 7
montag dp is on a distinguished road
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.
montag dp is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 01:08
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
Error to re-open fluent case file J.Gimbun FLUENT 0 April 27, 2006 08:42
UDF for orous zone porosity ap FLUENT 2 November 10, 2004 19:26
Sliding mesh error Karl Kevala FLUENT 4 February 21, 2001 16:52

All times are GMT -4. The time now is 20:43.