boundary conditions in strength calculation

I have a gas pipeline with internal pressure 0.03 MPa. How to set a boundary condition at the ends of the pipe? 937z95ShQy0.jpg

SolidworksSimulation