|
[Sponsors] |
Extract area per element for a specific sur/face |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 13, 2014, 15:04 |
Extract area per element for a specific sur/face
|
#1 |
New Member
Nitin
Join Date: Feb 2014
Posts: 9
Rep Power: 12 |
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. |
|
August 22, 2014, 17:29 |
|
#2 | |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Quote:
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); } } } |
||
|
|
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 |