SU2
Public Member Functions | List of all members
CPhysicalGeometry Class Reference

Class for reading a defining the primal grid which is read from the grid file in .su2 format. More...

#include <geometry_structure.hpp>

Inheritance diagram for CPhysicalGeometry:
CGeometry

Public Member Functions

 CPhysicalGeometry (void)
 Vector holding the sensitivities at each point. More...
 
 CPhysicalGeometry (CConfig *config, unsigned short val_iZone, unsigned short val_nZone)
 Reads the geometry of the grid and adjust the boundary conditions with the configuration file. More...
 
 CPhysicalGeometry (CGeometry *geometry, CConfig *config)
 Accepts a geometry container holding a linearly partitioned grid with coloring performed by ParMETIS, and this routine distributes the points and cells to all partitions based on the coloring. More...
 
 ~CPhysicalGeometry (void)
 Destructor of the class.
 
void SetSendReceive (CConfig *config)
 Set the send receive boundaries of the grid. More...
 
void SetBoundaries (CConfig *config)
 Set the send receive boundaries of the grid. More...
 
long GetGlobal_to_Local_Point (long val_ipoint)
 Get the local index that correspond with the global numbering index. More...
 
unsigned short GetGlobal_to_Local_Marker (unsigned short val_imarker)
 Get the local marker that correspond with the global marker. More...
 
void Read_SU2_Format_Parallel (CConfig *config, string val_mesh_filename, unsigned short val_iZone, unsigned short val_nZone)
 Reads the geometry of the grid and adjust the boundary conditions with the configuration file in parallel (for parmetis). More...
 
void Read_CGNS_Format_Parallel (CConfig *config, string val_mesh_filename, unsigned short val_iZone, unsigned short val_nZone)
 Reads the geometry of the grid and adjust the boundary conditions with the configuration file in parallel (for parmetis). More...
 
bool FindFace (unsigned long first_elem, unsigned long second_elem, unsigned short &face_first_elem, unsigned short &face_second_elem)
 Find repeated nodes between two elements to identify the common face. More...
 
void ComputeWall_Distance (CConfig *config)
 Computes the distance to the nearest no-slip wall for each grid node. More...
 
void SetPositive_ZArea (CConfig *config)
 Compute surface area (positive z-direction) for force coefficient non-dimensionalization. More...
 
void SetPoint_Connectivity (void)
 Set points which surround a point.
 
void SetRCM_Ordering (CConfig *config)
 Set a renumbering using a Reverse Cuthill-McKee Algorithm. More...
 
void SetPoint_Connectivity (CGeometry *geometry)
 Function declaration to avoid partially overridden classes. More...
 
void SetElement_Connectivity (void)
 Set elements which surround an element.
 
void SetBoundVolume (void)
 Set the volume element associated to each boundary element.
 
void SetVertex (CConfig *config)
 Set boundary vertex. More...
 
void SetCoord_CG (void)
 Set the center of gravity of the face, elements and edges.
 
void SetControlVolume (CConfig *config, unsigned short action)
 Set the edge structure of the control volume. More...
 
void VisualizeControlVolume (CConfig *config, unsigned short action)
 Visualize the structure of the control volume(s). More...
 
void MatchNearField (CConfig *config)
 Mach the near field boundary condition. More...
 
void MatchActuator_Disk (CConfig *config)
 Mach the near field boundary condition. More...
 
void MatchInterface (CConfig *config)
 Mach the interface boundary condition. More...
 
void MatchZone (CConfig *config, CGeometry *geometry_donor, CConfig *config_donor, unsigned short val_iZone, unsigned short val_nZone)
 Mach the interface boundary condition. More...
 
void SetBoundControlVolume (CConfig *config, unsigned short action)
 Set boundary vertex structure of the control volume. More...
 
void SetTecPlot (char config_filename[MAX_STRING_SIZE], bool new_file)
 Set the Tecplot file. More...
 
void SetBoundTecPlot (char mesh_filename[MAX_STRING_SIZE], bool new_file, CConfig *config)
 Set the output file for boundaries in Tecplot. More...
 
void SetBoundSTL (char mesh_filename[MAX_STRING_SIZE], bool new_file, CConfig *config)
 Set the output file for boundaries in STL CAD format. More...
 
void Check_IntElem_Orientation (CConfig *config)
 Check the volume element orientation. More...
 
void Check_BoundElem_Orientation (CConfig *config)
 Check the volume element orientation. More...
 
void SetColorGrid (CConfig *config)
 Set the domains for grid grid partitioning using METIS. More...
 
void SetColorGrid_Parallel (CConfig *config)
 Set the domains for grid grid partitioning using ParMETIS. More...
 
void SetRotationalVelocity (CConfig *config, unsigned short val_iZone)
 Set the rotational velocity at each node. More...
 
void SetTranslationalVelocity (CConfig *config)
 Set the translational velocity at each node. More...
 
void SetGridVelocity (CConfig *config, unsigned long iter)
 Set the grid velocity via finite differencing at each node. More...
 
void Set_MPI_Coord (CConfig *config)
 Perform the MPI communication for the grid coordinates (dynamic meshes). More...
 
void Set_MPI_GridVel (CConfig *config)
 Perform the MPI communication for the grid velocities. More...
 
void Set_MPI_OldCoord (CConfig *config)
 Perform the MPI communication for the grid coordinates (dynamic meshes) for restart purposes. More...
 
void SetPeriodicBoundary (CConfig *config)
 Set the periodic boundary conditions. More...
 
void SetCoord_Smoothing (unsigned short val_nSmooth, su2double val_smooth_coeff, CConfig *config)
 Do an implicit smoothing of the grid coordinates. More...
 
void SetMeshFile (CConfig *config, string val_mesh_out_filename)
 Write the .su2 file. More...
 
void GetQualityStatistics (su2double *statistics)
 Compute some parameters about the grid quality. More...
 
void ComputeSurf_Curvature (CConfig *config)
 Find and store all vertices on a sharp corner in the geometry. More...
 
void FindNormal_Neighbor (CConfig *config)
 Find and store the closest neighbor to a vertex. More...
 
unsigned long GetGlobal_nPoint ()
 Retrieve total number of nodes in a simulation across all processors (including halos). More...
 
unsigned long GetGlobal_nPointDomain ()
 Retrieve total number of nodes in a simulation across all processors (excluding halos). More...
 
unsigned long GetGlobal_nElem ()
 Retrieve total number of elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemDomain ()
 Retrieve total number of elements in a simulation across all processors (excluding halos). More...
 
unsigned long GetGlobal_nElemLine ()
 Retrieve total number of triangular elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemTria ()
 Retrieve total number of triangular elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemQuad ()
 Retrieve total number of quadrilateral elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemTetr ()
 Retrieve total number of tetrahedral elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemHexa ()
 Retrieve total number of hexahedral elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemPris ()
 Retrieve total number of prism elements in a simulation across all processors. More...
 
unsigned long GetGlobal_nElemPyra ()
 Retrieve total number of pyramid elements in a simulation across all processors. More...
 
unsigned long GetnElemLine ()
 Get number of triangular elements. More...
 
unsigned long GetnElemTria ()
 Get number of triangular elements. More...
 
unsigned long GetnElemQuad ()
 Get number of quadrilateral elements. More...
 
unsigned long GetnElemTetr ()
 Get number of tetrahedral elements. More...
 
unsigned long GetnElemHexa ()
 Get number of hexahedral elements. More...
 
unsigned long GetnElemPris ()
 Get number of prism elements. More...
 
unsigned long GetnElemPyra ()
 Get number of pyramid elements. More...
 
void SetGeometryPlanes (CConfig *config)
 Indentify geometrical planes in the mesh.
 
vector< su2double > GetGeometryPlanes ()
 Get geometrical planes in the mesh.
 
vector< vector< su2double > > GetXCoord ()
 Get x coords of geometrical planes in the mesh.
 
vector< vector< su2double > > GetYCoord ()
 Get y coords of geometrical planes in the mesh.
 
vector< vector< su2double > > GetZCoord ()
 Get z coords of geometrical planes in the mesh.
 
vector< vector< unsigned long > > GetPlanarPoints ()
 Get all points on a geometrical plane in the mesh.
 
void SetBoundSensitivity (CConfig *config)
 Read the sensitivity from an input file. More...
 
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)
 Compute the maximum thickness of an airfoil. More...
 
su2double Compute_Twist (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 Compute the twist of an airfoil. More...
 
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)
 Compute the leading/trailing edge location of an airfoil.
 
su2double Compute_Chord (su2double *Plane_P0, su2double *Plane_Normal, unsigned short iSection, vector< su2double > &Xcoord_Airfoil, vector< su2double > &Ycoord_Airfoil, vector< su2double > &Zcoord_Airfoil)
 Compute the chord of an airfoil. More...
 
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)
 Compute the thickness of an airfoil.
 
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)
 Compute the area of an airfoil. More...
 
su2double Compute_Dihedral (su2double *LeadingEdge_im1, su2double *TrailingEdge_im1, su2double *LeadingEdge_i, su2double *TrailingEdge_i)
 Compute the dihedral of a wing. More...
 
su2double Compute_Curvature (su2double *LeadingEdge_im1, su2double *TrailingEdge_im1, su2double *LeadingEdge_i, su2double *TrailingEdge_i, su2double *LeadingEdge_ip1, su2double *TrailingEdge_ip1)
 Compute the curvature of a wing.
 
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)
 Evaluate geometrical parameters of a wing.
 
void SetSensitivity (CConfig *config)
 Read the sensitivity from adjoint solution file and store it. More...
 
su2double GetSensitivity (unsigned long iPoint, unsigned short iDim)
 Get the Sensitivity at a specific point. More...
 
void SetSensitivity (unsigned long iPoint, unsigned short iDim, su2double val)
 Set the Sensitivity at a specific point. More...
 
void Check_Periodicity (CConfig *config)
 Check the mesh for periodicity and deactivate multigrid if periodicity is found. More...
 
- Public Member Functions inherited from CGeometry
 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.
 
void SetEdges (void)
 A virtual member.
 
void SetFaces (void)
 A virtual member.
 
virtual void SetVertex (void)
 A virtual member.
 
virtual void DivideConnectivity (CConfig *config, unsigned short Elem_Type)
 A virtual member. More...
 
virtual void SetCoord (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 (CGeometry *geometry, CConfig *config, string val_mesh_out_filename)
 A virtual member. More...
 
virtual void SetPeriodicBoundary (CGeometry *geometry, 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...
 
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...
 

Additional Inherited Members

- Public Attributes inherited from CGeometry
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 inherited from CGeometry
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

Class for reading a defining the primal grid which is read from the grid file in .su2 format.

Author
F. Palacios
Version
5.0.0 "Raven"

Constructor & Destructor Documentation

§ CPhysicalGeometry() [1/3]

CPhysicalGeometry::CPhysicalGeometry ( void  )

Vector holding the sensitivities at each point.

<

Constructor of the class.

§ CPhysicalGeometry() [2/3]

CPhysicalGeometry::CPhysicalGeometry ( CConfig config,
unsigned short  val_iZone,
unsigned short  val_nZone 
)

Reads the geometry of the grid and adjust the boundary conditions with the configuration file.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]config- Definition of the particular problem.
[in]val_mesh_filename- Name of the file with the grid information.
[in]val_format- Format of the file with the grid information.
[in]val_iZone- Domain to be read from the grid file.
[in]val_nZone- Total number of domains in the grid file.

§ CPhysicalGeometry() [3/3]

CPhysicalGeometry::CPhysicalGeometry ( CGeometry geometry,
CConfig config 
)

Accepts a geometry container holding a linearly partitioned grid with coloring performed by ParMETIS, and this routine distributes the points and cells to all partitions based on the coloring.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]geometry- Definition of the geometry container holding the initial linear partitions of the grid + coloring.
[in]config- Definition of the particular problem.

Member Function Documentation

§ Check_BoundElem_Orientation()

void CPhysicalGeometry::Check_BoundElem_Orientation ( CConfig config)
virtual

Check the volume element orientation.

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

Reimplemented from CGeometry.

§ Check_IntElem_Orientation()

void CPhysicalGeometry::Check_IntElem_Orientation ( CConfig config)
virtual

Check the volume element orientation.

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

Reimplemented from CGeometry.

§ Check_Periodicity()

void CPhysicalGeometry::Check_Periodicity ( CConfig config)
virtual

Check the mesh for periodicity and deactivate multigrid if periodicity is found.

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

Reimplemented from CGeometry.

§ Compute_Area()

su2double CPhysicalGeometry::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 
)
virtual

Compute the area of an airfoil.

Returns
Area of an airfoil.

Reimplemented from CGeometry.

§ Compute_Chord()

su2double CPhysicalGeometry::Compute_Chord ( su2double *  Plane_P0,
su2double *  Plane_Normal,
unsigned short  iSection,
vector< su2double > &  Xcoord_Airfoil,
vector< su2double > &  Ycoord_Airfoil,
vector< su2double > &  Zcoord_Airfoil 
)
virtual

Compute the chord of an airfoil.

Returns
Chord of an airfoil.

Reimplemented from CGeometry.

§ Compute_Dihedral()

su2double CPhysicalGeometry::Compute_Dihedral ( su2double *  LeadingEdge_im1,
su2double *  TrailingEdge_im1,
su2double *  LeadingEdge_i,
su2double *  TrailingEdge_i 
)
virtual

Compute the dihedral of a wing.

Returns
Dihedral at a particular seccion.

Reimplemented from CGeometry.

§ Compute_MaxThickness()

su2double CPhysicalGeometry::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 
)
virtual

Compute the maximum thickness of an airfoil.

Returns
Maximum thickness at a particular seccion.

Reimplemented from CGeometry.

§ Compute_Twist()

su2double CPhysicalGeometry::Compute_Twist ( su2double *  Plane_P0,
su2double *  Plane_Normal,
unsigned short  iSection,
vector< su2double > &  Xcoord_Airfoil,
vector< su2double > &  Ycoord_Airfoil,
vector< su2double > &  Zcoord_Airfoil 
)
virtual

Compute the twist of an airfoil.

Returns
Twist at a particular seccion.

Reimplemented from CGeometry.

§ ComputeSurf_Curvature()

void CPhysicalGeometry::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 CPhysicalGeometry::ComputeWall_Distance ( CConfig config)
virtual

Computes the distance to the nearest no-slip wall for each grid node.

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

Reimplemented from CGeometry.

§ FindFace()

bool CPhysicalGeometry::FindFace ( unsigned long  first_elem,
unsigned long  second_elem,
unsigned short &  face_first_elem,
unsigned short &  face_second_elem 
)
virtual

Find repeated nodes between two elements to identify the common face.

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.
Returns
It provides 0 or 1 depending if there is a common face or not.

Reimplemented from CGeometry.

§ FindNormal_Neighbor()

void CPhysicalGeometry::FindNormal_Neighbor ( CConfig config)
virtual

Find and store the closest neighbor to a vertex.

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

Reimplemented from CGeometry.

§ GetGlobal_nElem()

unsigned long CPhysicalGeometry::GetGlobal_nElem ( void  )
inlinevirtual

Retrieve total number of elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemDomain()

unsigned long CPhysicalGeometry::GetGlobal_nElemDomain ( void  )
inlinevirtual

Retrieve total number of elements in a simulation across all processors (excluding halos).

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

Reimplemented from CGeometry.

§ GetGlobal_nElemHexa()

unsigned long CPhysicalGeometry::GetGlobal_nElemHexa ( void  )
inlinevirtual

Retrieve total number of hexahedral elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemLine()

unsigned long CPhysicalGeometry::GetGlobal_nElemLine ( void  )
inlinevirtual

Retrieve total number of triangular elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemPris()

unsigned long CPhysicalGeometry::GetGlobal_nElemPris ( void  )
inlinevirtual

Retrieve total number of prism elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemPyra()

unsigned long CPhysicalGeometry::GetGlobal_nElemPyra ( void  )
inlinevirtual

Retrieve total number of pyramid elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemQuad()

unsigned long CPhysicalGeometry::GetGlobal_nElemQuad ( void  )
inlinevirtual

Retrieve total number of quadrilateral elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemTetr()

unsigned long CPhysicalGeometry::GetGlobal_nElemTetr ( void  )
inlinevirtual

Retrieve total number of tetrahedral elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nElemTria()

unsigned long CPhysicalGeometry::GetGlobal_nElemTria ( void  )
inlinevirtual

Retrieve total number of triangular elements in a simulation across all processors.

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

Reimplemented from CGeometry.

§ GetGlobal_nPoint()

unsigned long CPhysicalGeometry::GetGlobal_nPoint ( void  )
inlinevirtual

Retrieve total number of nodes in a simulation across all processors (including halos).

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

Reimplemented from CGeometry.

§ GetGlobal_nPointDomain()

unsigned long CPhysicalGeometry::GetGlobal_nPointDomain ( void  )
inlinevirtual

Retrieve total number of nodes in a simulation across all processors (excluding halos).

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

Reimplemented from CGeometry.

§ GetGlobal_to_Local_Marker()

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

Get the local marker that correspond with the global marker.

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

Reimplemented from CGeometry.

§ GetGlobal_to_Local_Point()

long CPhysicalGeometry::GetGlobal_to_Local_Point ( long  val_ipoint)
inlinevirtual

Get the local index that correspond with the global numbering index.

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

Reimplemented from CGeometry.

§ GetnElemHexa()

unsigned long CPhysicalGeometry::GetnElemHexa ( void  )
inlinevirtual

Get number of hexahedral elements.

Returns
Number of hexahedral elements.

Reimplemented from CGeometry.

§ GetnElemLine()

unsigned long CPhysicalGeometry::GetnElemLine ( void  )
inlinevirtual

Get number of triangular elements.

Returns
Number of line elements.

Reimplemented from CGeometry.

§ GetnElemPris()

unsigned long CPhysicalGeometry::GetnElemPris ( void  )
inlinevirtual

Get number of prism elements.

Returns
Number of prism elements.

Reimplemented from CGeometry.

§ GetnElemPyra()

unsigned long CPhysicalGeometry::GetnElemPyra ( void  )
inlinevirtual

Get number of pyramid elements.

Returns
Number of pyramid elements.

Reimplemented from CGeometry.

§ GetnElemQuad()

unsigned long CPhysicalGeometry::GetnElemQuad ( void  )
inlinevirtual

Get number of quadrilateral elements.

Returns
Number of quadrilateral elements.

Reimplemented from CGeometry.

§ GetnElemTetr()

unsigned long CPhysicalGeometry::GetnElemTetr ( void  )
inlinevirtual

Get number of tetrahedral elements.

Returns
Number of tetrahedral elements.

Reimplemented from CGeometry.

§ GetnElemTria()

unsigned long CPhysicalGeometry::GetnElemTria ( void  )
inlinevirtual

Get number of triangular elements.

Returns
Number of triangular elements.

Reimplemented from CGeometry.

§ GetQualityStatistics()

void CPhysicalGeometry::GetQualityStatistics ( su2double *  statistics)

Compute some parameters about the grid quality.

Parameters
[out]statistics- Information about the grid quality, statistics[0] = (r/R)_min, statistics[1] = (r/R)_ave.

§ GetSensitivity()

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

Get the Sensitivity at a specific point.

Parameters
[in]iPoint- The point where to get the sensitivity.
[in]iDim- The component of the dim. vector.
Returns
The sensitivity at point iPoint and dim. iDim.

Reimplemented from CGeometry.

§ MatchActuator_Disk()

void CPhysicalGeometry::MatchActuator_Disk ( CConfig config)
virtual

Mach the near field boundary condition.

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

Reimplemented from CGeometry.

§ MatchInterface()

void CPhysicalGeometry::MatchInterface ( CConfig config)
virtual

Mach the interface boundary condition.

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

Reimplemented from CGeometry.

§ MatchNearField()

void CPhysicalGeometry::MatchNearField ( CConfig config)
virtual

Mach the near field boundary condition.

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

Reimplemented from CGeometry.

§ MatchZone()

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

Mach the interface boundary condition.

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 from CGeometry.

§ Read_CGNS_Format_Parallel()

void CPhysicalGeometry::Read_CGNS_Format_Parallel ( CConfig config,
string  val_mesh_filename,
unsigned short  val_iZone,
unsigned short  val_nZone 
)

Reads the geometry of the grid and adjust the boundary conditions with the configuration file in parallel (for parmetis).

Parameters
[in]config- Definition of the particular problem.
[in]val_mesh_filename- Name of the file with the grid information.
[in]val_format- Format of the file with the grid information.
[in]val_iZone- Domain to be read from the grid file.
[in]val_nZone- Total number of domains in the grid file.

§ Read_SU2_Format_Parallel()

void CPhysicalGeometry::Read_SU2_Format_Parallel ( CConfig config,
string  val_mesh_filename,
unsigned short  val_iZone,
unsigned short  val_nZone 
)

Reads the geometry of the grid and adjust the boundary conditions with the configuration file in parallel (for parmetis).

Parameters
[in]config- Definition of the particular problem.
[in]val_mesh_filename- Name of the file with the grid information.
[in]val_format- Format of the file with the grid information.
[in]val_iZone- Domain to be read from the grid file.
[in]val_nZone- Total number of domains in the grid file.

§ Set_MPI_Coord()

void CPhysicalGeometry::Set_MPI_Coord ( CConfig config)
virtual

Perform the MPI communication for the grid coordinates (dynamic meshes).

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

Reimplemented from CGeometry.

§ Set_MPI_GridVel()

void CPhysicalGeometry::Set_MPI_GridVel ( CConfig config)
virtual

Perform the MPI communication for the grid velocities.

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

Reimplemented from CGeometry.

§ Set_MPI_OldCoord()

void CPhysicalGeometry::Set_MPI_OldCoord ( CConfig config)
virtual

Perform the MPI communication for the grid coordinates (dynamic meshes) for restart purposes.

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

Reimplemented from CGeometry.

§ SetBoundaries()

void CPhysicalGeometry::SetBoundaries ( CConfig config)
virtual

Set the send receive boundaries of the grid.

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 from CGeometry.

§ SetBoundControlVolume()

void CPhysicalGeometry::SetBoundControlVolume ( CConfig config,
unsigned short  action 
)
virtual

Set boundary vertex structure of the control volume.

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

Reimplemented from CGeometry.

§ SetBoundSensitivity()

void CPhysicalGeometry::SetBoundSensitivity ( CConfig config)
virtual

Read the sensitivity from an input file.

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

Reimplemented from CGeometry.

§ SetBoundSTL()

void CPhysicalGeometry::SetBoundSTL ( char  mesh_filename[MAX_STRING_SIZE],
bool  new_file,
CConfig config 
)
virtual

Set the output file for boundaries in STL CAD format.

Parameters
[in]config- Definition of the particular problem.
[in]mesh_filename- Name of the file where the STL information is going to be stored.
[in]new_file- Create a new file.

Reimplemented from CGeometry.

§ SetBoundTecPlot()

void CPhysicalGeometry::SetBoundTecPlot ( char  mesh_filename[MAX_STRING_SIZE],
bool  new_file,
CConfig config 
)
virtual

Set the output file for boundaries in Tecplot.

Parameters
[in]config- Definition of the particular problem.
[in]mesh_filename- Name of the file where the Tecplot information is going to be stored.
[in]new_file- Create a new file.

Reimplemented from CGeometry.

§ SetColorGrid()

void CPhysicalGeometry::SetColorGrid ( CConfig config)
virtual

Set the domains for grid grid partitioning using METIS.

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

Reimplemented from CGeometry.

§ SetColorGrid_Parallel()

void CPhysicalGeometry::SetColorGrid_Parallel ( CConfig config)
virtual

Set the domains for grid grid partitioning using ParMETIS.

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

Reimplemented from CGeometry.

§ SetControlVolume()

void CPhysicalGeometry::SetControlVolume ( CConfig config,
unsigned short  action 
)
virtual

Set the edge structure of the control volume.

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

Reimplemented from CGeometry.

§ SetCoord_Smoothing()

void CPhysicalGeometry::SetCoord_Smoothing ( unsigned short  val_nSmooth,
su2double  val_smooth_coeff,
CConfig config 
)
virtual

Do an implicit smoothing of the grid coordinates.

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

Reimplemented from CGeometry.

§ SetGridVelocity()

void CPhysicalGeometry::SetGridVelocity ( CConfig config,
unsigned long  iter 
)
virtual

Set the grid velocity via finite differencing at each node.

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

Reimplemented from CGeometry.

§ SetMeshFile()

void CPhysicalGeometry::SetMeshFile ( CConfig config,
string  val_mesh_out_filename 
)
virtual

Write the .su2 file.

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

Reimplemented from CGeometry.

§ SetPeriodicBoundary()

void CPhysicalGeometry::SetPeriodicBoundary ( CConfig config)
virtual

Set the periodic boundary conditions.

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

Reimplemented from CGeometry.

§ SetPoint_Connectivity()

void CPhysicalGeometry::SetPoint_Connectivity ( CGeometry geometry)
inlinevirtual

Function declaration to avoid partially overridden classes.

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

Reimplemented from CGeometry.

§ SetPositive_ZArea()

void CPhysicalGeometry::SetPositive_ZArea ( CConfig config)
virtual

Compute surface area (positive z-direction) for force coefficient non-dimensionalization.

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

Reimplemented from CGeometry.

§ SetRCM_Ordering()

void CPhysicalGeometry::SetRCM_Ordering ( CConfig config)
virtual

Set a renumbering using a Reverse Cuthill-McKee Algorithm.

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

Reimplemented from CGeometry.

§ SetRotationalVelocity()

void CPhysicalGeometry::SetRotationalVelocity ( CConfig config,
unsigned short  val_iZone 
)
virtual

Set the rotational velocity at each node.

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

Reimplemented from CGeometry.

§ SetSendReceive()

void CPhysicalGeometry::SetSendReceive ( CConfig config)
virtual

Set the send receive boundaries of the grid.

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

<Vector to store the type of transformation for this send point.

<Vector to store the type of transformation for this received point.

<SendDomain[from domain][to domain] and return the point index of the node that must me sended.

<SendDomain[from domain][to domain] and return the point index of the node that must me sended.

Reimplemented from CGeometry.

§ SetSensitivity() [1/2]

void CPhysicalGeometry::SetSensitivity ( CConfig config)
virtual

Read the sensitivity from adjoint solution file and store it.

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

Reimplemented from CGeometry.

§ SetSensitivity() [2/2]

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

Set the Sensitivity at a specific point.

Parameters
[in]iPoint- The point where to get the sensitivity.
[in]iDim- The component of the dim. vector.
[in]val- Value of the sensitivity.

Reimplemented from CGeometry.

§ SetTecPlot()

void CPhysicalGeometry::SetTecPlot ( char  config_filename[MAX_STRING_SIZE],
bool  new_file 
)
virtual

Set the Tecplot file.

Parameters
[in]config_filename- Name of the file where the Tecplot information is going to be stored.
[in]new_file- Create a new file.

Reimplemented from CGeometry.

§ SetTranslationalVelocity()

void CPhysicalGeometry::SetTranslationalVelocity ( CConfig config)
virtual

Set the translational velocity at each node.

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

Reimplemented from CGeometry.

§ SetVertex()

void CPhysicalGeometry::SetVertex ( CConfig config)
virtual

Set boundary vertex.

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

Reimplemented from CGeometry.

§ VisualizeControlVolume()

void CPhysicalGeometry::VisualizeControlVolume ( CConfig config,
unsigned short  action 
)
virtual

Visualize the structure of the control volume(s).

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

Reimplemented from CGeometry.


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