Hydrodynamics of Nematic Liquid Crystals for Diffractive Optical Elements