Element#
- class felupe.Quad[source]#
Bases:
Element
Quadrilateral element with linear shape functions.
^ s 3 (-1/ 1) | 2 ( 1/ 1) o-----------|-----------o | | | | | | | | | | | | | -----|-----------|-----> r | | | | | | | | | | o-----------------------o 0 (-1,-1) 1 ( 1/-1)
- points#
Array with point locations in natural coordinate system
- Type
ndarray
- function(rs)[source]#
Linear quadrilateral - shape functions.
\[\begin{split}\boldsymbol{h}(\boldsymbol{r}) = \frac{1}{4} \begin{bmatrix} (1-r)(1-s) \\ (1+r)(1-s) \\ (1+r)(1+s) \\ (1-r)(1+s) \end{bmatrix}\end{split}\]- Parameters
rs (ndarray) – Point as coordinate vector for shape function evaluation
- Returns
Shape functions evaluated at given location
- Return type
ndarray
- gradient(rs)[source]#
Linear quadrilateral - gradient of shape functions.
\[\begin{split}\frac{\partial \boldsymbol{h}}{\partial \boldsymbol{r}} = \frac{1}{4} \begin{bmatrix} -(1-s) & -(1-r) \\ (1-s) & -(1+r) \\ (1+s) & (1+r) \\ -(1+s) & (1-r) \end{bmatrix}\end{split}\]- Parameters
rs (ndarray) – Point as coordinate vector for gradient of shape function evaluation
- Returns
Gradient of shape functions evaluated at given location
- Return type
ndarray
- class felupe.ConstantQuad[source]#
Bases:
Element
Quadrilateral element with constant shape functions.
^ s 3 (-1/ 1) | 2 ( 1/ 1) o-----------|-----------o | | | | | | | | | | | | | -----|-----------|-----> r | | | | | | | | | | o-----------------------o 0 (-1,-1) 1 ( 1/-1)
- points#
Array with point locations in natural coordinate system
- Type
ndarray
- function(rst)[source]#
Constant quadrilateral - shape functions.
\[\boldsymbol{h}(\boldsymbol{r}) = \begin{bmatrix} 1 \end{bmatrix}\]- Parameters
rs (ndarray) – Point as coordinate vector for shape function evaluation
- Returns
Shape functions evaluated at given location
- Return type
ndarray
- gradient(rst)[source]#
Constant quadrilateral - gradient of shape functions.
\[\frac{\partial \boldsymbol{h}}{\partial \boldsymbol{r}} = \begin{bmatrix} 0 \end{bmatrix}\]- Parameters
rs (ndarray) – Point as coordinate vector for gradient of shape function evaluation
- Returns
Gradient of shape functions evaluated at given location
- Return type
ndarray
- felupe.ArbitraryOrderLagrangeElement#
alias of
ArbitraryOrderLagrange