Documentation 6b54b78464
Loading...
Searching...
No Matches
CAdjFlowIncOutput.hpp
Go to the documentation of this file.
1/*!
2 * \file CAdjFlowIncOutput.hpp
3 * \brief Headers of the adjoint incompressible flow output.
4 * \author T. Albring
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 "CAdjFlowOutput.hpp"
31
32/*! \class CAdjFlowIncOutput
33 * \brief Output class for incompressible flow discrete adjoint problems.
34 * \author R. Sanchez, T. Albring.
35 * \date June 5, 2018.
36 */
37class CAdjFlowIncOutput final: public CAdjFlowOutput {
38private:
39
40 RADIATION_MODEL rad_model; /*!< \brief The kind of radiation model */
41 bool heat; /*!< \brief Boolean indicating whether have a heat problem*/
42 bool weakly_coupled_heat; /*!< \brief Boolean indicating whether have a weakly coupled heat equation*/
43
44public:
45
46
47 /*!
48 * \brief Constructor of the class
49 * \param[in] config - Definition of the particular problem.
50 */
51 CAdjFlowIncOutput(CConfig *config, unsigned short nDim);
52
53 /*!
54 * \brief Destructor of the class.
55 */
56 ~CAdjFlowIncOutput(void) override;
57
58 /*!
59 * \brief Load the history output field values
60 * \param[in] config - Definition of the particular problem.
61 */
62 void LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver) override;
63
64 /*!
65 * \brief Set the available history output fields
66 * \param[in] config - Definition of the particular problem.
67 */
68 void SetHistoryOutputFields(CConfig *config) override;
69
70 /*!
71 * \brief Set the available volume output fields
72 * \param[in] config - Definition of the particular problem.
73 */
74 void SetVolumeOutputFields(CConfig *config) override;
75
76 /*!
77 * \brief Set the values of the volume output fields for a point.
78 * \param[in] config - Definition of the particular problem.
79 * \param[in] geometry - Geometrical definition of the problem.
80 * \param[in] solver - The container holding all solution data.
81 * \param[in] iPoint - Index of the point.
82 */
83 void LoadVolumeData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint) override;
84
85 /*!
86 * \brief Set the values of the volume output fields for a surface point.
87 * \param[in] config - Definition of the particular problem.
88 * \param[in] geometry - Geometrical definition of the problem.
89 * \param[in] solver - The container holding all solution data.
90 * \param[in] iPoint - Index of the point.
91 * \param[in] iMarker - Index of the surface marker.
92 * \param[in] iVertex - Index of the vertex on the marker.
93 */
94 void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver,
95 unsigned long iPoint, unsigned short iMarker, unsigned long iVertex) override;
96
97 /*!
98 * \brief Check whether the base values for relative residuals should be initialized
99 * \param[in] config - Definition of the particular problem.
100 * \return <TRUE> if the residuals should be initialized.
101 */
102 bool SetInitResiduals(const CConfig *config) override ;
103
104};
Headers of the adjoint flow output.
Output class for incompressible flow discrete adjoint problems.
Definition CAdjFlowIncOutput.hpp:37
~CAdjFlowIncOutput(void) override
Destructor of the class.
void SetVolumeOutputFields(CConfig *config) override
Set the available volume output fields.
Definition CAdjFlowIncOutput.cpp:296
void LoadVolumeData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint) override
Set the values of the volume output fields for a point.
Definition CAdjFlowIncOutput.cpp:380
void SetHistoryOutputFields(CConfig *config) override
Set the available history output fields.
Definition CAdjFlowIncOutput.cpp:101
void LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver) override
Load the history output field values.
Definition CAdjFlowIncOutput.cpp:211
void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint, unsigned short iMarker, unsigned long iVertex) override
Set the values of the volume output fields for a surface point.
Definition CAdjFlowIncOutput.cpp:450
bool SetInitResiduals(const CConfig *config) override
Check whether the base values for relative residuals should be initialized.
Definition CAdjFlowIncOutput.cpp:457
Output class for flow discrete adjoint problems.
Definition CAdjFlowOutput.hpp:36
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
const unsigned short nDim
Physical Dimension.
Definition COutput.hpp:78
Definition CSolver.hpp:71
RADIATION_MODEL
Kinds of radiation models.
Definition option_structure.hpp:1919