# Membrane element¶

Membrane elements are special 3-node particles in DEM. They have their mass lumped into nodes and respond to plane-stress stretching (CST element) and bending (DKT element; optional, enabled by setting the `bending flag`

). These two elements are superposed. The element has constant thickness. Each node has 6 DoFs:

- two in-plane translations (gathered in
`woo.fem.Membrane.uXy`

for all nodes as a 6-vector), used by the CST element; - one out-of-plane translation – defines rigid motion of the whole element and causes no internal response;
- two in-plane rotations (gathered in
`woo.fem.Membrane.phiXy`

for all nodes as a 6-vector), used by the DKT element; - one out-of-plane rotation (drilling DoF), which is ignored.

Mass and intertia of nodes are computed and lumped into nodes (this only requires geometry and material density), but it must be requested by calling `woo.dem.DemData.setOriMassInertia`

on the node, once all its attached particles are in place. Details below.

## Element coordinate system¶

When the element is first used, its configuration defines the reference configuration which is stored in `woo.fem.Membrane.refPos`

and `woo.fem.Membrane.refRot`

.

The element coordinate system (held in `woo.fem.Membrane.node`

) is always such that

local origin coindices with centroid of the (deformed) triangle;

the local \(z\)-axis is normal to the plane defined by element nodes in their current positions;

local \(x\) and \(y\) axes are oriented in a way which minimizes displacements of nodes in the local plane relative to the

`reference positions`

, and tries to represent their mutual displacements as rigid body motion as much as possible.This point is trivially satisfied in the reference configuration (first time the element is used) when displacements are zero with arbitrary orientation of the local \(x\) and \(y\) axes. (The implementation currently chooses to rotate the \(x\)-axis so that it passes through the first node.)

Otherwise, we are looking for a best-fit rotation; the algorithm is described in [Fel99b] in Appendix C. Nodes positions are projected onto (not yet properly rotated) local \(xy\) plane, and best-fit angle is computed (from reference positions \(X_i\), \(Y_i\) and current local positions \(x_i\), \(y_1\)) as

\[\tan\theta_3=\frac{x_1 Y_1 + x_2 Y_2 + x_3 Y_3 - y_1 X1 - y_2 X_2 - y_3 X_3}{x_1 X_1 + x_2 X_2 + y_3 Y_3 + y_1 Y_1 + y_2 Y_2 + y_3 Y_3}\]where the numerator and denominator are computed separately in the implementation and \(\tan\phi_3\) is obtained vi via the atan2 function as to preserve quadrant information and handle zero denominator correctly. The \(\theta_3\) rotation is then added to the previous rotation of the \(xy\) plane, obtaining the best-fit coordinate system.

Once the local coordinate system is established, displacements are evaluated. Evaluating `woo.fem.Membrane.uXy`

is done as trivial subtraction of reference nodal positions from the current ones in the local system. Rotations `woo.fem.Membrane.phiXy`

are computed by rotation “subtraction” (conjugate product) using quaternions (`woo.fem.Membrane.refRot`

holds the rotation necessary to obtain each node orientation from global element orientation). See the source code for details.

## Constant Strain Triangle (CST) Element¶

The CST element is implemented following [Fel98], chapter 15. The strain-displacement matrix is computed as (15.17):

The elastic stiffness matrix for plane-stress conditions reads

where \(E\) is `Young modulus`

and \(\nu\) is the `Poisson ratio`

.

Since `membrane thickness`

\(h\) is constant over the element, we may write the stiffness matrix as ([Fel98], (15.21)):

This matrix is stored as `woo.fem.Membrane.KKcst`

.

`Displacements`

\(\vec{u}\) (6-vector) are computed by subtracting `reference positions`

from the current nodal positions in best-fit local coordinates. Nodal forces (6-vector) are

This is an example of a CST-only mesh, no bending (examples/membrane1.py):

### Stresses¶

Stresses don’t come up as such in the FEM, being hidden in eqs. (35) and (36):

Note that \(\vec{\sigma}^\mathrm{CST}\) are in local coordinates, that’s why they are then converted (by left-multiplication) to forces in global coordinates through \(Ah\mat{B}^T\).

In the implementation, the \(\mat{E}\mat{B}\) product is normally not stored in element, since it is not used in reaction computation. For that reason, it must be explicitly requested by setting `Membrane.enableStress`

before stiffness matrix is evaluated. When stiffness matrix is then built, the \(\mat{E}\mat{B}\) product will be stored in `Membrane.EBcst`

as side-effect. It can be then used to compute stresses either explicitly by multiplying `EBcst`

× `uXy`

, or using the shorthand `Membrane.stressCst`

.

Note

Stresses returned are in element-local coordinates and they are constant over the entire element; the order is \((\sigma_x,\sigma_y,\sigma_{xy})\); to transform to global coordinates, call `Membrane.stressCst(glob=True)`

(the result will be stress tensor represented as 3×3 matrix).

## Discrete Krichhoff Triangle (DKT) Element¶

The DKT (bending) element is implemented following [BBH80]. The bending elasticity matrix for constant thickness is computed as

where the thickness \(h\) may be `different thickness`

than the one used for the CST element (different thicknesses are mostly not useful). The strain-displacement transformation matrix for bending reads ([BBH80], (30))

where \(x_{ij}\equiv x_i-x_j\), \(y_{ij}\equiv y_i-y_j\) and \((\xi,\eta)\) are natural (≡barycentric) coordinates on the triangle. Refer to Appendix A of [BBH80] (or the source code of `woo.fem.Membrane`

) for formulation of \(\vec{H}_{x,\xi}\), \(\vec{H}_{x,\eta}\), \(\vec{H}_{y,\xi}\), \(\vec{H}_{y,\eta}\), which are rather convolved.

The stiffness matrix is integrated over the triangle as ([BBH80], (31))

and can be integrated numerically (see [Kan04], pg. 48) using the Gauss quadrature (Gauss points are mid-points of triangle sides, \(w\) is vector of point weights) over the unit triangle as

Generalized nodal forces are computed as

Since out-of-plane translations \(u_{zi}\) are always zero (they determine rigid body rotation of the element), we may condense those rows from \(\mat{K}_{\mathrm{DKT}}\) away, making it 9×6 rather than 9×9, and removing zero elements from the generalized displacement vector as well. Note that corresponding DoFs may nevertheless have non-zero forces \(F_{zi}\).

The examples/membrane2.py script shows the combined response of CST and DKT elements:

### Stresses¶

Warning

This is not functional yet in the code.

Moments can be computed as ([BBH80], (32))

Similar as with with CST, stress evaluation needs some extra data (namely, the \(\mat{D}_b\mat{B}(x,y)\) term) of which availability must be requested by the user through `Membrane.enableStress`

; `DBdkt`

will be stored when stiffness matrix is computed as side-effect; stress can be obtained by hand-multiplication with rotations (`phiXy`

) or using the shorthand function `Membrane.stressDkt`

.

## Total nodal forces¶

Total nodal forces are superimposed from both elements and also from contact forces on the particle and from a special load type on membranes, hydrostatic pressure. We note force and torque contributions as \(\Delta \vec{F}_i\), \(\Delta \vec{T}_i\) for \(i\)-th node, \(i\in\{1,2,3\}\).

### Hydrostatic pressure¶

Elements may be under `surface load`

which is always perpendicular to the element plane, thus representing hydrostatic pressure. Such pressure \(p\) is distributed into nodes as

where \(A^*\) is the current (not reference) element surface area.

### Contact forces¶

Contact forces defined by contact point \(\vec{c}\), force \(\vec{F}_c\) and torque \(\vec{T}_c\) are simply distributed onto all nodes, so that each node \(i\) (positioned at \(\vec{x}_i\)) receives for each contact the contribution

### CST + DKT¶

Generalized forces from elements are distributed to nodes as follows:

Note

The value of \(\vec{T}_{zi}\) (drilling torque) is always zero; therefore, drilling motion of nodes is unconstrained (though still governed by dynamics). This can lead to some problems in special cases, manifesting as wobbly rotation of nodes which does not go away.

This video demonstrates the `cylindrical triaxial test`

which includes CST+DKT elements with hydrostatic pressure and interaction with particles inside the membrane (displacements are scaled 10×):

## Lumped mass and inertia¶

Triangle mass and inertia are computed supposing the entire `thickness`

in the triangle plane. The “sleeve” rounding the edges is ignored for the purposes of computing mass and inertia.

Inertia computation is described at Wikipedia and summarized here. For triangle with vertices \(\vec{a}\), \(\vec{b}\), \(\vec{c}\), its double-area is computed as

Using covariance of unit triangle

and transformation matrix

we compute the covariance as

Inertia tensor (with respect to global origin and axes) is then evaluated as usually,

When lumping mass and inertia, only the part adjacent to each node is considered according to Voronoi tesselation; triangle is partitioned into 6 sub-triangles. With midpoints \(\vec{m}_{ab}=\frac{\vec{a}+\vec{b}}{2}\) etc., the part adjacent to \(\vec{a}\) are triangles \(\{\vec{a},\vec{m}_{ab},\vec{m}_{ac}\}\) and \(\{\vec{m}_{ab},\vec{C},\vec{m}_{ac}\}\), as shown on the image:

Tip

Ask questions or report issues at github.