CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Field of temperature (https://www.cfd-online.com/Forums/fluent/161505-field-temperature.html)

fnatic09 October 23, 2015 05:44

Field of temperature
 
Hello,
I have a question concerning the definition of the temperature field. This is a turbine disk treated by mass flow which generates below temperature distribution. Is it possible to create these boundary conditions in fluent ? If yes could you tell me how ?

http://i57.tinypic.com/qs1fo6.jpg

LuckyTran October 24, 2015 14:04

You can specify a temperature profile at the inlet.

fnatic09 October 25, 2015 05:43

where I can exactly set that ? Shouldn't I use a UDF to create those BC's?
EDIT: anyone ? I read the whole manual but I still have no idea how to create appropriate commands to define this temperature distribution

LuckyTran October 27, 2015 10:56

A UDF is probably the most complicated way, an much easier way is to use a profile.

What you do is create a text file of coordinates and variables and read these into Fluent as a profile. Go to define->profiles->read

If you can't figure out the format of the profile then what you should do is write a profile the same way and then edit what's there. It's preferably anyway to write a profile first, which will conveniently output the coordinates of all the grid points (which helps to avoid needing to interpolate the temperature profile onto the grid). Fluent user guide section 6.6 describes the format of the profile file in detail.

Next when you go to specify the inlet temperature in the boundary conditions (before you could only see constant or new input parameter) you will now be able to use the temperature profile that you imported.

There are tutorials for how to do inlet profiles both spatially and temporally. Also a search of this forum will give lots of examples.

fnatic09 October 28, 2015 10:41

So I wrote this UDF file, later I will try make a profile file.
Code:

#include "udf.h"
DEFINE_PROPERTY(knew,c,t)
{
  real ktc;
  real pos[ND_ND];
  real y;
  C_CENTROID(pos,c,t);
  y = pos[1];
  real temp = C_T(c,t);
  ktc = (3. * pow (temp,2.)) + (6. * y);
  return ktc;
}

but it throws me an error that variables are not defined in 10th line:confused:.
Also how to get in results (expect an axial) a radial temp distribution in this case -
http://i66.tinypic.com/mlk204.png
Is it possible? I tried several options but none of them does'nt work.


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