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

udf, b.c. measurment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2011, 09:21
Default udf, b.c. measurment
  #1
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15
hamid1 is on a distinguished road
Hi

i want to calculate average pressure at the boundary,
the code is as follow?

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);
P= force/(area of cross section);
VF = QF/(area of cross section);
F_PROFILE(f,thread,nv)=-VF;
}
end_f_loop(f,thread)
}

my question is for finding average pressure at the boundary which of the following is correct?

1.
F_AREA (A,f,thread);
force+=F_P(f,thread)*NV_MAG(A);
pressure = force/(area of cross section)
OR

2.

Pressure= F_P(f,thread);




%%%%%%%%%%%%%

another question is can i use minus value in velocity inlet?

thanks alot for ur helps
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
Urgent! Help on UDF to set B.C. of 3rd type Ray Hong FLUENT 0 December 28, 2005 19:35
spatial and transient B.C. using UDF Park FLUENT 0 April 28, 2005 21:32
UDF 3D inlet b.c. problem Andrew FLUENT 4 May 25, 2004 04:24
UDF get the variables of specified B.C David FLUENT 4 February 8, 2004 22:15
About UDF of Inlet and Periodic B.C. JI Lucheng FLUENT 2 December 28, 2001 19:18


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