NeoPZ
Public Member Functions | Protected Attributes | Private Attributes | List of all members

This class verifies the consistency of the datastructure of a TPZCompMesh object. Computational Mesh. More...

#include <pzcheckmesh.h>

Collaboration diagram for TPZCheckMesh:
[legend]

Public Member Functions

int CheckConstraintDimension ()
 
int CheckElementShapeDimension ()
 
int CheckDimensions ()
 
 TPZCheckMesh (TPZCompMesh *mesh, std::ostream *out)
 Constructor. More...
 
void DependencyReport (int connect)
 This method will write a report to the std::ostream about all connects which potentially depend on the connect passed in the argument list. More...
 
void DependencyReport (int connect, TPZCompElSide &large)
 This method will write a report to the std::ostream about all connects which potentially depend on the connect indicated by the element/side argument. More...
 
void BuildDependList (int connect, TPZStack< int > &dependlist)
 This method will build a list of all connect indices which depend on the connect passed in the argument list. More...
 
TPZCompElSide FindElement (int connect)
 This method will search in the mesh for an element/side which corresponds to the connect index passed in the argument list. More...
 
int VerifyConnect (int connect)
 This method will verify if the connects which depend on the connect passed in the argument list will actually generate a dependency. More...
 
int VerifyCompatibilityBetweenNShapesAndBlockSize (int connect)
 This method will verify if the number of shape functions in connect is compatible with the size of the corresponding block into fBlock. More...
 
int VerifyAllConnects ()
 Loop over all connects verifying dependency and the compatibility between number of shapes in connect with the size of the block into fBlock corresponding to connect. More...
 
int CheckConnectOrderConsistency ()
 This method will verify whether the fSiderOrder data structure is in sink with the Order of the Connect and whether the blocksize is in sink with the NConnectShapeF and material. More...
 
int CheckConnectSeqNumberConsistency ()
 This method verifies if the sequence numbers of dependent connects and/or condensed connect are ordered at the back of the sequence. More...
 

Protected Attributes

TPZCompMeshfMesh
 
std::ostream * fOut
 

Private Attributes

int fNState
 

Detailed Description

This class verifies the consistency of the datastructure of a TPZCompMesh object. Computational Mesh.

Definition at line 20 of file pzcheckmesh.h.

Constructor & Destructor Documentation

◆ TPZCheckMesh()

TPZCheckMesh::TPZCheckMesh ( TPZCompMesh mesh,
std::ostream *  out 
)

Constructor.

WARNING

Definition at line 14 of file pzcheckmesh.cpp.

Member Function Documentation

◆ BuildDependList()

void TPZCheckMesh::BuildDependList ( int  connect,
TPZStack< int > &  dependlist 
)

This method will build a list of all connect indices which depend on the connect passed in the argument list.

Parameters
connectIndex of connect
dependlistList of connect indexes which depend on connect

Definition at line 20 of file pzcheckmesh.cpp.

References TPZConnect::TPZDepend::HasDepend(), and TPZStack< T, NumExtAlloc >::Push().

◆ CheckConnectOrderConsistency()

int TPZCheckMesh::CheckConnectOrderConsistency ( )

This method will verify whether the fSiderOrder data structure is in sink with the Order of the Connect and whether the blocksize is in sink with the NConnectShapeF and material.

Definition at line 321 of file pzcheckmesh.cpp.

References TPZConnect::CheckDependency(), TPZInterpolatedElement::CheckElementConsistency(), TPZCompEl::Connect(), TPZInterpolatedElement::NConnects(), TPZInterpolationSpace::NConnectShapeF(), TPZConnect::Order(), and TPZInterpolatedElement::Print().

Referenced by TPZInterpolatedElement::Divide().

◆ CheckConnectSeqNumberConsistency()

int TPZCheckMesh::CheckConnectSeqNumberConsistency ( )

This method verifies if the sequence numbers of dependent connects and/or condensed connect are ordered at the back of the sequence.

Definition at line 352 of file pzcheckmesh.cpp.

References TPZConnect::HasDependency(), TPZConnect::IsCondensed(), TPZConnect::NElConnected(), and TPZConnect::SequenceNumber().

Referenced by TPZStructMatrixBase::SetMesh().

◆ CheckConstraintDimension()

int TPZCheckMesh::CheckConstraintDimension ( )

◆ CheckDimensions()

int TPZCheckMesh::CheckDimensions ( )

Definition at line 172 of file pzcheckmesh.cpp.

◆ CheckElementShapeDimension()

int TPZCheckMesh::CheckElementShapeDimension ( )

◆ DependencyReport() [1/2]

void TPZCheckMesh::DependencyReport ( int  connect)

This method will write a report to the std::ostream about all connects which potentially depend on the connect passed in the argument list.

Definition at line 124 of file pzcheckmesh.cpp.

◆ DependencyReport() [2/2]

void TPZCheckMesh::DependencyReport ( int  connect,
TPZCompElSide large 
)

This method will write a report to the std::ostream about all connects which potentially depend on the connect indicated by the element/side argument.

Definition at line 131 of file pzcheckmesh.cpp.

References TPZGeoElSide::Dimension(), TPZCompElSide::EqualLevelElementList(), TPZCompElSide::HigherDimensionElementList(), TPZCompElSide::HigherLevelElementList(), TPZVec< T >::NElements(), TPZStack< T, NumExtAlloc >::Push(), and TPZCompElSide::Reference().

◆ FindElement()

TPZCompElSide TPZCheckMesh::FindElement ( int  connect)

This method will search in the mesh for an element/side which corresponds to the connect index passed in the argument list.

Definition at line 32 of file pzcheckmesh.cpp.

References TPZInterpolatedElement::NSideConnects(), TPZGeoEl::NSides(), TPZCompEl::Reference(), and TPZInterpolatedElement::SideConnectIndex().

◆ VerifyAllConnects()

int TPZCheckMesh::VerifyAllConnects ( )

Loop over all connects verifying dependency and the compatibility between number of shapes in connect with the size of the block into fBlock corresponding to connect.

Definition at line 158 of file pzcheckmesh.cpp.

◆ VerifyCompatibilityBetweenNShapesAndBlockSize()

int TPZCheckMesh::VerifyCompatibilityBetweenNShapesAndBlockSize ( int  connect)

This method will verify if the number of shape functions in connect is compatible with the size of the corresponding block into fBlock.

Parameters
connectIndex of the connect

Definition at line 57 of file pzcheckmesh.cpp.

References TPZConnect::HasDependency(), TPZConnect::IsCondensed(), TPZConnect::NElConnected(), TPZConnect::NShape(), TPZConnect::NState(), and TPZConnect::SequenceNumber().

◆ VerifyConnect()

int TPZCheckMesh::VerifyConnect ( int  connect)

This method will verify if the connects which depend on the connect passed in the argument list will actually generate a dependency.

Parameters
connectIndex of the connect

Definition at line 73 of file pzcheckmesh.cpp.

References TPZCompEl::ConnectIndex(), TPZCompElSide::Element(), TPZCompElSide::Exists(), TPZConnect::HasDependency(), TPZCompElSide::LowerLevelElementList(), TPZCompEl::NConnects(), TPZVec< T >::NElements(), TPZConnect::NShape(), TPZConnect::Print(), TPZCompEl::Print(), and TPZCompElSide::Side().

Member Data Documentation

◆ fMesh

TPZCompMesh* TPZCheckMesh::fMesh
protected

Definition at line 23 of file pzcheckmesh.h.

◆ fNState

int TPZCheckMesh::fNState
private

WARNING : only was implemented para uma variavel de estado

Definition at line 93 of file pzcheckmesh.h.

◆ fOut

std::ostream* TPZCheckMesh::fOut
protected

Definition at line 24 of file pzcheckmesh.h.


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