Modeling of the isobaric and isothermal glass transitions of polystyrene