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

Location of cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2005, 07:15
Default Location of cells
  #1
Short
Guest
 
Posts: n/a
Hi all,

I have a simple 2d space and am using this to resolve the energy equation only.

I now want to look at internal distribution of heat flux by writing a udf based on the temp distributions as predicted by fluent.

I have no probelms in resolving the heat flux calculation but I do not know how I can relate the temp to the nodal locations. i.e. I will need to calc the temp gradient and also the spatial difference from the mesh infromation.But I dont know the nodal naming convention so as to write a gradient calc.

Clelary I need to find the nodal temps and also calc a diffence in temp which then gets related to nodal positions.

And so my questions.

How can I 'read' temp[x,y]?

How do I know the location of temp[x,y]

BTW I am thinking of writing a central difference calc for the heat flux, and so this is not possible for the boundaries.

Is it also possible to 'know' when I am at the boundaries so as to apply a 'one-sided' heat flux scheme. In a simple 2d case I guess I use the notion at X=0 or i=1 to indicate I am at a boundary etc. but what about the X=L location. Does fluent have a naming convention for that location?

Thnxs
  Reply With Quote

Old   July 18, 2005, 08:43
Default Re: Location of cells
  #2
dirk
Guest
 
Posts: n/a
You don't need to calculate the temperature gradients. They can be accessed with C_T_G(c,t)[i]. You just have to activate the storage of these gradients during calculation via TUI with "solve set expert" and then turn on the option "keep temporary solver memory from being freed"

Maybe this helps you, Dirk
  Reply With Quote

Old   July 19, 2005, 10:38
Default Re: Location of cells
  #3
Short
Guest
 
Posts: n/a
Thankyou. I will explore these macro's.

  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
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 05:50
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
physical boundary error!! kris Siemens 2 August 3, 2005 00:32


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