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

Extract area per element for a specific sur/face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2014, 15:04
Question Extract area per element for a specific sur/face
  #1
New Member
 
Nitin
Join Date: Feb 2014
Posts: 9
Rep Power: 12
neetin is on a distinguished road
Hi,

For post-processing purpose, I wish to pick a sur/face (based on a specific MARKER_TAG) and write area for each element associated with that sur/face. Where can I find the area calculation and write/dump into a file?

Thank you for your help.
neetin is offline   Reply With Quote

Old   August 22, 2014, 17:29
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Quote:
Originally Posted by neetin View Post
Hi,

For post-processing purpose, I wish to pick a sur/face (based on a specific MARKER_TAG) and write area for each element associated with that sur/face. Where can I find the area calculation and write/dump into a file?

Thank you for your help.
Hi,
Please find below an example about how to compute the area of a surface element,
Cheers,
Francisco

for (iMarker = 0; iMarker < config->GetnMarker_All(); iMarker++) {
if (config->GetMarker_All_KindBC(iMarker) == case EULER_WALL) {
for (iVertex = 0; iVertex < geometry->nVertex[iMarker]; iVertex++) {

Normal = geometry->vertex[val_marker][iVertex]->GetNormal();
Area = 0.0;
for (iDim = 0; iDim < nDim; iDim++) Area += Normal[iDim]*Normal[iDim];
Area = sqrt (Area);

}
}
}
fpalacios is offline   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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Specific heat in STAR-CD Andrew Siemens 3 September 3, 2009 23:33
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02
set a source term to some specific area beginner1 CFX 1 February 19, 2003 04:51
Postprocessing in 2D - specific area Anthony Wachs FLUENT 3 July 6, 2001 10:59


All times are GMT -4. The time now is 00:41.