Documentation 6b54b78464
Loading...
Searching...
No Matches
CBoxMeshReaderFEM.hpp
Go to the documentation of this file.
1/*!
2 * \file CBoxMeshReaderFEM.hpp
3 * \brief Header file for the class CBoxMeshReaderFEM.
4 * The implementations are in the <i>CBoxMeshReaderFEM.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
31#include "CMeshReaderBase.hpp"
32
33/*!
34 * \class CBoxMeshReaderFEM
35 * \brief Reads a 3D box grid into linear partitions for the finite element solver (FEM).
36 * \author: T. Economon, E. van der Weide
37 */
38class CBoxMeshReaderFEM final : public CMeshReaderBase {
39 private:
40 unsigned long nNode; /*!< \brief Number of grid nodes in the x-direction. */
41 unsigned long mNode; /*!< \brief Number of grid nodes in the y-direction. */
42 unsigned long pNode; /*!< \brief Number of grid nodes in the z-direction. */
43
44 su2double Lx; /*!< \brief Length of the domain in the x-direction. */
45 su2double Ly; /*!< \brief Length of the domain in the y-direction. */
46 su2double Lz; /*!< \brief Length of the domain in the z-direction. */
47
48 su2double Ox; /*!< \brief Offset of the domain from 0.0 in the x-direction. */
49 su2double Oy; /*!< \brief Offset of the domain from 0.0 in the y-direction. */
50 su2double Oz; /*!< \brief Offset of the domain from 0.0 in the z-direction. */
51
52 unsigned short KindElem; /*!< \brief VTK identifier of the interior elements. */
53 unsigned short KindBound; /*!< \brief VTK identifier of the surface elements. */
54
55 unsigned short nPolySol; /*!< \brief Polynomial degree of the solution. */
56
57 /*!
58 * \brief Computes and stores the grid points based on an analytic definition of a box grid.
59 */
60 void ComputeBoxPointCoordinates();
61
62 /*!
63 * \brief Computes and stores the volume element connectivity based on an analytic definition of a box grid.
64 */
65 void ComputeBoxVolumeConnectivity();
66
67 /*!
68 * \brief Computes and stores the surface element connectivity based on an analytic definition of a box grid.
69 */
70 void ComputeBoxSurfaceConnectivity();
71
72 public:
73 /*!
74 * \brief Constructor of the CBoxMeshReaderFEM class.
75 */
76 CBoxMeshReaderFEM(const CConfig* val_config, unsigned short val_iZone, unsigned short val_nZone);
77
78 /*!
79 * \brief Destructor of the CBoxMeshReaderFEM class.
80 */
81 ~CBoxMeshReaderFEM(void) override;
82};
Header file for the class CMeshReaderBase. The implementations are in the CMeshReaderBase....
Reads a 3D box grid into linear partitions for the finite element solver (FEM).
Definition CBoxMeshReaderFEM.hpp:38
~CBoxMeshReaderFEM(void) override
Destructor of the CBoxMeshReaderFEM class.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Base class for the mesh zone readers.
Definition CMeshReaderBase.hpp:44
passivedouble su2double
Definition code_config.hpp:181