|
[Sponsors] |
September 22, 2021, 22:39 |
F_AREA for an interior face
|
#1 |
New Member
ShOh
Join Date: Jul 2020
Posts: 12
Rep Power: 6 |
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, |
|
Tags |
area, face, f_area |
|
|
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 06:57 |
How to build current blower fan model in Flotherm | eric0722 | FloEFD, FloWorks & FloTHERM | 3 | January 2, 2021 03:36 |
Trouble modelling a jet fan | josee | OpenFOAM Pre-Processing | 0 | September 23, 2016 14:06 |
Constant Power Fan Model using General Momentum Source | Dano62 | CFX | 0 | April 14, 2016 14:09 |
fan driven flow, Fan BC validation (getting lost) | soonic | OpenFOAM Running, Solving & CFD | 0 | July 7, 2013 20:16 |