|
[Sponsors] |
December 5, 2007, 06:41 |
F_AREA(A,f,t)
|
#1 |
Guest
Posts: n/a
|
I would like to access the area value of all the mesh pieces of a boundary face in order to compute the total area of the face. I'm using: F_AREA(A,f,t). My question is: do I need to include it in the "begin_f_loop" or does the macro F_AREA(A,f,t) save automatically all the components? so in C-language: is it like this?:
real Atot=0; F_AREA(A,f,t) begin_f_loop(f,t) { Atot= Atot+NV_MAG(A); } or like this: real Atot=0; begin_f_loop(f,t) { F_AREA(A,f,t) Atot= Atot+NV_MAG(A); } |
|
December 5, 2007, 06:43 |
Re: F_AREA(A,f,t)
|
#2 |
Guest
Posts: n/a
|
Sorry I forgot the semicolon after F_AREA(A,f,t), so one more time:
real Atot=0; F_AREA(A,f,t); begin_f_loop(f,t) { Atot= Atot+NV_MAG(A); } or like this: real Atot=0; begin_f_loop(f,t) { F_AREA(A,f,t); Atot= Atot+NV_MAG(A); } |
|
December 5, 2007, 12:41 |
Re: F_AREA(A,f,t)
|
#3 |
Guest
Posts: n/a
|
real Atot=0; begin_f_loop(f,t) { F_AREA(A,f,t); Atot= Atot+NV_MAG(A); } end_f_loop(f,t)
|
|
|
|