Text this: Selection of optimum device parameters for permanent magnetic field generation