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

Custom field (temperature - time)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2014, 04:22
Default Custom field (temperature - time)
  #1
New Member
 
clement
Join Date: May 2014
Posts: 2
Rep Power: 0
m0stik is on a distinguished road
Hello,
I have built a calcul on Fluent 14.5 and I have a problem,
I would like to apply a temperature increasing with time on a wall.
The temperature increases as a Ln(x) function, how can I do this ?

I have the formula of the temperature.

Can I use: Define / custome field function / ... I cannot select time as unknow variable.

Thanks for your help and sorry if I made mistake (I'm french student)

Bye
m0stik is offline   Reply With Quote

Old   May 7, 2014, 04:52
Default
  #2
New Member
 
clement
Join Date: May 2014
Posts: 2
Rep Power: 0
m0stik is on a distinguished road
Reading on the forum I have found that I have to creat an UDF file,
In a text file I have written :

#include "udf.h"

DEFINE_PROFILE(HC_temp_BC,thread,i)
{
face_t f;
begin_f_loop(f,thread)
{
t=CURRENT_TIME;
F_PROFILE(f,thread,i)=(23.55*ln(t))+339.2;
}
end_f_loop(f,thread)
}

(23.55*ln(t))+339.2 is the formula of the temperature after experimental trials, do you think it's ok ? Can I use this udf file ?

When I try to compil it in Fluent, I cannot select the file ? maybe because it's a .txt ?

Thanks
m0stik is offline   Reply With Quote

Old   May 7, 2014, 06:14
Default
  #3
Senior Member
 
Bionico's Avatar
 
Flavio
Join Date: Sep 2011
Location: Brescia, Italy
Posts: 181
Rep Power: 15
Bionico is on a distinguished road
Hello m0stik,
yes, you have to rename it changing the format from .txt to .c

Regards
__________________
Bionico
Bionico 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
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 08:07
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 13:52
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
AMG versus ICCG msrinath80 OpenFOAM Running, Solving & CFD 2 November 7, 2006 15:15


All times are GMT -4. The time now is 22:51.