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

How do I get temperature of cell thread

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2018, 05:58
Default How do I get temperature of cell thread
  #1
New Member
 
JuBong
Join Date: Jan 2018
Posts: 16
Rep Power: 8
JuBong is on a distinguished road
Hi everyone.

The square module was given a grid of 100 cells of 10 x 10.
The left side is the entrance, the right side is the exit, the top and bottom are the walls.
The inlet is the velocity-inlet, the outlet is the pressure-outlet, and the top and bottom are the insulation conditions.

I want to use the temperature of the center of each cell in the thread of 10 cells on the inlet side to enter the temperature on the inlet side.

However, the fluent is turned off.
Is my method wrong?
Is not C_T (c, t) bringing the temperature of the center of the cell?
Or is it because you did not enter the initial conditions?

How do I get the temperature of each center of a cell thread?

I would really appreciate your reply.

This is my code.

-----------------------------------------------------------------------

#include "udf.h"

DEFINE_PROFILE(temperature, thread, position)
{
real x[ND_ND];
real y;
face_t f;
Thread *t;
cell_t c;
real temp;

begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
temp = C_T(f,t);
F_PROFILE(f, thread, position) = temp + 30;
}
end_f_loop(f, thread)
}

-----------------------------------------------------------------------
JuBong is offline   Reply With Quote

Old   February 22, 2018, 14:00
Default adjacent cell temperature
  #2
New Member
 
Adam
Join Date: Dec 2017
Posts: 13
Rep Power: 8
Adam_PHD is on a distinguished road
I am working on heat transfer in the naturally aspirated diesel engine. Currently I use Ansys Fluent to simulate the total cycle of the engine my goal is to correct the estimate of the heat flow.


My problem is that I can not define the domain of computing ie the combustion chamber, precisely how to define in UDF: the temperature (TC) of the cell adjacent to the walls?

Please orient me to his
Adam_PHD 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
Temperature anomoly at pressure reference cell will.logie OpenFOAM Running, Solving & CFD 22 July 17, 2021 00:26
How to give the temperature condition by using the temperature of next cell in UDF? JuBong Fluent UDF and Scheme Programming 6 February 19, 2018 07:09
Neighboring cells in tetrahedral mesh vishwesh OpenFOAM Programming & Development 9 November 10, 2017 08:06
thread facet cell in flunt peter FLUENT 2 September 27, 2005 23:16
Warning 097- AB Siemens 6 November 15, 2004 05:41


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