Skip to content

Commit 0acb93e

Browse files
authored
Merge branch 'develop' into issue_2342
2 parents 6c23298 + 181af08 commit 0acb93e

File tree

7 files changed

+2
-123
lines changed

7 files changed

+2
-123
lines changed

Common/include/CConfig.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class CConfig {
108108
su2double Opt_RelaxFactor; /*!< \brief Scale factor for the line search. */
109109
su2double Opt_LineSearch_Bound; /*!< \brief Bounds for the line search. */
110110
su2double StartTime;
111-
unsigned short SmoothNumGrid; /*!< \brief Smooth the numerical grid. */
112111
bool ContinuousAdjoint, /*!< \brief Flag to know if the code is solving an adjoint problem. */
113112
Viscous, /*!< \brief Flag to know if the code is solving a viscous problem. */
114113
EquivArea, /*!< \brief Flag to know if the code is going to compute and plot the equivalent area. */
@@ -6338,12 +6337,6 @@ class CConfig {
63386337
*/
63396338
bool GetAxisymmetric(void) const { return Axisymmetric; }
63406339

6341-
/*!
6342-
* \brief Get information about there is a smoothing of the grid coordinates.
6343-
* \return <code>TRUE</code> if there is smoothing of the grid coordinates; otherwise <code>FALSE</code>.
6344-
*/
6345-
unsigned short GetSmoothNumGrid(void) const { return SmoothNumGrid; }
6346-
63476340
/*!
63486341
* \brief Subtract one to the index of the finest grid (full multigrid strategy).
63496342
* \return Change the index of the finest grid.

Common/include/geometry/CGeometry.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -913,14 +913,6 @@ class CGeometry {
913913
*/
914914
inline virtual void SetMultiGridWallTemperature(const CGeometry* fine_grid, unsigned short val_marker) {}
915915

916-
/*!
917-
* \brief A virtual member.
918-
* \param[in] val_nSmooth - Number of smoothing iterations.
919-
* \param[in] val_smooth_coeff - Relaxation factor.
920-
* \param[in] config - Definition of the particular problem.
921-
*/
922-
inline virtual void SetCoord_Smoothing(unsigned short val_nSmooth, su2double val_smooth_coeff, CConfig* config) {}
923-
924916
/*!
925917
* \brief A virtual member.
926918
* \param[in] fine_grid - Geometrical definition of the child grid (for multigrid).

Common/include/geometry/CPhysicalGeometry.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,6 @@ class CPhysicalGeometry final : public CGeometry {
545545
void DetermineTimeLevelElements(CConfig* config, const vector<CFaceOfElement>& localFaces,
546546
map<unsigned long, CUnsignedShort2T>& mapExternalElemIDToTimeLevel);
547547

548-
/*!
549-
* \brief Do an implicit smoothing of the grid coordinates.
550-
* \param[in] val_nSmooth - Number of smoothing iterations.
551-
* \param[in] val_smooth_coeff - Relaxation factor.
552-
* \param[in] config - Definition of the particular problem.
553-
*/
554-
void SetCoord_Smoothing(unsigned short val_nSmooth, su2double val_smooth_coeff, CConfig* config) override;
555-
556548
/*!
557549
* \brief Compute 3 grid quality metrics: orthogonality angle, dual cell aspect ratio, and dual cell volume ratio.
558550
* \param[in] config - Definition of the particular problem.

Common/include/geometry/dual_grid/CPoint.hpp

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -771,14 +771,14 @@ class CPoint {
771771
}
772772

773773
/*!
774-
* \brief Get the value of the old coordinates for implicit smoothing.
774+
* \brief Get the value of the old coordinates.
775775
* \param[in] iPoint - Index of the point.
776776
* \return Old coordinates at a point.
777777
*/
778778
inline su2double* GetCoord_Old(unsigned long iPoint) { return Coord_Old[iPoint]; }
779779

780780
/*!
781-
* \brief Set the value of the vector <i>Coord_Old</i> for implicit smoothing.
781+
* \brief Set the value of the vector <i>Coord_Old</i>.
782782
* \param[in] iPoint - Index of the point.
783783
* \param[in] coord_old - Value of the coordinates.
784784
*/
@@ -791,27 +791,6 @@ class CPoint {
791791
*/
792792
void SetCoord_Old();
793793

794-
/*!
795-
* \brief Get the value of the summed coordinates for implicit smoothing.
796-
* \param[in] iPoint - Index of the point.
797-
* \return Sum of coordinates at a point.
798-
*/
799-
inline su2double* GetCoord_Sum(unsigned long iPoint) { return Coord_Sum[iPoint]; }
800-
801-
/*!
802-
* \brief Add the value of the coordinates to the <i>Coord_Sum</i> vector for implicit smoothing.
803-
* \param[in] iPoint - Index of the point.
804-
* \param[in] coord_sum - Value of the coordinates to add.
805-
*/
806-
inline void AddCoord_Sum(unsigned long iPoint, const su2double* coord_sum) {
807-
for (unsigned long iDim = 0; iDim < nDim; iDim++) Coord_Sum(iPoint, iDim) += coord_sum[iDim];
808-
}
809-
810-
/*!
811-
* \brief Initialize the vector <i>Coord_Sum</i>.
812-
*/
813-
void SetCoord_SumZero();
814-
815794
/*!
816795
* \brief Get the value of the grid velocity at the point.
817796
* \param[in] iPoint - Index of the point.

Common/src/CConfig.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,9 +2264,6 @@ void CConfig::SetConfig_Options() {
22642264
/* DESCRIPTION: Value to move motion origins (1 or 0) */
22652265
addUShortListOption("MOVE_MOTION_ORIGIN", nMoveMotion_Origin, MoveMotion_Origin);
22662266

2267-
/* DESCRIPTION: Before each computation, implicitly smooth the nodal coordinates */
2268-
addUnsignedShortOption("SMOOTH_GEOMETRY", SmoothNumGrid, 0);
2269-
22702267
/*!\par CONFIG_CATEGORY: Aeroelastic Simulation (Typical Section Model) \ingroup Config*/
22712268
/*--- Options related to aeroelastic simulations using the Typical Section Model) ---*/
22722269
/* DESCRIPTION: The flutter speed index (modifies the freestream condition) */
@@ -6877,8 +6874,6 @@ void CConfig::SetOutput(SU2_COMPONENT val_software, unsigned short val_izone) {
68776874

68786875
cout << endl <<"--------------- Space Numerical Integration ( Zone " << iZone << " ) ------------------" << endl;
68796876

6880-
if (SmoothNumGrid) cout << "There are some smoothing iterations on the grid coordinates." << endl;
6881-
68826877
if ((Kind_Solver == MAIN_SOLVER::EULER) || (Kind_Solver == MAIN_SOLVER::NAVIER_STOKES) || (Kind_Solver == MAIN_SOLVER::RANS) ||
68836878
(Kind_Solver == MAIN_SOLVER::INC_EULER) || (Kind_Solver == MAIN_SOLVER::INC_NAVIER_STOKES) || (Kind_Solver == MAIN_SOLVER::INC_RANS) ||
68846879
(Kind_Solver == MAIN_SOLVER::NEMO_EULER) || (Kind_Solver == MAIN_SOLVER::NEMO_NAVIER_STOKES) ||

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
74847420
bool 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;

Common/src/geometry/dual_grid/CPoint.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ void CPoint::FullAllocation(unsigned short imesh, const CConfig* config) {
9494

9595
Vertex.resize(npoint);
9696

97-
/*--- For smoothing the numerical grid coordinates ---*/
98-
if (config->GetSmoothNumGrid()) {
99-
Coord_Old.resize(npoint, nDim) = su2double(0.0);
100-
Coord_Sum.resize(npoint, nDim) = su2double(0.0);
101-
}
102-
10397
/*--- Storage of grid velocities for dynamic meshes. ---*/
10498

10599
if (config->GetDynamic_Grid()) {
@@ -190,5 +184,3 @@ void CPoint::SetCoord_Old() {
190184
assert(Coord_Old.size() == Coord.size());
191185
parallelCopy(Coord.size(), Coord.data(), Coord_Old.data());
192186
}
193-
194-
void CPoint::SetCoord_SumZero() { parallelSet(Coord_Sum.size(), 0.0, Coord_Sum.data()); }

0 commit comments

Comments
 (0)