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

Field of temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2015, 05:44
Default Field of temperature
  #1
New Member
 
George
Join Date: Oct 2015
Posts: 5
Rep Power: 10
fnatic09 is on a distinguished road
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 ?

fnatic09 is offline   Reply With Quote

Old   October 24, 2015, 14:04
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You can specify a temperature profile at the inlet.
LuckyTran is offline   Reply With Quote

Old   October 25, 2015, 05:43
Default
  #3
New Member
 
George
Join Date: Oct 2015
Posts: 5
Rep Power: 10
fnatic09 is on a distinguished road
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

Last edited by fnatic09; October 27, 2015 at 09:05.
fnatic09 is offline   Reply With Quote

Old   October 27, 2015, 10:56
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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.
LuckyTran is offline   Reply With Quote

Old   October 28, 2015, 10:41
Default
  #5
New Member
 
George
Join Date: Oct 2015
Posts: 5
Rep Power: 10
fnatic09 is on a distinguished road
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.
Also how to get in results (expect an axial) a radial temp distribution in this case -

Is it possible? I tried several options but none of them does'nt work.
fnatic09 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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
calculate temperature gradient from temperature field xiyuqiu Main CFD Forum 14 July 30, 2012 14:38
temperature field in the hotRadiationRoomFvDOM tutorial mirko OpenFOAM Running, Solving & CFD 1 July 1, 2010 09:33
Benchmark data for temperature field in 2D cavity flow Vladislav Main CFD Forum 0 June 18, 2010 12:33


All times are GMT -4. The time now is 00:12.