Small strainers are typically castings, so these could be modeled as a rigid element.
For larger strainers, you could model to the basket using the appropriate "flange-pipe" pair on both sides. However, you can't model the actual basket, so you should span this gap with a rigid. Note, CAESAR II will not provide accurate stresses on the the strainer. If this is what you're worried about, you will need to perform a local analysis based on the pipe loads that CAESAR II computes.
_________________________
Regards,
Richard Ay - Consultant