-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature_output_comp
- Loading branch information
Showing
41 changed files
with
4,069 additions
and
3,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/*! | ||
* \file CBoxMeshReaderFEM.hpp | ||
* \brief Header file for the class CBoxMeshReaderFEM. | ||
* The implementations are in the <i>CBoxMeshReaderFEM.cpp</i> file. | ||
* \author T. Economon | ||
* \version 8.1.0 "Harrier" | ||
* | ||
* SU2 Project Website: https://su2code.github.io | ||
* | ||
* The SU2 Project is maintained by the SU2 Foundation | ||
* (http://su2foundation.org) | ||
* | ||
* Copyright 2012-2024, SU2 Contributors (cf. AUTHORS.md) | ||
* | ||
* SU2 is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* SU2 is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with SU2. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "CMeshReaderBase.hpp" | ||
|
||
/*! | ||
* \class CBoxMeshReaderFEM | ||
* \brief Reads a 3D box grid into linear partitions for the finite element solver (FEM). | ||
* \author: T. Economon, E. van der Weide | ||
*/ | ||
class CBoxMeshReaderFEM final : public CMeshReaderBase { | ||
private: | ||
unsigned long nNode; /*!< \brief Number of grid nodes in the x-direction. */ | ||
unsigned long mNode; /*!< \brief Number of grid nodes in the y-direction. */ | ||
unsigned long pNode; /*!< \brief Number of grid nodes in the z-direction. */ | ||
|
||
su2double Lx; /*!< \brief Length of the domain in the x-direction. */ | ||
su2double Ly; /*!< \brief Length of the domain in the y-direction. */ | ||
su2double Lz; /*!< \brief Length of the domain in the z-direction. */ | ||
|
||
su2double Ox; /*!< \brief Offset of the domain from 0.0 in the x-direction. */ | ||
su2double Oy; /*!< \brief Offset of the domain from 0.0 in the y-direction. */ | ||
su2double Oz; /*!< \brief Offset of the domain from 0.0 in the z-direction. */ | ||
|
||
unsigned short KindElem; /*!< \brief VTK identifier of the interior elements. */ | ||
unsigned short KindBound; /*!< \brief VTK identifier of the surface elements. */ | ||
|
||
unsigned short nPolySol; /*!< \brief Polynomial degree of the solution. */ | ||
|
||
/*! | ||
* \brief Computes and stores the grid points based on an analytic definition of a box grid. | ||
*/ | ||
void ComputeBoxPointCoordinates(); | ||
|
||
/*! | ||
* \brief Computes and stores the volume element connectivity based on an analytic definition of a box grid. | ||
*/ | ||
void ComputeBoxVolumeConnectivity(); | ||
|
||
/*! | ||
* \brief Computes and stores the surface element connectivity based on an analytic definition of a box grid. | ||
*/ | ||
void ComputeBoxSurfaceConnectivity(); | ||
|
||
public: | ||
/*! | ||
* \brief Constructor of the CBoxMeshReaderFEM class. | ||
*/ | ||
CBoxMeshReaderFEM(const CConfig* val_config, unsigned short val_iZone, unsigned short val_nZone); | ||
|
||
/*! | ||
* \brief Destructor of the CBoxMeshReaderFEM class. | ||
*/ | ||
~CBoxMeshReaderFEM(void) override; | ||
}; |
Oops, something went wrong.