CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Find out the size (area) of a face (

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:


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

All times are GMT -4. The time now is 23:33.