How do you keep a lid in place

Hi all,

I have a pipe with a lid at the end, set as a static pressure boundary.  Whenever I move the pipe (alter the model), the lid does not follow.

Is there a proper way to mate the lid with the part?

Thanks, DC

SolidworksFlow Simulation