Documentation 6b54b78464
Loading...
Searching...
No Matches
lax.hpp
Go to the documentation of this file.
1/*!
2 * \file lax.hpp
3 * \brief Declaration of numerics classes for Lax centered scheme.
4 * \author F. Palacios, 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 CCentLax_NEMO
34 * \brief Class for computing the Lax-Friedrich centered scheme.
35 * \ingroup ConvDiscr
36 * \author F. Palacios, S.R. Copeland, W. Maier, C. Garbacz
37 */
39private:
40
41 su2double *Diff_U; /*!< \brief Difference of conservative variables. */
42 su2double *MeanU, *MeanV;
43 su2double *MeandPdU;
44 su2double *ProjFlux; /*!< \brief Projected inviscid flux tensor. */
45 su2double Param_p, Param_Kappa_0; /*!< \brief Artificial dissipation parameters. */
46 su2double Local_Lambda_i, Local_Lambda_j, MeanLambda; /*!< \brief Local eigenvalues. */
47 su2double Phi_i, Phi_j, sc0, StretchingFactor; /*!< \brief Streching parameters. */
48 su2double Epsilon_0, cte; /*!< \brief Artificial dissipation values. */
49 bool stretching;
50
51public:
52
53 /*!
54 * \brief Constructor of the class.
55 * \param[in] val_nDim - Number of dimension of the problem.
56 * \param[in] val_nVar - Number of variables of the problem.
57 * \param[in] val_nPrimVar - Number of primitive variables of the problem.
58 * \param[in] val_nPrimVarGrad - Number of primitive gradient variables of the problem.
59 * \param[in] config - Definition of the particular problem.
60 */
61 CCentLax_NEMO(unsigned short val_nDim, unsigned short val_nVar,
62 unsigned short val_nPrimVar, unsigned short val_nPrimVarGrad,
63 CConfig *config);
64
65 /*!
66 * \brief Destructor of the class.
67 */
68 ~CCentLax_NEMO(void);
69
70 /*!
71 * \brief Compute the flow residual using a Lax method.
72 * \param[in] config - Definition of the particular problem.
73 */
74 ResidualType<> ComputeResidual(const CConfig *config) final;
75};
Class for computing the Lax-Friedrich centered scheme.
Definition lax.hpp:38
ResidualType ComputeResidual(const CConfig *config) final
Compute the flow residual using a Lax method.
Definition lax.cpp:76
~CCentLax_NEMO(void)
Destructor of the class.
Definition lax.cpp:60
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
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