|
[Sponsors] |
May 7, 2014, 04:22 |
Custom field (temperature - time)
|
#1 |
New Member
clement
Join Date: May 2014
Posts: 2
Rep Power: 0 |
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 |
|
May 7, 2014, 04:52 |
|
#2 |
New Member
clement
Join Date: May 2014
Posts: 2
Rep Power: 0 |
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 |
|
May 7, 2014, 06:14 |
|
#3 |
Senior Member
Flavio
Join Date: Sep 2011
Location: Brescia, Italy
Posts: 181
Rep Power: 15 |
Hello m0stik,
yes, you have to rename it changing the format from .txt to .c Regards
__________________
Bionico |
|
|
|
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 |