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 access temp. of adjacent two cell centre

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pakk
  • 1 Post By annan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2018, 06:14
Question How to access temp. of adjacent two cell centre
  #1
New Member
 
sat_fire's Avatar
 
Satyam
Join Date: Jun 2017
Posts: 7
Rep Power: 8
sat_fire is on a distinguished road
hi everyone,

I have to find temp gradient dT/dy, for that i have to get temperature of two adjacent cell center.first adjacent cell center data can be access by using C_T(c0,t0) but how to access next cell center temp.please help me ...
Attached Images
File Type: jpg GRAD.JPG (12.7 KB, 12 views)
sat_fire is offline   Reply With Quote

Old   February 15, 2018, 08:51
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Why don't you just use the built-in temperature gradient?

Search in the help for "Gradient (G) and Reconstruction Gradient (RG) Vector Macros".
sat_fire likes this.
pakk is offline   Reply With Quote

Old   February 16, 2018, 04:03
Default
  #3
Member
 
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 9
annan is on a distinguished road
Hello sat_fire,

You can access the next cells temperature using C_T(c1,t1) if you are in the interior of your domain. This link can help : https://www.sharcnet.ca/Software/Flu...udf/node92.htm

If you want the gradient without calculating it in each cell, then you can use the macros C_T_G or C_T_RG as suggested by pakk.

Hope this will help.
Good luck
sat_fire likes this.
annan 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
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 12:25
Extracting cell centre values WITHOUT interpolation dalaron OpenFOAM Post-Processing 1 August 18, 2013 00:39
Adjacent Cell Zone help yus310 Main CFD Forum 0 February 13, 2012 18:43
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
how to access each cell of a face? (user fortran) Katariina CFX 3 January 28, 2008 09:16


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