@@ -7417,70 +7417,6 @@ void CPhysicalGeometry::VisualizeControlVolume(const CConfig* config) const {
74177417 }
74187418}
74197419
7420- void CPhysicalGeometry::SetCoord_Smoothing (unsigned short val_nSmooth, su2double val_smooth_coeff, CConfig* config) {
7421- unsigned short iSmooth, nneigh, iMarker;
7422- su2double *Coord_Old, *Coord_Sum, *Coord, *Coord_i, *Coord_j, Position_Plane = 0.0 ;
7423- unsigned long iEdge, iPoint, jPoint, iVertex;
7424- su2double eps = 1E-6 ;
7425- bool NearField = false ;
7426-
7427- Coord = new su2double[nDim];
7428-
7429- nodes->SetCoord_Old ();
7430-
7431- /* --- Jacobi iterations ---*/
7432- for (iSmooth = 0 ; iSmooth < val_nSmooth; iSmooth++) {
7433- nodes->SetCoord_SumZero ();
7434-
7435- /* --- Loop over Interior edges ---*/
7436- for (iEdge = 0 ; iEdge < nEdge; iEdge++) {
7437- iPoint = edges->GetNode (iEdge, 0 );
7438- Coord_i = nodes->GetCoord (iPoint);
7439-
7440- jPoint = edges->GetNode (iEdge, 1 );
7441- Coord_j = nodes->GetCoord (jPoint);
7442-
7443- /* --- Accumulate nearest neighbor Coord to Res_sum for each variable ---*/
7444- nodes->AddCoord_Sum (iPoint, Coord_j);
7445- nodes->AddCoord_Sum (jPoint, Coord_i);
7446- }
7447-
7448- /* --- Loop over all mesh points (Update Coords with averaged sum) ---*/
7449- for (iPoint = 0 ; iPoint < nPoint; iPoint++) {
7450- nneigh = nodes->GetnPoint (iPoint);
7451- Coord_Sum = nodes->GetCoord_Sum (iPoint);
7452- Coord_Old = nodes->GetCoord_Old (iPoint);
7453-
7454- if (nDim == 2 ) {
7455- Coord[0 ] = (Coord_Old[0 ] + val_smooth_coeff * Coord_Sum[0 ]) / (1.0 + val_smooth_coeff * su2double (nneigh));
7456- Coord[1 ] = (Coord_Old[1 ] + val_smooth_coeff * Coord_Sum[1 ]) / (1.0 + val_smooth_coeff * su2double (nneigh));
7457- if ((NearField) && ((Coord_Old[1 ] > Position_Plane - eps) && (Coord_Old[1 ] < Position_Plane + eps)))
7458- Coord[1 ] = Coord_Old[1 ];
7459- }
7460-
7461- if (nDim == 3 ) {
7462- Coord[0 ] = (Coord_Old[0 ] + val_smooth_coeff * Coord_Sum[0 ]) / (1.0 + val_smooth_coeff * su2double (nneigh));
7463- Coord[1 ] = (Coord_Old[1 ] + val_smooth_coeff * Coord_Sum[1 ]) / (1.0 + val_smooth_coeff * su2double (nneigh));
7464- Coord[2 ] = (Coord_Old[2 ] + val_smooth_coeff * Coord_Sum[2 ]) / (1.0 + val_smooth_coeff * su2double (nneigh));
7465- if ((NearField) && ((Coord_Old[2 ] > Position_Plane - eps) && (Coord_Old[2 ] < Position_Plane + eps)))
7466- Coord[2 ] = Coord_Old[2 ];
7467- }
7468-
7469- nodes->SetCoord (iPoint, Coord);
7470- }
7471-
7472- /* --- Copy boundary values ---*/
7473- for (iMarker = 0 ; iMarker < nMarker; iMarker++)
7474- for (iVertex = 0 ; iVertex < nVertex[iMarker]; iVertex++) {
7475- iPoint = vertex[iMarker][iVertex]->GetNode ();
7476- Coord_Old = nodes->GetCoord_Old (iPoint);
7477- nodes->SetCoord (iPoint, Coord_Old);
7478- }
7479- }
7480-
7481- delete[] Coord;
7482- }
7483-
74847420bool CPhysicalGeometry::FindFace (unsigned long first_elem, unsigned long second_elem, unsigned short & face_first_elem,
74857421 unsigned short & face_second_elem) {
74867422 if (first_elem == second_elem) return false ;
0 commit comments