Documentation a537f1bdf2
Loading...
Searching...
No Matches
CSU2MeshBinaryFileWriter.hpp
Go to the documentation of this file.
1/*!
2 * \file CSU2MeshBinaryFileWriter.hpp
3 * \brief Headers for the SU2 binary mesh file writer class.
4 * \author E. van der Weide
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#pragma once
28#include "CFileWriter.hpp"
29
31
32private:
33 unsigned short iZone, //!< Index of the current zone
34 nZone; //!< Number of zones
35
36public:
37
38 /*!
39 * \brief File extension
40 */
41 const static string fileExt;
42
43 /*!
44 * \brief Construct a file writer using field names, dimension.
45 * \param[in] valDataSorter - The parallel sorted data to write
46 * \param[in] valiZone - The index of the current zone
47 * \param[in] valnZone - The total number of zones
48 */
50 unsigned short valiZone, unsigned short valnZone);
51
52 /*!
53 * \brief Write sorted data to file in SU2 mesh file format
54 * \param[in] val_filename - The name of the file
55 */
56 void WriteData(string val_filename) override ;
57
58};
59
Headers fo the file writer class.
Definition CFileWriter.hpp:42
Definition CParallelDataSorter.hpp:39
Definition CSU2MeshBinaryFileWriter.hpp:30
void WriteData(string val_filename) override
Write sorted data to file in SU2 mesh file format.
Definition CSU2MeshBinaryFileWriter.cpp:78
static const string fileExt
File extension.
Definition CSU2MeshBinaryFileWriter.hpp:41