The torsion angle for atoms C1-C2-C3-C4 is the angle between the plane containing atoms C1-C2-C3 and the plane containing atoms C2-C3-C4. Visualize these planes along with the ball-and-stick model of butane:
In[3]:=
ShowMoleculePlot3D[butane],Graphics3D
,planeFrom3Atoms[butane,{1,2,3}],
...
,planeFrom3Atoms[butane,{2,3,4}],
Out[3]=
The Wolfram Language uses an MMFF94 force field implementation to minimize the energy for all automatically generated coordinates. Use