The lin2DTruss2 class creates a linearized two-dimensional truss element with two-nodes. Each node has two degrees-of-freedom, and each degree-of-freedom represents a translation in the X-, and Y-directions. Figure provides a simple representation of this element in which the local coordinates are represented by r-axis, and (1) and (2) represent the start and end nodes of the element respectively. The element mass, damping and stiffness matrices, as well as internal force vector are computed in local-coordinates and then transformed into global coordinates. No numerical integration is employed for this element.
The lin2DTruss2 lumped mass matrix in global coordinates is:
\[ \textbf{M}^\textrm{e} = \rho \,\textrm{AL} \,\textbf{T}_\textrm{e}^\top \begin{bmatrix} \frac{1}{2} & 0 & 0 & 0 \\ 0 & \frac{1}{2} & 0 & 0 \\ 0 & 0 & \frac{1}{2} & 0 \\ 0 & 0 & 0 & \frac{1}{2} \end{bmatrix} \textbf{T}_\textrm{e} \,, \]
while the consistent mass matrix in global coordinates is:
\[ \textbf{M}^\textrm{e} = \rho \,\textrm{AL} \, \textbf{T}_\textrm{e}^\top \begin{bmatrix} \frac{1}{3} & 0 & \frac{1}{6} & 0 \\ 0 & \frac{1}{3} & 0 & \frac{1}{6} \\ \frac{1}{6} & 0 & \frac{1}{3} & 0 \\ 0 & \frac{1}{6} & 0 & \frac{1}{3} \end{bmatrix} \textbf{T}_\textrm{e} \,, \]
where the transformation matrix is \(\textbf{T}_\textrm{e} = \begin{bmatrix} \hat{\textbf{N}} & 0 \\ 0 & \hat{\textbf{N}} \end{bmatrix}\), and \(\hat{\textbf{N}} = [\hat{\textrm{n}}_1, \hat{\textrm{n}}_2]^\top\) is the unit matrix of local coordinate axes, and \(\hat{\textrm{n}}_\textrm{i}\) is the unit vector of the i-th local coordinate axis. Note that \(\hat{\textbf{N}} \in \mathbb{R}^{2 \times 2}\), and \(\hat{\textrm{n}}_\textrm{i} \in \mathbb{R}^2\).
The lin2DTruss2 stiffness matrix in in local coordinates is computed as
\[ \mathcal{K}^\textrm{e} = \frac{EA}{L} \begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} \,, \]
and the stiffness matrix in global coordinates is \(\textbf{K}^\textrm{e} = \textbf{T}_\textrm{e}^\top \mathcal{K}^\textrm{e} \,\textbf{T}_\textrm{e}\). However, the transformation matrix from local to global axes is \(\textbf{T}_\textrm{e} = \begin{bmatrix} \hat{\textrm{n}}_1^\top & 0 \\ 0 & \hat{\textrm{n}}_1^\top \end{bmatrix}\), where \(\hat{\textrm{n}}_1 \in \mathbb{R}^{2}\) is the unit vector along the truss. Note that \(\textbf{M}^\textrm{e}, \textbf{C}^\textrm{e} , \textbf{K}^\textrm{e} \in \mathbb{R}^{\textrm{N}_\textrm{dof}^\textrm{e} \times \textrm{N}_\textrm{dof}^\textrm{e}}\) with \(\textrm{N}_\textrm{dof}^\textrm{e} = 4\) in this case.
REFERENCE:
The python Pre-Analysis in the 01-Pre_Process/Method/Attach.py file provides with an interface to populate the Entities
dictionary. This file contains several functions to populate specific fields. For example, to create a lin2DTruss2, using json format, use:
addElement(tag, name='lin2DTruss2', conn, attributes):
Example
A LIN2DTRUSS2 element can be defined using the python interface as follows:
SVL.addElement(tag=1, name='lin2DTruss2', conn=[1,2], attributes={'area': 0.5, 'material': 1})
Application
Please refer to the C01-ST_Lin_2DAxial_Elastic_Truss2.py file located at 03-Validations/01-Debugging/ to see an example on how to define a lin2DTruss2 element.
On the contrary, the 01-Pre_Process/Method/Remove.py file provides with an interface to depopulate the Entities
dictionary. For example, to remove an already define Element, use:
The C++ Run-Analysis in the 02-Run_Process/04-Elements/03-Truss/lin2DTruss2.cpp file provides the class implementation. A lin2DTruss2 element is created using the built-in json parse-structure provided in the Driver.hpp. A lin2DTruss2 is defined inside the "Elements" json field indicating its "Tag" as follows,
{ "Elements": { "Tag": { "name" : "LIN2DTRUSS2", "conn" : [ ], "attributes": { "area": double, "material": int } } } }
Variable | Description |
---|---|
Tag | Unique element object identifier. |
conn | The element connectivity node array. |
area | Cross-sectional area of element. |
material | The uniaxial material identifier. |
A LIN2DTRUSS2 element between nodes 1 and 2, made of material 1, and area 0.5 is constructed as:
{ "Elements": { "1": { "name" : "LIN2DTRUSS2", "conn" : [1,2], "attributes": { "area": 0.5, "material": 1 } } } }