A thermodynamically guided atomistic MonteCarlo methodology is presented for simulating systems beyond equilibrium by expanding the statistical ensemble to include a tensorial variable accounting for the overall structure of the system subjected to flow. For a given shear rate, the corresponding tensorial conjugate field is determined iteratively through independent nonequilibrium molecular dynamics simulations. Test simulations for the effect of flow on the conformation of a C50H102 polyethylene liquid show that the two methods (expanded MonteCarlo and nonequilibrium molecular dynamics) provide identical results.