22 * \file CLinearElasticity.hpp
33 * \brief Headers of the CLinearElasticity class.
44 * \author F. Palacios, A. Bueno, T. Economon, S. Padron.
5- * \version 8.0.1 "Harrier"
5+ * \version 8.2.0 "Harrier"
66 *
77 * SU2 Project Website: https://su2code.github.io
88 *
99 * The SU2 Project is maintained by the SU2 Foundation
1010 * (http://su2foundation.org)
1111 *
12- * Copyright 2012-2023 , SU2 Contributors (cf. AUTHORS.md)
12+ * Copyright 2012-2025 , SU2 Contributors (cf. AUTHORS.md)
1313 *
1414 * SU2 is free software; you can redistribute it and/or
1515 * modify it under the terms of the GNU Lesser General Public
3737 * \author F. Palacios, A. Bueno, T. Economon, S. Padron.
3838 */
3939
40- class CLinearElasticity final : public CVolumetricMovement{
41- protected:
40+ class CLinearElasticity final : public CVolumetricMovement {
41+ protected:
4242 unsigned short nVar; /* !< \brief Number of variables. */
4343
4444 unsigned long nPoint; /* !< \brief Number of points. */
4545 unsigned long nPointDomain; /* !< \brief Number of points in the domain. */
4646
4747 unsigned long nIterMesh; /* !< \brief Number of iterations in the mesh update. +*/
4848
49-
50- #ifndef CODI_FORWARD_TYPE
49+ #ifndef CODI_FORWARD_TYPE
5150 CSysMatrix<su2mixedfloat> StiffMatrix; /* !< \brief Stiffness matrix of the elasticity problem. */
5251 CSysSolve<su2mixedfloat> System; /* !< \brief Linear solver/smoother. */
5352#else
@@ -59,8 +58,8 @@ class CLinearElasticity final: public CVolumetricMovement{
5958
6059 public:
6160 /* !
62- * \brief Constructor of the class.
63- */
61+ * \brief Constructor of the class.
62+ */
6463 CLinearElasticity (CGeometry* geometry, CConfig* config);
6564
6665 /* !
@@ -76,7 +75,7 @@ class CLinearElasticity final: public CVolumetricMovement{
7675 * \param[in] Derivative - Compute the derivative (disabled by default). Does not actually deform the grid if enabled.
7776 */
7877 void SetVolume_Deformation (CGeometry* geometry, CConfig* config, bool UpdateGeo, bool Derivative,
79- bool ForwardProjectionDerivative);
78+ bool ForwardProjectionDerivative);
8079
8180 /* !
8281 * \brief Update the value of the coordinates after the grid movement.
@@ -98,14 +97,14 @@ class CLinearElasticity final: public CVolumetricMovement{
9897 * \param[in] config - Definition of the particular problem.
9998 */
10099 void ComputeSolid_Wall_Distance (CGeometry* geometry, CConfig* config, su2double& MinDistance,
101- su2double& MaxDistance) const ;
100+ su2double& MaxDistance) const ;
102101
103102 /* !
104103 * \brief Compute the stiffness matrix for grid deformation using spring analogy.
105104 * \param[in] geometry - Geometrical definition of the problem.
106105 * \param[in] config - Definition of the particular problem.
107106 * \return Value of the length of the smallest edge of the grid.
108- */
107+ */
109108 su2double SetFEAMethodContributions_Elem (CGeometry* geometry, CConfig* config);
110109
111110 /* !
@@ -119,8 +118,8 @@ class CLinearElasticity final: public CVolumetricMovement{
119118 * \param[in] scale
120119 */
121120 void SetFEA_StiffMatrix2D (CGeometry* geometry, CConfig* config, su2double** StiffMatrix_Elem,
122- unsigned long PointCorners[8 ], su2double CoordCorners[8 ][3 ],
123- unsigned short nNodes, su2double ElemVolume, su2double ElemDistance) ;
121+ unsigned long PointCorners[8 ], su2double CoordCorners[8 ][3 ], unsigned short nNodes ,
122+ su2double ElemVolume, su2double ElemDistance);
124123
125124 /* !
126125 * \brief Build the stiffness matrix for a 3-D hexahedron element. The result will be placed in StiffMatrix_Elem.
@@ -133,19 +132,19 @@ class CLinearElasticity final: public CVolumetricMovement{
133132 * \param[in] scale
134133 */
135134 void SetFEA_StiffMatrix3D (CGeometry* geometry, CConfig* config, su2double** StiffMatrix_Elem,
136- unsigned long PointCorners[8 ], su2double CoordCorners[8 ][3 ],
137- unsigned short nNodes, su2double ElemVolume, su2double ElemDistance);
138-
135+ unsigned long PointCorners[8 ], su2double CoordCorners[8 ][3 ], unsigned short nNodes ,
136+ su2double ElemVolume, su2double ElemDistance);
137+
139138 /* !
140139 * \brief Add the stiffness matrix for a 2-D triangular element to the global stiffness matrix for the entire mesh
141140 * (node-based). \param[in] geometry - Geometrical definition of the problem. \param[in] StiffMatrix_Elem - Element
142141 * stiffness matrix to be filled. \param[in] PointCorners - Index values for element corners \param[in] nNodes -
143142 * Number of nodes defining the element.
144- */
145- void AddFEA_StiffMatrix (CGeometry* geometry, su2double** StiffMatrix_Elem,
146- unsigned long PointCorners[ 8 ], unsigned short nNodes);
143+ */
144+ void AddFEA_StiffMatrix (CGeometry* geometry, su2double** StiffMatrix_Elem, unsigned long PointCorners[ 8 ],
145+ unsigned short nNodes);
147146
148- /* !
147+ /* !
149148 * \brief Shape functions and derivative of the shape functions
150149 * \param[in] Xi - Local coordinates.
151150 * \param[in] Eta - Local coordinates.
@@ -154,7 +153,7 @@ class CLinearElasticity final: public CVolumetricMovement{
154153 * \param[in] DShapeFunction - Shape function information
155154 */
156155 su2double ShapeFunc_Hexa (su2double Xi, su2double Eta, su2double Zeta, su2double CoordCorners[8 ][3 ],
157- su2double DShapeFunction[8 ][4 ]);
156+ su2double DShapeFunction[8 ][4 ]);
158157
159158 /* !
160159 * \brief Shape functions and derivative of the shape functions
@@ -197,7 +196,7 @@ class CLinearElasticity final: public CVolumetricMovement{
197196 * \param[in] DShapeFunction - Shape function information
198197 */
199198 su2double ShapeFunc_Triangle (su2double Xi, su2double Eta, su2double CoordCorners[8 ][3 ],
200- su2double DShapeFunction[8 ][4 ]);
199+ su2double DShapeFunction[8 ][4 ]);
201200
202201 /* !
203202 * \brief Shape functions and derivative of the shape functions
@@ -210,10 +209,10 @@ class CLinearElasticity final: public CVolumetricMovement{
210209 su2double DShapeFunction[8 ][4 ]);
211210
212211 /* !
213- * \brief Check the domain points vertex that are going to be moved.
214- * \param[in] geometry - Geometrical definition of the problem.
215- * \param[in] config - Definition of the particular problem.
216- */
212+ * \brief Check the domain points vertex that are going to be moved.
213+ * \param[in] geometry - Geometrical definition of the problem.
214+ * \param[in] config - Definition of the particular problem.
215+ */
217216 void SetDomainDisplacements (CGeometry* geometry, CConfig* config);
218217
219218 /* !
@@ -230,7 +229,7 @@ class CLinearElasticity final: public CVolumetricMovement{
230229 */
231230 void SetBoundaryDerivatives (CGeometry* geometry, CConfig* config, bool ForwardProjectionDerivative);
232231
233- /* !
232+ /* !
234233 * \brief Store the number of iterations when moving the mesh.
235234 * \param[in] val_nIterMesh - Number of iterations.
236235 */
@@ -242,5 +241,3 @@ class CLinearElasticity final: public CVolumetricMovement{
242241 */
243242 inline unsigned long Get_nIterMesh () const { return nIterMesh; }
244243};
245-
246-
0 commit comments