|
[Sponsors] |
June 17, 2014, 12:22 |
Calculation of patch area in a 2D geometry
|
#1 |
Member
Luca
Join Date: Mar 2011
Location: Italy
Posts: 62
Rep Power: 15 |
Dear All,
I have a very simple 2D channel flow of 1 unit length height. When using the following code to determine the inlet patch area I get the value 0.25 instead of the expected value of 1: Code:
scalar area = gSum(mesh.magSf().boundaryField()["inlet"]); Info << "Inlet area: " << area << endl; Thank you in advance, Luca |
|
July 11, 2014, 11:19 |
|
#2 | |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 13 |
Quote:
I think you are calculating area not the height. Even in 2D, there is one cell thickness along z direction. Check what is the length you have given in z direction in blockMesh and divide the area by this length, you will get the height !! Hope this helps !!
__________________
Thanks and Regards Vignesh |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GAMBIT] periodic faces not matching | Aadhavan | ANSYS Meshing & Geometry | 6 | August 31, 2013 11:25 |
[Commercial meshers] Fluent msh and cyclic boundary | cfdengineering | OpenFOAM Meshing & Mesh Conversion | 48 | January 25, 2013 03:28 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 04:04 |
[mesh manipulation] Using createPatch in place of couplePatches | sripplinger | OpenFOAM Meshing & Mesh Conversion | 8 | November 13, 2009 07:14 |
Surface integral calculation by undefined area | Bloshchitsyn Vladimir | CFX | 0 | November 18, 2007 22:19 |