Be warned though, this kind of intense visualization of bad consequences (or positive rewards) can also back-fire: if you start associating thoughts about your work with potential negative consequences it could drive you to shut down / try to distract yourself harder, and if you start daydreaming about positive consequences it could satisfy your reward circuitry and reduce your motivation.
In other words, you have to know yourself and your own triggers and defense mechanisms: what works for one person might be the worst possible thing for another.
Yep.. I find that an addiction analogy is useful. If you told a heroin addict to visualize how crappy their future will be if they keep using, how effective do you think that would be? It's not a rational process. Reminding one of how awful a person they are might simply trigger a stronger urge to fix.
Being mindful of future happiness definitely keeps me on track. But I think the core problem is that one's "body" has learned strategies for temporarily ameliorating stresses that are nearly impossible to talk down. One must simply deny the body the fix in the hopes it will reduce its chemical urge.
In other words, you have to know yourself and your own triggers and defense mechanisms: what works for one person might be the worst possible thing for another.