|
[Sponsors] |
November 23, 2011, 09:21 |
udf, b.c. measurment
|
#1 |
Senior Member
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15 |
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 |
|
|
|
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 |