Are you talking about a top nozzle on a horizontal vessel, or a top nozzle on a vertical vessel ?
Do you want to include nozzle flexibility in your pipe model, or calculate local stresses in the nozzle / shell ? Or maybe both ?
If the vessel is horizontal, just follow the CAESAR II manual examples. If you have vertical vessel with a nozzle in a curved head such as elliptical, spherical, torispherical, talk to a vessels engineer for stresses. For modelling, probably assume it's rigid with thermal displacements.