automating setting of the equation of state