CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Questions on Vertex Normal for 2D Cases (https://www.cfd-online.com/Forums/su2/189319-questions-vertex-normal-2d-cases.html)

Joel Ho June 17, 2017 19:13

Questions on Vertex Normal for 2D Cases
 
Hi there,

I am wondering why in the function CPhysicalGeometry::SetBoundControlVolume, the vertex normal for 2D is calculated with:

Code:

vertex[iMarker][iVertex]->SetNodes_Coord(Coord_Elem_CG, Coord_Vertex);
I could be misunderstanding the code but my impression is that it should be:
Code:

vertex[iMarker][iVertex]->SetNodes_Coord(Coord_Edge_CG, Coord_Vertex);
Could there be something that I am missing there? Any help is greatly appreciated. The above code was found in: SU2/Common/src/geometry_structure.cpp.

Thanks
Joel


All times are GMT -4. The time now is 21:48.