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

How to calculate geometry diameter using UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mali28

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2012, 11:13
Default How to calculate geometry diameter using UDF
  #1
Member
 
Join Date: Jun 2011
Posts: 86
Rep Power: 14
mali28 is on a distinguished road
I dont expect to get any answer as always but any ways...

I have a cylindrical geometry with varying diameter from top to bottom. I want to specify heat loss condition since the wall is insulated. For that, I need to calculate overall heat transfer coefficient first. For that I need the inside diameter as well. Since diameter is not constant throughout the geometry, I have to find a way of calculating the distance from the centre of geometry up to the wall using UDF.

Can any one help me in this?

Thanks.
Musa likes this.
mali28 is offline   Reply With Quote

Old   January 14, 2012, 16:43
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
If you can describe your geometry before you run the simulation (it sounds like the equation for a cone), you could simply write a UDF to DEFINE_PROFILE for the heat transfer as a function of cone height.

If you write the equation of your geometry and the heat loss condition, I'll reply with a UDF which will allow you to do what you want.

ComputerGuy

Quote:
Originally Posted by mali28 View Post
I dont expect to get any answer as always but any ways...

I have a cylindrical geometry with varying diameter from top to bottom. I want to specify heat loss condition since the wall is insulated. For that, I need to calculate overall heat transfer coefficient first. For that I need the inside diameter as well. Since diameter is not constant throughout the geometry, I have to find a way of calculating the distance from the centre of geometry up to the wall using UDF.

Can any one help me in this?

Thanks.
ComputerGuy is offline   Reply With Quote

Old   January 15, 2012, 05:32
Lightbulb
  #3
Member
 
Join Date: Jun 2011
Posts: 86
Rep Power: 14
mali28 is on a distinguished road
Quote:
Originally Posted by ComputerGuy View Post
If you can describe your geometry before you run the simulation (it sounds like the equation for a cone), you could simply write a UDF to DEFINE_PROFILE for the heat transfer as a function of cone height.

If you write the equation of your geometry and the heat loss condition, I'll reply with a UDF which will allow you to do what you want.

ComputerGuy

Thanks but I got a better solution. I can now calculate the coordinates of the nodes and using that I can get the radius. I got the solution from here:

http://cape-forum.com/index.php/topic,2.0.html
mali28 is offline   Reply With Quote

Old   January 15, 2012, 08:23
Default
  #4
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Yep -- this is virtually the same solution. Glad you got your problem worked out.

Quote:
Originally Posted by mali28 View Post
Thanks but I got a better solution. I can now calculate the coordinates of the nodes and using that I can get the radius. I got the solution from here:

http://cape-forum.com/index.php/topic,2.0.html
ComputerGuy 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
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
[DesignModeler] Error while Loading a Geometry JD944 ANSYS Meshing & Geometry 0 October 25, 2011 14:51
udf for velocity profile in a geometry having two inlets shubham208011 Fluent UDF and Scheme Programming 0 April 6, 2009 15:13
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29
UDF macros and updated mesh geometry Maziar Mahzari FLUENT 1 November 1, 2005 06:29


All times are GMT -4. The time now is 04:22.