Construction of confinement

Hello,
How to build a spherical confinement around a polymer chain?

Thanks,
Deepa