SU2
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CGeometry Class Reference

Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geometry, only boundary geometry, etc..) More...

#include <geometry_structure.hpp>

Inheritance diagram for CGeometry:
CMultiGridGeometry CPeriodicGeometry CPhysicalGeometry

Public Member Functions

 CGeometry (void)
 Constructor of the class.
 
virtual ~CGeometry (void)
 Destructor of the class.
 
unsigned short GetnDim (void)
 Get number of coordinates. More...
 
unsigned short GetnZone (void)
 Get number of zones. More...
 
unsigned long GetnPoint (void)
 Get number of points. More...
 
unsigned long GetnPointDomain (void)
 Get number of real points (that belong to the domain). More...
 
unsigned long GetnLine (void)
 Get number of elements. More...
 
unsigned long GetnElem (void)
 Get number of elements. More...
 
unsigned long GetnEdge (void)
 Get number of edges. More...
 
unsigned short GetnMarker (void)
 Get number of markers. More...
 
unsigned long GetnVertex (unsigned short val_marker)
 Get number of vertices. More...
 
long FindEdge (unsigned long first_point, unsigned long second_point)
 Get the edge index from using the nodes of the edge. More...
 
bool CheckEdge (unsigned long first_point, unsigned long second_point)
 Get the edge index from using the nodes of the edge. More...
 
su2double Point2Plane_Distance (su2double *Coord, su2double *iCoord, su2double *jCoord, su2double *kCoord)
 Get the distance between a plane (defined by three point) and a point. More...
 
void TestGeometry (void)
 Create a file for testing the geometry.
 
void SetnMarker (unsigned short val_nmarker)
 A virtual member. More...
 
void SetnDim (unsigned short val_nDim)
 Set the number of dimensions of the problem. More...
 
string GetMarker_Tag (unsigned short val_marker)
 Get the index of a marker. More...
 
void SetMarker_Tag (unsigned short val_marker, string val_index)
 Set index of a marker. More...
 
void SetnElem_Bound (unsigned short val_marker, unsigned long val_nelem_bound)
 Set the number of boundary elements. More...
 
void SetnPoint (unsigned long val_npoint)
 Set the number of grid points. More...
 
void SetnPointDomain (unsigned long val_npoint)
 Set the number of grid points in the domain. More...
 
void SetnElem (unsigned long val_nelem)
 Set the number of grid elements. More...
 
unsigned long GetnElem_Bound (unsigned short val_marker)
 Get the number of boundary elements. More...
 
unsigned long GetMax_GlobalPoint (void)
 Get the number of elements in vtk fortmat.
 
virtual bool FindFace (unsigned long first_elem, unsigned long second_elem, unsigned short &face_first_elem, unsigned short &face_second_elem)
 A virtual function. More...
 
virtual void ComputeWall_Distance (CConfig *config)
 A virtual member. More...
 
virtual void SetPositive_ZArea (CConfig *config)
 A virtual member. More...
 
virtual void SetPoint_Connectivity (void)
 A virtual member.
 
virtual void SetRCM_Ordering (CConfig *config)
 A virtual member. More...
 
virtual void SetElement_Connectivity (void)
 A virtual member.
 
void SetEdges (void)
 A virtual member.
 
void SetFaces (void)
 A virtual member.
 
virtual void SetBoundVolume (void)
 A virtual member.
 
virtual void SetVertex (CConfig *config)
 A virtual member. More...
 
virtual void SetVertex (void)
 A virtual member.
 
virtual void SetCoord_CG (void)
 A virtual member.
 
virtual void SetControlVolume (CConfig *config, unsigned short action)
 A virtual member. More...
 
virtual void VisualizeControlVolume (CConfig *config, unsigned short action)
 A virtual member. More...
 
virtual void MatchNearField (CConfig *config)
 A virtual member. More...
 
virtual void MatchActuator_Disk (CConfig *config)
 A virtual member. More...
 
virtual void MatchInterface (CConfig *config)
 A virtual member. More...
 
virtual void MatchZone (CConfig *config, CGeometry *geometry_donor, CConfig *config_donor, unsigned short val_iZone, unsigned short val_nZone)
 A virtual member. More...
 
virtual void SetBoundControlVolume (CConfig *config, unsigned short action)
 A virtual member. More...
 
virtual void SetTecPlot (char config_filename[MAX_STRING_SIZE], bool new_file)
 A virtual member. More...
 
virtual void SetBoundTecPlot (char mesh_filename[MAX_STRING_SIZE], bool new_file, CConfig *config)
 A virtual member. More...
 
virtual void SetBoundSTL (char mesh_filename[MAX_STRING_SIZE], bool new_file, CConfig *config)
 A virtual member. More...
 
virtual void Check_IntElem_Orientation (CConfig *config)
 A virtual member. More...
 
virtual void Check_BoundElem_Orientation (CConfig *config)
 A virtual member. More...
 
virtual void SetColorGrid (CConfig *config)
 A virtual member. More...
 
virtual void SetColorGrid_Parallel (CConfig *config)
 A virtual member. More...
 
virtual void DivideConnectivity (CConfig *config, unsigned short Elem_Type)
 A virtual member. More...
 
virtual void SetPeriodicBoundary (CConfig *config)
 A virtual member. More...
 
virtual void SetSendReceive (CConfig *config)
 A virtual member. More...
 
virtual void SetBoundaries (CConfig *config)
 A virtual member. More...
 
virtual void SetCoord (CGeometry *geometry)
 A virtual member. More...
 
virtual void SetCoord_Smoothing (unsigned short val_nSmooth, su2double val_smooth_coeff, CConfig *config)
 A virtual member. More...
 
virtual void SetPoint_Connectivity (CGeometry *geometry)
 A virtual member. More...
 
virtual void SetVertex (CGeometry *geometry, CConfig *config)
 A virtual member. More...
 
virtual void SetControlVolume (CConfig *config, CGeometry *geometry, unsigned short action)
 A virtual member. More...
 
virtual void SetBoundControlVolume (CConfig *config, CGeometry *geometry, unsigned short action)
 A virtual member. More...
 
virtual void SetMeshFile (CConfig *config, string val_mesh_out_filename)
 A virtual member. More...
 
virtual void SetMeshFile (CGeometry *geometry, CConfig *config, string val_mesh_out_filename)
 A virtual member. More...
 
virtual void SetBoundSensitivity (CConfig *config)
 A virtual member. More...
 
virtual void SetPeriodicBoundary (CGeometry *geometry, CConfig *config)
 A virtual member. More...
 
virtual void SetRotationalVelocity (CConfig *config, unsigned short val_iZone)
 A virtual member. More...
 
virtual void SetTranslationalVelocity (CConfig *config)
 A virtual member. More...
 
virtual void SetGridVelocity (CConfig *config, unsigned long iter)
 A virtual member. More...
 
virtual void Set_MPI_Coord (CConfig *config)
 A virtual member. More...
 
virtual void Set_MPI_GridVel (CConfig *config)
 A virtual member. More...
 
virtual void Set_MPI_OldCoord (CConfig *config)
 A virtual member. More...
 
virtual void SetRestricted_GridVelocity (CGeometry *fine_mesh, CConfig *config)
 A virtual member. More...
 
void ComputeSurf_Curvature (CConfig *config)
 Find and store all vertices on a sharp corner in the geometry. More...
 
void ComputeAirfoil_Section (su2double *Plane_P0, su2double *Plane_Normal, su2double MinXCoord, su2double MaxXCoord, su2double *FlowVariable, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil, vector< su2double > &Variable_Airfoil, bool original_surface, CConfig *config)
 A virtual member. More...
 
virtual su2double Compute_MaxThickness (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, CConfig *config, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 A virtual member.
 
virtual su2double Compute_Twist (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 A virtual member.
 
virtual su2double Compute_Chord (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 A virtual member.
 
virtual su2double Compute_Thickness (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, su2double Location, CConfig *config, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 A virtual member.
 
virtual su2double Compute_Area (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, CConfig *config, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 A virtual member.
 
virtual void Compute_LeadingTrailing (su2double *LeadingEdge, su2double *TrailingEdge, su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 A virtual member.
 
virtual su2double Compute_Dihedral (su2double *LeadingEdge_im1, su2double *TrailingEdge_im1, su2double *LeadingEdge_i, su2double *TrailingEdge_i)
 A virtual member.
 
virtual su2double Compute_Curvature (su2double *LeadingEdge_im1, su2double *TrailingEdge_im1, su2double *LeadingEdge_i, su2double *TrailingEdge_i, su2double *LeadingEdge_ip1, su2double *TrailingEdge_ip1)
 A virtual member.
 
virtual void Compute_Wing (CConfig *config, bool original_surface, su2double &Wing_Volume, su2double &Wing_MinMaxThickness, su2double &Wing_MaxChord, su2double &Wing_MinToC, su2double &Wing_MaxTwist, su2double &Wing_MaxCurvature, su2double &Wing_MaxDihedral)
 A virtual member.
 
virtual void FindNormal_Neighbor (CConfig *config)
 A virtual member. More...
 
virtual long GetGlobal_to_Local_Point (long val_ipoint)
 A virtual member. More...
 
virtual unsigned short GetGlobal_to_Local_Marker (unsigned short val_imarker)
 A virtual member. More...
 
virtual unsigned long GetGlobal_nPoint ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nPointDomain ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElem ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemDomain ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemLine ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemTria ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemQuad ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemTetr ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemHexa ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemPris ()
 A virtual member. More...
 
virtual unsigned long GetGlobal_nElemPyra ()
 A virtual member. More...
 
virtual unsigned long GetnElemLine ()
 A virtual member. More...
 
virtual unsigned long GetnElemTria ()
 A virtual member. More...
 
virtual unsigned long GetnElemQuad ()
 A virtual member. More...
 
virtual unsigned long GetnElemTetr ()
 A virtual member. More...
 
virtual unsigned long GetnElemHexa ()
 A virtual member. More...
 
virtual unsigned long GetnElemPris ()
 A virtual member. More...
 
virtual unsigned long GetnElemPyra ()
 A virtual member. More...
 
virtual void SetGeometryPlanes (CConfig *config)
 Indentify geometrical planes in the mesh.
 
virtual vector< su2double > GetGeometryPlanes ()
 Get geometrical planes in the mesh.
 
virtual vector< vector< su2double > > GetXCoord ()
 Get x coords of geometrical planes in the mesh.
 
virtual vector< vector< su2double > > GetYCoord ()
 Get y coords of geometrical planes in the mesh.
 
virtual vector< vector< su2double > > GetZCoord ()
 Get z coords of geometrical planes in the mesh.
 
virtual vector< vector< unsigned long > > GetPlanarPoints ()
 Get all points on a geometrical plane in the mesh.
 
void SetSpline (vector< su2double > &x, vector< su2double > &y, unsigned long n, su2double yp1, su2double ypn, vector< su2double > &y2)
 Given arrays x[1..n] and y[1..n] containing a tabulated function, i.e., yi = f(xi), with x1 < x2 < . . . < xN , and given values yp1 and ypn for the first derivative of the interpolating function at points 1 and n, respectively, this routine returns an array y2[1..n] that contains the second derivatives of the interpolating function at the tabulated points xi. If yp1 and/or ypn are equal to 1 × 1030 or larger, the routine is signaled to set the corresponding boundary condition for a natural spline, with zero second derivative on that boundary. Numerical Recipes: The Art of Scientific Computing, Third Edition in C++.
 
su2double GetSpline (vector< su2double > &xa, vector< su2double > &ya, vector< su2double > &y2a, unsigned long n, su2double x)
 Given the arrays xa[1..n] and ya[1..n], which tabulate a function (with the xai’s in order), and given the array y2a[1..n], which is the output from spline above, and given a value of x, this routine returns a cubic-spline interpolated value y. Numerical Recipes: The Art of Scientific Computing, Third Edition in C++. More...
 
bool SegmentIntersectsPlane (su2double *Segment_P0, su2double *Segment_P1, su2double Variable_P0, su2double Variable_P1, su2double *Plane_P0, su2double *Plane_Normal, su2double *Intersection, su2double &Variable_Interp)
 Compute the intersection between a segment and a plane. More...
 
bool RayIntersectsTriangle (su2double orig[3], su2double dir[3], su2double vert0[3], su2double vert1[3], su2double vert2[3], su2double *intersect)
 Ray Intersects Triangle (Moller and Trumbore algorithm)
 
bool SegmentIntersectsTriangle (su2double point0[3], su2double point1[3], su2double vert0[3], su2double vert1[3], su2double vert2[3])
 Segment Intersects Triangle.
 
bool SegmentIntersectsLine (su2double point0[2], su2double point1[2], su2double vert0[2], su2double vert1[2])
 Segment Intersects Line (for 2D FFD Intersection)
 
void RegisterCoordinates (CConfig *config)
 Register the coordinates of the mesh nodes. More...
 
void UpdateGeometry (CGeometry **geometry_container, CConfig *config)
 Update the multi-grid structure and the wall-distance. More...
 
virtual void SetSensitivity (CConfig *config)
 A virtual member. More...
 
virtual su2double GetSensitivity (unsigned long iPoint, unsigned short iDim)
 A virtual member. More...
 
virtual void SetSensitivity (unsigned long iPoint, unsigned short iDim, su2double val)
 A virtual member. More...
 
virtual void Check_Periodicity (CConfig *config)
 A virtual member. More...
 

Public Attributes

unsigned long * nElem_Bound
 Number of elements of the boundary.
 
string * Tag_to_Marker
 If you know the index of the boundary (depend of the grid definition), it gives you the maker (where the boundary is stored from 0 to boundaries).
 
CPrimalGrid ** elem
 Element vector (primal grid information).
 
CPrimalGrid ** face
 Face vector (primal grid information).
 
CPrimalGrid *** bound
 Boundary vector (primal grid information).
 
CPoint ** node
 Node vector (dual grid information).
 
CEdge ** edge
 Edge vector (dual grid information).
 
CVertex *** vertex
 Boundary Vertex vector (dual grid information).
 
unsigned long * nVertex
 Number of vertex for each marker.
 
unsigned short nCommLevel
 Number of non-blocking communication levels.
 
vector< unsigned long > PeriodicPoint [MAX_NUMBER_PERIODIC][2]
 PeriodicPoint[Periodic bc] and return the point that must be sent [0], and the image point in the periodic bc[1].
 
vector< unsigned long > PeriodicElem [MAX_NUMBER_PERIODIC]
 PeriodicElem[Periodic bc] and return the elements that must be sent.
 
short * Marker_All_SendRecv
 
vector< vector< su2double > > Xcoord_plane
 Vector containing x coordinates of new points appearing on a single plane.
 
vector< vector< su2double > > Ycoord_plane
 Vector containing y coordinates of new points appearing on a single plane.
 
vector< vector< su2double > > Zcoord_plane
 Vector containing z coordinates of new points appearing on a single plane.
 
vector< vector< su2double > > FaceArea_plane
 Vector containing area/volume associated with new points appearing on a single plane.
 
vector< vector< unsigned long > > Plane_points
 Vector containing points appearing on a single plane.
 
vector< su2double > XCoordList
 Vector containing points appearing on a single plane.
 
CPrimalGrid *** newBound
 Boundary vector for new periodic elements (primal grid information).
 
unsigned long * nNewElem_Bound
 Number of new periodic elements of the boundary.
 
map< unsigned long, unsigned long > Global_to_Local_Elem
 
unsigned long xadj_size
 
unsigned long adjacency_size
 
unsigned long * starting_node
 
unsigned long * ending_node
 
unsigned long * npoint_procs
 

Protected Attributes

unsigned long nPoint
 Number of points of the mesh.
 
unsigned long nPointDomain
 Number of real points of the mesh.
 
unsigned long nPointGhost
 Number of ghost points of the mesh.
 
unsigned long nPointNode
 Size of the node array allocated to hold CPoint objects.
 
unsigned long Global_nPoint
 Total number of nodes in a simulation across all processors (including halos).
 
unsigned long Global_nPointDomain
 Total number of nodes in a simulation across all processors (excluding halos).
 
unsigned long nElem
 Number of elements of the mesh.
 
unsigned long Global_nElem
 Total number of elements in a simulation across all processors (all types).
 
unsigned long Global_nElemDomain
 Total number of elements in a simulation across all processors (excluding halos).
 
unsigned long nEdge
 Number of edges of the mesh.
 
unsigned long nFace
 Number of faces of the mesh.
 
unsigned long nelem_edge
 Number of edges in the mesh.
 
unsigned long Global_nelem_edge
 Total number of edges in the mesh across all processors.
 
unsigned long nelem_triangle
 Number of triangles in the mesh.
 
unsigned long Global_nelem_triangle
 Total number of triangles in the mesh across all processors.
 
unsigned long nelem_quad
 Number of quadrangles in the mesh.
 
unsigned long Global_nelem_quad
 Total number of quadrangles in the mesh across all processors.
 
unsigned long nelem_tetra
 Number of tetrahedra in the mesh.
 
unsigned long Global_nelem_tetra
 Total number of tetrahedra in the mesh across all processors.
 
unsigned long nelem_hexa
 Number of hexahedra in the mesh.
 
unsigned long Global_nelem_hexa
 Total number of hexahedra in the mesh across all processors.
 
unsigned long nelem_prism
 Number of prisms in the mesh.
 
unsigned long Global_nelem_prism
 Total number of prisms in the mesh across all processors.
 
unsigned long nelem_pyramid
 Number of pyramids in the mesh.
 
unsigned long Global_nelem_pyramid
 Total number of pyramids in the mesh across all processors.
 
unsigned long nelem_edge_bound
 Number of edges on the mesh boundaries.
 
unsigned long Global_nelem_edge_bound
 Total number of edges on the mesh boundaries across all processors.
 
unsigned long nelem_triangle_bound
 Number of triangles on the mesh boundaries.
 
unsigned long Global_nelem_triangle_bound
 Total number of triangles on the mesh boundaries across all processors.
 
unsigned long nelem_quad_bound
 Number of quads on the mesh boundaries.
 
unsigned long Global_nelem_quad_bound
 Total number of quads on the mesh boundaries across all processors.
 
unsigned short nDim
 Number of dimension of the problem.
 
unsigned short nZone
 Number of zones in the problem.
 
unsigned short nMarker
 Number of different markers of the mesh.
 
unsigned long Max_GlobalPoint
 Greater global point in the domain local structure.
 

Detailed Description

Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geometry, only boundary geometry, etc..)

Author
F. Palacios
Version
5.0.0 "Raven"

Member Function Documentation

§ Check_BoundElem_Orientation()

void CGeometry::Check_BoundElem_Orientation ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ Check_IntElem_Orientation()

void CGeometry::Check_IntElem_Orientation ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ Check_Periodicity()

void CGeometry::Check_Periodicity ( CConfig config)
inlinevirtual

A virtual member.

Parameters
config- Config

Reimplemented in CPhysicalGeometry.

§ CheckEdge()

bool CGeometry::CheckEdge ( unsigned long  first_point,
unsigned long  second_point 
)

Get the edge index from using the nodes of the edge.

Parameters
[in]first_point- First point of the edge.
[in]second_point- Second point of the edge.
Returns
Index of the edge.

§ ComputeAirfoil_Section()

void CGeometry::ComputeAirfoil_Section ( su2double *  Plane_P0,
su2double *  Plane_Normal,
su2double  MinXCoord,
su2double  MaxXCoord,
su2double *  FlowVariable,
vector< su2double > &  Xcoord_Airfoil,
vector< su2double > &  Ycoord_Airfoil,
vector< su2double > &  Zcoord_Airfoil,
vector< su2double > &  Variable_Airfoil,
bool  original_surface,
CConfig config 
)

A virtual member.

Parameters
[in]config- Definition of the particular problem.

§ ComputeSurf_Curvature()

void CGeometry::ComputeSurf_Curvature ( CConfig config)

Find and store all vertices on a sharp corner in the geometry.

Parameters
[in]config- Definition of the particular problem.

§ ComputeWall_Distance()

void CGeometry::ComputeWall_Distance ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ DivideConnectivity()

void CGeometry::DivideConnectivity ( CConfig config,
unsigned short  Elem_Type 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

§ FindEdge()

long CGeometry::FindEdge ( unsigned long  first_point,
unsigned long  second_point 
)

Get the edge index from using the nodes of the edge.

Parameters
[in]first_point- First point of the edge.
[in]second_point- Second point of the edge.
Returns
Index of the edge.

§ FindFace()

bool CGeometry::FindFace ( unsigned long  first_elem,
unsigned long  second_elem,
unsigned short &  face_first_elem,
unsigned short &  face_second_elem 
)
inlinevirtual

A virtual function.

Parameters
[in]first_elem- Identification of the first element.
[in]second_elem- Identification of the second element.
[in]face_first_elem- Index of the common face for the first element.
[in]face_second_elem- Index of the common face for the second element.

Reimplemented in CPhysicalGeometry.

§ FindNormal_Neighbor()

void CGeometry::FindNormal_Neighbor ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ GetGlobal_nElem()

unsigned long CGeometry::GetGlobal_nElem ( void  )
inlinevirtual

A virtual member.

Returns
Total number of elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemDomain()

unsigned long CGeometry::GetGlobal_nElemDomain ( void  )
inlinevirtual

A virtual member.

Returns
Total number of elements in a simulation across all processors (excluding halos).

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemHexa()

unsigned long CGeometry::GetGlobal_nElemHexa ( void  )
inlinevirtual

A virtual member.

Returns
Total number of hexahedral elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemLine()

unsigned long CGeometry::GetGlobal_nElemLine ( void  )
inlinevirtual

A virtual member.

Returns
Total number of line elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemPris()

unsigned long CGeometry::GetGlobal_nElemPris ( void  )
inlinevirtual

A virtual member.

Returns
Total number of prism elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemPyra()

unsigned long CGeometry::GetGlobal_nElemPyra ( void  )
inlinevirtual

A virtual member.

Returns
Total number of pyramid elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemQuad()

unsigned long CGeometry::GetGlobal_nElemQuad ( void  )
inlinevirtual

A virtual member.

Returns
Total number of quadrilateral elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemTetr()

unsigned long CGeometry::GetGlobal_nElemTetr ( void  )
inlinevirtual

A virtual member.

Returns
Total number of tetrahedral elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nElemTria()

unsigned long CGeometry::GetGlobal_nElemTria ( void  )
inlinevirtual

A virtual member.

Returns
Total number of triangular elements in a simulation across all processors.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nPoint()

unsigned long CGeometry::GetGlobal_nPoint ( void  )
inlinevirtual

A virtual member.

Returns
Total number of nodes in a simulation across all processors (including halos).

Reimplemented in CPhysicalGeometry.

§ GetGlobal_nPointDomain()

unsigned long CGeometry::GetGlobal_nPointDomain ( void  )
inlinevirtual

A virtual member.

Returns
Total number of nodes in a simulation across all processors (excluding halos).

Reimplemented in CPhysicalGeometry.

§ GetGlobal_to_Local_Marker()

unsigned short CGeometry::GetGlobal_to_Local_Marker ( unsigned short  val_imarker)
inlinevirtual

A virtual member.

Parameters
[in]val_ipoint- Global marker.
Returns
Local marker that correspond with the global index.

Reimplemented in CPhysicalGeometry.

§ GetGlobal_to_Local_Point()

long CGeometry::GetGlobal_to_Local_Point ( long  val_ipoint)
inlinevirtual

A virtual member.

Parameters
[in]val_ipoint- Global point.
Returns
Local index that correspond with the global index.

Reimplemented in CPhysicalGeometry.

§ GetMarker_Tag()

string CGeometry::GetMarker_Tag ( unsigned short  val_marker)
inline

Get the index of a marker.

Parameters
[in]val_marker- Marker of the boundary.
Returns
Index of the marker in the grid defintion.

§ GetnDim()

unsigned short CGeometry::GetnDim ( void  )
inline

Get number of coordinates.

Returns
Number of coordinates.

§ GetnEdge()

unsigned long CGeometry::GetnEdge ( void  )
inline

Get number of edges.

Returns
Number of edges.

§ GetnElem()

unsigned long CGeometry::GetnElem ( void  )
inline

Get number of elements.

Returns
Number of elements.

§ GetnElem_Bound()

unsigned long CGeometry::GetnElem_Bound ( unsigned short  val_marker)
inline

Get the number of boundary elements.

Parameters
[in]val_marker- Marker of the boundary.

§ GetnElemHexa()

unsigned long CGeometry::GetnElemHexa ( void  )
inlinevirtual

A virtual member.

Returns
Number of hexahedral elements.

Reimplemented in CPhysicalGeometry.

§ GetnElemLine()

unsigned long CGeometry::GetnElemLine ( void  )
inlinevirtual

A virtual member.

Returns
Number of line elements.

Reimplemented in CPhysicalGeometry.

§ GetnElemPris()

unsigned long CGeometry::GetnElemPris ( void  )
inlinevirtual

A virtual member.

Returns
Number of prism elements.

Reimplemented in CPhysicalGeometry.

§ GetnElemPyra()

unsigned long CGeometry::GetnElemPyra ( void  )
inlinevirtual

A virtual member.

Returns
Number of pyramid elements.

Reimplemented in CPhysicalGeometry.

§ GetnElemQuad()

unsigned long CGeometry::GetnElemQuad ( void  )
inlinevirtual

A virtual member.

Returns
Number of quadrilateral elements.

Reimplemented in CPhysicalGeometry.

§ GetnElemTetr()

unsigned long CGeometry::GetnElemTetr ( void  )
inlinevirtual

A virtual member.

Returns
Number of tetrahedral elements.

Reimplemented in CPhysicalGeometry.

§ GetnElemTria()

unsigned long CGeometry::GetnElemTria ( void  )
inlinevirtual

A virtual member.

Returns
Number of triangular elements.

Reimplemented in CPhysicalGeometry.

§ GetnLine()

unsigned long CGeometry::GetnLine ( void  )

Get number of elements.

Returns
Number of elements.

§ GetnMarker()

unsigned short CGeometry::GetnMarker ( void  )
inline

Get number of markers.

Returns
Number of markers.

§ GetnPoint()

unsigned long CGeometry::GetnPoint ( void  )
inline

Get number of points.

Returns
Number of points.

§ GetnPointDomain()

unsigned long CGeometry::GetnPointDomain ( void  )
inline

Get number of real points (that belong to the domain).

Returns
Number of real points.

§ GetnVertex()

unsigned long CGeometry::GetnVertex ( unsigned short  val_marker)
inline

Get number of vertices.

Parameters
[in]val_marker- Marker of the boundary.
Returns
Number of vertices.

§ GetnZone()

unsigned short CGeometry::GetnZone ( void  )
inline

Get number of zones.

Returns
Number of zones.

§ GetSensitivity()

su2double CGeometry::GetSensitivity ( unsigned long  iPoint,
unsigned short  iDim 
)
inlinevirtual

A virtual member.

Parameters
iPoint- Point
iDim- Dimension

Reimplemented in CPhysicalGeometry.

§ GetSpline()

su2double CGeometry::GetSpline ( vector< su2double > &  xa,
vector< su2double > &  ya,
vector< su2double > &  y2a,
unsigned long  n,
su2double  x 
)

Given the arrays xa[1..n] and ya[1..n], which tabulate a function (with the xai’s in order), and given the array y2a[1..n], which is the output from spline above, and given a value of x, this routine returns a cubic-spline interpolated value y. Numerical Recipes: The Art of Scientific Computing, Third Edition in C++.

Returns
The interpolated value of for x.

§ MatchActuator_Disk()

void CGeometry::MatchActuator_Disk ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ MatchInterface()

void CGeometry::MatchInterface ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ MatchNearField()

void CGeometry::MatchNearField ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ MatchZone()

void CGeometry::MatchZone ( CConfig config,
CGeometry geometry_donor,
CConfig config_donor,
unsigned short  val_iZone,
unsigned short  val_nZone 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]geometry_donor- Geometry of the donor zone.
[in]config_donor- Definition of the donor problem.

Reimplemented in CPhysicalGeometry.

§ Point2Plane_Distance()

su2double CGeometry::Point2Plane_Distance ( su2double *  Coord,
su2double *  iCoord,
su2double *  jCoord,
su2double *  kCoord 
)

Get the distance between a plane (defined by three point) and a point.

Parameters
[in]Coord- Coordinates of the point.
[in]iCoord- Coordinates of the first point that defines the plane.
[in]jCoord- Coordinates of the second point that defines the plane.
[in]kCoord- Coordinates of the third point that defines the plane.
Returns
Signed distance.

§ RegisterCoordinates()

void CGeometry::RegisterCoordinates ( CConfig config)

Register the coordinates of the mesh nodes.

Parameters
[in]config

§ SegmentIntersectsPlane()

bool CGeometry::SegmentIntersectsPlane ( su2double *  Segment_P0,
su2double *  Segment_P1,
su2double  Variable_P0,
su2double  Variable_P1,
su2double *  Plane_P0,
su2double *  Plane_Normal,
su2double *  Intersection,
su2double &  Variable_Interp 
)

Compute the intersection between a segment and a plane.

Parameters
[in]Segment_P0- Definition of the particular problem.
[in]Segment_P1- Definition of the particular problem.
[in]Plane_P0- Definition of the particular problem.
[in]Plane_Normal- Definition of the particular problem.
[in]Intersection- Definition of the particular problem.
Returns
If the intersection has has been successful.

§ Set_MPI_Coord()

void CGeometry::Set_MPI_Coord ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ Set_MPI_GridVel()

void CGeometry::Set_MPI_GridVel ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ Set_MPI_OldCoord()

void CGeometry::Set_MPI_OldCoord ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetBoundaries()

void CGeometry::SetBoundaries ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]val_domain- Number of domains for parallelization purposes.

Reimplemented in CPhysicalGeometry.

§ SetBoundControlVolume() [1/2]

void CGeometry::SetBoundControlVolume ( CConfig config,
unsigned short  action 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]action- Allocate or not the new elements.

Reimplemented in CPhysicalGeometry.

§ SetBoundControlVolume() [2/2]

void CGeometry::SetBoundControlVolume ( CConfig config,
CGeometry geometry,
unsigned short  action 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]geometry- Geometrical definition of the problem.
[in]action- Allocate or not the new elements.

Reimplemented in CMultiGridGeometry.

§ SetBoundSensitivity()

void CGeometry::SetBoundSensitivity ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetBoundSTL()

void CGeometry::SetBoundSTL ( char  mesh_filename[MAX_STRING_SIZE],
bool  new_file,
CConfig config 
)
inlinevirtual

A virtual member.

Parameters
[in]mesh_filename- Name of the file where the tecplot information is going to be stored.
[in]new_file- Boolean to decide if aopen a new file or add to a old one
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetBoundTecPlot()

void CGeometry::SetBoundTecPlot ( char  mesh_filename[MAX_STRING_SIZE],
bool  new_file,
CConfig config 
)
inlinevirtual

A virtual member.

Parameters
[in]mesh_filename- Name of the file where the tecplot information is going to be stored.
[in]new_file- Boolean to decide if aopen a new file or add to a old one
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetColorGrid()

void CGeometry::SetColorGrid ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetColorGrid_Parallel()

void CGeometry::SetColorGrid_Parallel ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetControlVolume() [1/2]

void CGeometry::SetControlVolume ( CConfig config,
unsigned short  action 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]action- Allocate or not the new elements.

Reimplemented in CPhysicalGeometry.

§ SetControlVolume() [2/2]

void CGeometry::SetControlVolume ( CConfig config,
CGeometry geometry,
unsigned short  action 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]geometry- Geometrical definition of the problem.
[in]action- Allocate or not the new elements.

Reimplemented in CMultiGridGeometry.

§ SetCoord()

void CGeometry::SetCoord ( CGeometry geometry)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometrical definition of the problem.

Reimplemented in CMultiGridGeometry.

§ SetCoord_Smoothing()

void CGeometry::SetCoord_Smoothing ( unsigned short  val_nSmooth,
su2double  val_smooth_coeff,
CConfig config 
)
inlinevirtual

A virtual member.

Parameters
[in]val_nSmooth- Number of smoothing iterations.
[in]val_smooth_coeff- Relaxation factor.
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetGridVelocity()

void CGeometry::SetGridVelocity ( CConfig config,
unsigned long  iter 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]iter- Current physical time step.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ SetMarker_Tag()

void CGeometry::SetMarker_Tag ( unsigned short  val_marker,
string  val_index 
)
inline

Set index of a marker.

Parameters
[in]val_marker- Marker of the boundary.
[in]val_index- Index of the marker.

§ SetMeshFile() [1/2]

void CGeometry::SetMeshFile ( CConfig config,
string  val_mesh_out_filename 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]val_mesh_out_filename- Name of the output file.

Reimplemented in CPhysicalGeometry.

§ SetMeshFile() [2/2]

void CGeometry::SetMeshFile ( CGeometry geometry,
CConfig config,
string  val_mesh_out_filename 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]val_mesh_out_filename- Name of the output file.

Reimplemented in CPeriodicGeometry.

§ SetnDim()

void CGeometry::SetnDim ( unsigned short  val_nDim)
inline

Set the number of dimensions of the problem.

Parameters
[in]val_nDim- Number of dimensions.

§ SetnElem()

void CGeometry::SetnElem ( unsigned long  val_nelem)
inline

Set the number of grid elements.

Parameters
[in]val_nelem- Number of grid elements.

§ SetnElem_Bound()

void CGeometry::SetnElem_Bound ( unsigned short  val_marker,
unsigned long  val_nelem_bound 
)
inline

Set the number of boundary elements.

Parameters
[in]val_marker- Marker of the boundary.
[in]val_nelem_bound- Number of boundary elements.

§ SetnMarker()

void CGeometry::SetnMarker ( unsigned short  val_nmarker)
inline

A virtual member.

Parameters
[in]val_nmarker- Number of markers.

§ SetnPoint()

void CGeometry::SetnPoint ( unsigned long  val_npoint)
inline

Set the number of grid points.

Parameters
[in]val_npoint- Number of grid points.

§ SetnPointDomain()

void CGeometry::SetnPointDomain ( unsigned long  val_npoint)
inline

Set the number of grid points in the domain.

Parameters
[in]val_npoint- Number of grid points in the domain.

§ SetPeriodicBoundary() [1/2]

void CGeometry::SetPeriodicBoundary ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetPeriodicBoundary() [2/2]

void CGeometry::SetPeriodicBoundary ( CGeometry geometry,
CConfig config 
)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

Reimplemented in CPeriodicGeometry.

§ SetPoint_Connectivity()

void CGeometry::SetPoint_Connectivity ( CGeometry geometry)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometrical definition of the problem.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ SetPositive_ZArea()

void CGeometry::SetPositive_ZArea ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetRCM_Ordering()

void CGeometry::SetRCM_Ordering ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetRestricted_GridVelocity()

void CGeometry::SetRestricted_GridVelocity ( CGeometry fine_mesh,
CConfig config 
)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometry of the fine mesh.
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry.

§ SetRotationalVelocity()

void CGeometry::SetRotationalVelocity ( CConfig config,
unsigned short  val_iZone 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]val_iZone- Index of the current zone.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ SetSendReceive()

void CGeometry::SetSendReceive ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]val_domain- Number of domains for parallelization purposes.

Reimplemented in CPhysicalGeometry.

§ SetSensitivity() [1/2]

void CGeometry::SetSensitivity ( CConfig config)
inlinevirtual

A virtual member.

Parameters
config- Config

Reimplemented in CPhysicalGeometry.

§ SetSensitivity() [2/2]

void CGeometry::SetSensitivity ( unsigned long  iPoint,
unsigned short  iDim,
su2double  val 
)
inlinevirtual

A virtual member.

Parameters
iPoint- Point
iDim- Dimension
val- Value of the sensitivity

Reimplemented in CPhysicalGeometry.

§ SetTecPlot()

void CGeometry::SetTecPlot ( char  config_filename[MAX_STRING_SIZE],
bool  new_file 
)
inlinevirtual

A virtual member.

Parameters
[in]config_filename- Name of the file where the tecplot information is going to be stored.

Reimplemented in CPeriodicGeometry, and CPhysicalGeometry.

§ SetTranslationalVelocity()

void CGeometry::SetTranslationalVelocity ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry, and CPhysicalGeometry.

§ SetVertex() [1/2]

void CGeometry::SetVertex ( CConfig config)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.

Reimplemented in CPhysicalGeometry.

§ SetVertex() [2/2]

void CGeometry::SetVertex ( CGeometry geometry,
CConfig config 
)
inlinevirtual

A virtual member.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

Reimplemented in CMultiGridGeometry.

§ UpdateGeometry()

void CGeometry::UpdateGeometry ( CGeometry **  geometry_container,
CConfig config 
)

Update the multi-grid structure and the wall-distance.

Parameters
geometry_container- Geometrical definition.
config- Config

§ VisualizeControlVolume()

void CGeometry::VisualizeControlVolume ( CConfig config,
unsigned short  action 
)
inlinevirtual

A virtual member.

Parameters
[in]config- Definition of the particular problem.
[in]action- Allocate or not the new elements.

Reimplemented in CPhysicalGeometry.


The documentation for this class was generated from the following files: