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

F_AREA for an interior face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2021, 21:39
Default F_AREA for an interior face
  #1
New Member
 
ShOh
Join Date: Jul 2020
Posts: 12
Rep Power: 5
Shoh is on a distinguished road
HI, I have a problem in calculating the area of an interior face (NOT boundary face).
Here, boundary face means that the face lies at domain boundary
but the interior face is in the domain.

I wrote a code for the calculation of face area:

#include "udf.h"
DEFINE_ON_DEMAND(ingression)
{
Domain *d = Get_Domain(1);
Thread *tf;
face_t f;

real sumarea;
real A[ND_ND];

int nid=12;
tf = Lookup_Thread(d,nid);

sumarea=0.0;

begin_f_loop(f,tf)
{
F_AREA(A,f,tf);
sumarea+=NV_MAG(A);
}
end_f_loop(f,tf)

Message("**** netarea = %f ****\n",sumarea);
}

This code works if the face of interest (nid) is boundary face but not for the interior face (e.g. nid=12).

How can I overcome this problem??
Thanks,
Shoh is offline   Reply With Quote

Reply

Tags
area, face, f_area


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
Appling a fan inside the domain/duct Tobi OpenFOAM Running, Solving & CFD 3 April 12, 2022 05:57
How to build current blower fan model in Flotherm eric0722 FloEFD, FloWorks & FloTHERM 3 January 2, 2021 02:36
Trouble modelling a jet fan josee OpenFOAM Pre-Processing 0 September 23, 2016 13:06
Constant Power Fan Model using General Momentum Source Dano62 CFX 0 April 14, 2016 13:09
fan driven flow, Fan BC validation (getting lost) soonic OpenFOAM Running, Solving & CFD 0 July 7, 2013 19:16


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