|June 17, 2014, 12:22||
Calculation of patch area in a 2D geometry
Join Date: Mar 2011
Posts: 38Rep Power: 6
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:
scalar area = gSum(mesh.magSf().boundaryField()["inlet"]); Info << "Inlet area: " << area << endl;
Thank you in advance,
|July 11, 2014, 11:19||
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 35Rep Power: 5
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
|Thread||Thread Starter||Forum||Replies||Last Post|
|[GAMBIT] periodic faces not matching||Aadhavan||ANSYS Meshing & Geometry||6||August 31, 2013 11:25|
|Fluent msh and cyclic boundary||cfdengineering||OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...||48||January 25, 2013 04:28|
|Using starToFoam||clo||OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...||33||September 26, 2012 04:04|
|Using createPatch in place of couplePatches||sripplinger||OpenFOAM Mesh Utilities||8||November 13, 2009 08:14|
|Surface integral calculation by undefined area||Bloshchitsyn Vladimir||CFX||0||November 18, 2007 23:19|