Skip to content

Commit a5013c6

Browse files
committed
cleanup
1 parent 64b3761 commit a5013c6

File tree

6 files changed

+2
-58
lines changed

6 files changed

+2
-58
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void CFVMFlowSolverBase<V, R>::Allocate(const CConfig& config) {
125125
AllocVectorOfMatrices(nVertex, nDim, Inlet_FlowDir);
126126
PointSource.resize(nPointDomain,nVar);
127127
PointSource.setConstant(0.0);
128-
128+
129129
/*--- Force definition and coefficient arrays for all of the markers ---*/
130130

131131
AllocVectorOfVectors(nVertex, CPressure);
@@ -1005,8 +1005,6 @@ void CFVMFlowSolverBase<V, R>::LoadRestart_impl(CGeometry **geometry, CSolver **
10051005
END_SU2_OMP_SAFE_GLOBAL_ACCESS
10061006
}
10071007

1008-
1009-
10101008
template <class V, ENUM_REGIME R>
10111009
void CFVMFlowSolverBase<V, R>::LoadRestart(CGeometry **geometry, CSolver ***solver,
10121010
CConfig *config, int iter, bool update_geo) {

SU2_CFD/include/solvers/CIncEulerSolver.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,6 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME
204204
CNumerics **numerics_container,
205205
CConfig *config,
206206
unsigned short iMesh) final;
207-
/*!
208-
* \brief Source term integration.
209-
* \param[in] geometry - Geometrical definition of the problem.
210-
* \param[in] solver_container - Container vector with all the solutions.
211-
* \param[in] numerics_container - Description of the numerical method.
212-
* \param[in] config - Definition of the particular problem.
213-
* \param[in] iMesh - Index of the mesh in multigrid computations.
214-
*/
215-
// void Custom_Source_Residual(CGeometry *geometry,
216-
// CSolver **solver_container,
217-
// CNumerics **numerics_container,
218-
// CConfig *config,
219-
// unsigned short iMesh) final;
220207

221208
/*!
222209
* \brief Source term integration.

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,6 @@ class CSolver {
15571557
* \param[in] geometry - Geometrical definition of the problem.
15581558
* \param[in] solver_container - Container vector with all the solutions.
15591559
* \param[in] numerics_container - Description of the numerical method.
1560-
* \param[in] second_numerics - Description of the second numerical method.
15611560
* \param[in] config - Definition of the particular problem.
15621561
* \param[in] iMesh - Index of the mesh in multigrid computations.
15631562
*/
@@ -1571,7 +1570,6 @@ class CSolver {
15711570
* \param[in] geometry - Geometrical definition of the problem.
15721571
* \param[in] solver_container - Container vector with all the solutions.
15731572
* \param[in] numerics_container - Description of the numerical method.
1574-
* \param[in] second_numerics - Description of the second numerical method.
15751573
* \param[in] config - Definition of the particular problem.
15761574
* \param[in] iMesh - Index of the mesh in multigrid computations.
15771575
*/

SU2_CFD/include/solvers/CSpeciesSolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CSpeciesSolver : public CScalarSolver<CSpeciesVariable> {
4040
protected:
4141
unsigned short Inlet_Position; /*!< \brief Column index for scalar variables in inlet files. */
4242
vector<su2activematrix> Inlet_SpeciesVars; /*!< \brief Species variables at inlet profiles. */
43-
su2activematrix SpeciesPointSource; /*!< \brief Value of the Flow Direction. */
43+
su2activematrix SpeciesPointSource; /*!< \brief User defined source term. */
4444

4545
public:
4646
/*!

SU2_CFD/src/numerics/flow/flow_sources.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,13 @@ CNumerics::ResidualType<> CSourceAxisymmetric_Flow::ComputeResidual(const CConfi
7373
sq_vel += Velocity_i *Velocity_i;
7474
}
7575

76-
// P = (gamma-1)*rho * e
77-
// E = e+0.5*U^2
78-
// do we have primitive variables available?
7976
Pressure_i = Gamma_Minus_One*U_i[0]*(U_i[nDim+1]/U_i[0]-0.5*sq_vel);
80-
// (rho*e +p)/rho = e+p/rho
8177
Enthalpy_i = (U_i[nDim+1] + Pressure_i) / U_i[0];
82-
//cout <<"P="<<V_i[nDim+1] << " rho=" << V_i[nDim+2] << ", "<<U_i[0]<<" " << Pressure_i<<" " << Enthalpy_i <<" "<< V_i[nDim+3]<< endl;
8378

8479
residual[0] = yinv*Volume*U_i[2];
8580
residual[1] = yinv*Volume*U_i[1]*U_i[2]/U_i[0];
8681
residual[2] = yinv*Volume*(U_i[2]*U_i[2]/U_i[0]);
87-
// we need: (rho*e+p)
8882
residual[3] = yinv*Volume*Enthalpy_i*U_i[2];
89-
//residual[3] = yinv*Volume*(U_i[nDim+1]+Pressure_i)*U_i[2];
9083

9184
/*--- Inviscid component of the source term. ---*/
9285

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,38 +1813,6 @@ void CIncEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_cont
18131813

18141814
}
18151815

1816-
// void CIncEulerSolver::Custom_Source_Residual(CGeometry *geometry, CSolver **solver_container,
1817-
// CNumerics **numerics_container, CConfig *config, unsigned short iMesh) {
1818-
1819-
// /*--- Pick one numerics object per thread. ---*/
1820-
// CNumerics* numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num()*MAX_TERMS];
1821-
1822-
// unsigned short iVar;
1823-
// unsigned long iPoint;
1824-
// AD::StartNoSharedReading();
1825-
1826-
// SU2_OMP_FOR_STAT(omp_chunk_size)
1827-
// for (iPoint = 0; iPoint < nPointDomain; iPoint++) {
1828-
1829-
// /*--- Load the volume of the dual mesh cell ---*/
1830-
1831-
// numerics->SetVolume(geometry->nodes->GetVolume(iPoint));
1832-
1833-
// /*--- Get control volume size. ---*/
1834-
// su2double Volume = geometry->nodes->GetVolume(iPoint);
1835-
1836-
// /*--- Compute the residual for this control volume and subtract. ---*/
1837-
// for (iVar = 0; iVar < nVar; iVar++) {
1838-
// LinSysRes[iPoint*nVar+iVar] += PointSource[iPoint][iVar] * Volume;
1839-
// }
1840-
// }
1841-
// END_SU2_OMP_FOR
1842-
1843-
// AD::EndNoSharedReading();
1844-
1845-
// }
1846-
1847-
18481816
void CIncEulerSolver::Source_Template(CGeometry *geometry, CSolver **solver_container, CNumerics *numerics,
18491817
CConfig *config, unsigned short iMesh) {
18501818

0 commit comments

Comments
 (0)