Documentation 6b54b78464
Loading...
Searching...
No Matches
roe.hpp
Go to the documentation of this file.
1/*!
2 * \file roe.hpp
3 * \brief Declarations of numerics classes for Roe-type schemes in NEMO.
4 * \author S.R. Copeland, W. Maier, C. Garbacz
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 "../CNEMONumerics.hpp"
31
32/*!
33 * \class CUpwRoe_NEMO
34 * \brief Class for evaluating the Riemann problem using Roe's scheme for a two-temperature model.
35 * \ingroup ConvDiscr
36 * \author S. R. Copeland, W. Maier, C. Garbacz
37 * \version 8.5.0 "Harrier"
38 */
40private:
41 su2double *Diff_U;
42 su2double *RoeU, *RoeV;
43 su2double *ProjFlux_i, *ProjFlux_j;
44 su2double *Lambda, *Epsilon;
45 su2double **P_Tensor, **invP_Tensor;
46 su2double Proj_ModJac_Tensor_ij;
47 su2double *RoedPdU;
48
49public:
50
51 /*!
52 * \brief Constructor of the class.
53 * \param[in] val_nDim - Number of dimensions of the problem.
54 * \param[in] val_nVar - Number of variables of the problem.
55 * \param[in] config - Definition of the particular problem.
56 */
57 CUpwRoe_NEMO(unsigned short val_nDim, unsigned short val_nVar,
58 unsigned short val_nPrimVar, unsigned short val_nPrimVarGrad,
59 CConfig *config);
60
61 /*!
62 * \brief Destructor of the class.
63 */
64 ~CUpwRoe_NEMO(void);
65
66 /*!
67 * \brief Compute the Roe's flux between two nodes i and j.
68 * \param[in] config - Definition of the particular problem.
69 */
70 ResidualType<> ComputeResidual(const CConfig* config) final;
71
72};
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Base class template NEMO numerics.
Definition CNEMONumerics.hpp:41
Class for evaluating the Riemann problem using Roe's scheme for a two-temperature model.
Definition roe.hpp:39
ResidualType ComputeResidual(const CConfig *config) final
Compute the Roe's flux between two nodes i and j.
Definition roe.cpp:92
~CUpwRoe_NEMO(void)
Destructor of the class.
Definition roe.cpp:65
passivedouble su2double
Definition code_config.hpp:181
Return type used in some "ComputeResidual" overloads to give a const-view of the internally stored fl...
Definition CNumerics.hpp:218