Beam theory can be used to analyze simple beam structures, though more complex beams require more complex modeling. Finite element analysis using beam elements allows for the modeling of two-dimensional and three-dimensional frame structures. Beam elements assume displacement varies linearly along their length and use shape functions to determine forces and moments from applied loads. Three-dimensional beam elements also account for torsional behavior.