Documentation 6b54b78464
Loading...
Searching...
No Matches
fvs.hpp
Go to the documentation of this file.
1/*!
2 * \file fvs.hpp
3 * \brief Declarations of classes for Flux-Vector-Spliting schemes,
4 * the implementations are in fvs.cpp.
5 * \author F. Palacios, T. Economon
6 * \version 8.5.0 "Harrier"
7 *
8 * SU2 Project Website: https://su2code.github.io
9 *
10 * The SU2 Project is maintained by the SU2 Foundation
11 * (http://su2foundation.org)
12 *
13 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
14 *
15 * SU2 is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * SU2 is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
27 */
28
29#pragma once
30
31#include "../../CNumerics.hpp"
32
33/*!
34 * \class CUpwMSW_Flow
35 * \brief Class for solving a flux-vector splitting method by Steger & Warming, modified version.
36 * \ingroup ConvDiscr
37 * \author S. Copeland
38 */
39class CUpwMSW_Flow final : public CNumerics {
40private:
41 static constexpr auto MAXNVAR = MAXNDIM + 2;
42
43 const su2double alpha;
44 const bool dynamic_grid;
45
46 su2double buf_Jacobian_i[MAXNVAR * MAXNVAR], buf_Jacobian_j[MAXNVAR * MAXNVAR];
47 su2double* Jacobian_i[MAXNVAR]; /*!< \brief The Jacobian w.r.t. point i after computation. */
48 su2double* Jacobian_j[MAXNVAR]; /*!< \brief The Jacobian w.r.t. point j after computation. */
49
50 su2double Fc[MAXNVAR];
51
52public:
53 /*!
54 * \brief Constructor of the class.
55 * \param[in] val_nDim - Number of dimensions of the problem.
56 * \param[in] val_nVar - Number of variables of the problem.
57 * \param[in] config - Definition of the particular problem.
58 */
59 CUpwMSW_Flow(unsigned short val_nDim, unsigned short val_nVar, const CConfig* config);
60
61 /*!
62 * \brief Compute the Roe's flux between two nodes i and j.
63 * \param[in] config - Definition of the particular problem.
64 * \return A lightweight const-view (read-only) of the residual/flux and Jacobians.
65 */
66 ResidualType<> ComputeResidual(const CConfig* config) override;
67
68};
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class for defining the numerical methods.
Definition CNumerics.hpp:48
static constexpr size_t MAXNDIM
Max number of space dimensions, used in some static arrays.
Definition CNumerics.hpp:50
Class for solving a flux-vector splitting method by Steger & Warming, modified version.
Definition fvs.hpp:39
ResidualType ComputeResidual(const CConfig *config) override
Compute the Roe's flux between two nodes i and j.
Definition fvs.cpp:43
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