Documentation 6b54b78464
Loading...
Searching...
No Matches
CRadSolver.hpp
Go to the documentation of this file.
1/*!
2 * \file CRadSolver.hpp
3 * \brief Declaration and inlines of the class to compute a generic radiation solver.
4 * \author Ruben Sanchez
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 "CSolver.hpp"
31#include "../variables/CRadVariable.hpp"
32
33class CRadSolver : public CSolver {
34protected:
35
36 su2double Absorption_Coeff; /*!< \brief Absorption coefficient. */
37 su2double Scattering_Coeff; /*!< \brief Scattering coefficient. */
38
39 CRadVariable* nodes = nullptr; /*!< \brief The highest level in the variable hierarchy this solver can safely use. */
40
41 /*!
42 * \brief Return nodes to allow CSolver::base_nodes to be set.
43 */
44 inline CVariable* GetBaseClassPointerToNodes() override { return nodes; }
45
46public:
47
48 /*!
49 * \brief Constructor of the class.
50 */
51 CRadSolver(void);
52
53 /*!
54 * \brief Destructor of the class.
55 */
56 ~CRadSolver(void) override = default;
57
58 /*!
59 * \brief Constructor of the class.
60 * \param[in] geometry - Geometrical definition of the problem.
61 * \param[in] config - Definition of the particular problem.
62 */
63 CRadSolver(CGeometry* geometry, CConfig *config);
64
65 /*!
66 * \brief Set the volumetric heat source
67 * \param[in] geometry - Geometrical definition of the problem.
68 * \param[in] config - Definition of the particular problem.
69 */
70 void SetVolumetricHeatSource(CGeometry *geometry, CConfig *config) override;
71
72 /*!
73 * \brief Load a solution from a restart file.
74 * \param[in] geometry - Geometrical definition of the problem.
75 * \param[in] solver - Container vector with all of the solvers.
76 * \param[in] config - Definition of the particular problem.
77 * \param[in] val_iter - Current external iteration number.
78 * \param[in] val_update_geo - Flag for updating coords and grid velocity.
79 */
80 void LoadRestart(CGeometry **geometry, CSolver ***solver, CConfig *config,
81 int val_iter, bool val_update_geo) override;
82
83};
Headers of the CSolver class which is inherited by all of the other solvers.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geom...
Definition CGeometry.hpp:75
Definition CRadSolver.hpp:33
~CRadSolver(void) override=default
Destructor of the class.
su2double Scattering_Coeff
Scattering coefficient.
Definition CRadSolver.hpp:37
CRadSolver(void)
Constructor of the class.
Definition CRadSolver.cpp:31
void LoadRestart(CGeometry **geometry, CSolver ***solver, CConfig *config, int val_iter, bool val_update_geo) override
Load a solution from a restart file.
Definition CRadSolver.cpp:77
void SetVolumetricHeatSource(CGeometry *geometry, CConfig *config) override
Set the volumetric heat source.
Definition CRadSolver.cpp:46
CVariable * GetBaseClassPointerToNodes() override
Return nodes to allow CSolver::base_nodes to be set.
Definition CRadSolver.hpp:44
su2double Absorption_Coeff
Absorption coefficient.
Definition CRadSolver.hpp:36
CRadVariable * nodes
The highest level in the variable hierarchy this solver can safely use.
Definition CRadSolver.hpp:39
Definition CRadVariable.hpp:32
Definition CSolver.hpp:71
Main class for defining the variables.
Definition CVariable.hpp:50
passivedouble su2double
Definition code_config.hpp:181