NeoPZ
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
pzshape::TPZShapeDisc Class Reference

Implements the shape functions discontinuous elements. Shape. More...

#include <TPZShapeDisc.h>

Public Types

enum  MShapeType { ETensorial, EOrdemTotal, ETensorialFull, EOrdemTotalFull }
 

Public Member Functions

 TPZShapeDisc ()
 
 TPZShapeDisc (const TPZShapeDisc &copy)
 
 ~TPZShapeDisc ()
 

Static Public Member Functions

static void Polynomial (REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n=1)
 Polynomial shape function. More...
 
static void PolynomialWithoutScale (REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n=1)
 
static void IntegratedLegendre (REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n=1)
 
static void Legendre (REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n=1)
 
static void ChebyshevWithoutScale (REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n=1)
 
static void LegendreWithoutScale (REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n=1)
 
static void Shape (int dimension, REAL C, TPZVec< REAL > &X0, TPZVec< REAL > &X, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, MShapeType type)
 
static void Shape (int &dimension, int &degree, TPZVec< REAL > &qsi, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, MShapeType type)
 Computes the shape function set at the point qsi for dual space. More...
 
static int NShapeF (int degree, int dimension, MShapeType type)
 Number of shapefunctions dependent on the dimension and order of interpolation. More...
 
static void Shape0D (REAL C, TPZVec< REAL > &X0, TPZVec< REAL > &X, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
 Discontinous polynomials of the line element. More...
 
static void Shape1D (REAL C, TPZVec< REAL > &X0, TPZVec< REAL > &X, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
 Discontinous polynomials of the line element. More...
 
static void Shape2D (REAL C, TPZVec< REAL > &X0, TPZVec< REAL > &X, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, MShapeType type)
 Discontinous bases of the two-dimensional elements. More...
 
static void Shape2DFull (REAL C, TPZVec< REAL > &X0, TPZVec< REAL > &X, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, MShapeType type)
 Discontinous bases of the two-dimensional elements with many derivatives! More...
 
static void Shape3D (REAL C, TPZVec< REAL > &X0, TPZVec< REAL > &X, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, MShapeType type)
 Discontinous bases of the three-dimensional elements. More...
 

Static Public Attributes

static void(* fOrthogonal )(REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n)
 Pointer to orthogonal function to use as shape function. More...
 

Detailed Description

Implements the shape functions discontinuous elements. Shape.

This class computes the shape functions for n-dimensional elements the shape functions can be tensor based or interpolation order based The Shape2dFull method also computes higher order derivatives

Definition at line 25 of file TPZShapeDisc.h.

Member Enumeration Documentation

◆ MShapeType

Enumerator
ETensorial 
EOrdemTotal 
ETensorialFull 
EOrdemTotalFull 

Definition at line 60 of file TPZShapeDisc.h.

Constructor & Destructor Documentation

◆ TPZShapeDisc() [1/2]

pzshape::TPZShapeDisc::TPZShapeDisc ( )

Definition at line 21 of file TPZShapeDisc.cpp.

◆ TPZShapeDisc() [2/2]

pzshape::TPZShapeDisc::TPZShapeDisc ( const TPZShapeDisc copy)

Definition at line 25 of file TPZShapeDisc.cpp.

◆ ~TPZShapeDisc()

pzshape::TPZShapeDisc::~TPZShapeDisc ( )

Definition at line 29 of file TPZShapeDisc.cpp.

Member Function Documentation

◆ ChebyshevWithoutScale()

void pzshape::TPZShapeDisc::ChebyshevWithoutScale ( REAL  C,
REAL  x0,
REAL  x,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
int  n = 1 
)
static

Definition at line 182 of file TPZShapeDisc.cpp.

References DebugStop, IsZero(), and TPZFMatrix< TVar >::Redim().

◆ IntegratedLegendre()

void pzshape::TPZShapeDisc::IntegratedLegendre ( REAL  C,
REAL  x0,
REAL  x,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
int  n = 1 
)
static

Definition at line 34 of file TPZShapeDisc.cpp.

References DebugStop, IsZero(), pow(), and TPZFMatrix< TVar >::Redim().

◆ Legendre()

void pzshape::TPZShapeDisc::Legendre ( REAL  C,
REAL  x0,
REAL  x,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
int  n = 1 
)
static

◆ LegendreWithoutScale()

void pzshape::TPZShapeDisc::LegendreWithoutScale ( REAL  C,
REAL  x0,
REAL  x,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
int  n = 1 
)
static

Definition at line 197 of file TPZShapeDisc.cpp.

References DebugStop, IsZero(), and TPZFMatrix< TVar >::Redim().

◆ NShapeF()

int pzshape::TPZShapeDisc::NShapeF ( int  degree,
int  dimension,
MShapeType  type 
)
static

◆ Polynomial()

void pzshape::TPZShapeDisc::Polynomial ( REAL  C,
REAL  x0,
REAL  x,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
int  n = 1 
)
static

Polynomial shape function.

Parameters
Cnormalizing constant, it provided by the discontinous element
x0interior point of the deformed element, it can be, for example, the center of mass of the element
xcoordinate of the point
degreedegree of interpolation of the element
phishapefunction values
dphivalues of the derivatives of the shape functions
nnumber of derivatives to be computed

Definition at line 96 of file TPZShapeDisc.cpp.

References DebugStop, degree(), IsZero(), PZError, TPZFMatrix< TVar >::Redim(), and val().

◆ PolynomialWithoutScale()

void pzshape::TPZShapeDisc::PolynomialWithoutScale ( REAL  C,
REAL  x0,
REAL  x,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
int  n = 1 
)
static

Definition at line 128 of file TPZShapeDisc.cpp.

References DebugStop, degree(), IsZero(), PZError, TPZFMatrix< TVar >::Redim(), and val().

◆ Shape() [1/2]

void pzshape::TPZShapeDisc::Shape ( int  dimension,
REAL  C,
TPZVec< REAL > &  X0,
TPZVec< REAL > &  X,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
MShapeType  type 
)
static

◆ Shape() [2/2]

void pzshape::TPZShapeDisc::Shape ( int &  dimension,
int &  degree,
TPZVec< REAL > &  qsi,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
MShapeType  type 
)
static

Computes the shape function set at the point qsi for dual space.

Parameters
dimensiondimension of element
degreedegree of polynomial
qsipoint in master element coordinates
phivector of values of shapefunctions, dimension (numshape,1)
dphimatrix of derivatives of shapefunctions, dimension (dim,numshape)
typetype of polinomial space

Definition at line 242 of file TPZShapeDisc.cpp.

References DebugStop.

◆ Shape0D()

void pzshape::TPZShapeDisc::Shape0D ( REAL  C,
TPZVec< REAL > &  X0,
TPZVec< REAL > &  X,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi 
)
static

Discontinous polynomials of the line element.

Definition at line 262 of file TPZShapeDisc.cpp.

References DebugStop, TPZFMatrix< TVar >::PutVal(), PZError, and TPZFMatrix< TVar >::Redim().

◆ Shape1D()

void pzshape::TPZShapeDisc::Shape1D ( REAL  C,
TPZVec< REAL > &  X0,
TPZVec< REAL > &  X,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi 
)
static

Discontinous polynomials of the line element.

Definition at line 274 of file TPZShapeDisc.cpp.

◆ Shape2D()

void pzshape::TPZShapeDisc::Shape2D ( REAL  C,
TPZVec< REAL > &  X0,
TPZVec< REAL > &  X,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
MShapeType  type 
)
static

Discontinous bases of the two-dimensional elements.

Definition at line 284 of file TPZShapeDisc.cpp.

References degree(), PZError, TPZFMatrix< TVar >::Redim(), and TPZFMatrix< TVar >::Zero().

◆ Shape2DFull()

void pzshape::TPZShapeDisc::Shape2DFull ( REAL  C,
TPZVec< REAL > &  X0,
TPZVec< REAL > &  X,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
MShapeType  type 
)
static

Discontinous bases of the two-dimensional elements with many derivatives!

Definition at line 447 of file TPZShapeDisc.cpp.

References PZError, TPZFMatrix< TVar >::Redim(), and TPZFMatrix< TVar >::Zero().

◆ Shape3D()

void pzshape::TPZShapeDisc::Shape3D ( REAL  C,
TPZVec< REAL > &  X0,
TPZVec< REAL > &  X,
int  degree,
TPZFMatrix< REAL > &  phi,
TPZFMatrix< REAL > &  dphi,
MShapeType  type 
)
static

Discontinous bases of the three-dimensional elements.

Definition at line 390 of file TPZShapeDisc.cpp.

References TPZFMatrix< TVar >::Redim(), and TPZFMatrix< TVar >::Zero().

Member Data Documentation

◆ fOrthogonal

void(* pzshape::TPZShapeDisc::fOrthogonal)(REAL C, REAL x0, REAL x, int degree, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, int n)
static

Pointer to orthogonal function to use as shape function.

Note
UseOrthoShape = 1 means it will be used Legendre polynomial as shape function.
Since
Mar 31, 2004

Definition at line 56 of file TPZShapeDisc.h.

Referenced by TPZCompElDisc::SetOrthogonalFunction().


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