Planet formation process as a phase transition. II - Isoentropic model and comparison with the solar system