I believe the answer is: displacement
displacement refers to the distribution of one pressure to another as a form of coping mechanism.
In the case above, professor gomez's students have to suffer because they turn into an emotional punching bag for professor gomez in order to cope from the pain of his divorce.