Documentation 6b54b78464
Loading...
Searching...
No Matches
CTransLMVariable.hpp
Go to the documentation of this file.
1/*!
2 * \file CTransLMVariable.hpp
3 * \brief Declaration of the variables of the transition model.
4 * \author F. Palacios, T. Economon
5 * \version 8.5.0 "Harrier"
6 *
7 * SU2 Project Website: https://su2code.github.io
8 *
9 * The SU2 Project is maintained by the SU2 Foundation
10 * (http://su2foundation.org)
11 *
12 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
13 *
14 * SU2 is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
18 *
19 * SU2 is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
26 */
27
28#pragma once
29
30#include "CTurbVariable.hpp"
31
32/*!
33 * \class CTransLMVariable
34 * \brief Transition model variables.
35 * \ingroup Turbulence_Model
36 * \author A. Bueno, S. Kang.
37 */
38
39class CTransLMVariable final : public CTurbVariable {
40protected:
43
44public:
45 /*!
46 * \brief Constructor of the class.
47 * \param[in] Intermittency - intermittency(gamma) (initialization value).
48 * \param[in] ReThetaT - momentum thickness Reynolds number(ReThetaT)(initialization value).
49 * \param[in] gammaSep - separation intermittency(gamma) (initialization value).
50 * \param[in] gammaEff - effective intermittency(gamma) (initialization value).
51 * \param[in] npoint - Number of points/nodes/vertices in the domain.
52 * \param[in] ndim - Number of dimensions of the problem.
53 * \param[in] nvar - Number of variables of the problem.
54 * \param[in] config - Definition of the particular problem.
55 */
56 CTransLMVariable(su2double Intermittency, su2double ReThetaT, su2double gammaSep, su2double gammaEff, unsigned long npoint, unsigned long ndim, unsigned long nvar, CConfig *config);
57
58 /*!
59 * \brief Destructor of the class.
60 */
61 ~CTransLMVariable() override = default;
62
63 /*!
64 * \brief Set Separation intermittency.
65 */
66 void SetIntermittencySep(unsigned long iPoint, su2double val_Intermittency_sep) override;
67
68 /*!
69 * \brief Set Effective intermittency.
70 */
71 void SetIntermittencyEff(unsigned long iPoint, su2double val_Intermittency_sep) override;
72
73 /*!
74 * \brief Calculate effective intermittency.
75 */
76 inline su2double GetIntermittencyEff(unsigned long iPoint) const override { return Intermittency_Eff(iPoint); }
77
78 /*!
79 * \brief Value of separation intermittency.
80 */
81 inline su2double GetIntermittencySep(unsigned long iPoint) const override { return Intermittency_Sep(iPoint); }
82
83};
Base class for defining the variables of the turbulence model.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Transition model variables.
Definition CTransLMVariable.hpp:39
void SetIntermittencyEff(unsigned long iPoint, su2double val_Intermittency_sep) override
Set Effective intermittency.
Definition CTransLMVariable.cpp:48
void SetIntermittencySep(unsigned long iPoint, su2double val_Intermittency_sep) override
Set Separation intermittency.
Definition CTransLMVariable.cpp:55
VectorType Intermittency_Eff
Definition CTransLMVariable.hpp:41
su2double GetIntermittencySep(unsigned long iPoint) const override
Value of separation intermittency.
Definition CTransLMVariable.hpp:81
~CTransLMVariable() override=default
Destructor of the class.
VectorType Intermittency_Sep
Definition CTransLMVariable.hpp:42
su2double GetIntermittencyEff(unsigned long iPoint) const override
Calculate effective intermittency.
Definition CTransLMVariable.hpp:76
Base class for defining the variables of the turbulence model.
Definition CTurbVariable.hpp:38
passivedouble su2double
Definition code_config.hpp:181