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

I want to use pressure of 1 face in udf that compiled on other face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2010, 16:19
Question I want to use pressure of 1 face in udf that compiled on other face
  #1
New Member
 
iman
Join Date: Oct 2009
Posts: 9
Rep Power: 17
iman_1844 is on a distinguished road
dear guys

in my udf, I need to use pressure on the face that this face isnt exist in my udf.

for example, i wrote udf and compiled on "Shadow boundary" but i need to use pressure on "Canopy Boundary" at this udf. (i need pressure difference on 2 faces)

please help to write this udf.
iman_1844 is offline   Reply With Quote

Old   June 7, 2010, 03:06
Default
  #2
New Member
 
Javier Larrondo
Join Date: Jun 2009
Posts: 17
Blog Entries: 1
Rep Power: 17
jalarron is on a distinguished road
Hi I don't know if you already solve this problem but here is my solution (I haven't tried so you would have to play around it ok?)

-- to be inserted in your macro that has access to "Shadow Boundary" --
real FC[2];
face_t f_canopy;
int ID = 1; /* Zone ID for "Canopy boundary" this number you can find it Define> Boundary Conditions */
Thread *t_canopy = Lookup_Thread(domain, ID);

begin_f_loop(f_canopy, t_canopy) /* loop through "Canopy boundary" */
{
F_CENTROID(FC,f,thread);
printf("x-coord = %f y-coord = %f", FC[0], FC[1]);
}
end_f_loop(f,thread)
jalarron is offline   Reply With Quote

Old   June 9, 2010, 16:44
Default
  #3
New Member
 
iman
Join Date: Oct 2009
Posts: 9
Rep Power: 17
iman_1844 is on a distinguished road
thank you,
your opinion is correct,
but i found a new way for solving my problem, i have been use THREAD_SHADOW because i want the pressure on shadow.

ts=TREAD_SHADOW(tf);
iman_1844 is offline   Reply With Quote

Old   June 10, 2010, 13:55
Default
  #4
Member
 
alliche redha
Join Date: Jun 2010
Posts: 53
Rep Power: 16
cheredha is on a distinguished road
hi iman

i need you, my name is Redha, you can contact me on cheredha@gmail.com

i need you iman
cheredha is offline   Reply With Quote

Reply

Tags
udf


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
"Pressure Inlet" Boundary Setup Wijaya FLUENT 15 May 18, 2016 11:08
Why udf can not be compiled in my pc? Xinqiang FLUENT 0 June 10, 2009 15:32
UDF to monitor minimum pressure on the wall Arvind Jayaprakash FLUENT 0 September 20, 2007 12:53
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00
UDF in Fluent to Match Mass Flow at Pressure Outlet Jonas Larsson Main CFD Forum 1 April 29, 1999 11:44


All times are GMT -4. The time now is 14:20.