NeoPZ
|
This class verifies the consistency of the datastructure of a TPZCompMesh object. Computational Mesh. More...
#include <pzcheckmesh.h>
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 | |
TPZCompMesh * | fMesh |
std::ostream * | fOut |
Private Attributes | |
int | fNState |
This class verifies the consistency of the datastructure of a TPZCompMesh object. Computational Mesh.
Definition at line 20 of file pzcheckmesh.h.
TPZCheckMesh::TPZCheckMesh | ( | TPZCompMesh * | mesh, |
std::ostream * | out | ||
) |
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.
connect | Index of connect |
dependlist | List of connect indexes which depend on connect |
Definition at line 20 of file pzcheckmesh.cpp.
References TPZConnect::TPZDepend::HasDepend(), and TPZStack< T, NumExtAlloc >::Push().
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().
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().
int TPZCheckMesh::CheckConstraintDimension | ( | ) |
find the element that contains badcon
Definition at line 213 of file pzcheckmesh.cpp.
References TPZMatrix< TVar >::Cols(), TPZCompEl::ConnectIndex(), TPZCompElSide::Element(), TPZGeoElSide::EqualLevelCompElementList(), TPZConnect::TPZDepend::fDepConnectIndex, TPZConnect::TPZDepend::fDepMatrix, TPZConnect::FirstDepend(), TPZConnect::TPZDepend::fNext, TPZConnect::HasDependency(), TPZCompEl::Index(), TPZGeoElSide::LowerLevelCompElementList2(), TPZInterpolatedElement::NConnects(), TPZCompEl::NConnects(), TPZVec< T >::NElements(), TPZStack< T, NumExtAlloc >::Push(), TPZCompEl::Reference(), TPZCompElSide::Reference(), TPZMatrix< TVar >::Rows(), TPZConnect::SequenceNumber(), and TPZVec< T >::size().
int TPZCheckMesh::CheckDimensions | ( | ) |
Definition at line 172 of file pzcheckmesh.cpp.
int TPZCheckMesh::CheckElementShapeDimension | ( | ) |
WARNING
Definition at line 179 of file pzcheckmesh.cpp.
References TPZCompEl::Connect(), TPZCompEl::ConnectIndex(), TPZInterpolatedElement::NConnects(), TPZInterpolationSpace::NConnectShapeF(), TPZConnect::NShape(), TPZConnect::Order(), and TPZInterpolatedElement::Print().
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.
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().
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().
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.
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.
connect | Index 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().
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.
connect | Index 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().
|
protected |
Definition at line 23 of file pzcheckmesh.h.
|
private |
WARNING : only was implemented para uma variavel de estado
Definition at line 93 of file pzcheckmesh.h.
|
protected |
Definition at line 24 of file pzcheckmesh.h.