|
SU2
|
Class to define the numerical primal grid. More...
#include <primal_grid_structure.hpp>
Public Member Functions | |
| CPrimalGrid (void) | |
| Constructor of the class. | |
| CPrimalGrid (unsigned short val_nNodes, unsigned short val_nFaces, unsigned short val_VTK_Type) | |
| virtual | ~CPrimalGrid (void) |
| Destructor of the class. | |
| long | GetNeighbor_Elements (unsigned short val_face) |
| Get the elements that surround an element. More... | |
| void | SetNeighbor_Elements (unsigned long val_elem, unsigned short val_face) |
| Set the elements that surround an element. More... | |
| void | SetCoord_CG (su2double **val_coord) |
| Set the center of gravity of an element (including edges). More... | |
| su2double | GetCG (unsigned short val_dim) |
| Get the center of gravity of an element (including edges). More... | |
| void | SetVolume (su2double val_volume) |
| Set the center of gravity of an element (including edges). More... | |
| su2double | GetVolume (void) |
| Get the center of gravity of an element (including edges). More... | |
| su2double | GetFaceCG (unsigned short val_face, unsigned short val_dim) |
| Get the CG of a face of an element. More... | |
| void | GetAllNeighbor_Elements (void) |
| Get all the neighbors of an element. More... | |
| void | SetDivide (bool val_divide) |
| Set that an element must be divided in the adaptation stage. More... | |
| bool | GetDivide (void) |
| Get if an element must be divided in the adaptation stage. More... | |
| unsigned long | GetGlobalIndex (void) |
| Get the element global index in a parallel computation. More... | |
| void | SetGlobalIndex (unsigned long val_globalindex) |
| Set the global index for an element in a parallel computation. More... | |
| virtual void | SetDomainElement (unsigned long val_domainelement) |
| A virtual member. More... | |
| virtual unsigned long | GetDomainElement (void) |
| A virtual member. More... | |
| virtual void | Change_Orientation (void)=0 |
| A pure virtual member. | |
| virtual unsigned short | GetVTK_Type (void)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetRotation_Type (void) |
| A pure virtual member. More... | |
| virtual void | SetRotation_Type (unsigned short val_rotation_type) |
| A pure virtual member. More... | |
| virtual unsigned short | GetnNeighbor_Nodes (unsigned short val_node)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetnNeighbor_Elements (void)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetnNodes (void)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetnFaces (void)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetnNodesFace (unsigned short val_face)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetMaxNodesFace (void)=0 |
| A pure virtual member. More... | |
| virtual unsigned long | GetNode (unsigned short val_node)=0 |
| A pure virtual member. More... | |
| virtual void | SetNode (unsigned short val_node, unsigned long val_point) |
| A pure virtual member. More... | |
| virtual unsigned short | GetFaces (unsigned short val_face, unsigned short val_index)=0 |
| A pure virtual member. More... | |
| virtual unsigned short | GetNeighbor_Nodes (unsigned short val_node, unsigned short val_index)=0 |
| A pure virtual member. More... | |
Protected Attributes | |
| unsigned long * | Nodes |
| Vector to store the global nodes of an element. | |
| unsigned long | GlobalIndex |
| The global index of an element. | |
| long * | Neighbor_Elements |
| Vector to store the elements surronding an element. | |
| su2double * | Coord_CG |
| Coordinates of the center-of-gravity of the element. | |
| su2double ** | Coord_FaceElems_CG |
| Coordinates of the center-of-gravity of the face of the elements. | |
| unsigned long | DomainElement |
| Only for boundaries, in this variable the 3D elements which correspond with a boundary element is stored. | |
| bool | Divide |
| Marker used to know if we are going to divide this element in the adaptation proccess. | |
| su2double | Volume |
| Volume of the element. | |
Static Protected Attributes | |
| static unsigned short | nDim |
| Dimension of the element (2D or 3D) useful for triangles, quadrilateral and edges. | |
Class to define the numerical primal grid.
| CPrimalGrid::CPrimalGrid | ( | unsigned short | val_nNodes, |
| unsigned short | val_nFaces, | ||
| unsigned short | val_VTK_Type | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_nNodes | - Number of nodes of the element. |
| [in] | val_nFaces | - Number of faces of the element. |
| [in] | val_VTK_Type | - Type of the element using the vtk nomenclature. |
| void CPrimalGrid::GetAllNeighbor_Elements | ( | void | ) |
Get all the neighbors of an element.
|
inline |
Get the center of gravity of an element (including edges).
| [in] | val_dim | - Coordinate of the center of gravity. |
|
inline |
Get if an element must be divided in the adaptation stage.
TRUE if the element must be divided; otherwise FALSE.
|
inlinevirtual |
A virtual member.
Reimplemented in CQuadrilateral, CTriangle, and CLine.
|
inline |
Get the CG of a face of an element.
| [in] | val_face | - Local index of the face. |
| [in] | val_dim | - Coordinate of the center of gravity. |
|
pure virtual |
A pure virtual member.
| [in] | val_face | - Local index of the face. |
| [in] | val_index | - Local index of the nodes that compose the face. |
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
inline |
Get the element global index in a parallel computation.
|
pure virtual |
A pure virtual member.
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
inline |
Get the elements that surround an element.
| [in] | val_face | - Local index of the face. |
|
pure virtual |
A pure virtual member.
| [in] | val_node | - Local index of a node. |
| [in] | val_index | - Local (to the neighbor nodes of val_node) index of the nodes that are neighbor to val_node. |
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
pure virtual |
A pure virtual member.
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
pure virtual |
A pure virtual member.
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
pure virtual |
A pure virtual member.
| [in] | val_node | - Local index of the node. |
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
pure virtual |
A pure virtual member.
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
inlinepure virtual |
A pure virtual member.
| [in] | val_face | - Local index of a face. |
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
pure virtual |
A pure virtual member.
| [in] | val_node | - Local index of a node. |
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
inlinevirtual |
A pure virtual member.
Reimplemented in CVertexMPI.
|
inline |
Get the center of gravity of an element (including edges).
| [in] | val_dim | - Coordinate of the center of gravity. |
|
pure virtual |
A pure virtual member.
Implemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
| void CPrimalGrid::SetCoord_CG | ( | su2double ** | val_coord | ) |
Set the center of gravity of an element (including edges).
| [in] | val_coord | - Coordinates of the element. |
|
inline |
Set that an element must be divided in the adaptation stage.
| [in] | val_divide | - TRUE if the element must be divided; otherwise FALSE. |
|
inlinevirtual |
A virtual member.
| [in] | val_domainelement | Index of the domain element which has a face shared by this boundary element. |
Reimplemented in CQuadrilateral, CTriangle, and CLine.
|
inline |
Set the global index for an element in a parallel computation.
|
inline |
Set the elements that surround an element.
| [in] | val_elem | - Global index of the element. |
| [in] | val_face | - Local index of the face. |
|
inlinevirtual |
A pure virtual member.
| [in] | val_node | - Local index of a node. |
| [in] | val_point | - Point associated to the node. |
Reimplemented in CPyramid, CPrism, CHexahedron, CTetrahedron, CQuadrilateral, CTriangle, CLine, and CVertexMPI.
|
inlinevirtual |
A pure virtual member.
| [in] | val_rotation_type | - Kind of rotation/traslation that must be applied. |
Reimplemented in CVertexMPI.
|
inline |
Set the center of gravity of an element (including edges).
| [in] | val_coord | - Coordinates of the element. |
1.8.12