|
SU2
|
Class for defining an edge. More...
#include <dual_grid_structure.hpp>
Public Member Functions | |
| CEdge (unsigned long val_iPoint, unsigned long val_jPoint, unsigned short val_nDim) | |
| Constructor of the class. More... | |
| ~CEdge (void) | |
| Destructor of the class. | |
| void | SetCoord_CG (su2double **val_coord) |
| Set the center of gravity of the edge. More... | |
| su2double | GetCG (unsigned short val_dim) |
| Obtain the centre of gravity of the edge. More... | |
| unsigned long | GetNode (unsigned short val_node) |
| Get the nodes of the edge. More... | |
| unsigned short | GetnNodes (void) |
| Get the number of nodes of an element. More... | |
| su2double | GetVolume (su2double *val_coord_Edge_CG, su2double *val_coord_FaceElem_CG, su2double *val_coord_Elem_CG, su2double *val_coord_Point) |
| Compute Volume associated to each edge. More... | |
| su2double | GetVolume (su2double *val_coord_Edge_CG, su2double *val_coord_Elem_CG, su2double *val_coord_Point) |
| void | SetNodes_Coord (su2double *val_coord_Edge_CG, su2double *val_coord_FaceElem_CG, su2double *val_coord_Elem_CG) |
| Set the face that correspond to an edge. More... | |
| void | SetNodes_Coord (su2double *val_coord_Edge_CG, su2double *val_coord_Elem_CG) |
| Set the face that correspond to an edge. More... | |
| void | GetNormal (su2double *val_normal) |
| Copy the the normal vector of a face. More... | |
| su2double * | GetNormal (void) |
| Get the normal to a face of the control volume asociated with an edge. More... | |
| void | SetZeroValues (void) |
| Initialize normal vector. | |
| void | SetNormal (su2double *val_face_normal) |
| Set the normal vector. More... | |
| void | AddNormal (su2double *val_face_normal) |
| Add a vector to the normal vector. More... | |
| su2double * | GetCoord (void) |
| This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes). | |
| void | SetCoord (su2double *val_coord) |
| This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes). | |
Public Member Functions inherited from CDualGrid | |
| CDualGrid (unsigned short val_nDim) | |
| Constructor of the class. More... | |
| virtual | ~CDualGrid (void) |
| Destructor of the class. | |
Additional Inherited Members | |
Static Protected Attributes inherited from CDualGrid | |
| static unsigned short | nDim = 0 |
| Number of dimensions of the problem. | |
Class for defining an edge.
| CEdge::CEdge | ( | unsigned long | val_iPoint, |
| unsigned long | val_jPoint, | ||
| unsigned short | val_nDim | ||
| ) |
Constructor of the class.
| [in] | val_iPoint | - First node of the edge. |
| [in] | val_jPoint | - Second node of the edge. |
| [in] | val_nDim | - Number of dimensions of the problem. |
|
inlinevirtual |
Add a vector to the normal vector.
| [in] | val_face_normal | - Vector to add to the normal vector. |
Implements CDualGrid.
|
inline |
Obtain the centre of gravity of the edge.
| [in] | val_dim | - Position to read the coordinate. |
|
inlinevirtual |
Get the number of nodes of an element.
Implements CDualGrid.
|
inline |
Get the nodes of the edge.
| [in] | val_node | - Position of the node that makes the edge. |
|
inlinevirtual |
Copy the the normal vector of a face.
| [in] | val_normal | - Vector where the subroutine is goint to copy the normal (dimensional). |
Implements CDualGrid.
|
inlinevirtual |
Get the normal to a face of the control volume asociated with an edge.
Implements CDualGrid.
| su2double CEdge::GetVolume | ( | su2double * | val_coord_Edge_CG, |
| su2double * | val_coord_FaceElem_CG, | ||
| su2double * | val_coord_Elem_CG, | ||
| su2double * | val_coord_Point | ||
| ) |
Compute Volume associated to each edge.
| [in] | val_coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | val_coord_FaceElem_CG | - Coordinates of the centre of gravity of the face of an element. |
| [in] | val_coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | val_coord_Point | - Coordinates of the point that form the control volume. |
| su2double CEdge::GetVolume | ( | su2double * | val_coord_Edge_CG, |
| su2double * | val_coord_Elem_CG, | ||
| su2double * | val_coord_Point | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | val_coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | val_coord_Point | - Coordinates of the point that form the control volume. |
| void CEdge::SetCoord_CG | ( | su2double ** | val_coord | ) |
Set the center of gravity of the edge.
| [in] | val_coord | - Coordinates of all the nodes needed for computing the centre of gravity of an edge. |
|
virtual |
Set the face that correspond to an edge.
| [in] | val_coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | val_coord_FaceElem_CG | - Coordinates of the centre of gravity of the face of an element. |
| [in] | val_coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | config | - Definition of the particular problem. |
Implements CDualGrid.
|
virtual |
Set the face that correspond to an edge.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_coord_Edge_CG | - Coordinates of the centre of gravity of the edge. |
| [in] | val_coord_Elem_CG | - Coordinates of the centre of gravity of the element. |
| [in] | config | - Definition of the particular problem. |
Implements CDualGrid.
|
inlinevirtual |
Set the normal vector.
| [in] | val_face_normal | - Vector to initialize the normal vector. |
Implements CDualGrid.
1.8.12