Modeling of frame structures undergoing large deformations and large rotations