Local equilibrium in stationary states by molecular dynamics