Skip to content

Commit a6fe9bc

Browse files
author
rois1995
committed
- finish update
1 parent ab2d71b commit a6fe9bc

File tree

8 files changed

+5
-157
lines changed

8 files changed

+5
-157
lines changed

Common/include/geometry/dual_grid/CPoint.hpp

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -514,27 +514,6 @@ class CPoint {
514514
inline su2double& GetWall_Distance(unsigned long iPoint) { return Wall_Distance(iPoint); }
515515
inline const su2double& GetWall_Distance(unsigned long iPoint) const { return Wall_Distance(iPoint); }
516516

517-
/*!
518-
* \brief Get the index of the closest wall element.
519-
* \param[in] iPoint - Index of the point.
520-
* \param[out] ClosestWall_Elem - ID of the closest element on a wall boundary.
521-
*/
522-
inline unsigned long GetClosestWall_Elem(unsigned long iPoint) {return ClosestWall_Elem(iPoint);}
523-
524-
/*!
525-
* \brief Get the marker of the closest wall marker.
526-
* \param[in] iPoint - Index of the point.
527-
* \param[out] ClosestWall_Marker - MarkerID of the closest wall boundary.
528-
*/
529-
inline unsigned long GetClosestWall_Marker(unsigned long iPoint) {return ClosestWall_Marker(iPoint);}
530-
531-
/*!
532-
* \brief Get the rank of the closest wall marker.
533-
* \param[in] iPoint - Index of the point.
534-
* \param[out] ClosestWall_Rank - RankID of the closest wall boundary.
535-
*/
536-
inline unsigned long GetClosestWall_Rank(unsigned long iPoint) {return ClosestWall_Rank(iPoint);}
537-
538517
/*!
539518
* \brief Set the value of the distance to the nearest wall.
540519
* \param[in] iPoint - Index of the point.
@@ -567,24 +546,6 @@ class CPoint {
567546
*/
568547
inline su2double *GetNormal(unsigned long iPoint) { return Normals[iPoint]; }
569548

570-
/*!
571-
* \brief Set the value of the normal of the nearest wall element.
572-
* \param[in] iPoint - Index of the point.
573-
* \param[in] normal - Value of the normal.
574-
*/
575-
template<typename Normals_type>
576-
inline void SetNormal(unsigned long iPoint, Normals_type const&normal) {
577-
for (unsigned long iDim = 0; iDim < nDim; iDim++)
578-
Normals(iPoint,iDim) = normal[iDim];
579-
}
580-
581-
/*!
582-
* \brief Set the value of the normal of the nearest wall element.
583-
* \param[in] iPoint - Index of the point.
584-
* \return normal to the normal of the nearest wall element.
585-
*/
586-
inline su2double *GetNormal(unsigned long iPoint) { return Normals[iPoint]; }
587-
588549
/*!
589550
* \brief Set the value of the distance to a sharp edge.
590551
* \param[in] iPoint - Index of the point.

SU2_CFD/include/numerics/turbulent/transition/trans_diffusion.hpp

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -105,74 +105,6 @@ class CAvgGrad_TransLM final : public CAvgGrad_Scalar<FlowIndices> {
105105
};
106106

107107

108-
/*!
109-
* \class CAvgGrad_TransSLM
110-
* \brief Class for computing viscous term using average of gradient with correction (Simplified LM transition model).
111-
* \ingroup ViscDiscr
112-
* \author S. Kang.
113-
*/
114-
template <class FlowIndices>
115-
class CAvgGrad_TransSLM final : public CAvgGrad_Scalar<FlowIndices> {
116-
private:
117-
using Base = CAvgGrad_Scalar<FlowIndices>;
118-
using Base::Laminar_Viscosity_i;
119-
using Base::Laminar_Viscosity_j;
120-
using Base::Eddy_Viscosity_i;
121-
using Base::Eddy_Viscosity_j;
122-
using Base::Density_i;
123-
using Base::Density_j;
124-
using Base::ScalarVar_i;
125-
using Base::ScalarVar_j;
126-
using Base::Proj_Mean_GradScalarVar;
127-
using Base::proj_vector_ij;
128-
using Base::Flux;
129-
using Base::Jacobian_i;
130-
using Base::Jacobian_j;
131-
132-
/*!
133-
* \brief Adds any extra variables to AD
134-
*/
135-
void ExtraADPreaccIn() override {}
136-
137-
/*!
138-
* \brief LM transition model specific steps in the ComputeResidual method
139-
* \param[in] config - Definition of the particular problem.
140-
*/
141-
void FinishResidualCalc(const CConfig* config) override {
142-
const bool implicit = config->GetKind_TimeIntScheme() == EULER_IMPLICIT;
143-
144-
/*--- Compute mean effective dynamic viscosity ---*/
145-
const su2double diff_i_gamma = Laminar_Viscosity_i + Eddy_Viscosity_i;
146-
const su2double diff_j_gamma = Laminar_Viscosity_j + Eddy_Viscosity_j;
147-
148-
const su2double diff_gamma = 0.5*(diff_i_gamma + diff_j_gamma);
149-
150-
Flux[0] = diff_gamma*Proj_Mean_GradScalarVar[0];
151-
152-
/*--- For Jacobians -> Use of TSL (Thin Shear Layer) approx. to compute derivatives of the gradients ---*/
153-
if (implicit) {
154-
const su2double proj_on_rho_i = proj_vector_ij/Density_i;
155-
Jacobian_i[0][0] = -diff_gamma*proj_on_rho_i;
156-
157-
const su2double proj_on_rho_j = proj_vector_ij/Density_j;
158-
Jacobian_j[0][0] = diff_gamma*proj_on_rho_j;
159-
}
160-
}
161-
162-
public:
163-
/*!
164-
* \brief Constructor of the class.
165-
* \param[in] val_nDim - Number of dimensions of the problem.
166-
* \param[in] val_nVar - Number of variables of the problem.
167-
* \param[in] correct_grad - Whether to correct gradient for skewness.
168-
* \param[in] config - Definition of the particular problem.
169-
*/
170-
CAvgGrad_TransSLM(unsigned short val_nDim, unsigned short val_nVar, bool correct_grad, const CConfig* config)
171-
: CAvgGrad_Scalar<FlowIndices>(val_nDim, val_nVar, correct_grad, config){
172-
}
173-
174-
};
175-
176108
/*!
177109
* \class CAvgGrad_TransSLM
178110
* \brief Class for computing viscous term using average of gradient with correction (Simplified LM transition model).

SU2_CFD/include/variables/CVariable.hpp

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,51 +1699,6 @@ class CVariable {
16991699
*/
17001700
inline virtual void SetIntermittencyEff(unsigned long iPoint, su2double val_Intermittency_eff) {}
17011701

1702-
1703-
/*!
1704-
* \brief Set Value of Transition Momentum Thickness Reynolds number from correlations.
1705-
*/
1706-
inline virtual void SetCorr_Rec(unsigned long iPoint, su2double val_Corr_Rec) {};
1707-
inline virtual void SetTu(unsigned long iPoint, su2double val_Tu) {};
1708-
inline virtual void SetLambda_theta(unsigned long iPoint, su2double val_Lambda_theta) {};
1709-
inline virtual void Setduds(unsigned long iPoint, su2double val_duds) {};
1710-
inline virtual void SetRe_v(unsigned long iPoint, su2double val_Re_v) {};
1711-
inline virtual void SetProd(unsigned long iPoint, su2double val_Prod) {};
1712-
inline virtual void SetDestr(unsigned long iPoint, su2double val_Destr) {};
1713-
inline virtual void SetF_onset1(unsigned long iPoint, su2double val_F_onset1) {};
1714-
inline virtual void SetF_onset2(unsigned long iPoint, su2double val_F_onset2) {};
1715-
inline virtual void SetF_onset3(unsigned long iPoint, su2double val_F_onset3) {};
1716-
inline virtual void SetF_onset(unsigned long iPoint, su2double val_F_onset1) {};
1717-
inline virtual void SetNormal(unsigned long iPoint, su2double val_normal_x, su2double val_normal_y, su2double val_normal_z) {};
1718-
1719-
/*!
1720-
* \brief Get Value of Transition Momentum Thickness Reynolds number from correlations.
1721-
*/
1722-
inline virtual su2double GetCorr_Rec(unsigned long iPoint) const { return 0.0; }
1723-
inline virtual su2double GetTu(unsigned long iPoint) const { return 0.0; }
1724-
inline virtual su2double GetLambda_theta(unsigned long iPoint) const { return 0.0; }
1725-
inline virtual su2double Getduds(unsigned long iPoint) const { return 0.0; }
1726-
inline virtual su2double GetRe_v(unsigned long iPoint) const { return 0.0; }
1727-
inline virtual su2double GetProd(unsigned long iPoint) const { return 0.0; }
1728-
inline virtual su2double GetDestr(unsigned long iPoint) const { return 0.0; }
1729-
inline virtual su2double GetF_onset1(unsigned long iPoint) const { return 0.0; }
1730-
inline virtual su2double GetF_onset2(unsigned long iPoint) const { return 0.0; }
1731-
inline virtual su2double GetF_onset3(unsigned long iPoint) const { return 0.0; }
1732-
inline virtual su2double GetF_onset(unsigned long iPoint) const { return 0.0; }
1733-
inline virtual su2double GetNormal_x(unsigned long iPoint) const { return 0.0; }
1734-
inline virtual su2double GetNormal_y(unsigned long iPoint) const { return 0.0; }
1735-
inline virtual su2double GetNormal_z(unsigned long iPoint) const { return 0.0; }
1736-
1737-
/*!
1738-
* \brief Set Value of Momentum Thickness Reynolds number from correlations (substitute to the second equation of original LM model).
1739-
*/
1740-
inline virtual void SetRe_t(unsigned long iPoint, su2double val_Re_t) {};
1741-
1742-
/*!
1743-
* \brief Get Value of Momentum Thickness Reynolds number from correlations (substitute to the second equation of original LM model).
1744-
*/
1745-
inline virtual su2double GetRe_t(unsigned long iPoint) const { return 0.0; }
1746-
17471702
/*!
17481703
* \brief Set Value of Transition Momentum Thickness Reynolds number from correlations.
17491704
*/

externals/codi

Submodule codi updated 709 files

externals/medi

Submodule medi updated 165 files

externals/opdi

Submodule opdi updated 127 files

subprojects/CoolProp

Submodule CoolProp updated 104 files

0 commit comments

Comments
 (0)