Quadrilateral element with bilinear shape functions in 2D. More...

#include <element2D.hh>

Inheritance diagram for linearFEM::Quad:
linearFEM::Element concepts::ElementWithCell< Real >

Public Types

typedef Real type
 

Public Member Functions

virtual const concepts::Quad2dcell () const
 Returns the cell of this element. More...
 
virtual const Cell & cell () const=0
 Returns the cell on which the element is built. More...
 
Real3d elemMap (const Real coord_local) const
 
Real3d elemMap (const Real2d &coord_local) const
 
Real3d elemMap (const Real3d &coord_local) const
 
void evaluate (Real *res, const Real *x, const uint n) const
 Evaluates the shape functions in the given one dimensional points. More...
 
void evaluateD (concepts::Real2d *res, const Real *x, const uint n) const
 Evaluates the derivatives of the shape functions in the given one dimensional points. More...
 
virtual const concepts::ElementGraphics< Real > * graphics () const
 
 Quad (const concepts::Quad2d &cell, concepts::TColumn< Real > *T0, concepts::TColumn< Real > *T1=0)
 Constructor. More...
 
 Quad (const concepts::Quad2d &cell, uint idx[])
 Constructor. More...
 
virtual const concepts::Quadsupport () const
 Returns the support of this element. More...
 
virtual const concepts::TMatrixBase< Real > & T () const
 Returns the T matrix of this element. More...
 
virtual const TMatrixBase< Real > & T () const=0
 Returns the T matrix of the element. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Protected Attributes

std::unique_ptr< concepts::TMatrixBase< Real > > T_
 T matrix of this element. More...
 

Private Attributes

const concepts::Quad2dcell_
 Cell of the element. More...
 

Static Private Attributes

static std::unique_ptr< QuadGraphicsgraphics_
 

Detailed Description

Quadrilateral element with bilinear shape functions in 2D.

In 2D, two different elements are possible: triangles and quadrilaterals.

Author
Philipp Frauenfelder, 2002

Definition at line 79 of file element2D.hh.

Member Typedef Documentation

◆ type

typedef Real concepts::ElementWithCell< Real >::type
inherited

Definition at line 81 of file element.hh.

Constructor & Destructor Documentation

◆ Quad() [1/2]

linearFEM::Quad::Quad ( const concepts::Quad2d cell,
uint  idx[] 
)
inline

Constructor.

Creates a T matrix out of idx.

See also
concepts::TIndex
Parameters
cellCell of the element
idxDescribes the map local / global dof

Definition at line 86 of file element2D.hh.

◆ Quad() [2/2]

linearFEM::Quad::Quad ( const concepts::Quad2d cell,
concepts::TColumn< Real > *  T0,
concepts::TColumn< Real > *  T1 = 0 
)
inline

Constructor.

Creates a T matrix out of T0 and T1

See also
concepts::TMatrix
Parameters
cellCell of the element
T0Contains T columns
T1Contains T columns

Definition at line 94 of file element2D.hh.

Member Function Documentation

◆ cell() [1/2]

virtual const concepts::Quad2d& linearFEM::Quad::cell ( ) const
inlinevirtual

Returns the cell of this element.

Implements linearFEM::Element.

Definition at line 97 of file element2D.hh.

◆ cell() [2/2]

virtual const Cell& concepts::ElementWithCell< Real >::cell ( ) const
pure virtualinherited

Returns the cell on which the element is built.

Implemented in hp3D::Element< Real >, hp2D::Element< Real >, and hp1D::BaseElement< Real >.

◆ elemMap() [1/3]

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real  coord_local) const
inlineinherited

Definition at line 86 of file element.hh.

◆ elemMap() [2/3]

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real2d coord_local) const
inlineinherited

Definition at line 90 of file element.hh.

◆ elemMap() [3/3]

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real3d coord_local) const
inlineinherited

Definition at line 94 of file element.hh.

◆ evaluate()

void linearFEM::Quad::evaluate ( Real *  res,
const Real *  x,
const uint  n 
) const

Evaluates the shape functions in the given one dimensional points.

The points in x have to be between -1 and 1 and are tensorised to get two dimensional points.

Precondition
res has to allocated, size: 4*n*n
Parameters
resValues of the shapefunctions with index k in the points (x_i, x_j) with j running fastest and k running slowest
xPoints in 1D where the shape functions have to be evaluated. Size: n
nNumber of points in x

◆ evaluateD()

void linearFEM::Quad::evaluateD ( concepts::Real2d res,
const Real *  x,
const uint  n 
) const

Evaluates the derivatives of the shape functions in the given one dimensional points.

The points in x have to be between -1 and 1 and are tensorised to get two dimensional points.

Precondition
res has to allocated, size: 4*n*n
Parameters
resValues of the shapefunctions with index k in the points (x_i, x_j) with j running fastest and k running slowest
xPoints in 1D where the shape functions have to be evaluated. Size: n
nNumber of points in x

◆ graphics()

virtual const concepts::ElementGraphics<Real>* linearFEM::Quad::graphics ( ) const
virtual

◆ info()

virtual std::ostream& linearFEM::Quad::info ( std::ostream &  os) const
protectedvirtual

◆ support()

virtual const concepts::Quad& linearFEM::Quad::support ( ) const
inlinevirtual

Returns the support of this element.

Implements linearFEM::Element.

Definition at line 96 of file element2D.hh.

◆ T() [1/2]

virtual const concepts::TMatrixBase<Real>& linearFEM::Element::T ( ) const
inlinevirtualinherited

Returns the T matrix of this element.

Definition at line 47 of file element.hh.

◆ T() [2/2]

virtual const TMatrixBase<Real >& concepts::ElementWithCell< Real >::T ( ) const
pure virtualinherited

Returns the T matrix of the element.

Implemented in hp3D::Element< Real >, and hp2D::Element< Real >.

Member Data Documentation

◆ cell_

const concepts::Quad2d& linearFEM::Quad::cell_
private

Cell of the element.

Definition at line 125 of file element2D.hh.

◆ graphics_

std::unique_ptr<QuadGraphics> linearFEM::Quad::graphics_
staticprivate

Definition at line 126 of file element2D.hh.

◆ T_

std::unique_ptr<concepts::TMatrixBase<Real> > linearFEM::Element::T_
protectedinherited

T matrix of this element.

Definition at line 50 of file element.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich