@doct9960
With regards to calculating rotation of flange, the rigidity factor formula in ASME VIII Table 2-14 can be modified to do just this. By simply removing the K factor the result will be rotation in degrees.
So in essence, ASME VIII rigidity limits rotation on integral flanges to 0.3...