Skip to content

Commit 5daa05e

Browse files
committed
Cleanup
1 parent 90c5a10 commit 5daa05e

6 files changed

Lines changed: 13 additions & 17 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,6 @@ class CConfig {
817817
Mu_SND; /*!< \brief Non-dimensional reference S for Sutherland model. */
818818
su2double Diffusivity_Constant; /*!< \brief Constant mass diffusivity for scalar transport. */
819819
su2double Diffusivity_ConstantND; /*!< \brief Non-dim. constant mass diffusivity for scalar transport. */
820-
su2double Diffusivity_Ref; /*!< \brief Reference mass diffusion for species equations. */
821820
su2double Schmidt_Number_Laminar; /*!< \brief Laminar Schmidt number for mass diffusion. */
822821
su2double Schmidt_Number_Turbulent; /*!< \brief Turbulent Schmidt number for mass diffusion. */
823822
array<su2double, N_POLY_COEFFS> CpPolyCoefficientsND{{0.0}}; /*!< \brief Definition of the non-dimensional temperature polynomial coefficients for specific heat Cp. */
@@ -2043,13 +2042,11 @@ class CConfig {
20432042
*/
20442043
su2double GetInc_Temperature_Init(void) const { return Inc_Temperature_Init; }
20452044

2046-
unsigned short GetNSpeciesInit() const { return nSpecies_Init; }
2047-
20482045
/*!
20492046
* \brief Get the flag for activating species transport clipping.
20502047
* \return Flag for species clipping.
20512048
*/
2052-
bool GetSpecies_Clipping() { return Species_Clipping; }
2049+
bool GetSpecies_Clipping() const { return Species_Clipping; }
20532050

20542051
/*!
20552052
* \brief Get the maximum bound for scalar transport clipping
@@ -3977,11 +3974,6 @@ class CConfig {
39773974
*/
39783975
void SetDiffusivity_ConstantND(su2double diffusivity_const) { Diffusivity_ConstantND = diffusivity_const; }
39793976

3980-
/*!
3981-
* \brief Set the value of the reference mass diffusivity.
3982-
*/
3983-
void SetDiffusivity_Ref(su2double diffusivity_ref);
3984-
39853977
/*!
39863978
* \brief Get the kind of method for computation of spatial gradients used for viscous and source terms.
39873979
* \return Numerical method for computation of spatial gradients used for viscous and source terms.
@@ -6590,7 +6582,6 @@ class CConfig {
65906582
* \param[in] val_index - Index corresponding to the inlet boundary.
65916583
* \return The inlet species values.
65926584
*/
6593-
// nijso: TODO we do not need inlet enthalpy, it is computed from temperature!
65946585
const su2double* GetInlet_SpeciesVal(string val_index) const;
65956586

65966587
/*!

Common/src/CConfig.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5169,6 +5169,11 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
51695169
if (!(OptionIsSet("SPECIES_CLIPPING_MIN") && OptionIsSet("SPECIES_CLIPPING_MAX")))
51705170
SU2_MPI::Error("SPECIES_CLIPPING= YES requires the options SPECIES_CLIPPING_MIN/MAX to set the clipping values.", CURRENT_FUNCTION);
51715171

5172+
/*--- Make sure a Diffusivity has been set for Constant Diffusivity. ---*/
5173+
if (Kind_Diffusivity_Model == DIFFUSIVITYMODEL::CONSTANT_DIFFUSIVITY &&
5174+
!(OptionIsSet("DIFFUSIVITY_CONSTANT")))
5175+
SU2_MPI::Error("A DIFFUSIVITY_CONSTANT=<value> has to be set with DIFFUSIVITY_MODEL= CONSTANT_DIFFUSIVITY.", CURRENT_FUNCTION);
5176+
51725177
// Helper function that checks scalar variable bounds,
51735178
auto checkScalarBounds = [&](su2double scalar, string name, su2double lowerBound, su2double upperBound) {
51745179
if (scalar < lowerBound || scalar > upperBound)

SU2_CFD/include/numerics/species/species_convection.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/*!
3434
* \class CUpwSca_Species
35-
* \brief Class for doing a scalar upwind solver for the Spalar-Allmaras turbulence model equations.
35+
* \brief Class for doing a scalar upwind solver for the species transport equations.
3636
* \ingroup ConvDiscr
3737
*/
3838
template <class FlowIndices>
@@ -51,6 +51,7 @@ class CUpwSca_Species final : public CUpwScalar<FlowIndices> {
5151
using Base::ScalarVar_i;
5252
using Base::ScalarVar_j;
5353
using Base::idx;
54+
5455
/*!
5556
* \brief Adds any extra variables to AD
5657
*/
@@ -60,7 +61,7 @@ class CUpwSca_Species final : public CUpwScalar<FlowIndices> {
6061
};
6162

6263
/*!
63-
* \brief SA specific steps in the ComputeResidual method
64+
* \brief Species transport specific steps in the ComputeResidual method
6465
* \param[in] config - Definition of the particular problem.
6566
*/
6667
void FinishResidualCalc(const CConfig* config) override {

SU2_CFD/include/numerics/species/species_diffusion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/*!
3434
* \class CAvgGrad_Species
35-
* \brief Class for computing viscous term using average of gradients (Spalart-Allmaras Turbulence model).
35+
* \brief Class for computing viscous term using average of gradients (species transport model).
3636
* \ingroup ViscDiscr
3737
*/
3838
template <class FlowIndices>

SU2_CFD/include/solvers/CSpeciesSolver.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333

3434
/*!
3535
* \class CSpeciesSolver
36-
* \brief Main class for defining the turbulence model solver.
37-
* \ingroup Turbulence_Model
38-
* \author A. Bueno.
36+
* \brief Main class for defining the species transport solver.
37+
* \author T. Kattmann.
3938
*/
4039
class CSpeciesSolver : public CScalarSolver<CSpeciesVariable> {
4140
protected:

SU2_CFD/include/variables/CSpeciesVariable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/*!
3333
* \class CSpeciesVariable
34-
* \brief Base class for defining the variables of the turbulence model.
34+
* \brief Base class for defining the variables of the species transport.
3535
*/
3636
class CSpeciesVariable : public CScalarVariable {
3737
protected:

0 commit comments

Comments
 (0)