CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Define variable temp w.r.t time in fluent (https://www.cfd-online.com/Forums/fluent-udf/128502-define-variable-temp-w-r-t-time-fluent.html)

dhananjay January 14, 2014 05:07

Define variable temp w.r.t time in fluent
 
Hello,
I am trying to simulate defrosting of windshield.
for this I have to give variable temp at inlet of duct as per warm up profile below-

TIME TEMP
0 -8
50 -7
100 -2
150 4
200 8
250 13
300 15
350 17.5
400 19.5
450 22
500 24
550 26
600 27
650 29
700 31
750 33
800 35
850 37
900 39
950 41
1000 43
1050 45
1100 47
1150 49
1200 51
1250 53
1300 55
1350 57
1400 59
1450 61
1500 63
1550 65
1600 66.6
1650 66.6
1700 66.6
1750 66.6
1800 66.6



I have created equation for temp w.r.t time.
Please help me how to write UDF for varying temp at inlet.
Thanks in advance.
Dhananjay.

macfly January 14, 2014 11:45

here is an example: http://www.cfd-online.com/Forums/flu...tml#post463127

And please search in the UDF manual before asking questions.

serhan July 24, 2014 06:42

Hello dhananjay,

I have the same problem. As your data, temperature is being stable after some time, how do you set your code? For the first part I guess you wrote a polinom. Did you use if statement after 1600 second?


All times are GMT -4. The time now is 18:08.