|
[Sponsors] |
July 24, 2014, 06:57 |
If statement for time dependent UDF
|
#1 |
New Member
Serhan TATAR
Join Date: Jul 2014
Posts: 6
Rep Power: 12 |
Hello my friends;
I am currently working on defroster performance on inclined surfaces and I have the attached temperature warm-up curve for inlet condition. I try to write an UDF but every single time it gives parse error for "else" statement line. Anyone knows the rootcause of this error could help me? ************************************************** ****** #include "udf.h" DEFINE_PROFILE(temperature,thread,position) { face_t f; real t=CURRENT_TIME; begin_f_loop(f,thread) t=t-floor(t); { if (t>=1750.); F_PROFILE(f,thread,position)= 323.; else F_PROFILE(f,thread,position)=6.*0.000000001*t*t*t-3.*0.00001*t*t+0.0636*t+265.; } end_f_loop(f,thread) ************************************************** ****** Thank you.. |
|
July 29, 2014, 00:44 |
|
#2 | |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
temperature dependent deviation | hebeldebel | STAR-CCM+ | 7 | July 30, 2014 11:44 |
Temperature dependent propertys and finalIteration in chtMultiRegionFoam | waiter120 | OpenFOAM | 0 | February 20, 2013 06:22 |
question about a temperature dependent HTC | Christoph Ley | Phoenics | 2 | June 5, 2008 10:05 |
Temperature dependent property | kdarc | OpenFOAM Running, Solving & CFD | 3 | March 27, 2007 17:21 |
to take K & Cp as temperature dependent | kishore rathore | FLUENT | 1 | February 17, 2004 05:33 |