Documentation 6b54b78464
Loading...
Searching...
No Matches
CElasticityOutput.hpp
Go to the documentation of this file.
1/*!
2 * \file CElasticityOutput.hpp
3 * \brief Headers of the elasticity output.
4 * \author F. Palacios, T. Economon, M. Colonno
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 CElasticityOutput
33 * \brief Output class for FEA problems.
34 * \author R. Sanchez, T. Albring.
35 * \date May 24, 2018.
36 */
37class CElasticityOutput final: public COutput {
38protected:
39
40 bool linear_analysis, //!< Boolean indicating a linear analysis
41 nonlinear_analysis, //!< Boolean indicating a nonlinear analysis
42 coupled_heat, //!< Boolean indicating a thermoelastic analysis
43 dynamic; //!< Boolean indicating a dynamic analysis
44
45public:
46
47 /*!
48 * \brief Constructor of the class
49 * \param[in] config - Definition of the particular problem.
50 */
51 CElasticityOutput(CConfig *config, unsigned short nDim);
52
53 /*!
54 * \brief Load the history output field values
55 * \param[in] config - Definition of the particular problem.
56 */
57 void LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver) override;
58
59 /*!
60 * \brief Set the available history output fields
61 * \param[in] config - Definition of the particular problem.
62 */
63 void SetHistoryOutputFields(CConfig *config) override;
64
65 /*!
66 * \brief Set the available volume output fields
67 * \param[in] config - Definition of the particular problem.
68 */
69 void SetVolumeOutputFields(CConfig *config) override;
70
71 /*!
72 * \brief Set the values of the volume output fields for a point.
73 * \param[in] config - Definition of the particular problem.
74 * \param[in] geometry - Geometrical definition of the problem.
75 * \param[in] solver - The container holding all solution data.
76 * \param[in] iPoint - Index of the point.
77 */
78 void LoadVolumeData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint) override;
79
80 /*!
81 * \brief Check whether the base values for relative residuals should be initialized
82 * \param[in] config - Definition of the particular problem.
83 * \return <TRUE> if the residuals should be initialized.
84 */
85 bool SetInitResiduals(const CConfig *config) override;
86
87 /*!
88 * \brief LoadSurfaceData
89 */
90 void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint,
91 unsigned short iMarker, unsigned long iVertex) override;
92};
Headers of the output class.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Output class for FEA problems.
Definition CElasticityOutput.hpp:37
bool dynamic
Boolean indicating a dynamic analysis.
Definition CElasticityOutput.hpp:43
void SetVolumeOutputFields(CConfig *config) override
Set the available volume output fields.
Definition CElasticityOutput.cpp:252
void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint, unsigned short iMarker, unsigned long iVertex) override
LoadSurfaceData.
Definition CElasticityOutput.cpp:305
void SetHistoryOutputFields(CConfig *config) override
Set the available history output fields.
Definition CElasticityOutput.cpp:159
bool nonlinear_analysis
Boolean indicating a nonlinear analysis.
Definition CElasticityOutput.hpp:41
bool coupled_heat
Boolean indicating a thermoelastic analysis.
Definition CElasticityOutput.hpp:42
bool SetInitResiduals(const CConfig *config) override
Check whether the base values for relative residuals should be initialized.
Definition CElasticityOutput.cpp:299
void LoadVolumeData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint) override
Set the values of the volume output fields for a point.
Definition CElasticityOutput.cpp:201
void LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver) override
Load the history output field values.
Definition CElasticityOutput.cpp:100
bool linear_analysis
Boolean indicating a linear analysis.
Definition CElasticityOutput.hpp:40
Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geom...
Definition CGeometry.hpp:75
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