CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Zone position from UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2010, 10:32
Default Zone position from UDF
  #1
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 15
montag dp is on a distinguished road
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 is offline   Reply With Quote

Old   August 2, 2010, 16:11
Default
  #2
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 15
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

Reply


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 Off
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 18:26
Sliding mesh error Karl Kevala FLUENT 4 February 21, 2001 15:52


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