|
[Sponsors] |
please, would anyone help me with this UDF, inlet temperature change with time |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 17, 2014, 14:26 |
please, would anyone help me with this UDF, inlet temperature change with time
|
#1 |
New Member
Juun
Join Date: Aug 2013
Location: UK
Posts: 12
Rep Power: 13 |
here is my UDF, i used random number to test it. but the result (temperature at inlet) stays at 450. I don't know where is wrong. Would you help me out? Thanks
#include "udf.h" DEFINE_PROFILE(inlet_t, thread, index) { face_t f; real time=RP_Get_Real("flow-time"); begin_f_loop(f,thread) { if(time>0 && time<=6) F_PROFILE(f,thread,index)=375; else if(time>6 && time<=9) F_PROFILE(f,thread,index)=675; else if(time>9) F_PROFILE(f,thread,index)=450; } end_f_loop(f,thread) } |
|
March 18, 2014, 05:56 |
|
#2 |
New Member
Sadegh Tafakor
Join Date: May 2012
Location: Tehran
Posts: 14
Rep Power: 14 |
Hi Dear juun,
I tested your UDF and it worked correctly! i tested it in a simple channel and attach temperature contour. as you can see, 3 temperature field are appear in this contour. Regards. Sadegh. |
|
March 18, 2014, 11:03 |
|
#3 | |
New Member
Juun
Join Date: Aug 2013
Location: UK
Posts: 12
Rep Power: 13 |
Quote:
Thank you very much for the testing. it's brilliant. I really appreciate it. I finally figured out that I made mistake on extracting the results. Regards Juun |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to export time series of variables for one point? | mary mor | OpenFOAM Post-Processing | 8 | July 19, 2017 11:54 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
UDF for variable temperature with time | CaglarCoskun | Fluent UDF and Scheme Programming | 8 | January 15, 2014 10:15 |
An issue with temperature change in unsteady prob | Ashok kumar | FLUENT | 1 | January 13, 2009 05:34 |