FEMTIC
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MeshDataBrickElement Class Reference

#include <MeshDataBrickElement.h>

Inheritance diagram for MeshDataBrickElement:
Inheritance graph
[legend]
Collaboration diagram for MeshDataBrickElement:
Collaboration graph
[legend]

Public Member Functions

 MeshDataBrickElement ()
 
virtual ~MeshDataBrickElement ()
 
virtual void inputMeshData ()
 
int findElementIncludingPoint (const double locX, const double locY, const double locZ, double &localCoordX, double &localCoordY, double &localCoordZ, const bool useUpperElem, const bool modLoc, double &locXMod, double &locYMod) const
 
int findElementIncludingPointOnSurface (const double locX, const double locY, double &localCoordX, double &localCoordY, double &localCoordZ, const bool useUpperElem, const bool modLoc, double &locXMod, double &locYMod) const
 
void findElementsIncludingDipoleOnSurface (const double locXStart, const double locYStart, const double locXEnd, const double locYEnd, std::vector< int > &elements, std::vector< double > &localCoordXStartPoint, std::vector< double > &localCoordYStartPoint, std::vector< double > &localCoordXEndPoint, std::vector< double > &localCoordYEndPoint) const
 
double getEdgeLengthX (const int iElem) const
 
double getEdgeLengthY (const int iElem) const
 
double getEdgeLengthZ (const int iElem) const
 
double calcGlobalCoordX (const int iElem, double localCoordX) const
 
double calcGlobalCoordY (const int iElem, double localCoordY) const
 
double calcGlobalCoordZ (const int iElem, double localCoordZ) const
 
int getNumElemX () const
 
int getNumElemY () const
 
int getNumElemZ () const
 
int getNumAirLayer () const
 
int calcNumEdgesOnXYPlane () const
 
int calcNumEdgesOnYZPlane () const
 
int calcNumEdgesOnZXPlane () const
 
virtual int getNodesOfElementsBoundaryPlanes (const int iPlane, const int iElem, const int iNode) const
 
virtual int getMeshType () const
 
virtual bool shareSameEdges (const int elemID1, const int elemID2) const
 
virtual double calcVolume (const int elemID) const
 
virtual double calcAreaOfFace (const int iElem, const int iFace) const
 
virtual double calcAreaOfFaceAtBottomOfMesh (const int iElem) const
 
virtual void outputMeshDataToVTK () const
 
virtual void outputMeshDataToBinary () const
 
- Public Member Functions inherited from MeshData
 MeshData ()
 
virtual ~MeshData ()
 
int getNumElemTotal () const
 
int getNumNodeTotal () const
 
int getNumElemOnBoundaryPlanes (const int iPlane) const
 
double getXCoordinatesOfNodes (const int iNode) const
 
double getYCoordinatesOfNodes (const int iNode) const
 
double getZCoordinatesOfNodes (const int iNode) const
 
int getNodesOfElements (const int iElem, const int iNode) const
 
int getElemBoundaryPlanes (const int iPlane, const int iElem) const
 
int getIDOfNeighborElement (const int iElem, const int num) const
 
int getNumNeighborElement () const
 
double calcDistanceOfTwoNodes (const int nodeID0, const int nodeID1) const
 
double calcHorizontalDistanceOfTwoNodes (const int nodeID0, const int nodeID1) const
 
double caldDiffXOfTwoNodes (const int nodeID0, const int nodeID1) const
 
double caldDiffYOfTwoNodes (const int nodeID0, const int nodeID1) const
 
double caldDiffZOfTwoNodes (const int nodeID0, const int nodeID1) const
 
virtual bool shareSameNodes (const int elemID1, const int elemID2) const
 
virtual CommonParameters::locationXYZ getCenterCoord (const int iElem) const
 
CommonParameters::locationXYZ calDiffOfCenters (const int iElem1, const int iElem2) const
 

Private Member Functions

 MeshDataBrickElement (const MeshDataBrickElement &rhs)
 
MeshDataBrickElementoperator= (const MeshDataBrickElement &rhs)
 
virtual void getLocalCoordinateValues (const int iElem, const double coordX, const double coordY, const double coordZ, double &localCoordX, double &localCoordY, double &localCoordZ) const
 

Private Attributes

int m_numElemX
 
int m_numElemY
 
int m_numElemZ
 
int m_numAirLayer
 
double * m_edgeLength
 
int * m_nodesOfElementsBoundaryPlanes [6]
 

Additional Inherited Members

- Public Types inherited from MeshData
enum  BoundaryPlanes {
  YZMinus = 0 , YZPlus , ZXMinus , ZXPlus ,
  XYMinus , XYPlus
}
 
enum  MeshType { HEXA = 0 , TETRA , NONCONFORMING_HEXA }
 
- Protected Member Functions inherited from MeshData
 MeshData (const MeshData &rhs)
 
MeshDataoperator= (const MeshData &rhs)
 
double calcDistance (const CommonParameters::locationXY &point0, const CommonParameters::locationXY &point1) const
 
bool does1stSegmentContain2ndSegment (const CommonParameters::locationXY &startPointOf1stSegment, const CommonParameters::locationXY &endPointOf1stSegment, const CommonParameters::locationXY &startPointOf2ndSegment, const CommonParameters::locationXY &endPointOf2ndSegment) const
 
bool intersectTwoSegments (const CommonParameters::locationXY &startPointOf1stSegment, const CommonParameters::locationXY &endPointOf1stSegment, const CommonParameters::locationXY &startPointOf2ndSegment, const CommonParameters::locationXY &endPointOf2ndSegment) const
 
bool overlapTwoLines (const CommonParameters::locationXY &coord1stLine1, const CommonParameters::locationXY &coord1stLine2, const CommonParameters::locationXY &coord2ndLine1, const CommonParameters::locationXY &coord2ndLine2) const
 
bool overlapTwoSegments (const CommonParameters::locationXY &startPointOf1stSegment, const CommonParameters::locationXY &endPointOf1stSegment, const CommonParameters::locationXY &startPointOf2ndSegment, const CommonParameters::locationXY &endPointOf2ndSegment) const
 
double calcInnerProduct2D (const CommonParameters::locationXY &startCoordOf1stVec, const CommonParameters::locationXY &endCoordOf1stVec, const CommonParameters::locationXY &startCoordOf2ndVec, const CommonParameters::locationXY &endCoordOf2ndVec) const
 
void calcCoordOfIntersectionPointOfTwoLines (const CommonParameters::locationXY &coord1stLine1, const CommonParameters::locationXY &coord1stLine2, const CommonParameters::locationXY &coord2ndLine1, const CommonParameters::locationXY &coord2ndLine2, CommonParameters::locationXY &coordIntersectionPoint) const
 
- Protected Attributes inherited from MeshData
int m_numElemTotal
 
int m_numNodeTotal
 
int m_numNodeOneElement
 
int m_numEdgeOneElement
 
int m_numNodeOnFaceOneElement
 
int m_numNeighborElement
 
int m_numElemOnBoundaryPlanes [6]
 
double * m_xCoordinatesOfNodes
 
double * m_yCoordinatesOfNodes
 
double * m_zCoordinatesOfNodes
 
int * m_neighborElements
 
int * m_nodesOfElements
 
int * m_elemBoundaryPlanes [6]
 

Constructor & Destructor Documentation

◆ MeshDataBrickElement() [1/2]

MeshDataBrickElement::MeshDataBrickElement ( )

◆ ~MeshDataBrickElement()

MeshDataBrickElement::~MeshDataBrickElement ( )
virtual

◆ MeshDataBrickElement() [2/2]

MeshDataBrickElement::MeshDataBrickElement ( const MeshDataBrickElement rhs)
private

Member Function Documentation

◆ calcAreaOfFace()

double MeshDataBrickElement::calcAreaOfFace ( const int  iElem,
const int  iFace 
) const
virtual

Implements MeshData.

◆ calcAreaOfFaceAtBottomOfMesh()

double MeshDataBrickElement::calcAreaOfFaceAtBottomOfMesh ( const int  iElem) const
virtual

Implements MeshData.

◆ calcGlobalCoordX()

double MeshDataBrickElement::calcGlobalCoordX ( const int  iElem,
double  localCoordX 
) const

◆ calcGlobalCoordY()

double MeshDataBrickElement::calcGlobalCoordY ( const int  iElem,
double  localCoordY 
) const

◆ calcGlobalCoordZ()

double MeshDataBrickElement::calcGlobalCoordZ ( const int  iElem,
double  localCoordZ 
) const

◆ calcNumEdgesOnXYPlane()

int MeshDataBrickElement::calcNumEdgesOnXYPlane ( ) const

◆ calcNumEdgesOnYZPlane()

int MeshDataBrickElement::calcNumEdgesOnYZPlane ( ) const

◆ calcNumEdgesOnZXPlane()

int MeshDataBrickElement::calcNumEdgesOnZXPlane ( ) const

◆ calcVolume()

double MeshDataBrickElement::calcVolume ( const int  elemID) const
virtual

Implements MeshData.

◆ findElementIncludingPoint()

int MeshDataBrickElement::findElementIncludingPoint ( const double  locX,
const double  locY,
const double  locZ,
double &  localCoordX,
double &  localCoordY,
double &  localCoordZ,
const bool  useUpperElem,
const bool  modLoc,
double &  locXMod,
double &  locYMod 
) const

◆ findElementIncludingPointOnSurface()

int MeshDataBrickElement::findElementIncludingPointOnSurface ( const double  locX,
const double  locY,
double &  localCoordX,
double &  localCoordY,
double &  localCoordZ,
const bool  useUpperElem,
const bool  modLoc,
double &  locXMod,
double &  locYMod 
) const

◆ findElementsIncludingDipoleOnSurface()

void MeshDataBrickElement::findElementsIncludingDipoleOnSurface ( const double  locXStart,
const double  locYStart,
const double  locXEnd,
const double  locYEnd,
std::vector< int > &  elements,
std::vector< double > &  localCoordXStartPoint,
std::vector< double > &  localCoordYStartPoint,
std::vector< double > &  localCoordXEndPoint,
std::vector< double > &  localCoordYEndPoint 
) const

◆ getEdgeLengthX()

double MeshDataBrickElement::getEdgeLengthX ( const int  iElem) const

◆ getEdgeLengthY()

double MeshDataBrickElement::getEdgeLengthY ( const int  iElem) const

◆ getEdgeLengthZ()

double MeshDataBrickElement::getEdgeLengthZ ( const int  iElem) const

◆ getLocalCoordinateValues()

void MeshDataBrickElement::getLocalCoordinateValues ( const int  iElem,
const double  coordX,
const double  coordY,
const double  coordZ,
double &  localCoordX,
double &  localCoordY,
double &  localCoordZ 
) const
privatevirtual

◆ getMeshType()

int MeshDataBrickElement::getMeshType ( ) const
virtual

Implements MeshData.

◆ getNodesOfElementsBoundaryPlanes()

int MeshDataBrickElement::getNodesOfElementsBoundaryPlanes ( const int  iPlane,
const int  iElem,
const int  iNode 
) const
virtual

Implements MeshData.

◆ getNumAirLayer()

int MeshDataBrickElement::getNumAirLayer ( ) const

◆ getNumElemX()

int MeshDataBrickElement::getNumElemX ( ) const

◆ getNumElemY()

int MeshDataBrickElement::getNumElemY ( ) const

◆ getNumElemZ()

int MeshDataBrickElement::getNumElemZ ( ) const

◆ inputMeshData()

void MeshDataBrickElement::inputMeshData ( )
virtual

Implements MeshData.

◆ operator=()

MeshDataBrickElement & MeshDataBrickElement::operator= ( const MeshDataBrickElement rhs)
private

◆ outputMeshDataToBinary()

void MeshDataBrickElement::outputMeshDataToBinary ( ) const
virtual

Implements MeshData.

◆ outputMeshDataToVTK()

void MeshDataBrickElement::outputMeshDataToVTK ( ) const
virtual

Implements MeshData.

◆ shareSameEdges()

bool MeshDataBrickElement::shareSameEdges ( const int  elemID1,
const int  elemID2 
) const
virtual

Implements MeshData.

Member Data Documentation

◆ m_edgeLength

double* MeshDataBrickElement::m_edgeLength
private

◆ m_nodesOfElementsBoundaryPlanes

int* MeshDataBrickElement::m_nodesOfElementsBoundaryPlanes[6]
private

◆ m_numAirLayer

int MeshDataBrickElement::m_numAirLayer
private

◆ m_numElemX

int MeshDataBrickElement::m_numElemX
private

◆ m_numElemY

int MeshDataBrickElement::m_numElemY
private

◆ m_numElemZ

int MeshDataBrickElement::m_numElemZ
private

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