struct.force.nodal.local
Syntax
- l := struct.force.nodal.local(p)
- struct.force.nodal.local(p) := l
Note
This function does not automatically return scaled nodal forces when spacing is used in FLAC2D. see the 2D/3D Equivalence - Property Scaling (Spacing).
Get/set the generalized nodal forces (expressed in the element local coordinate system) acting on the element. Each generalized force consists of a force and moment that are ordered \(\{ f_x, f_y, f_z, m_x, m_y, m_z \}\). The nodal forces are returned as a list of 6x1 matrices, with the length of the list equal to the number of element nodes.
You may access a specific matrix in the list, or a specific element of a matrix, by using repeated indexing as follows.
; Second node force matrix local m = struct.force.nodal.local(pnt)(2) ; Fourth component of second node force matrix local m = struct.force.nodal.local(pnt)(2)(4)
This can also be done on assignment to only change a single matrix or a single component of a matrix.
; Update second node force matrix. Either 1x6 or 6x1 matrix will work. struct.force.nodal.local(pnt)(2) = matrix(6,1,1,2,3,4,5,6) ; Update fourth component of second node force matrix struct.force.nodal.local(pnt)(2)(4) = 5.0
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Sep 26, 2024 |