MATHEMATICAL MODELS AND ALGORITHMS FOR TYPE-II SUPERCONDUCTORS