A thermodynamical model for a superconductor of II type at high Tc