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

F_AREA(A,f,t)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2007, 06:41
Default F_AREA(A,f,t)
  #1
manu
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); }

  Reply With Quote

Old   December 5, 2007, 06:43
Default Re: F_AREA(A,f,t)
  #2
manu
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); }

  Reply With Quote

Old   December 5, 2007, 12:41
Default Re: F_AREA(A,f,t)
  #3
mohanraj
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)

  Reply With Quote

Reply


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



All times are GMT -4. The time now is 14:56.