Macroscopic Dynamics of a Trapped Bose-Einstein Condensate in the Presence of 1D and 2D Optical Lattices | Synapse