CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Calculation of boundary normals (https://www.cfd-online.com/Forums/su2/168579-calculation-boundary-normals.html)

kmandar March 24, 2016 14:00

Calculation of boundary normals
 
Hi,

Can anyone please point me to the part of the code which calculates the boundary normals?

I believe the normal components can be output in the variable Normal using:

Code:

vertex[iMarker][iVertex]->GetNormal(Normal);
for the iVertex on the boundary iMarker.

However, I am not sure how (and where in the code) the value of these normal vectors are calculated based on the input mesh file.

Thanks,
Mandar

fpalacios March 31, 2016 01:09

Hi Mandar,
Take a look at

void CPhysicalGeometry::SetBoundControlVolume(CConfig *config, unsigned short action) {

in geometry_structure.cpp

and CVertex::SetNodes_Coord

in dual_grid_structure.cpp

Best,
Francisco

kmandar April 1, 2016 11:00

Hi Francisco,

That helps!

Thanks a lot,
Mandar


All times are GMT -4. The time now is 08:23.