Yes you can think it like that, but not exactly. Work function is defined for a single material itself. Here I want to plot graph between Vaccum potential VS distance between the contact formed by any two materials, e.g metal-semiconductor contact. Basically it will give idea about the band diagram formed between the contacts caused by Fermi level alignment.
Any idea??Cause I have seen this in a Journal paper bt din't understand how to calculate it.