|
| 1 | +/*! |
| 2 | + * \file CFVMOutput.hpp |
| 3 | + * \brief Headers of the Finite Volume Method output. |
| 4 | + * \author T. Kattmann |
| 5 | + * \version 7.1.1 "Blackbird" |
| 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-2021, 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 CFVMOutput : public COutput{ |
| 33 | +protected: |
| 34 | + /*! |
| 35 | + * \brief Constructor of the class |
| 36 | + */ |
| 37 | + CFVMOutput(CConfig *config, unsigned short nDim, bool femOutput); |
| 38 | + |
| 39 | + /*! |
| 40 | + * \brief Destructor of the class. |
| 41 | + */ |
| 42 | + ~CFVMOutput(void) = default; |
| 43 | + |
| 44 | + /*! |
| 45 | + * \brief Add Coordinates to output. |
| 46 | + */ |
| 47 | + void AddCoordinates(); |
| 48 | + |
| 49 | + /*! |
| 50 | + * \brief Load the coordinates. |
| 51 | + */ |
| 52 | + template<class T> |
| 53 | + inline void LoadCoordinates(const T& Coord, const unsigned long iPoint) { |
| 54 | + SetVolumeOutputValue("COORD-X", iPoint, Coord[0]); |
| 55 | + SetVolumeOutputValue("COORD-Y", iPoint, Coord[1]); |
| 56 | + if (nDim == 3) |
| 57 | + SetVolumeOutputValue("COORD-Z", iPoint, Coord[2]); |
| 58 | + } |
| 59 | + |
| 60 | + /*! |
| 61 | + * \brief Add common FVM outputs. |
| 62 | + */ |
| 63 | + void AddCommonFVMOutputs(const CConfig* config); |
| 64 | + |
| 65 | + /*! |
| 66 | + * \brief Load common FVM outputs. |
| 67 | + */ |
| 68 | + void LoadCommonFVMOutputs(const CConfig* config, const CGeometry* geometry, unsigned long iPoint); |
| 69 | +}; |
0 commit comments