|
SU2
|
Class for point definition (including control volume definition). More...
#include <dual_grid_structure.hpp>
Public Member Functions | |
| CPoint (unsigned short val_nDim, unsigned long val_globalindex, CConfig *config) | |
| Constructor of the class. More... | |
| CPoint (su2double val_coord_0, su2double val_coord_1, unsigned long val_globalindex, CConfig *config) | |
| CPoint (su2double val_coord_0, su2double val_coord_1, su2double val_coord_2, unsigned long val_globalindex, CConfig *config) | |
| ~CPoint (void) | |
| Destructor of the class. | |
| void | SetDomain (bool val_domain) |
| For parallel computation, its indicates if a point must be computed or not. More... | |
| bool | GetDomain (void) |
| For parallel computation, its indicates if a point must be computed or not. More... | |
| void | SetWall_Distance (su2double val_distance) |
| Set the value of the distance to the nearest wall. More... | |
| void | SetSharpEdge_Distance (su2double val_distance) |
| Set the value of the distance to a sharp edge. More... | |
| su2double | GetWall_Distance (void) |
| Get the value of the distance to the nearest wall. More... | |
| void | SetCurvature (su2double val_curvature) |
| Set the value of the curvature at a surface node. More... | |
| su2double | GetCurvature (void) |
| Get the value of the curvature at a surface node. More... | |
| su2double | GetSharpEdge_Distance (void) |
| Get the value of the distance to a sharp edge. More... | |
| void | SetnElem (unsigned short val_nElem) |
| Set the number of elements that compose the control volume. More... | |
| void | SetnPoint (unsigned short val_nPoint) |
| Set the number of points that compose the control volume. More... | |
| su2double | GetCoord (unsigned short val_dim) |
| Get the coordinates dor the control volume. More... | |
| su2double * | GetCoord (void) |
| Get the coordinates of the control volume. More... | |
| void | SetCoord (unsigned short val_dim, su2double val_coord) |
| Set the coordinates for the control volume. More... | |
| bool | GetFlip_Orientation (void) |
| Get the coordinates of the control volume. More... | |
| void | SetFlip_Orientation (void) |
| Set the coordinates for the control volume. More... | |
| void | AddCoord (unsigned short val_dim, su2double val_coord) |
| Set the coordinates for the control volume. More... | |
| void | SetCoord (su2double *val_coord) |
| unsigned short | GetnElem (void) |
| Get the number of elements that compose the control volume. More... | |
| unsigned short | GetnPoint (void) |
| Get the number of points that compose the control volume. More... | |
| void | SetElem (unsigned long val_elem) |
| Set the elements that set the control volume. More... | |
| void | ResetElem (void) |
| Reset the elements of a control volume. | |
| void | ResetPoint (void) |
| Reset the points that compose the control volume. | |
| void | SetPoint (unsigned long val_point) |
| Set the points that compose the control volume. More... | |
| void | SetEdge (long val_edge, unsigned short val_nEdge) |
| Set the edges that compose the control volume. More... | |
| void | SetVertex (long val_vertex, unsigned short val_nMarker) |
| Set the boundary vertex that compose the control volume. More... | |
| unsigned long | GetElem (unsigned short val_elem) |
| Get all the elements that compose the control volume. More... | |
| unsigned long | GetPoint (unsigned short val_point) |
| Get all the points that compose the control volume. More... | |
| long | GetEdge (unsigned short val_edge) |
| Get all the edges that compose the control volume. More... | |
| long | GetVertex (unsigned short val_marker) |
| Get the vertex that compose the control volume for a marker. More... | |
| void | AddVolume (su2double val_Volume) |
| Adds some area or volume of the CV. More... | |
| su2double | GetVolume (void) |
| Get area or volume of the control volume. More... | |
| bool | GetMove (void) |
| Get information about the movement of the node. More... | |
| void | SetBoundary (unsigned short val_nmarker) |
| Set if a point belong to the boundary. More... | |
| void | ResetBoundary (void) |
| Reset the boundary of a control volume. | |
| void | SetBoundary (bool val_boundary) |
| bool | GetBoundary (void) |
| Provides information about if a point belong to the boundaries. More... | |
| void | SetPhysicalBoundary (bool val_boundary) |
| Set if a point belong to the boundary. More... | |
| void | SetSolidBoundary (bool val_boundary) |
| Set if a point belong to the boundary. More... | |
| bool | GetPhysicalBoundary (void) |
| Provides information about if a point belong to the physical boundaries (without MPI). More... | |
| bool | GetSolidBoundary (void) |
| Provides information about if a point belong to the physical boundaries (without MPI). More... | |
| void | SetColor (unsigned short val_color) |
| Set a color to the point that comes from the grid partitioning. More... | |
| void | SetnNeighbor (unsigned short val_nneighbor) |
| Set the number of neighbor (artificial dissipation). More... | |
| unsigned short | GetnNeighbor (void) |
| Get the number of neighbor of a point. More... | |
| unsigned short | GetColor (void) |
| Get the color of a point, the color indicates to which subdomain the point belong to. More... | |
| unsigned long | GetGlobalIndex (void) |
| Get the global index in a parallel computation. More... | |
| void | SetGlobalIndex (unsigned long val_globalindex) |
| Set the global index in a parallel computation. More... | |
| su2double | GetVolume_n (void) |
| Get the volume of the control volume at time n. More... | |
| su2double | GetVolume_nM1 (void) |
| Get the volume of the control volume at time n+1. More... | |
| void | SetVolume_n (void) |
| Set the volume of the control volume at time n. | |
| void | SetVolume_nM1 (void) |
| Set the volume of the control volume at time n+1. | |
| su2double * | GetCoord_n (void) |
| Get the coordinates of the control volume at time n. More... | |
| su2double * | GetCoord_n1 (void) |
| Get the coordinates of the control volume at time n-1. More... | |
| su2double * | GetCoord_p1 (void) |
| Get the coordinates of the control volume at time n+1. More... | |
| void | SetCoord_n (void) |
| Set the coordinates of the control volume at time n. | |
| void | SetCoord_n1 (void) |
| Set the coordinates of the control volume at time n-1. | |
| void | SetCoord_n (su2double *val_coord) |
| Set the coordinates of the control volume at time n, for restart cases. More... | |
| void | SetCoord_n1 (su2double *val_coord) |
| Set the coordinates of the control volume at time n-1, for restart cases. More... | |
| void | SetCoord_p1 (su2double *val_coord) |
| Set the coordinates of the control volume at time n+1. More... | |
| void | SetVolume (su2double val_Volume) |
| Set the volume of the control volume. More... | |
| void | SetMove (bool val_move) |
| Set if a element is going to be moved on the deformation process. More... | |
| void | SetParent_CV (unsigned long val_parent_CV) |
| Set the parent control volume of an agglomerated control volume. More... | |
| void | SetChildren_CV (unsigned short val_nchildren_CV, unsigned long val_children_CV) |
| Set the children control volumes of an agglomerated control volume. More... | |
| unsigned long | GetParent_CV (void) |
| Get the parent control volume of an agglomerated control volume. More... | |
| unsigned long | GetChildren_CV (unsigned short val_nchildren_CV) |
| Get the children control volume of an agglomerated control volume. More... | |
| bool | GetAgglomerate (void) |
| Get information about if a control volume has been agglomerated. More... | |
| bool | GetAgglomerate_Indirect (void) |
| Get information about if the indirect neighbors can be agglomerated. More... | |
| void | SetAgglomerate_Indirect (bool val_agglomerate) |
| Set information about if the indirect neighbors can be agglomerated. More... | |
| unsigned short | GetnChildren_CV (void) |
| Get the number of children of an agglomerated control volume. More... | |
| void | SetnChildren_CV (unsigned short val_nchildren_CV) |
| Set the number of children of an agglomerated control volume. More... | |
| su2double * | GetCoord_Sum (void) |
| Get the value of the summed coordinates for implicit smoothing. More... | |
| su2double * | GetCoord_Old (void) |
| Get the value of the old coordinates for implicit smoothing. More... | |
| su2double * | GetGridVel (void) |
| Get the value of the grid velocity at the point. More... | |
| su2double ** | GetGridVel_Grad (void) |
| Get the value of the grid velocity gradient at the point. More... | |
| void | AddCoord_Sum (su2double *val_coord_sum) |
| Add the value of the coordinates to the Coord_Sum vector for implicit smoothing. More... | |
| void | SetCoord_SumZero (void) |
| Initialize the vector Coord_Sum. | |
| void | SetCoord_Old (su2double *val_coord_old) |
| Set the value of the vector Coord_Old for implicit smoothing. More... | |
| void | SetGridVel (unsigned short val_dim, su2double val_gridvel) |
| Set the value of the grid velocity at the point. More... | |
| void | SetGridVel (su2double *val_gridvel) |
| void | SetGridVel_Grad (unsigned short val_var, unsigned short val_dim, su2double val_value) |
| Set the gradient of the grid velocity. More... | |
| void | SetNodes_Coord (su2double *val_coord_Edge_CG, su2double *val_coord_FaceElem_CG, su2double *val_coord_Elem_CG) |
| This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes). | |
| void | SetNodes_Coord (su2double *val_coord_Edge_CG, su2double *val_coord_Elem_CG) |
| This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes). | |
| void | GetNormal (su2double *val_normal) |
| This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes). | |
| su2double * | GetNormal (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 | SetNormal (su2double *val_face_normal) |
| This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes). | |
| unsigned short | GetnNodes (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 | SetZeroValues (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 | AddNormal (su2double *val_face_normal) |
| 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 point definition (including control volume definition).
| CPoint::CPoint | ( | unsigned short | val_nDim, |
| unsigned long | val_globalindex, | ||
| CConfig * | config | ||
| ) |
Constructor of the class.
| [in] | val_nDim | - Number of dimensions of the problem. |
| [in] | val_globalindex | Global index in the parallel simulation. |
| [in] | config | - Definition of the particular problem. |
| CPoint::CPoint | ( | su2double | val_coord_0, |
| su2double | val_coord_1, | ||
| unsigned long | val_globalindex, | ||
| CConfig * | config | ||
| ) |
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_0 | First coordinate of the point. |
| [in] | val_coord_1 | Second coordinate of the point. |
| [in] | val_globalindex | Global index in the parallel simulation. |
| [in] | config | - Definition of the particular problem. |
| CPoint::CPoint | ( | su2double | val_coord_0, |
| su2double | val_coord_1, | ||
| su2double | val_coord_2, | ||
| unsigned long | val_globalindex, | ||
| CConfig * | config | ||
| ) |
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_0 | First coordinate of the point. |
| [in] | val_coord_1 | Second coordinate of the point. |
| [in] | val_coord_2 | Third coordinate of the point. |
| [in] | val_globalindex | Global index in the parallel simulation. |
| [in] | config | - Definition of the particular problem. |
|
inline |
Set the coordinates for the control volume.
| [in] | val_dim | - Position to store the coordinate. |
| [in] | val_coord | - Coordinate for val_dim. |
|
inline |
Add the value of the coordinates to the Coord_Sum vector for implicit smoothing.
| [in] | val_coord_sum | - Value of the coordinates to add. |
|
inline |
Adds some area or volume of the CV.
| [in] | val_Volume | - Local volume to be added to the total one. |
|
inline |
Get information about if a control volume has been agglomerated.
TRUE if the point has been agglomerated; otherwise FALSE.
|
inline |
Get information about if the indirect neighbors can be agglomerated.
TRUE if the indirect neigbors can be agglomerated; otherwise FALSE.
|
inline |
Provides information about if a point belong to the boundaries.
TRUE if the point belong to the boundary; otherwise FALSE.
|
inline |
Get the children control volume of an agglomerated control volume.
| [in] | val_nchildren_CV | - Number of the children. |
|
inline |
Get the color of a point, the color indicates to which subdomain the point belong to.
|
inline |
Get the coordinates dor the control volume.
| [in] | val_dim | - Number of dimensions of the problem. |
|
inlinevirtual |
Get the coordinates of the control volume.
Implements CDualGrid.
|
inline |
Get the coordinates of the control volume at time n.
|
inline |
Get the coordinates of the control volume at time n-1.
|
inline |
Get the value of the old coordinates for implicit smoothing.
|
inline |
Get the coordinates of the control volume at time n+1.
|
inline |
Get the value of the summed coordinates for implicit smoothing.
|
inline |
Get the value of the curvature at a surface node.
|
inline |
For parallel computation, its indicates if a point must be computed or not.
TRUE if the node belong to the physical domain; otherwise FALSE.
|
inline |
Get all the edges that compose the control volume.
| [in] | val_edge | - Position where the edge is stored. |
|
inline |
Get all the elements that compose the control volume.
| [in] | val_elem | - Position where the element is stored. |
|
inline |
Get the coordinates of the control volume.
|
inline |
Get the global index in a parallel computation.
|
inline |
Get the value of the grid velocity at the point.
|
inline |
Get the value of the grid velocity gradient at the point.
|
inline |
Get information about the movement of the node.
TRUE if the point is going to be moved; otherwise FALSE.
|
inline |
Get the number of children of an agglomerated control volume.
|
inline |
Get the number of elements that compose the control volume.
|
inline |
Get the number of neighbor of a point.
|
inline |
Get the number of points that compose the control volume.
|
inline |
Get the parent control volume of an agglomerated control volume.
|
inline |
Provides information about if a point belong to the physical boundaries (without MPI).
TRUE if the point belong to the boundary; otherwise FALSE.
|
inline |
Get all the points that compose the control volume.
| [in] | val_point | - Position where the point is stored. |
|
inline |
Get the value of the distance to a sharp edge.
|
inline |
Provides information about if a point belong to the physical boundaries (without MPI).
TRUE if the point belong to the boundary; otherwise FALSE.
|
inline |
Get the vertex that compose the control volume for a marker.
| [in] | val_marker | - Position where the vertex is stored. |
|
inline |
Get area or volume of the control volume.
|
inline |
Get the volume of the control volume at time n.
|
inline |
Get the volume of the control volume at time n+1.
|
inline |
Get the value of the distance to the nearest wall.
|
inline |
Set information about if the indirect neighbors can be agglomerated.
| [in] | val_agglomerate | - The indirect neigbors can be agglomerated. |
| void CPoint::SetBoundary | ( | unsigned short | val_nmarker | ) |
Set if a point belong to the boundary.
| [in] | val_nmarker | - Max number of marker. |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_boundary | - TRUE if the point belong to the boundary; otherwise FALSE. |
|
inline |
Set the children control volumes of an agglomerated control volume.
| [in] | val_nchildren_CV | - Number of children. |
| [in] | val_children_CV | - Index of the children control volume. |
|
inline |
Set a color to the point that comes from the grid partitioning.
| [in] | val_color | - Color of the point. |
|
inline |
Set the coordinates for the control volume.
| [in] | val_dim | - Position to store the coordinate. |
| [in] | val_coord | - Coordinate for val_dim. |
|
inlinevirtual |
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 | - Coordinate of the point. |
Implements CDualGrid.
|
inline |
Set the coordinates of the control volume at time n, for restart cases.
| [in] | val_coord | - Value of the grid coordinates at time n. |
|
inline |
Set the coordinates of the control volume at time n-1, for restart cases.
| [in] | val_coord | - Value of the grid coordinates at time n-1. |
|
inline |
Set the value of the vector Coord_Old for implicit smoothing.
| [in] | val_coord_old | - Value of the coordinates. |
|
inline |
Set the coordinates of the control volume at time n+1.
| [in] | val_coord | - Value of the grid coordinates at time n+1. |
|
inline |
Set the value of the curvature at a surface node.
| [in] | val_curvature | - Value of the curvature. |
|
inline |
For parallel computation, its indicates if a point must be computed or not.
| [in] | val_domain | - TRUE if the point belong to the domain; otherwise FALSE. |
|
inline |
Set the edges that compose the control volume.
| [in] | val_edge | - Edge to be added. |
| [in] | val_nEdge | - Position in which is going to be stored the edge for each control volume. |
|
inline |
Set the elements that set the control volume.
| [in] | val_elem | - Element to be added. |
|
inline |
Set the coordinates for the control volume.
| [in] | val_dim | - Position to store the coordinate. |
| [in] | val_coord | - Coordinate for val_dim. |
|
inline |
Set the global index in a parallel computation.
|
inline |
Set the value of the grid velocity at the point.
| [in] | val_dim | - Index of the coordinate. |
| [in] | val_gridvel | - Value of the grid velocity. |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_gridvel | - Value of the grid velocity. |
|
inline |
Set the gradient of the grid velocity.
| [in] | val_var | - Index of the variable. |
| [in] | val_dim | - Index of the dimension. |
| [in] | val_value | - Value of the gradient. |
|
inline |
Set if a element is going to be moved on the deformation process.
| [in] | val_move | - true or false depending if the point will be moved. |
|
inline |
Set the number of children of an agglomerated control volume.
| [in] | val_nchildren_CV | - Number of children of the control volume. |
|
inline |
Set the number of elements that compose the control volume.
| [in] | val_nElem | - Number of elements that make the control volume around a node. |
|
inline |
Set the number of neighbor (artificial dissipation).
| [in] | val_nneighbor | - Number of neighbors. |
|
inline |
Set the number of points that compose the control volume.
| [in] | val_nPoint | - Number of points that compose the control volume (points surrounding points). |
|
inline |
Set the parent control volume of an agglomerated control volume.
| [in] | val_parent_CV | - Index of the parent control volume. |
|
inline |
Set if a point belong to the boundary.
| [in] | val_boundary | - TRUE if the point belong to the physical boundary; otherwise FALSE. |
| void CPoint::SetPoint | ( | unsigned long | val_point | ) |
Set the points that compose the control volume.
| [in] | val_point | - Point to be added. |
|
inline |
Set the value of the distance to a sharp edge.
| [in] | val_distance | - Value of the distance. |
|
inline |
Set if a point belong to the boundary.
| [in] | val_boundary | - TRUE if the point belong to the physical boundary; otherwise FALSE. |
|
inline |
Set the boundary vertex that compose the control volume.
| [in] | val_vertex | - Vertex to be added. |
| [in] | val_nMarker | - Marker of the vertex to be added (position where is going to be stored). |
|
inline |
Set the volume of the control volume.
| [in] | val_Volume | - Value of the volume. |
|
inline |
Set the value of the distance to the nearest wall.
| [in] | val_distance | - Value of the distance. |
1.8.12