NeoPZ
|
class whose methods implement a functionality on a computational mesh More...
#include <TPZCompMeshTools.h>
Static Public Member Functions | |
static void | AddHDivPyramidRestraints (TPZCompMesh *cmesh) |
static void | ExpandHDivPyramidRestraints (TPZCompMesh *cmesh) |
static void | LoadSolution (TPZCompMesh *cpressure, TPZFunction< STATE > &Forcing) |
static void | GroupElements (TPZCompMesh *cmesh, std::set< int64_t > elbasis, std::set< int64_t > &grouped) |
group the elements joining boundary elements and their neighbours More... | |
static void | PutinSubmeshes (TPZCompMesh *cmesh, std::set< int64_t > &elindices, int64_t &index, bool KeepOneLagrangian) |
Put the element set into a subcompmesh and make the connects internal. More... | |
static void | PutinSubmeshes (TPZCompMesh *cmesh, std::map< int64_t, std::set< int64_t > > &elindices, std::map< int64_t, int64_t > &indices, bool KeepOneLagrangian) |
Put the element set into a subcompmesh and make the connects internal. More... | |
static void | GroupElements (TPZCompMesh *cmesh) |
group all embedded elements of the computational mesh More... | |
static void | CreatedCondensedElements (TPZCompMesh *cmesh, bool KeepOneLagrangian, bool keepmatrix=true) |
created condensed elements for the elements that have internal nodes More... | |
static void | UnGroupElements (TPZCompMesh *cmesh) |
ungroup all embedded elements of the computational mesh More... | |
static void | UnCondensedElements (TPZCompMesh *cmesh) |
uncondensed elements for the elements that have internal nodes More... | |
static void | ComputeDifferenceNorm (TPZCompMesh *mesh1, TPZCompMesh *mesh2, TPZVec< STATE > &square_errors) |
static void | AdjustFluxPolynomialOrders (TPZCompMesh *fluxmesh, int hdivplusplus) |
adjust the polynomial orders of the hdiv elements such that the internal order is higher than the sideorders More... | |
static void | SetPressureOrders (TPZCompMesh *fluxmesh, TPZCompMesh *pressuremesh) |
set the pressure order acording to the order of internal connect of the elements of the fluxmesh More... | |
static void | OptimizeBandwidth (TPZCompMesh *cmesh) |
class whose methods implement a functionality on a computational mesh
Definition at line 18 of file TPZCompMeshTools.h.
|
static |
we need to identify the connect to restraint start with face 14
the pyramid has a neighbour of pyramid type
add the restraint datastructure to the neighbour
Definition at line 54 of file TPZCompMeshTools.cpp.
References TPZCompElHDiv< TSHAPE >::AddShapeRestraint(), TPZInterpolatedElement::AddShapeRestraint(), DebugStop, TPZCompMesh::Element(), TPZCompElSide::Element(), EPiramide, TPZGeoElSide::EqualLevelCompElementList(), ETetraedro, ETriangle, TPZGeoElSide::HigherLevelCompElementList2(), TPZGeoElSide::LowerLevelCompElementList2(), TPZGeoElSide::Neighbour(), TPZCompMesh::NElements(), TPZCompMesh::Print(), TPZCompEl::Reference(), TPZCompElSide::Reference(), TPZCompElHDiv< TSHAPE >::RestrainedFace(), SetupPyramidRestraint(), TPZVec< T >::size(), and TPZCompEl::Type().
|
static |
adjust the polynomial orders of the hdiv elements such that the internal order is higher than the sideorders
loop over all the elements
Definition at line 694 of file TPZCompMeshTools.cpp.
References TPZCompEl::Connect(), TPZCompMesh::ConnectVec(), DebugStop, TPZCompMesh::Dimension(), TPZGeoEl::Dimension(), TPZCompMesh::Element(), TPZCompMesh::ExpandSolution(), TPZInterpolatedElement::NConnects(), TPZConnect::NElConnected(), TPZCompMesh::NElements(), TPZInterpolatedElement::NSideConnects(), TPZGeoEl::NSides(), TPZConnect::Order(), TPZCompEl::Reference(), TPZInterpolatedElement::SetSideOrder(), and TPZInterpolatedElement::SideConnectIndex().
|
static |
compute the norm of the difference between two meshes put the computed error in the element solution
compute the norm of the difference between two meshes square of the errors are computed for each element of mesh1
Definition at line 656 of file TPZCompMeshTools.cpp.
References ComputeError(), DebugStop, TPZCompMesh::Dimension(), TPZCompMesh::Element(), TPZCompMesh::ElementSolution(), TPZCompMesh::NElements(), TPZFMatrix< TVar >::Redim(), and TPZVec< T >::size().
Referenced by ComputeError().
|
static |
created condensed elements for the elements that have internal nodes
Definition at line 533 of file TPZCompMeshTools.cpp.
References TPZCompMesh::CleanUpUnconnectedNodes(), ComputeError(), cond, TPZCompEl::Connect(), TPZCompMesh::Element(), TPZConnect::HasDependency(), TPZConnect::IncrementElConnected(), TPZConnect::LagrangeMultiplier(), TPZCompEl::NConnects(), TPZConnect::NElConnected(), TPZCompMesh::NElements(), and TPZConnect::NState().
Referenced by TPZMHMixedMeshControl::GroupandCondenseElements(), and TPZMHMixedHybridMeshControl::GroupandCondenseElements().
|
static |
Add the shapeonerestraints of all restrained connects build a map indexed on the restrained connect
For each element that has a oneshape restraint, add the oneshape restraints of all connects
Definition at line 179 of file TPZCompMeshTools.cpp.
References TPZCompEl::AddShapeRestraint(), DebugStop, TPZCompMesh::Element(), TPZOneShapeRestraint::fFaces, TPZCompEl::GetShapeRestraints(), TPZCompMesh::NElements(), and TPZCompEl::ResetShapeRestraints().
|
static |
group the elements joining boundary elements and their neighbours
Definition at line 295 of file TPZCompMeshTools.cpp.
References TPZElementGroup::AddElement(), TPZCompEl::BuildConnectList(), TPZGeoElSide::ConnectedCompElementList(), TPZCompMesh::Dimension(), TPZGeoEl::Dimension(), TPZCompMesh::Element(), TPZCompElSide::Element(), TPZCompEl::Index(), TPZCompMesh::LoadReferences(), TPZCompMesh::NElements(), TPZGeoEl::NSides(), TPZCompEl::Reference(), TPZCompMesh::Reference(), TPZGeoMesh::ResetReference(), and TPZVec< T >::size().
Referenced by TPZMHMixedMeshControl::GroupandCondenseElements().
|
static |
group all embedded elements of the computational mesh
Definition at line 367 of file TPZCompMeshTools.cpp.
References TPZElementGroup::AddElement(), TPZCompEl::BuildConnectList(), TPZCompMesh::ComputeNodElCon(), TPZGeoElSide::ConnectedCompElementList(), TPZCompMesh::Dimension(), TPZGeoEl::Dimension(), TPZCompMesh::Element(), TPZCompElSide::Element(), TPZCompEl::Index(), TPZCompMesh::LoadReferences(), TPZCompMesh::NElements(), TPZGeoEl::NSides(), TPZCompEl::Reference(), TPZCompMesh::Reference(), TPZGeoMesh::ResetReference(), and TPZVec< T >::size().
|
static |
Definition at line 242 of file TPZCompMeshTools.cpp.
References TPZCompMesh::Block(), TPZCompEl::Connect(), TPZGeoEl::Dimension(), TPZCompMesh::Element(), EPiramide, TPZFunction< TVar >::Execute(), TPZGeoNode::GetCoordinates(), TPZGeoEl::NCornerNodes(), TPZCompMesh::NElements(), TPZGeoEl::NodePtr(), TPZCompEl::Reference(), TPZConnect::SequenceNumber(), and TPZGeoEl::Type().
|
static |
|
static |
Put the element set into a subcompmesh and make the connects internal.
Definition at line 508 of file TPZCompMeshTools.cpp.
References TPZCompMesh::ComputeNodElCon(), TPZCompEl::Connect(), TPZConnect::IncrementElConnected(), TPZConnect::LagrangeMultiplier(), TPZSubCompMesh::MakeAllInternal(), TPZSubCompMesh::NConnects(), and TPZSubCompMesh::TransferElement().
Referenced by TPZMHMixedMeshChannelControl::HideTheElements(), and TPZMHMixedMeshControl::HideTheElements().
|
static |
Put the element set into a subcompmesh and make the connects internal.
Definition at line 458 of file TPZCompMeshTools.cpp.
References TPZCompMesh::ComputeNodElCon(), TPZCompEl::Connect(), DebugStop, TPZCompMesh::Element(), TPZConnect::IncrementElConnected(), TPZConnect::LagrangeMultiplier(), TPZSubCompMesh::MakeAllInternal(), TPZSubCompMesh::NConnects(), TPZConnect::NState(), and TPZSubCompMesh::TransferElement().
|
static |
set the pressure order acording to the order of internal connect of the elements of the fluxmesh
Definition at line 737 of file TPZCompMeshTools.cpp.
References TPZCompMesh::ConnectVec(), DebugStop, TPZCompMesh::Dimension(), TPZGeoEl::Dimension(), TPZCompMesh::Element(), TPZCompMesh::ExpandSolution(), TPZCompEl::Index(), TPZCompMesh::LoadReferences(), TPZCompMesh::NElements(), TPZGeoEl::NSides(), TPZConnect::Order(), TPZInterpolatedElement::PRefine(), TPZCompEl::Reference(), TPZCompMesh::Reference(), TPZGeoEl::Reference(), TPZGeoMesh::ResetReference(), and TPZInterpolatedElement::SideConnectIndex().
|
static |
uncondensed elements for the elements that have internal nodes
Definition at line 442 of file TPZCompMeshTools.cpp.
References cond, TPZCompMesh::ElementVec(), TPZCompMesh::NElements(), and TPZCondensedCompEl::Unwrap().
|
static |
ungroup all embedded elements of the computational mesh
Definition at line 426 of file TPZCompMeshTools.cpp.
References TPZCompMesh::ElementVec(), TPZCompMesh::NElements(), and TPZElementGroup::Unwrap().