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

udf, boundary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2011, 08:55
Default udf, boundary
  #1
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15
hamid1 is on a distinguished road
Hi
I actually want to measure the pressure at the outlet boundary condition,
i have written the following code :

DEFINE_PROFILE(outlet_catheter,thread,nv)

{


face_t f;
real NV_VEC (A);



T=RP_Get_Real("flow-time");


begin_f_loop(f,thread)

{
F_AREA (A,f,thread);

force+=F_P(f,thread)*NV_MAG(A);
PF= force/(15.0*(10^(-4)));



}

end_f_loop(f,thread)



}

but it seems that its not calculating the pressure properly,
i would appreciate if anyone could kindly help me..
hamid1 is offline   Reply With Quote

Old   December 3, 2011, 03:43
Default
  #2
New Member
 
litter
Join Date: May 2011
Posts: 17
Rep Power: 14
litterfree is on a distinguished road
you should use other macros. such as DEFINE ADJUST(), DEFINE_EXECUTE_AT_END(),
DEFINE_ON_DEMAND()
__________________
never ever give up
litterfree is offline   Reply With Quote

Old   December 3, 2011, 09:57
Default
  #3
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15
hamid1 is on a distinguished road
thanks so much for the reply,
im quite new in udf, so i want to ask,
between the macros that u have mentioned which one should I choose ?
how can i inform fluent that which face i want to measure the pressure?
besides, is the code i have written for measuring pressure correct?

thanks again
hamid1 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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
UDF for 3rd Kind Boundary Condition Ismail FLUENT 2 October 26, 2015 01:57
UDF for Boundary layer at inlet for cavity study vasuaero1988 Fluent UDF and Scheme Programming 0 August 26, 2010 05:22
Boundary conditions by UDF s.sami FLUENT 1 August 23, 2010 15:19
Boundary conditions by UDF s.sami Fluent UDF and Scheme Programming 0 August 23, 2010 11:30


All times are GMT -4. The time now is 01:13.