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

How to calculate geometry diameter using UDF

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

Like Tree1Likes
  • 1 Post By mali28

Reply
 
LinkBack Thread Tools Display Modes
Old   January 11, 2012, 12:13
Default How to calculate geometry diameter using UDF
  #1
Senior Member
 
Join Date: Jun 2011
Posts: 125
Rep Power: 7
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, 17:43
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 193
Rep Power: 8
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, 06:32
Lightbulb
  #3
Senior Member
 
Join Date: Jun 2011
Posts: 125
Rep Power: 7
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, 09:23
Default
  #4
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 193
Rep Power: 8
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

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
Water subcooled boiling Attesz CFX 7 January 5, 2013 04: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 07:29


All times are GMT -4. The time now is 08:06.