NeoPZ
Public Types | Public Member Functions | Private Attributes | List of all members
TPZIntQuad Class Reference

Handles the numerical integration for two-dimensional problems using quadrilateral elements. Numerical Integration. More...

#include <pzquad.h>

Inheritance diagram for TPZIntQuad:
[legend]
Collaboration diagram for TPZIntQuad:
[legend]

Public Types

enum  { Dim }
 

Public Member Functions

 TPZIntQuad (int OrdK, int OrdE)
 Constructor with two one dimensional rules. More...
 
 TPZIntQuad (int OrdK=1)
 
 TPZIntQuad (const TPZIntQuad &copy)
 Copy constructor. More...
 
TPZIntQuadoperator= (const TPZIntQuad &copy)
 
virtual ~TPZIntQuad ()
 Destructor. More...
 
virtual int NPoints () const
 Returns number of points for the cubature rule related. More...
 
virtual void Point (int ip, TPZVec< REAL > &pos, REAL &w) const
 Returns i-th point at master element and related weight. More...
 
virtual void SetType (int type, int order)
 Set the order and the type of integration rule : More...
 
virtual void SetOrder (TPZVec< int > &ord, int type=0)
 Set the order and the type of integration rule : More...
 
virtual void GetOrder (TPZVec< int > &ord) const
 Return the order of the integration rule. More...
 
virtual int GetRealMaxOrder () const
 
virtual int GetMaxOrder () const
 
virtual int Dimension () const
 Returns the dimension of the master element related for the cubature rule. More...
 
virtual TPZIntPointsPrismExtend (int order)
 
virtual TPZIntPointsClone () const
 Make a clone of the related cubature rule. More...
 
void Name (std::string &name) const
 Returns the name of the cubature rule. More...
 
- Public Member Functions inherited from TPZIntPoints
virtual ~TPZIntPoints ()
 Default destructor. More...
 
 TPZIntPoints ()
 
 TPZIntPoints (const TPZIntPoints &copy)
 
TPZIntPointsoperator= (const TPZIntPoints &copy)
 
virtual void Print (std::ostream &out) const
 Prints information of the cubature rule. More...
 

Private Attributes

int fOrdKsi
 
int fOrdEta
 
TPZGaussRulefIntKsi
 
TPZGaussRulefIntEta
 

Detailed Description

Handles the numerical integration for two-dimensional problems using quadrilateral elements. Numerical Integration.

Definition at line 156 of file pzquad.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Dim 

Definition at line 162 of file pzquad.h.

Constructor & Destructor Documentation

◆ TPZIntQuad() [1/3]

TPZIntQuad::TPZIntQuad ( int  OrdK,
int  OrdE 
)

Constructor with two one dimensional rules.

Parameters
OrdKOrder for $ \xi $ axe
OrdEOrder for $ \eta $ axe at master element.

Definition at line 130 of file pzquad.cpp.

References TPZIntRuleList::GetRule(), TPZIntRuleList::gIntRuleList, and TPZGaussRule::Order().

◆ TPZIntQuad() [2/3]

TPZIntQuad::TPZIntQuad ( int  OrdK = 1)

◆ TPZIntQuad() [3/3]

TPZIntQuad::TPZIntQuad ( const TPZIntQuad copy)
inline

Copy constructor.

Definition at line 173 of file pzquad.h.

◆ ~TPZIntQuad()

virtual TPZIntQuad::~TPZIntQuad ( )
inlinevirtual

Destructor.

Definition at line 185 of file pzquad.h.

References TPZInt1d::NPoints(), and TPZInt1d::Point().

Member Function Documentation

◆ Clone()

virtual TPZIntPoints* TPZIntQuad::Clone ( ) const
inlinevirtual

Make a clone of the related cubature rule.

Implements TPZIntPoints.

Reimplemented in TPZIntQuadQuarterPoint.

Definition at line 230 of file pzquad.h.

◆ Dimension()

virtual int TPZIntQuad::Dimension ( ) const
inlinevirtual

Returns the dimension of the master element related for the cubature rule.

Implements TPZIntPoints.

Definition at line 221 of file pzquad.h.

References TPZInt1d::Dim.

◆ GetMaxOrder()

virtual int TPZIntQuad::GetMaxOrder ( ) const
inlinevirtual

A ordem máxima é muito maior que 36. Seu valor está em GetRealMaxOrder. Entretanto, é preciso dar algum valor aqui para sobrescrever o da classe mãe que retorna o max order do tetraedro, da pirâmide ou do triângulo, que tradicionalmente tem regras menores que linha, quadrilátero e hexaedro

Reimplemented from TPZIntPoints.

Definition at line 217 of file pzquad.h.

◆ GetOrder()

void TPZIntQuad::GetOrder ( TPZVec< int > &  ord) const
virtual

Return the order of the integration rule.

Implements TPZIntPoints.

Definition at line 191 of file pzquad.cpp.

◆ GetRealMaxOrder()

int TPZIntQuad::GetRealMaxOrder ( ) const
virtual

◆ Name()

void TPZIntQuad::Name ( std::string &  name) const
inlinevirtual

Returns the name of the cubature rule.

Reimplemented from TPZIntPoints.

Definition at line 236 of file pzquad.h.

◆ NPoints()

int TPZIntQuad::NPoints ( ) const
virtual

Returns number of points for the cubature rule related.

Implements TPZIntPoints.

Reimplemented in TPZIntQuadQuarterPoint.

Definition at line 145 of file pzquad.cpp.

References PZError.

Referenced by TPZIntQuadQuarterPoint::SetOrder(), and TPZIntQuadQuarterPoint::TPZIntQuadQuarterPoint().

◆ operator=()

TPZIntQuad& TPZIntQuad::operator= ( const TPZIntQuad copy)
inline

Definition at line 175 of file pzquad.h.

References fIntEta, fIntKsi, fOrdEta, fOrdKsi, and TPZIntPoints::operator=().

◆ Point()

void TPZIntQuad::Point ( int  i,
TPZVec< REAL > &  pos,
REAL &  w 
) const
virtual

Returns i-th point at master element and related weight.

Parameters
iIndex of the integration point at cubature rule (the sequence is not important)
posVector (3d) to get the coordinates of the point at master element.
wIt gets the weight related with integration point.

Implements TPZIntPoints.

Reimplemented in TPZIntQuadQuarterPoint.

Definition at line 153 of file pzquad.cpp.

References DebugStop, PZError, and TPZVec< T >::size().

Referenced by TPZIntQuadQuarterPoint::Point().

◆ PrismExtend()

virtual TPZIntPoints* TPZIntQuad::PrismExtend ( int  order)
inlinevirtual

Implements TPZIntPoints.

Definition at line 226 of file pzquad.h.

◆ SetOrder()

void TPZIntQuad::SetOrder ( TPZVec< int > &  ord,
int  type = 0 
)
virtual

Set the order and the type of integration rule :

Implements TPZIntPoints.

Reimplemented in TPZIntQuadQuarterPoint.

Definition at line 176 of file pzquad.cpp.

References TPZIntRuleList::GetRule(), TPZIntRuleList::gIntRuleList, and TPZGaussRule::Type().

Referenced by TPZIntQuadQuarterPoint::SetOrder().

◆ SetType()

virtual void TPZIntQuad::SetType ( int  type,
int  order 
)
inlinevirtual

Set the order and the type of integration rule :

Reimplemented from TPZIntPoints.

Definition at line 196 of file pzquad.h.

References TPZInt1d::GetOrder(), TPZInt1d::GetRealMaxOrder(), TPZInt1d::SetOrder(), and TPZGaussRule::SetType().

Member Data Documentation

◆ fIntEta

TPZGaussRule* TPZIntQuad::fIntEta
private

Definition at line 160 of file pzquad.h.

Referenced by operator=().

◆ fIntKsi

TPZGaussRule* TPZIntQuad::fIntKsi
private

Definition at line 159 of file pzquad.h.

Referenced by operator=().

◆ fOrdEta

int TPZIntQuad::fOrdEta
private

Definition at line 158 of file pzquad.h.

Referenced by operator=().

◆ fOrdKsi

int TPZIntQuad::fOrdKsi
private

Definition at line 157 of file pzquad.h.

Referenced by operator=().


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