Molecular Dynamics Simulation of Open Systems far from Equilibrium