Macromolecules in nonhomogeneous flow fields: A general study for dumbbell model macromolecules