CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Inlet and outlet temp code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2021, 08:52
Smile Inlet and outlet temp code
  #1
New Member
 
AHMED KANDIL
Join Date: Oct 2021
Posts: 14
Rep Power: 5
Ahmed kandil is on a distinguished road
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.)
}
Ahmed kandil is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:22.