|
[Sponsors] |
December 22, 2021, 08:52 |
Inlet and outlet temp code
|
#1 |
New Member
AHMED KANDIL
Join Date: Oct 2021
Posts: 14
Rep Power: 5 |
HI every one ..
I try to write a udf code for inlet and outlet temp and this the part of it . when i interpreted this code in fluent there are error as indicated before the last line (invalid expression type for if: float.).. How i can solve this error ? DEFINE_PROFILE(Temp_inlet,t,i) { face_t f; real current_time; current_time=CURRENT_TIME; if (current_time = 0) { begin_f_loop(f,t) { F_PROFILE(f,t,i) = 200; } end_f_loop(f,t) } else if (current_time < stop_time) { begin_f_loop(f,t) { F_PROFILE(f,t,i)= (Q/(m*Cp)) + ave_T; } end_f_loop(f,t) } else { begin_f_loop(f,t) { F_PROFILE(f,t,i)= 288.15; } end_f_loop(f,t) } ERROR IS IN LINE (invalid expression type for if: float.) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reversed flow using pressure inlet and outlet? | here_for_help | FLUENT | 0 | September 28, 2018 16:20 |
massflow of inlet and outlet are not equal | knoedl1 | OpenFOAM Running, Solving & CFD | 11 | July 3, 2018 15:00 |
UDF profile: Fluent method for coupling inlet and outlet | I-mech | Fluent UDF and Scheme Programming | 0 | May 10, 2014 11:36 |
inlet temp = outlet temp | Romek | CFX | 6 | March 9, 2011 21:10 |
VOF Outlet boundary condition in cfd - ace | JM | Main CFD Forum | 0 | December 15, 2006 09:07 |