Documentation 6b54b78464
Loading...
Searching...
No Matches
CCGNSMeshReaderFVM.hpp
Go to the documentation of this file.
1/*!
2 * \file CCGNSMeshReaderFVM.hpp
3 * \brief Header file for the class CCGNSMeshReaderFVM.
4 * The implementations are in the <i>CCGNSMeshReaderFVM.cpp</i> file.
5 * \author T. Economon
6 * \version 8.5.0 "Harrier"
7 *
8 * SU2 Project Website: https://su2code.github.io
9 *
10 * The SU2 Project is maintained by the SU2 Foundation
11 * (http://su2foundation.org)
12 *
13 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
14 *
15 * SU2 is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * SU2 is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
27 */
28
29#pragma once
30
32
33/*!
34 * \class CCGNSMeshReaderFVM
35 * \brief Reads a CGNS zone into linear partitions for the finite volume solver (FVM).
36 * \author: T. Economon
37 */
39 private:
40#ifdef HAVE_CGNS
41 /*!
42 * \brief Reads the interior volume elements from one section of a CGNS zone into linear partitions across all ranks.
43 * \param[in] val_section - CGNS section index.
44 */
45 void ReadCGNSVolumeSection(int val_section);
46
47 /*!
48 * \brief Reads the surface (boundary) elements from the CGNS zone. Only the master rank currently reads and stores
49 * the connectivity, which is linearly partitioned later. \param[in] val_section - CGNS section index.
50 */
51 void ReadCGNSSurfaceSection(int val_section);
52
53 /*!
54 * \brief Reformats the CGNS volume connectivity from file into the standard base class data structures.
55 */
56 void ReformatCGNSVolumeConnectivity();
57
58 /*!
59 * \brief Reformats the CGNS volume connectivity from file into the standard base class data structures.
60 */
61 void ReformatCGNSSurfaceConnectivity();
62
63#endif
64
65 /*!
66 * \brief Routine to launch non-blocking sends and recvs amongst all processors.
67 * \param[in] bufSend - Buffer of data to be sent.
68 * \param[in] nElemSend - Array containing the number of elements to send to other processors in cumulative storage
69 * format.
70 * \param[in] sendReq - Array of MPI send requests.
71 * \param[in] bufRecv - Buffer of data to be received.
72 * \param[in] nElemSend - Array containing the number of elements to receive from other processors in cumulative
73 * storage format.
74 * \param[in] sendReq - Array of MPI recv requests.
75 * \param[in] countPerElem - Pieces of data per element communicated.
76 */
77 void InitiateCommsAll(void* bufSend, const int* nElemSend, SU2_MPI::Request* sendReq, void* bufRecv,
78 const int* nElemRecv, SU2_MPI::Request* recvReq, unsigned short countPerElem,
79 COMM_TYPE commType);
80
81 /*!
82 * \brief Routine to complete the set of non-blocking communications launched with InitiateComms() with MPI_Waitany().
83 * \param[in] nSends - Number of sends to be completed.
84 * \param[in] sendReq - Array of MPI send requests.
85 * \param[in] nRecvs - Number of receives to be completed.
86 * \param[in] sendReq - Array of MPI recv requests.
87 */
88 void CompleteCommsAll(int nSends, SU2_MPI::Request* sendReq, int nRecvs, SU2_MPI::Request* recvReq);
89
90 public:
91 /*!
92 * \brief Constructor of the CCGNSMeshReaderFVM class.
93 */
94 CCGNSMeshReaderFVM(const CConfig* val_config, unsigned short val_iZone, unsigned short val_nZone);
95
96 /*!
97 * \brief Destructor of the CCGNSMeshReaderFVM class.
98 */
99 ~CCGNSMeshReaderFVM(void) override;
100};
Header file for the class CCGNSMeshReaderBase. The implementations are in the CCGNSMeshReaderBase....
int Request
Definition mpi_structure.hpp:505
Base class for the reading of a CGNS zone.
Definition CCGNSMeshReaderBase.hpp:42
Reads a CGNS zone into linear partitions for the finite volume solver (FVM).
Definition CCGNSMeshReaderFVM.hpp:38
~CCGNSMeshReaderFVM(void) override
Destructor of the CCGNSMeshReaderFVM class.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
COMM_TYPE
Definition option_structure.hpp:116