Skip to content

Commit cfd1721

Browse files
committed
Merge branch 'feature_SST-Vm' into sa_options
2 parents 078ffce + e1f6976 commit cfd1721

35 files changed

Lines changed: 242 additions & 44 deletions

Common/include/CConfig.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,12 @@ class CConfig {
26972697
* \brief Set the number of multigrid levels.
26982698
* \param[in] val_nMGLevels - Index of the mesh were the CFL is applied
26992699
*/
2700-
void SetMGLevels(unsigned short val_nMGLevels) { nMGLevels = val_nMGLevels; }
2700+
void SetMGLevels(unsigned short val_nMGLevels) {
2701+
nMGLevels = val_nMGLevels;
2702+
if (MGCycle == FULLMG_CYCLE) {
2703+
SetFinestMesh(val_nMGLevels);
2704+
}
2705+
}
27012706

27022707
/*!
27032708
* \brief Get the index of the finest grid.

Common/include/geometry/dual_grid/CPoint.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class CPoint {
7070
su2vector<bool> Boundary; /*!< \brief To see if a point belong to the boundary (including MPI). */
7171
su2vector<bool> PhysicalBoundary; /*!< \brief To see if a point belong to the physical boundary (without includin MPI). */
7272
su2vector<bool> SolidBoundary; /*!< \brief To see if a point belong to the physical boundary (without includin MPI). */
73+
su2vector<bool> ViscousBoundary; /*!< \brief To see if a point belong to the physical boundary (without includin MPI). */
7374
su2vector<bool> PeriodicBoundary; /*!< \brief To see if a point belongs to a periodic boundary (without including MPI). */
7475

7576
su2activematrix Coord; /*!< \brief vector with the coordinates of the node. */
@@ -351,6 +352,20 @@ class CPoint {
351352
*/
352353
inline bool GetSolidBoundary(unsigned long iPoint) const { return SolidBoundary(iPoint); }
353354

355+
/*!
356+
* \brief Set if a point belong to the boundary.
357+
* \param[in] iPoint - Index of the point.
358+
* \param[in] boundary - <code>TRUE</code> if the point belong to the physical boundary; otherwise <code>FALSE</code>.
359+
*/
360+
inline void SetViscousBoundary(unsigned long iPoint, bool boundary) { ViscousBoundary(iPoint) = boundary; }
361+
362+
/*!
363+
* \brief Provides information about if a point belong to the physical boundaries (without MPI).
364+
* \param[in] iPoint - Index of the point.
365+
* \return <code>TRUE</code> if the point belong to the boundary; otherwise <code>FALSE</code>.
366+
*/
367+
inline bool GetViscousBoundary(unsigned long iPoint) const { return ViscousBoundary(iPoint); }
368+
354369
/*!
355370
* \brief Set if a point belongs to a periodic boundary.
356371
* \param[in] iPoint - Index of the point.

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,9 @@ void CPhysicalGeometry::SetBoundaries(CConfig *config) {
36603660
if (config->GetSolid_Wall(iMarker))
36613661
nodes->SetSolidBoundary(Point_Surface, true);
36623662

3663+
if (config->GetViscous_Wall(iMarker))
3664+
nodes->SetViscousBoundary(Point_Surface, true);
3665+
36633666
if (config->GetMarker_All_KindBC(iMarker) == PERIODIC_BOUNDARY)
36643667
nodes->SetPeriodicBoundary(Point_Surface, true);
36653668
}
@@ -4853,6 +4856,7 @@ void CPhysicalGeometry::SetRCM_Ordering(CConfig *config) {
48534856
nodes->ResetBoundary(iPoint);
48544857
nodes->SetPhysicalBoundary(iPoint, false);
48554858
nodes->SetSolidBoundary(iPoint, false);
4859+
nodes->SetViscousBoundary(iPoint, false);
48564860
nodes->SetPeriodicBoundary(iPoint, false);
48574861
nodes->SetDomain(iPoint, true);
48584862
}
@@ -4909,6 +4913,9 @@ void CPhysicalGeometry::SetRCM_Ordering(CConfig *config) {
49094913
if (config->GetSolid_Wall(iMarker))
49104914
nodes->SetSolidBoundary(InvResult[iPoint], true);
49114915

4916+
if (config->GetViscous_Wall(iMarker) )
4917+
nodes->SetViscousBoundary(InvResult[iPoint], true);
4918+
49124919
if (config->GetMarker_All_KindBC(iMarker) == PERIODIC_BOUNDARY)
49134920
nodes->SetPeriodicBoundary(InvResult[iPoint], true);
49144921
}

Common/src/geometry/dual_grid/CPoint.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ void CPoint::FullAllocation(unsigned short imesh, const CConfig *config) {
9595
Domain.resize(npoint) = true;
9696
Boundary.resize(npoint) = false;
9797
SolidBoundary.resize(npoint) = false;
98+
ViscousBoundary.resize(npoint) = false;
9899
PhysicalBoundary.resize(npoint) = false;
99100
PeriodicBoundary.resize(npoint) = false;
100101

SU2_CFD/include/integration/CIntegration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class CIntegration {
4949
size; /*!< \brief MPI Size. */
5050
bool Convergence, /*!< \brief To indicate if the flow solver (direct, adjoint, or linearized) has converged or not. */
5151
Convergence_FSI, /*!< \brief To indicate if the FSI problem has converged or not. */
52-
Convergence_FullMG; /*!< \brief Initial value of the residual to evaluate the convergence level. */
52+
Convergence_FullMG; /*!< \brief To indicate if the full multigrid has converged or not. */
5353

5454
/*!
5555
* \brief Do the space integration of the numerical system.

SU2_CFD/include/numerics/CNumerics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* \file CNumerics.hpp
3-
* \brief Delaration of the base numerics class, the
3+
* \brief Declaration of the base numerics class, the
44
* implementation is in the CNumerics.cpp file.
55
* \author F. Palacios, T. Economon
66
* \version 7.3.1 "Blackbird"

SU2_CFD/include/numerics/NEMO/NEMO_sources.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* \file NEMO_sources.hpp
3-
* \brief Delarations of numerics classes for source-term integration.
3+
* \brief Declarations of numerics classes for source-term integration.
44
* \author C. Garbacz, W. Maier, S. Copeland.
55
* \version 7.3.1 "Blackbird"
66
*

SU2_CFD/include/numerics/NEMO/convection/roe.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* \file roe.hpp
3-
* \brief Delarations of numerics classes for Roe-type schemes in NEMO.
3+
* \brief Declarations of numerics classes for Roe-type schemes in NEMO.
44
* \author S.R. Copeland, W. Maier, C. Garbacz
55
* \version 7.3.1 "Blackbird"
66
*

SU2_CFD/include/numerics/continuous_adjoint/adj_convection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* \file adj_convection.hpp
3-
* \brief Delarations of numerics classes for continuous adjoint
3+
* \brief Declarations of numerics classes for continuous adjoint
44
* convective discretization. Implemented in adj_convection.cpp.
55
* \author F. Palacios, T. Economon
66
* \version 7.3.1 "Blackbird"

SU2_CFD/include/numerics/continuous_adjoint/adj_diffusion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* \file adj_diffusion.hpp
3-
* \brief Delarations of numerics classes for continuous adjoint
3+
* \brief Declarations of numerics classes for continuous adjoint
44
* diffusion discretization. Implemented in adj_diffusion.cpp.
55
* \author F. Palacios, T. Economon
66
* \version 7.3.1 "Blackbird"

0 commit comments

Comments
 (0)