Read about START-PROF pipe stress analysis software

If we need to consider the weight of expansion joint we should add two nodes at L/2 distance from expansion joint node. Add rigid elements between these nodes. And enter the weight of rigid elements equal to the weight of expansion joint divided by it's length.