Hello
I think you should to learn how to form a stiffness matrix in local points of structures and of course then exchange it to global coordinates.
To forming local stiffness matrix you should characterize DOF in every local point. for this i will attach you a file that shows you DOF in...