NeoPZ
|
Template to generate computational elements. Computational Element. More...
#include <pzreferredcompel.h>
Public Member Functions | |
TPZReferredCompEl (TPZCompMesh &mesh, TPZGeoEl *gel, int64_t &index) | |
Class constructor. More... | |
TPZReferredCompEl () | |
TPZReferredCompEl (TPZCompMesh &mesh, const TPZReferredCompEl< TCOMPEL > ©) | |
TPZReferredCompEl (TPZCompMesh &mesh, const TPZReferredCompEl< TCOMPEL > ©, std::map< int64_t, int64_t > &gl2lcConMap, std::map< int64_t, int64_t > &gl2lcElMap) | |
~TPZReferredCompEl () | |
Class destructor. More... | |
virtual void | SetCreateFunctions (TPZCompMesh *mesh) override |
Set create function in TPZCompMesh to create elements of this type. More... | |
TPZCompEl * | ReferredElement () |
Returns referred element of this. More... | |
virtual void | ComputeSolution (TPZVec< REAL > &qsi, TPZMaterialData &data) override |
Computes solution and its derivatives in local coordinate qsi. More... | |
virtual void | ComputeSolution (TPZVec< REAL > &qsi, TPZVec< REAL > &normal, TPZSolVec &leftsol, TPZGradSolVec &dleftsol, TPZFMatrix< REAL > &leftaxes, TPZSolVec &rightsol, TPZGradSolVec &drightsol, TPZFMatrix< REAL > &rightaxes) override |
Computes solution and its derivatives in the local coordinate qsi. More... | |
virtual void | Print (std::ostream &out=std::cout) const override |
Prints element data. More... | |
int | ClassId () const override |
template<> | |
void | SetCreateFunctions (TPZCompMesh *mesh) |
Protected Member Functions | |
void | AppendOtherSolution (TPZVec< REAL > &qsi, TPZSolVec &sol, TPZGradSolVec &dsol, TPZFMatrix< REAL > &axes) |
Append solution of the referred element. More... | |
void | AppendOtherSolution (TPZVec< REAL > &qsi, TPZSolVec &sol) |
Append solution of the referred element. More... | |
void | AppendOtherSolution (TPZVec< REAL > &qsi, TPZSolVec &sol, TPZGradSolVec &dsol, const TPZFMatrix< REAL > &axes) |
Append solution of the referred element. More... | |
void | AppendOtherSolution (TPZVec< REAL > &qsi, TPZVec< REAL > &normal, TPZSolVec &leftsol, TPZGradSolVec &dleftsol, TPZFMatrix< REAL > &leftaxes, TPZSolVec &rightsol, TPZGradSolVec &drightsol, TPZFMatrix< REAL > &rightaxes) |
Append solution of the referred element. More... | |
template<> | |
void | AppendOtherSolution (TPZVec< REAL > &qsi, TPZSolVec &sol, TPZGradSolVec &dsol, TPZFMatrix< REAL > &axes) |
Template to generate computational elements. Computational Element.
Definition at line 26 of file pzreferredcompel.h.
TPZReferredCompEl< TCOMPEL >::TPZReferredCompEl | ( | TPZCompMesh & | mesh, |
TPZGeoEl * | gel, | ||
int64_t & | index | ||
) |
Class constructor.
Definition at line 109 of file pzreferredcompel.cpp.
TPZReferredCompEl< TCOMPEL >::TPZReferredCompEl | ( | ) |
Definition at line 115 of file pzreferredcompel.cpp.
TPZReferredCompEl< TCOMPEL >::TPZReferredCompEl | ( | TPZCompMesh & | mesh, |
const TPZReferredCompEl< TCOMPEL > & | copy | ||
) |
Definition at line 121 of file pzreferredcompel.cpp.
TPZReferredCompEl< TCOMPEL >::TPZReferredCompEl | ( | TPZCompMesh & | mesh, |
const TPZReferredCompEl< TCOMPEL > & | copy, | ||
std::map< int64_t, int64_t > & | gl2lcConMap, | ||
std::map< int64_t, int64_t > & | gl2lcElMap | ||
) |
Definition at line 127 of file pzreferredcompel.cpp.
TPZReferredCompEl< TCOMPEL >::~TPZReferredCompEl | ( | ) |
Class destructor.
Definition at line 138 of file pzreferredcompel.cpp.
|
protected |
Append solution of the referred element.
Definition at line 150 of file pzreferredcompel.cpp.
References AdjustSolutionDerivatives(), Append(), TPZMaterialData::axes, TPZMaterialData::dsol, TPZVec< T >::NElements(), TPZReferredCompEl< TCOMPEL >::ReferredElement(), TPZVec< T >::resize(), TPZVec< T >::size(), and TPZMaterialData::sol.
Referenced by TPZReferredCompEl< TCOMPEL >::ComputeSolution().
|
protected |
Append solution of the referred element.
Definition at line 185 of file pzreferredcompel.cpp.
References Append(), TPZReferredCompEl< TCOMPEL >::ReferredElement(), and TPZVec< T >::size().
|
protected |
Append solution of the referred element.
Definition at line 203 of file pzreferredcompel.cpp.
References AdjustSolutionDerivatives(), Append(), TPZReferredCompEl< TCOMPEL >::ReferredElement(), and TPZVec< T >::size().
|
protected |
Append solution of the referred element.
Definition at line 231 of file pzreferredcompel.cpp.
References AdjustSolutionDerivatives(), Append(), AreEqual(), TPZVec< T >::NElements(), PZError, TPZReferredCompEl< TCOMPEL >::ReferredElement(), and TPZVec< T >::size().
|
protected |
Definition at line 143 of file pzreferredcompel.cpp.
References DebugStop.
|
override |
Definition at line 341 of file pzreferredcompel.cpp.
References Hash().
Referenced by TPZCompElPostProc< TCOMPEL >::ClassId().
|
overridevirtual |
Computes solution and its derivatives in local coordinate qsi.
qsi | master element coordinate |
phi | matrix containing shape functions compute in qsi point |
dphix | matrix containing the derivatives of shape functions in the direction of the axes |
axes | direction of the derivatives |
sol | finite element solution |
dsol | solution derivatives Computes solution and its derivatives in local coordinate qsi |
qsi | master element coordinate |
phi | matrix containing shape functions compute in qsi point |
dphix | matrix containing the derivatives of shape functions in the direction of the axes |
axes | direction of the derivatives |
sol | finite element solution |
dsol | solution derivatives |
qsi | master element coordinate |
phi | matrix containing shape functions compute in qsi point |
dphix | matrix containing the derivatives of shape functions in the direction of the axes |
axes | direction of the derivatives |
sol | finite element solution |
dsol | solution derivatives |
Definition at line 317 of file pzreferredcompel.cpp.
References TPZReferredCompEl< TCOMPEL >::AppendOtherSolution(), TPZMaterialData::axes, TPZMaterialData::dsol, TPZMaterialData::EVecandShape, TPZMaterialData::EVecShape, TPZMaterialData::fShapeType, and TPZMaterialData::sol.
|
overridevirtual |
Computes solution and its derivatives in the local coordinate qsi.
qsi | master element coordinate of the interface element |
normal | unit normal vector |
leftsol | finite element solution |
dleftsol | solution derivatives |
leftaxes | axes associated with the left solution |
rightsol | finite element solution |
drightsol | solution derivatives |
rightaxes | axes associated with the right solution This method will function for both volumetric and interface elements |
Reimplemented in TPZCompElPostProc< TCOMPEL >.
Definition at line 332 of file pzreferredcompel.cpp.
References TPZReferredCompEl< TCOMPEL >::AppendOtherSolution().
|
overridevirtual |
Prints element data.
out | indicates the device where the data will be printed |
Reimplemented in TPZCompElPostProc< TCOMPEL >.
Definition at line 94 of file pzreferredcompel.cpp.
References TPZCompMeshReferred::ReferredEl().
Referenced by TPZCompElPostProc< TCOMPEL >::Print().
TPZCompEl * TPZReferredCompEl< TCOMPEL >::ReferredElement | ( | ) |
Returns referred element of this.
Definition at line 84 of file pzreferredcompel.cpp.
References TPZCompMeshReferred::ReferredEl().
Referenced by TPZReferredCompEl< TCOMPEL >::AppendOtherSolution(), and TPZCompElPostProc< TCOMPEL >::CalcResidual().
|
overridevirtual |
Set create function in TPZCompMesh to create elements of this type.
Definition at line 290 of file pzreferredcompel.cpp.
References TPZCompMesh::SetAllCreateFunctionsContinuousReferred().
void TPZReferredCompEl< TPZCompElDisc >::SetCreateFunctions | ( | TPZCompMesh * | mesh | ) |
Definition at line 285 of file pzreferredcompel.cpp.
References TPZCompMesh::SetAllCreateFunctionsDiscontinuousReferred().