Estimation of the pressure with computer simulation