I think if we want to use the option "ElectrodeConstraint.RealSpaceDensity", then I think the scattering region should have such a structure:
"one left electrode cell + left surface layers + molecule + right surface layers + one right electrode cell"
so that we can replace the charge density in the "one left electrode cell" and "one right electrode cell" in the scattering region by that of the bulk lead. Here if the left and right surface layers are thick enough, then "ElectrodeConstraint.RealSpaceDensity" and ""ElectrodeConstraint.Off" will give the same results, if not, then maybe big difference exists.
Is my understanding right? If my understanding is right and if the surface layers(here I mean, the total lenghth of "one left electrode cell + left surface layers" in the scattering region) are not as thick as one electrode cell, then I think we can not use the option "ElectrodeConstraint.RealSpaceDensity" at all. In this case, I think only "ElectrodeConstraint.Off" can be used. Am I right?