CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Find out the size (area) of a face (https://www.cfd-online.com/Forums/openfoam-programming-development/118908-find-out-size-area-face.html)

GPesch June 6, 2013 10:13

Find out the size (area) of a face
 
Hi Foamers,

following issue:
I would like to calculate the size of a face or find some routine which will return this information.

I am working with the DSMC solver. The basic lagrangian particle class is able to return the face label the particle I am looking at is in:

Although, I am quite confused, there are 3:

tetFace();
tetPt();
face();

The first two are described the same:

Return current tet face particle is in

The third one is described like this:

Return current face particle is on otherwise -1


Question: Whats the difference between a tet face and a face? Whats a tet? Whats a tri? They are talking about that in the code all the time, but i'm not familiar with that terms ...

Can anybody help me out with a simple routine of how to calculate the area of a face?

Thank you so much in advance,

best regards
Georg


All times are GMT -4. The time now is 06:19.