See the classic paper Piping-Flexibility Analysis by A. C. Markl, published in the Transactions of the ASME, February 1955.

You can find this paper reprinted in a number of references, such as Piping Engineering, published by Tube Turns (1986).
_________________________
Regards,
Richard Ay - Consultant