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

Pressure Outlet Boundary udf problem!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2015, 07:06
Default Pressure Outlet Boundary udf problem!
  #1
New Member
 
Ayush Agrawal
Join Date: Jun 2014
Posts: 16
Rep Power: 12
ayushmorx is on a distinguished road
Hello,

I have been having trouble getting the following pressure outlet profile udf to interpret

If I Interpret, the error comes as

cpp -I"F:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0/src" -I"F:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0/cortex/src" -I"F:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0/client/src" -I"F:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0/multiport/src" -I. -DUDF
ONFIG_H="<udfconfig.h>" "F:\FLUENTVS\new\new\outlet1.c"
Error: F:\\FLUENTVS\\new\\new\\outlet1.c: line 21: parse error.

#include "udf.h"

DEFINE_PROFILE(outletpress, thread, index)

{

real x[ND_ND] ;

real y ;

face_t f;

begin_f_loop(f, thread)

{

F_CENTROID(x,f,thread) ;

y = x[1];

real temp=C_T(cell,thread);

F_PROFILE(f, thread, index) = 90859.208785*(exp(9.81*y/(287.058*temp))-1-9.81*y/(287.058*temp)) ;

}

end_f_loop(f, thread)

}


Please help, I have been stuck on this for days and cannot figure it out at all.
ayushmorx is offline   Reply With Quote

Reply

Tags
cfd, fluent, outlet


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
UDF to adjust pressure outlet a.lynchy FLUENT 4 February 15, 2021 01:50
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Pulsatile pressure inlet with pressure outlet a.lynchy FLUENT 3 March 23, 2012 14:45


All times are GMT -4. The time now is 12:31.