Documentation 6b54b78464
Loading...
Searching...
No Matches
CFVMOutput.hpp
Go to the documentation of this file.
1/*!
2 * \file CFVMOutput.hpp
3 * \brief Headers of the Finite Volume Method 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
32class CFVMOutput : public COutput{
33 protected:
34 /*!
35 * \brief Constructor of the class
36 */
37 CFVMOutput(const CConfig *config, unsigned short nDim, bool femOutput);
38
39 /*!
40 * \brief Add Coordinates to output.
41 */
42 void AddCoordinates();
43
44 /*!
45 * \brief Load the coordinates.
46 */
47 template<class T>
48 inline void LoadCoordinates(const T& Coord, const unsigned long iPoint) {
49 SetVolumeOutputValue("COORD-X", iPoint, Coord[0]);
50 SetVolumeOutputValue("COORD-Y", iPoint, Coord[1]);
51 if (nDim == 3)
52 SetVolumeOutputValue("COORD-Z", iPoint, Coord[2]);
53 }
54
55 /*!
56 * \brief Add common FVM outputs.
57 */
58 void AddCommonFVMOutputs(const CConfig* config);
59
60 /*!
61 * \brief Load common FVM outputs.
62 */
63 void LoadCommonFVMOutputs(const CConfig* config, const CGeometry* geometry, unsigned long iPoint);
64};
Headers of the output class.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Definition CFVMOutput.hpp:32
void AddCommonFVMOutputs(const CConfig *config)
Add common FVM outputs.
Definition CFVMOutput.cpp:44
void LoadCommonFVMOutputs(const CConfig *config, const CGeometry *geometry, unsigned long iPoint)
Load common FVM outputs.
Definition CFVMOutput.cpp:65
void AddCoordinates()
Add Coordinates to output.
Definition CFVMOutput.cpp:34
void LoadCoordinates(const T &Coord, const unsigned long iPoint)
Load the coordinates.
Definition CFVMOutput.hpp:48
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
const bool femOutput
Boolean to store whether we should use the FEM routines.
Definition COutput.hpp:82
void SetVolumeOutputValue(const string &name, unsigned long iPoint, su2double value)
Set the value of a volume output field.
Definition COutput.cpp:1794