NeoPZ
Classes | Functions
pzreferredcompel.h File Reference

Contains declaration of TPZReferredCompEl class which generates computational elements. More...

#include "pzintel.h"
#include "pzfmatrix.h"
#include "pzvec.h"
#include "pzmanvector.h"
#include "pzmaterialdata.h"
#include <map>
#include <set>
Include dependency graph for pzreferredcompel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TPZReferredCompEl< TCOMPEL >
 Template to generate computational elements. Computational Element. More...
 

Functions

void AdjustSolutionDerivatives (TPZFMatrix< STATE > &dsolfrom, TPZFMatrix< REAL > &axesfrom, TPZFMatrix< STATE > &dsolto, const TPZFMatrix< REAL > &axesto)
 Adjust the derivatives from one system of axes to the other. More...
 
TPZCompElCreateReferredDisc (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates discontinuous referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredPointEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates point referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredLinearEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates linear referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredQuadEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates quadrilateral referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredTriangleEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates triangular referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredCubeEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates cube referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredPrismEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates prismal referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredPyramEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates pyramidal referred computational element related with geometric element gel. More...
 
TPZCompElCreateReferredTetraEl (TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
 Creates tetrahedral referred computational element related with geometric element gel. More...
 
template<class TVar >
void Append (TPZVec< TVar > &u1, TPZVec< TVar > &u2, TPZVec< TVar > &u12)
 Append u2 vector after u1 vector in u12 vector. More...
 
template<class TVar >
void Append (TPZFMatrix< TVar > &u1, TPZFMatrix< TVar > &u2, TPZFMatrix< TVar > &u12)
 Append u2 matrix following u1 matrix in u12 matrix. More...
 
bool AreEqual (const TPZVec< REAL > &A, const TPZVec< REAL > &B, REAL tol=1e-10)
 Returns true whether $ |Aij - Bij| < tol $ for all the entries of the matrices. More...
 

Detailed Description

Contains declaration of TPZReferredCompEl class which generates computational elements.

Definition in file pzreferredcompel.h.

Function Documentation

◆ AdjustSolutionDerivatives()

void AdjustSolutionDerivatives ( TPZFMatrix< STATE > &  dsolfrom,
TPZFMatrix< REAL > &  axesfrom,
TPZFMatrix< STATE > &  dsolto,
const TPZFMatrix< REAL > &  axesto 
)

◆ Append() [1/2]

template<class TVar >
void Append ( TPZVec< TVar > &  u1,
TPZVec< TVar > &  u2,
TPZVec< TVar > &  u12 
)

◆ Append() [2/2]

template<class TVar >
void Append ( TPZFMatrix< TVar > &  u1,
TPZFMatrix< TVar > &  u2,
TPZFMatrix< TVar > &  u12 
)

Append u2 matrix following u1 matrix in u12 matrix.

Returns u12 = [u1][u2]. Then: $ u12.Rows = max(u1.Rows, u2.Rows) $ and $ u12.Cols = u1.Cols + u2.Cols $

Definition at line 62 of file pzreferredcompel.cpp.

References TPZMatrix< TVar >::Cols(), TPZFMatrix< TVar >::Redim(), and TPZMatrix< TVar >::Rows().

◆ AreEqual()

bool AreEqual ( const TPZVec< REAL > &  A,
const TPZVec< REAL > &  B,
REAL  tol = 1e-10 
)

Returns true whether $ |Aij - Bij| < tol $ for all the entries of the matrices.

Definition at line 73 of file pzreferredcompel.cpp.

References fabs, and TPZVec< T >::NElements().

Referenced by TPZReferredCompEl< TCOMPEL >::AppendOtherSolution().

◆ CreateReferredCubeEl()

TPZCompEl* CreateReferredCubeEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates cube referred computational element related with geometric element gel.

Definition at line 415 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredDisc()

TPZCompEl* CreateReferredDisc ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates discontinuous referred computational element related with geometric element gel.

Definition at line 431 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsDiscontinuousReferred().

◆ CreateReferredLinearEl()

TPZCompEl* CreateReferredLinearEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates linear referred computational element related with geometric element gel.

Definition at line 403 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredPointEl()

TPZCompEl* CreateReferredPointEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates point referred computational element related with geometric element gel.

Definition at line 399 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredPrismEl()

TPZCompEl* CreateReferredPrismEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates prismal referred computational element related with geometric element gel.

Definition at line 419 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredPyramEl()

TPZCompEl* CreateReferredPyramEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates pyramidal referred computational element related with geometric element gel.

Definition at line 423 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredQuadEl()

TPZCompEl* CreateReferredQuadEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates quadrilateral referred computational element related with geometric element gel.

Definition at line 407 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredTetraEl()

TPZCompEl* CreateReferredTetraEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates tetrahedral referred computational element related with geometric element gel.

Definition at line 427 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().

◆ CreateReferredTriangleEl()

TPZCompEl* CreateReferredTriangleEl ( TPZGeoEl gel,
TPZCompMesh mesh,
int64_t &  index 
)

Creates triangular referred computational element related with geometric element gel.

Definition at line 411 of file pzreferredcompel.cpp.

Referenced by TPZCreateApproximationSpace::SetAllCreateFunctionsContinuousReferred().