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

Access dimensions of model geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2011, 23:21
Question Access dimensions of model geometry
  #1
New Member
 
N/A
Join Date: May 2011
Posts: 14
Rep Power: 15
cp_jef is on a distinguished road
Hi Fluent Gurus,

Is there a way to access (call) dimensions of your geometry, eg. radius of an inlet section, from within the udf? I have searched the entire UDF manual and found nothing.

Thanks in advance.

Regards,

John
cp_jef is offline   Reply With Quote

Old   July 31, 2011, 22:44
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by cp_jef View Post
Hi Fluent Gurus,

Is there a way to access (call) dimensions of your geometry, eg. radius of an inlet section, from within the udf? I have searched the entire UDF manual and found nothing.

Thanks in advance.

Regards,

John
No direct macro to return inlet radius, but you can loop all the node on inlet and calculate the maximum distance between two nodes. This is just the inlet width.
gearboy is offline   Reply With Quote

Old   August 1, 2011, 02:11
Thumbs up Thanks...
  #3
New Member
 
N/A
Join Date: May 2011
Posts: 14
Rep Power: 15
cp_jef is on a distinguished road
Hi Ji,

Thanks for the reply. I went ahead and calculated the radius from the area by adding up the face areas within the inlet face thread (I was performing an area-weighted average of pressure and velocity at the inlet). I initially thought of your idea, but my code is already bogged down with multiple loops and I didn't want to slow it down any further with additional loop and condition statements. Thanks for you input thought, I appreciate it.

Cheers,

John
cp_jef is offline   Reply With Quote

Reply

Tags
fluent, udf


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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
LES and combustion model Margherita Cadorin CFX 0 October 29, 2008 06:24
Fluent: changing dimensions of a geometry genetaed Madhukar Rapaka FLUENT 3 October 12, 2005 12:40
how to model geometry of plume from chimney in 3D dave FLUENT 1 July 19, 2005 17:34
Advanced Turbulence Modeling in Fluent, Realizable k-epsilon Model Jonas Larsson FLUENT 5 March 13, 2000 04:27


All times are GMT -4. The time now is 18:25.