waterwave function for modelenig shallow water equations