I want to make a sinusoidal plot (any shape is welcome) on a $[0,1] \times [0,1]$ grid, with boundary conditions equal to zero.
It should resemble a membrane fixed along its edge. I tried out some sinusoidal functions, also a paraboloid; but it struck me that I couldn't get the boundaries fixed. Does anyone know a function? That is, a continuous and smooth function; else, I could just fix the boundaries at zero, regardless of the rest? Cheers;
Here are some examples of basic attempts which do not fulfill the requirement of the boundary conditions.




You can try $(1-\cos(2\pi x))(1-\cos(2\pi y))$