you can represent the cap as a rigid element with cap length and with the weight of the cap or as a pipe element with cap length (not very much difference).
Blind flange is modeled as rigid element with blind flange length and with the weight of the blind flange.
Regards,
_________________________
Dan