Skip to content

Commit 3ca65bf

Browse files
author
rois1995
committed
Merge branch 'develop' into feature_SSTMod
2 parents f0e280a + 537783b commit 3ca65bf

File tree

81 files changed

+5793
-4923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+5793
-4923
lines changed

Common/include/CConfig.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ class CConfig {
804804
nRefOriginMoment_Z; /*!< \brief Number of Z-coordinate moment computation origins. */
805805
unsigned short nMesh_Box_Size;
806806
short *Mesh_Box_Size; /*!< \brief Array containing the number of grid points in the x-, y-, and z-directions for the analytic RECTANGLE and BOX grid formats. */
807+
unsigned short Mesh_Box_PSolFEM; /*!< \brief FEM polynomial degree of the solution for the RECTANGLE and BOX grid formats. */
807808
string Mesh_FileName, /*!< \brief Mesh input file. */
808809
Mesh_Out_FileName, /*!< \brief Mesh output file. */
809810
Solution_FileName, /*!< \brief Flow solution input file. */
@@ -9609,6 +9610,12 @@ class CConfig {
96099610
*/
96109611
su2double GetMeshBoxOffset(unsigned short val_iDim) const { return mesh_box_offset[val_iDim]; }
96119612

9613+
/*!
9614+
* \brief Get the polynomial degree of the FEM solution for the analytic RECTANGLE or BOX.
9615+
* \return The polynomial degree of the FEM solution.
9616+
*/
9617+
unsigned short GetMeshBoxPSolFEM(void) const { return Mesh_Box_PSolFEM; }
9618+
96129619
/*!
96139620
* \brief Get the number of screen output variables requested (maximum 6)
96149621
*/

Common/include/fem/fem_cgns_elements.hpp

Lines changed: 0 additions & 198 deletions
This file was deleted.

Common/include/fem/fem_geometry_structure.hpp

Lines changed: 2 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -30,157 +30,12 @@
3030

3131
#include "../geometry/CGeometry.hpp"
3232
#include "fem_standard_element.hpp"
33-
#ifdef HAVE_CGNS
34-
#include "fem_cgns_elements.hpp"
35-
#endif
3633
#include "../wall_model.hpp"
3734
#include "../linear_algebra/blas_structure.hpp"
35+
#include "../toolboxes/fem/CFaceOfElement.hpp"
3836

3937
using namespace std;
4038

41-
/*!
42-
* \class CLong3T
43-
* \brief Help class used to store three longs as one entity.
44-
* \version 8.1.0 "Harrier"
45-
*/
46-
struct CLong3T {
47-
long long0 = 0; /*!< \brief First long to store in this class. */
48-
long long1 = 0; /*!< \brief Second long to store in this class. */
49-
long long2 = 0; /*!< \brief Third long to store in this class. */
50-
51-
CLong3T() = default;
52-
53-
CLong3T(const long a, const long b, const long c) {
54-
long0 = a;
55-
long1 = b;
56-
long2 = c;
57-
}
58-
59-
bool operator<(const CLong3T& other) const;
60-
};
61-
62-
/*!
63-
* \class CReorderElements
64-
* \brief Class, used to reorder the owned elements after the partitioning.
65-
* \author E. van der Weide
66-
* \version 8.1.0 "Harrier"
67-
*/
68-
class CReorderElements {
69-
private:
70-
unsigned long globalElemID; /*!< \brief Global element ID of the element. */
71-
unsigned short timeLevel; /*!< \brief Time level of the element. Only relevant
72-
for time accurate local time stepping. */
73-
bool commSolution; /*!< \brief Whether or not the solution must be
74-
communicated to other ranks. */
75-
unsigned short elemType; /*!< \brief Short hand for the element type, Which
76-
stored info of the VTK_Type, polynomial
77-
degree of the solution and whether or
78-
not the Jacobian is constant. */
79-
public:
80-
/*!
81-
* \brief Constructor of the class, set the member variables to the arguments.
82-
*/
83-
CReorderElements(const unsigned long val_GlobalElemID, const unsigned short val_TimeLevel,
84-
const bool val_CommSolution, const unsigned short val_VTK_Type, const unsigned short val_nPolySol,
85-
const bool val_JacConstant);
86-
87-
/*!
88-
* \brief Default constructor of the class. Disabled.
89-
*/
90-
CReorderElements(void) = delete;
91-
92-
/*!
93-
* \brief Less than operator of the class. Needed for the sorting.
94-
*/
95-
bool operator<(const CReorderElements& other) const;
96-
97-
/*!
98-
* \brief Function to make available the variable commSolution.
99-
* \return Whether or not the solution of the element must be communicated.
100-
*/
101-
inline bool GetCommSolution(void) const { return commSolution; }
102-
103-
/*!
104-
* \brief Function to make available the element type of the element.
105-
* \return The value of elemType, which stores the VTK type, polynomial degree
106-
and whether or not the Jacobian is constant.
107-
*/
108-
inline unsigned short GetElemType(void) const { return elemType; }
109-
110-
/*!
111-
* \brief Function to make available the global element ID.
112-
* \return The global element ID of the element.
113-
*/
114-
inline unsigned long GetGlobalElemID(void) const { return globalElemID; }
115-
116-
/*!
117-
* \brief Function to make available the time level.
118-
* \return The time level of the element.
119-
*/
120-
inline unsigned short GetTimeLevel(void) const { return timeLevel; }
121-
122-
/*!
123-
* \brief Function, which sets the value of commSolution.
124-
* \param[in] val_CommSolution - value to which commSolution must be set.
125-
*/
126-
inline void SetCommSolution(const bool val_CommSolution) { commSolution = val_CommSolution; }
127-
};
128-
129-
/*!
130-
* \class CSortFaces
131-
* \brief Functor, used for a different sorting of the faces than the < operator
132-
* of CFaceOfElement.
133-
* \author E. van der Weide
134-
* \version 8.1.0 "Harrier"
135-
*/
136-
class CVolumeElementFEM; // Forward declaration to avoid problems.
137-
class CSortFaces {
138-
private:
139-
unsigned long nVolElemOwned; /*!< \brief Number of locally owned volume elements. */
140-
unsigned long nVolElemTot; /*!< \brief Total number of local volume elements . */
141-
142-
const CVolumeElementFEM* volElem; /*!< \brief The locally stored volume elements. */
143-
144-
public:
145-
/*!
146-
* \brief Constructor of the class. Set the values of the member variables.
147-
*/
148-
CSortFaces(unsigned long val_nVolElemOwned, unsigned long val_nVolElemTot, const CVolumeElementFEM* val_volElem) {
149-
nVolElemOwned = val_nVolElemOwned;
150-
nVolElemTot = val_nVolElemTot;
151-
volElem = val_volElem;
152-
}
153-
154-
/*!
155-
* \brief Default constructor of the class. Disabled.
156-
*/
157-
CSortFaces(void) = delete;
158-
159-
/*!
160-
* \brief Operator used for the comparison.
161-
* \param[in] f0 - First face in the comparison.
162-
* \param[in] f1 - Second face in the comparison.
163-
*/
164-
bool operator()(const CFaceOfElement& f0, const CFaceOfElement& f1);
165-
};
166-
167-
/*!
168-
* \class CSortBoundaryFaces
169-
* \brief Functor, used for a different sorting of the faces than the < operator
170-
* of CSurfaceElementFEM.
171-
* \author E. van der Weide
172-
* \version 8.1.0 "Harrier"
173-
*/
174-
struct CSurfaceElementFEM; // Forward declaration to avoid problems.
175-
struct CSortBoundaryFaces {
176-
/*!
177-
* \brief Operator used for the comparison.
178-
* \param[in] f0 - First boundary face in the comparison.
179-
* \param[in] f1 - Second boundary face in the comparison.
180-
*/
181-
bool operator()(const CSurfaceElementFEM& f0, const CSurfaceElementFEM& f1);
182-
};
183-
18439
/*!
18540
* \class CVolumeElementFEM
18641
* \brief Class to store a volume element for the FEM solver.
@@ -274,7 +129,7 @@ class CVolumeElementFEM {
274129

275130
/*!
276131
* \class CPointFEM
277-
* \brief Class to a point for the FEM solver.
132+
* \brief Class to store a point for the FEM solver.
278133
* \author E. van der Weide
279134
* \version 8.1.0 "Harrier"
280135
*/

0 commit comments

Comments
 (0)