![]() |
Documentation 6b54b78464
|
Class for defining the edges of the dual grid. More...
#include <CEdge.hpp>
Public Types | |
| enum | NodePosition : unsigned long { LEFT = 0 , RIGHT = 1 } |
Public Member Functions | |
| CEdge (unsigned long nEdge, unsigned long nDim) | |
| Constructor of the class. | |
| CEdge ()=delete | |
| No default construction. | |
| unsigned long | GetNode (unsigned long iEdge, unsigned long iNode) const |
| Get left/right node index defining the edge. | |
| template<class T , size_t N> | |
| simd::Array< T, N > | GetNode (simd::Array< T, N > iEdge, unsigned long iNode) const |
| SIMD version of GetNode, iNode returned for contiguous iEdges. | |
| void | SetPaddingNodes () |
| Sets the tail of "Nodes" to repeat one of the last edges. | |
| void | SetNodes (unsigned long iEdge, unsigned long iPoint, unsigned long jPoint) |
| Set the node indices of an edge. | |
| unsigned long | GetnNodes () const |
| Get the number of nodes of an edge (2). | |
| void | SetNodes_Coord (unsigned long iEdge, const su2double *coord_Edge_CG, const su2double *coord_FaceElem_CG, const su2double *coord_Elem_CG) |
| Set the face that corresponds to an edge (3D version). | |
| void | SetNodes_Coord (unsigned long iEdge, const su2double *coord_Edge_CG, const su2double *coord_Elem_CG) |
| Set the face that corresponds to an edge (2D version). | |
| template<class T > | |
| void | GetNormal (unsigned long iEdge, T &normal) const |
| Copy the the normal vector of a face. | |
| const su2double * | GetNormal (unsigned long iEdge) const |
| Get the normal to a face of the control volume asociated with an edge. | |
| const su2activematrix & | GetNormal () const |
| Get the entire matrix of edge normals. | |
| void | SetZeroValues (void) |
| Initialize normal vector to 0. | |
| template<class T > | |
| void | SetNormal (unsigned long iEdge, const T &normal) |
| Set the normal vector of an edge. | |
| template<class T > | |
| void | AddNormal (unsigned long iEdge, const T &normal) |
| Add a vector to the normal vector of an edge. | |
| template<class T > | |
| void | SubNormal (unsigned long iEdge, const T &normal) |
| Subtract a vector to the normal vector of an edge. | |
Static Public Member Functions | |
| static su2double | GetVolume (const su2double *coord_Edge_CG, const su2double *coord_FaceElem_CG, const su2double *coord_Elem_CG, const su2double *coord_Point) |
| Compute the volume associated with an edge (3D version). | |
| static su2double | GetVolume (const su2double *coord_Edge_CG, const su2double *coord_Elem_CG, const su2double *coord_Point) |
| Compute the volume associated with an edge (2D version). | |
Friends | |
| class | CPhysicalGeometry |
Class for defining the edges of the dual grid.
| enum CEdge::NodePosition : unsigned long |
| CEdge::CEdge | ( | unsigned long | nEdge, |
| unsigned long | nDim | ||
| ) |
Constructor of the class.
| [in] | nEdge | - Number of edges |
| [in] | nDim | - Number of dimensions of the problem. |
|
delete |
No default construction.
|
inline |
Add a vector to the normal vector of an edge.
| [in] | iEdge | - Edge index. |
| [in] | normal | - Vector to add to the normal vector. |
|
inline |
Get the number of nodes of an edge (2).
|
inline |
SIMD version of GetNode, iNode returned for contiguous iEdges.
|
inline |
Get left/right node index defining the edge.
| [in] | iEdge | - Edge index. |
| [in] | iNode | - Node index 0 or 1, LEFT or RIGHT. |
|
inline |
Get the entire matrix of edge normals.
|
inline |
Get the normal to a face of the control volume asociated with an edge.
| [in] | iEdge | - Edge index. |
|
inline |
Copy the the normal vector of a face.
| [in] | iEdge | - Edge index. |
| [out] | normal | - Object into which the normal (dimensional) will be copied. |
|
static |
Compute the volume associated with an edge (2D version).
| [in] | coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | coord_Point | - Coordinates of the point that form the control volume. |
|
static |
Compute the volume associated with an edge (3D version).
| [in] | coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | coord_FaceElem_CG | - Coordinates of the centre of gravity of the face of an element. |
| [in] | coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | coord_Point | - Coordinates of the point that form the control volume. |
|
inline |
Set the node indices of an edge.
| [in] | iEdge | - Edge index. |
| [in] | iPoint | - Index of left node. |
| [in] | jPoint | - Index of right node. |
| void CEdge::SetNodes_Coord | ( | unsigned long | iEdge, |
| const su2double * | coord_Edge_CG, | ||
| const su2double * | coord_Elem_CG | ||
| ) |
Set the face that corresponds to an edge (2D version).
| [in] | iEdge | - Edge index. |
| [in] | coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | config | - Definition of the particular problem. |
| void CEdge::SetNodes_Coord | ( | unsigned long | iEdge, |
| const su2double * | coord_Edge_CG, | ||
| const su2double * | coord_FaceElem_CG, | ||
| const su2double * | coord_Elem_CG | ||
| ) |
Set the face that corresponds to an edge (3D version).
| [in] | iEdge | - Edge index. |
| [in] | coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | coord_FaceElem_CG | - Coordinates of the centre of gravity of the face of an element. |
| [in] | coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | config | - Definition of the particular problem. |
|
inline |
Set the normal vector of an edge.
| [in] | iEdge | - Edge index. |
| [in] | normal | - Vector to initialize the normal vector. |
|
inline |
Sets the tail of "Nodes" to repeat one of the last edges.
| void CEdge::SetZeroValues | ( | void | ) |
Initialize normal vector to 0.
|
inline |
Subtract a vector to the normal vector of an edge.
| [in] | iEdge | - Edge index. |
| [in] | normal | - Vector to add to the normal vector. |
|
friend |