extract_ed¶
ed = extract_ed(edof, a)
- Description:
The
extract_edfunction extracts element displacements or corresponding quantities \(\mathbf{a}^e\) from the global solution vector \(\mathbf{a}\), stored ina.Input variables are the element topology matrix
edof, defined inassem, and the global solution vectora.The output variable
ed\(= (\mathbf{a}^e)^T\)contains the element displacement vector.
If
Edofcontains more than one element,Edwill be a matrixEd\(= \begin{bmatrix} (\mathbf{a}^e)_1^T \\ (\mathbf{a}^e)_2^T \\ \vdots \\ (\mathbf{a}^e)_{nel}^T \end{bmatrix}\)where row \(i\) gives the element displacements for the element defined in row \(i\) of
Edof, and \(nel\) is the total number of considered elements.- Example:
For the two-dimensional beam element, the
extract_edfunction will extract six nodal displacements for each element given inEdof, and create a matrixEdof size \((nel × 6)\).Ed\(= \begin{bmatrix} u_1 & u_2 & u_3 & u_4 & u_5 & u_6 \\ u_1 & u_2 & u_3 & u_4 & u_5 & u_6 \\ \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ u_1 & u_2 & u_3 & u_4 & u_5 & u_6 \end{bmatrix}\)