2. HOW is the "shape" given? Do you know a formula in Cartesian coordinates? No one can tell you how to find $\phi$ without knowing what you are given! Also, there is no single " $\phi$" for a surface. There is a $\phi$ for each point on the surface.