How to calculate geometry diameter using UDF

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

 January 11, 2012, 12:13 How to calculate geometry diameter using UDF #1 Member   Join Date: Jun 2011 Posts: 81 Rep Power: 7 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.

January 14, 2012, 17:43
#2
Senior Member

Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 9
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 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.

January 15, 2012, 06:32
#3
Member

Join Date: Jun 2011
Posts: 81
Rep Power: 7
Quote:
 Originally Posted by ComputerGuy 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

January 15, 2012, 09:23
#4
Senior Member

Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 9
Yep -- this is virtually the same solution. Glad you got your problem worked out.

Quote:
 Originally Posted by mali28 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Attesz CFX 7 January 5, 2013 04:32 [DesignModeler] Error while Loading a Geometry JD944 ANSYS Meshing & Geometry 0 October 25, 2011 14:51 shubham208011 Fluent UDF and Scheme Programming 0 April 6, 2009 15:13 S.Whitney FLUENT 0 October 15, 2007 11:29 Maziar Mahzari FLUENT 1 November 1, 2005 07:29

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