CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Temperature distribution for gas turbine inlet conditions (http://www.cfd-online.com/Forums/fluent/97521-temperature-distribution-gas-turbine-inlet-conditions.html)

 Aerogirl February 19, 2012 09:27

Temperature distribution for gas turbine inlet conditions

Hi all,

Is anyone aware of a way that I can model a region of high temperature at the inlet face of my gas turbine blade simulation?

I have a sliding mesh simulation with a stator in front of a rotor and would like to vary the temperature gradient on the inlet flow at the stator to see the effect that it will have on the blades.

Ideally I am looking to simulate a region in the centre of my square inlet face that is hotter than the surroundings as in gas turbines there is typically a variation in the temperature gradient as the hot gas hits the blades.

I have googled only to find a very complex C++ programing method and I feel this is too advanced for what I need to do.

Any suggestions will be greatly appreciated :)

AeroGirl.

 Aerogirl February 19, 2012 16:20

UDF temperature profile

Hi all,

As I am modeling the flowpath in 3D I assume I need a 3D code so I wrote one. It doesnt seem to be working however and I am sure it is because I have not defined my variables correctly. I simply want the flow in the middle of the square inlet to be hotter than that of the outside so I am not even sure if I need the additional z variable. The middle of the rectangle lies at (0,0.365) I am getting divergence because of f when I try to run it in FLUENT. It is as follows:

#include "udf.h"
DEFINE_PROFILE(inlet_temp, t, i)
{
real x[ND_ND];
real y;
real z;
face_t f;
begin_f_loop(f, t)
{
F_CENTROID(x,f,t);
y = x[1];
z = x[2];
F_PROFILE(f, t, i) = 124.-0.365*0.365/(0.035*0.035)*124.;
}