Documentation 6b54b78464
Loading...
Searching...
No Matches
CAdjFlowOutput.hpp
Go to the documentation of this file.
1/*!
2 * \file CAdjFlowOutput.hpp
3 * \brief Headers of the adjoint flow output.
4 * \author T. Kattmann
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 "COutput.hpp"
31
32/*! \class CAdjFlowOutput
33 * \brief Output class for flow discrete adjoint problems.
34 * \author T. Kattmann
35 */
36class CAdjFlowOutput : public COutput {
37 protected:
38 const TURB_MODEL turb_model; /*!< \brief The kind of turbulence model*/
39 const bool cont_adj; /*!< \brief Boolean indicating whether we run a cont. adjoint problem */
40 const bool frozen_visc; /*!< \brief Boolean indicating whether frozen viscosity/turbulence is used. */
41
42 public:
43 /*!
44 * \brief Constructor of the class
45 * \param[in] config - Definition of the particular problem.
46 */
47 CAdjFlowOutput(CConfig* config, unsigned short nDim);
48
49 /*!
50 * \brief Add scalar (turbulence/species) history fields for the Residual RMS (FVMComp, FVMInc, FVMNEMO).
51 */
53
54 /*!
55 * \brief Add scalar (turbulence/species) history fields for the max Residual (FVMComp, FVMInc, FVMNEMO).
56 */
58
59 /*!
60 * \brief Add scalar (turbulence/species) history fields for the BGS Residual (FVMComp, FVMInc, FVMNEMO).
61 */
63
64 /*!
65 * \brief Add scalar (turbulence/species) history fields for the linear solver (FVMComp, FVMInc, FVMNEMO).
66 */
68
69 /*!
70 * \brief Set all scalar (turbulence/species) history field values.
71 */
72 void LoadHistoryDataAdjScalar(const CConfig* config, const CSolver* const* solver);
73
74 /*!
75 * \brief Add scalar (turbulence/species) volume solution fields for a point (FVMComp, FVMInc, FVMNEMO).
76 * \note The order of fields in restart files is fixed. Therefore the split-up.
77 * \param[in] config - Definition of the particular problem.
78 */
80
81 /*!
82 * \brief Add scalar (turbulence/species) volume solution fields for a point (FVMComp, FVMInc, FVMNEMO).
83 * \note The order of fields in restart files is fixed. Therefore the split-up.
84 * \param[in] config - Definition of the particular problem.
85 */
87
88 /*!
89 * \brief Set all scalar (turbulence/species) volume field values for a point.
90 * \param[in] config - Definition of the particular problem.
91 * \param[in] solver - The container holding all solution data.
92 * \param[in] iPoint - Index of the point.
93 */
94 void LoadVolumeDataAdjScalar(const CConfig* config, const CSolver* const* solver, const unsigned long iPoint);
95};
Headers of the output class.
Output class for flow discrete adjoint problems.
Definition CAdjFlowOutput.hpp:36
const bool frozen_visc
Boolean indicating whether frozen viscosity/turbulence is used.
Definition CAdjFlowOutput.hpp:40
const bool cont_adj
Boolean indicating whether we run a cont. adjoint problem.
Definition CAdjFlowOutput.hpp:39
void AddHistoryOutputFields_AdjScalarBGS_RES(const CConfig *config)
Add scalar (turbulence/species) history fields for the BGS Residual (FVMComp, FVMInc,...
Definition CAdjFlowOutput.cpp:114
const TURB_MODEL turb_model
The kind of turbulence model.
Definition CAdjFlowOutput.hpp:38
void AddHistoryOutputFields_AdjScalarRMS_RES(const CConfig *config)
Add scalar (turbulence/species) history fields for the Residual RMS (FVMComp, FVMInc,...
Definition CAdjFlowOutput.cpp:40
void SetVolumeOutputFieldsAdjScalarResidual(const CConfig *config)
Add scalar (turbulence/species) volume solution fields for a point (FVMComp, FVMInc,...
Definition CAdjFlowOutput.cpp:283
void LoadHistoryDataAdjScalar(const CConfig *config, const CSolver *const *solver)
Set all scalar (turbulence/species) history field values.
Definition CAdjFlowOutput.cpp:172
void AddHistoryOutputFields_AdjScalarMAX_RES(const CConfig *config)
Add scalar (turbulence/species) history fields for the max Residual (FVMComp, FVMInc,...
Definition CAdjFlowOutput.cpp:77
void LoadVolumeDataAdjScalar(const CConfig *config, const CSolver *const *solver, const unsigned long iPoint)
Set all scalar (turbulence/species) volume field values for a point.
Definition CAdjFlowOutput.cpp:324
void AddHistoryOutputFieldsAdjScalarLinsol(const CConfig *config)
Add scalar (turbulence/species) history fields for the linear solver (FVMComp, FVMInc,...
Definition CAdjFlowOutput.cpp:154
void SetVolumeOutputFieldsAdjScalarSolution(const CConfig *config)
Add scalar (turbulence/species) volume solution fields for a point (FVMComp, FVMInc,...
Definition CAdjFlowOutput.cpp:244
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class for writing the convergence history and to write solution data to file.
Definition COutput.hpp:68
const unsigned short nDim
Physical Dimension.
Definition COutput.hpp:78
Definition CSolver.hpp:71
TURB_MODEL
Types of turbulent models.
Definition option_structure.hpp:1066