Stability of viscous shock for the Navier-Stokes-Fourier system: outflow and impermeable wall problems | Synapse