Documentation 6b54b78464
Loading...
Searching...
No Matches
species_sources.hpp
Go to the documentation of this file.
1/*!
2 * \file species_sources.hpp
3 * \brief Declarations of numerics classes for integration of source
4 * terms in species problems.
5 * \author T. Kattmann
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 "../scalar/scalar_sources.hpp"
32
33/*!
34 * \class CSourceBase_Species
35 * \brief Intermediate source term class to allocate the internally
36 * stored residual and Jacobian. Not for stand alone use,
37 * just a helper to build more complicated classes.
38 * \ingroup SourceDiscr
39 * \author T. Kattmann
40 */
42 protected:
43 su2double* residual = nullptr;
44 su2double** jacobian = nullptr;
45
46 public:
47 /*!
48 * \brief Constructor of the class.
49 * \param[in] val_nDim - Number of dimensions of the problem.
50 * \param[in] val_nVar - Number of variables of the problem.
51 * \param[in] config - Definition of the particular problem.
52 */
53 CSourceBase_Species(unsigned short val_nDim, unsigned short val_nVar, const CConfig* config);
54
55 /*!
56 * \brief Destructor of the class.
57 */
59};
60
61/*!
62 * \class CSourceAxisymmetric_Species
63 * \brief Class for source term for solving axisymmetric problems.
64 * \ingroup SourceDiscr
65 * \author T. Kattmann
66 */
67template <class FlowIndices>
69 protected:
70 const FlowIndices idx; /*!< \brief Object to manage the access to the flow primitives. */
71 const bool implicit;
72 const bool viscous;
73 const bool turbulence;
74 const bool incompressible;
76
77 public:
78 /*!
79 * \brief Constructor of the class.
80 * \param[in] val_nDim - Number of dimensions of the problem.
81 * \param[in] val_nVar - Number of variables of the problem.
82 * \param[in] config - Definition of the particular problem.
83 */
84 CSourceAxisymmetric_Species(unsigned short val_nDim, unsigned short val_nVar, const CConfig* config);
85
86 /*!
87 * \brief Residual of the axisymmetric source term.
88 * \param[in] config - Definition of the particular problem.
89 * \return Lightweight const-view of residual and Jacobian.
90 */
91 ResidualType<> ComputeResidual(const CConfig* config) override;
92
93};
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
Class for source term for solving axisymmetric problems.
Definition species_sources.hpp:68
const bool viscous
Definition species_sources.hpp:72
const FlowIndices idx
Object to manage the access to the flow primitives.
Definition species_sources.hpp:70
const bool implicit
Definition species_sources.hpp:71
const su2double Sc_t
Definition species_sources.hpp:75
const bool incompressible
Definition species_sources.hpp:74
ResidualType ComputeResidual(const CConfig *config) override
Residual of the axisymmetric source term.
Definition species_sources.cpp:70
const bool turbulence
Definition species_sources.hpp:73
Intermediate source term class to allocate the internally stored residual and Jacobian....
Definition species_sources.hpp:41
su2double * residual
Definition species_sources.hpp:43
su2double ** jacobian
Definition species_sources.hpp:44
~CSourceBase_Species()
Destructor of the class.
Definition species_sources.cpp:47
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