One and two dimensional numerical codes for linear induction machines