Documentation 6b54b78464
Loading...
Searching...
No Matches
CMeshElement.hpp
Go to the documentation of this file.
1/*!
2 * \file CMeshElement.hpp
3 * \brief Declaration and inlines of the class
4 * to define the variables of the mesh movement.
5 * \author Ruben Sanchez
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 <cstdlib>
32
33#include "../../../Common/include/CConfig.hpp"
34
36protected:
37
38 su2double Ref_Volume; /*!< \brief Store the reference coordinates of the mesh. */
39 su2double Curr_Volume; /*!< \brief Store the current coordinates of the mesh. */
40
41 su2double WallDistance; /*!< \brief Store the distance of the center of the element to the wall. */
42
43public:
44
45 /*!
46 * \brief Constructor of the class.
47 * \param[in] val_coor - Values of the coordinates (initialization value).
48 * \param[in] val_nDim - Number of dimensions of the problem.
49 * \param[in] config - Definition of the particular problem.
50 */
51 CMeshElement(void);
52
53 /*!
54 * \brief Destructor of the class.
55 */
56 ~CMeshElement(void) = default;
57
58 /*!
59 * \brief Get the value of the element volume with undeformed coordinates.
60 * \return Value of the element volume with reference coordinates.
61 */
62 inline su2double GetRef_Volume(void) const { return Ref_Volume; }
63
64 /*!
65 * \brief Set the value of the element volume with undeformed coordinates.
66 * \param[in] val_volume - Value of the reference volume.
67 */
68 inline void SetRef_Volume(su2double val_volume) { Ref_Volume = val_volume; }
69
70 /*!
71 * \brief Get the value of the element volume with deformed coordinates.
72 * \return Value of the element volume with deformed coordinates.
73 */
74 inline su2double GetCurr_Volume(void) const { return Curr_Volume; }
75
76 /*!
77 * \brief Set the value of the element distance to the nearest wall with deformed coordinates.
78 * \param[in] val_volume - Value of the element distance to the nearest wall.
79 */
80 inline void SetCurr_Volume(su2double val_volume) { Curr_Volume = val_volume; }
81
82 /*!
83 * \brief Get the value of the element distance to the nearest wall with undeformed coordinates.
84 * \return Value of the element distance to the nearest wall with reference coordinates.
85 */
86 inline su2double GetWallDistance(void) const { return WallDistance; }
87
88 /*!
89 * \brief Set the value of the element distance to the nearest wall with undeformed coordinates.
90 * \param[in] val_volume - Value of the element distance to the nearest wall.
91 */
92 inline void SetWallDistance(su2double val_volume) { WallDistance = val_volume; }
93
94};
Definition CMeshElement.hpp:35
su2double GetRef_Volume(void) const
Get the value of the element volume with undeformed coordinates.
Definition CMeshElement.hpp:62
su2double Curr_Volume
Store the current coordinates of the mesh.
Definition CMeshElement.hpp:39
su2double WallDistance
Store the distance of the center of the element to the wall.
Definition CMeshElement.hpp:41
su2double GetWallDistance(void) const
Get the value of the element distance to the nearest wall with undeformed coordinates.
Definition CMeshElement.hpp:86
void SetRef_Volume(su2double val_volume)
Set the value of the element volume with undeformed coordinates.
Definition CMeshElement.hpp:68
void SetWallDistance(su2double val_volume)
Set the value of the element distance to the nearest wall with undeformed coordinates.
Definition CMeshElement.hpp:92
~CMeshElement(void)=default
Destructor of the class.
su2double Ref_Volume
Store the reference coordinates of the mesh.
Definition CMeshElement.hpp:38
CMeshElement(void)
Constructor of the class.
Definition CMeshElement.cpp:31
su2double GetCurr_Volume(void) const
Get the value of the element volume with deformed coordinates.
Definition CMeshElement.hpp:74
void SetCurr_Volume(su2double val_volume)
Set the value of the element distance to the nearest wall with deformed coordinates.
Definition CMeshElement.hpp:80
passivedouble su2double
Definition code_config.hpp:181