Dynamics of a cold atom cloud in an anharmonic trap