An equation of state at high pressures with the thomas-fermi atom model