NeoPZ
Static Public Member Functions | List of all members
TPZCompMeshTools Class Reference

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)
 

Detailed Description

class whose methods implement a functionality on a computational mesh

Definition at line 18 of file TPZCompMeshTools.h.

Member Function Documentation

◆ AddHDivPyramidRestraints()

void TPZCompMeshTools::AddHDivPyramidRestraints ( TPZCompMesh cmesh)
static

◆ AdjustFluxPolynomialOrders()

void TPZCompMeshTools::AdjustFluxPolynomialOrders ( TPZCompMesh fluxmesh,
int  hdivplusplus 
)
static

◆ ComputeDifferenceNorm()

void TPZCompMeshTools::ComputeDifferenceNorm ( TPZCompMesh mesh1,
TPZCompMesh mesh2,
TPZVec< STATE > &  square_errors 
)
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().

◆ CreatedCondensedElements()

void TPZCompMeshTools::CreatedCondensedElements ( TPZCompMesh cmesh,
bool  KeepOneLagrangian,
bool  keepmatrix = true 
)
static

◆ ExpandHDivPyramidRestraints()

void TPZCompMeshTools::ExpandHDivPyramidRestraints ( TPZCompMesh cmesh)
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().

◆ GroupElements() [1/2]

void TPZCompMeshTools::GroupElements ( TPZCompMesh cmesh,
std::set< int64_t >  elbasis,
std::set< int64_t > &  grouped 
)
static

◆ GroupElements() [2/2]

void TPZCompMeshTools::GroupElements ( TPZCompMesh cmesh)
static

◆ LoadSolution()

void TPZCompMeshTools::LoadSolution ( TPZCompMesh cpressure,
TPZFunction< STATE > &  Forcing 
)
static

◆ OptimizeBandwidth()

static void TPZCompMeshTools::OptimizeBandwidth ( TPZCompMesh cmesh)
static

◆ PutinSubmeshes() [1/2]

void TPZCompMeshTools::PutinSubmeshes ( TPZCompMesh cmesh,
std::set< int64_t > &  elindices,
int64_t &  index,
bool  KeepOneLagrangian 
)
static

◆ PutinSubmeshes() [2/2]

void TPZCompMeshTools::PutinSubmeshes ( TPZCompMesh cmesh,
std::map< int64_t, std::set< int64_t > > &  elindices,
std::map< int64_t, int64_t > &  indices,
bool  KeepOneLagrangian 
)
static

◆ SetPressureOrders()

void TPZCompMeshTools::SetPressureOrders ( TPZCompMesh fluxmesh,
TPZCompMesh pressuremesh 
)
static

◆ UnCondensedElements()

void TPZCompMeshTools::UnCondensedElements ( TPZCompMesh cmesh)
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().

◆ UnGroupElements()

void TPZCompMeshTools::UnGroupElements ( TPZCompMesh cmesh)
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().


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