CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How do I get temperature of cell thread (https://www.cfd-online.com/Forums/fluent/198858-how-do-i-get-temperature-cell-thread.html)

JuBong February 19, 2018 04:58

How do I get temperature of cell thread
 
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)
}

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

Adam_PHD February 22, 2018 13:00

adjacent cell temperature
 
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


All times are GMT -4. The time now is 14:40.