Documentation 6b54b78464
Loading...
Searching...
No Matches
CSU2MeshReaderBase Class Reference

Base class for the reading of a native SU2 grid. More...

#include <CSU2MeshReaderBase.hpp>

Inheritance diagram for CSU2MeshReaderBase:
[legend]

Public Member Functions

 CSU2MeshReaderBase (CConfig *val_config, unsigned short val_iZone, unsigned short val_nZone)
 Constructor of the CSU2MeshReaderBase class.
 
 ~CSU2MeshReaderBase (void) override
 Destructor of the CSU2MeshReaderBase class.
 
- Public Member Functions inherited from CMeshReaderBase
 CMeshReaderBase (const CConfig *val_config, unsigned short val_iZone, unsigned short val_nZone)
 Constructor of the CMeshReaderBase class.
 
virtual ~CMeshReaderBase ()=default
 
unsigned short GetDimension () const
 Get the physical dimension of the problem (2 or 3).
 
const vector< unsigned long > & GetGlobalPointIDs () const
 Get the global IDs of the local points.
 
const vector< vector< passivedouble > > & GetLocalPointCoordinates () const
 Get the local point coordinates (linearly partitioned).
 
const vector< unsigned long > & GetSurfaceElementConnectivityForMarker (int val_iMarker) const
 Get the surface element connectivity for the specified marker. Only the master node owns the surface connectivity.
 
const vector< unsigned long > & GetNumberOfSurfaceElementsAllMarkers () const
 Get the number surface elements for all markers.
 
unsigned long GetNumberOfSurfaceElementsForMarker (int val_iMarker) const
 Get the number surface elements for the specified marker.
 
const vector< unsigned long > & GetLocalVolumeElementConnectivity () const
 Get the local volume element connectivity (linearly partitioned).
 
unsigned long GetNumberOfMarkers () const
 Get the total number of markers in the mesh zone.
 
const vector< string > & GetMarkerNames () const
 Get the vector of string names for all markers in the mesh zone.
 
unsigned long GetNumberOfLocalPoints () const
 Get the number of local grid points within the linear partition on this rank.
 
unsigned long GetNumberOfGlobalPoints () const
 Get the number of global grid points within the mesh file.
 
unsigned long GetNumberOfLocalElements () const
 Get the number of local elements within the linear partition on this rank.
 
unsigned long GetNumberOfGlobalElements () const
 Get the number of global elements within the mesh file.
 

Protected Attributes

const unsigned short myZone
 Current SU2 zone index.
 
const unsigned short nZones
 Total number of zones in the SU2 file.
 
const string meshFilename
 Name of the SU2 ASCII mesh file being read.
 
bool actuator_disk
 Boolean for whether we have an actuator disk to split.
 
unsigned long ActDiskNewPoints
 Total number of new grid points to add due to actuator disk splitting.
 
su2double Xloc = 0.0
 X-coordinate of the CG of the actuator disk surface.
 
su2double Yloc = 0.0
 X-coordinate of the CG of the actuator disk surface.
 
su2double Zloc = 0.0
 X-coordinate of the CG of the actuator disk surface.
 
vector< bool > ActDisk_Bool
 Flag to identify the grid points on the actuator disk.
 
vector< unsigned long > ActDiskPoint_Back
 Vector containing the global index for the new grid points added to the back of the actuator disk.
 
vector< unsigned long > VolumePoint_Inv
 Vector containing the inverse mapping from the global index to the added point index for the actuator disk.
 
vector< su2double > CoordXActDisk
 X-coordinates of the new grid points added by splitting the actuator disk (size = ActDiskNewPoints).
 
vector< su2double > CoordYActDisk
 Y-coordinates of the new grid points added by splitting the actuator disk (size = ActDiskNewPoints).
 
vector< su2double > CoordZActDisk
 Z-coordinates of the new grid points added by splitting the actuator disk (size = ActDiskNewPoints).
 
vector< su2double > CoordXVolumePoint
 X-coordinates of the volume elements touching the actuator disk.
 
vector< su2double > CoordYVolumePoint
 Y-coordinates of the volume elements touching the actuator disk.
 
vector< su2double > CoordZVolumePoint
 Z-coordinates of the volume elements touching the actuator disk.
 
- Protected Attributes inherited from CMeshReaderBase
const int rank
 MPI Rank.
 
const int size
 MPI Size.
 
const CConfig * config = nullptr
 Local pointer to the config parameter object.
 
unsigned short dimension = 0
 Dimension of the problem (2 or 3).
 
unsigned long numberOfLocalPoints
 Number of local grid points within the linear partition on this rank.
 
unsigned long numberOfGlobalPoints = 0
 Number of global grid points within the mesh file.
 
vector< vector< passivedouble > > localPointCoordinates
 Vector holding the coordinates from the mesh file for the local grid points. First index is dimension, second is point index.
 
vector< unsigned long > globalPointIDs
 Vector holding the global IDs of the local grid points.
 
unsigned long numberOfLocalElements
 Number of local elements within the linear partition on this rank.
 
unsigned long numberOfGlobalElements = 0
 Number of global elements within the mesh file.
 
vector< unsigned long > localVolumeElementConnectivity
 Vector containing the element connectivity from the mesh file for the local elements.
 
unsigned long numberOfMarkers = 0
 Total number of markers contained within the mesh file.
 
vector< string > markerNames
 String names for all markers in the mesh file.
 
vector< unsigned long > numberOfLocalSurfaceElements
 Vector containing the number of local surface elements.
 
vector< vector< unsigned long > > surfaceElementConnectivity
 Vector containing the surface element connectivity from the mesh file on a per-marker basis. For FVM, only the master node reads and stores this connectivity.
 

Additional Inherited Members

- Protected Member Functions inherited from CMeshReaderBase
void DetermineFacesVolumeElements (vector< CFaceOfElement > &localFaces)
 Function, which determines the faces of the local volume elements.
 
void GetCornerPointsAllFaces (const unsigned long *elemInfo, unsigned short &numFaces, unsigned short nPointsPerFace[], unsigned long faceConn[6][4])
 Get all the corner points of all the faces of the given element. It must.
 
void CopyMarkers (const std::vector< std::string > &srcDstMarkers)
 Creates copies of some markers.
 

Detailed Description

Base class for the reading of a native SU2 grid.

Author
T. Economon

Constructor & Destructor Documentation

◆ CSU2MeshReaderBase()

CSU2MeshReaderBase::CSU2MeshReaderBase ( CConfig *  val_config,
unsigned short  val_iZone,
unsigned short  val_nZone 
)

Constructor of the CSU2MeshReaderBase class.

◆ ~CSU2MeshReaderBase()

CSU2MeshReaderBase::~CSU2MeshReaderBase ( void  )
overridedefault

Destructor of the CSU2MeshReaderBase class.

Member Data Documentation

◆ ActDisk_Bool

vector<bool> CSU2MeshReaderBase::ActDisk_Bool
protected

Flag to identify the grid points on the actuator disk.

◆ ActDiskNewPoints

unsigned long CSU2MeshReaderBase::ActDiskNewPoints
protected
Initial value:
=
0

Total number of new grid points to add due to actuator disk splitting.

◆ ActDiskPoint_Back

vector<unsigned long> CSU2MeshReaderBase::ActDiskPoint_Back
protected

Vector containing the global index for the new grid points added to the back of the actuator disk.

◆ actuator_disk

bool CSU2MeshReaderBase::actuator_disk
protected

Boolean for whether we have an actuator disk to split.

◆ CoordXActDisk

vector<su2double> CSU2MeshReaderBase::CoordXActDisk
protected

X-coordinates of the new grid points added by splitting the actuator disk (size = ActDiskNewPoints).

◆ CoordXVolumePoint

vector<su2double> CSU2MeshReaderBase::CoordXVolumePoint
protected

X-coordinates of the volume elements touching the actuator disk.

◆ CoordYActDisk

vector<su2double> CSU2MeshReaderBase::CoordYActDisk
protected

Y-coordinates of the new grid points added by splitting the actuator disk (size = ActDiskNewPoints).

◆ CoordYVolumePoint

vector<su2double> CSU2MeshReaderBase::CoordYVolumePoint
protected

Y-coordinates of the volume elements touching the actuator disk.

◆ CoordZActDisk

vector<su2double> CSU2MeshReaderBase::CoordZActDisk
protected

Z-coordinates of the new grid points added by splitting the actuator disk (size = ActDiskNewPoints).

◆ CoordZVolumePoint

vector<su2double> CSU2MeshReaderBase::CoordZVolumePoint
protected

Z-coordinates of the volume elements touching the actuator disk.

◆ meshFilename

const string CSU2MeshReaderBase::meshFilename
protected

Name of the SU2 ASCII mesh file being read.

◆ myZone

const unsigned short CSU2MeshReaderBase::myZone
protected

Current SU2 zone index.

◆ nZones

const unsigned short CSU2MeshReaderBase::nZones
protected

Total number of zones in the SU2 file.

◆ VolumePoint_Inv

vector<unsigned long> CSU2MeshReaderBase::VolumePoint_Inv
protected

Vector containing the inverse mapping from the global index to the added point index for the actuator disk.

◆ Xloc

su2double CSU2MeshReaderBase::Xloc = 0.0
protected

X-coordinate of the CG of the actuator disk surface.

◆ Yloc

su2double CSU2MeshReaderBase::Yloc = 0.0
protected

X-coordinate of the CG of the actuator disk surface.

◆ Zloc

su2double CSU2MeshReaderBase::Zloc = 0.0
protected

X-coordinate of the CG of the actuator disk surface.


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