A method for producing a winding assembly for an electro-mechanical device, wherein the winding assembly comprises a circuit board with conductor tracks, wherein the winding assembly preferably comprises a substantial number of optimizable design parameters, the method comprising: optimizing, in a computerized optimization tool, the design of the winding assembly; manufacturing the circuit board with the winding conductor tracks according to the optimized design of the winding assembly; forming the winding assembly of the electro-mechanical device with the manufactured circuit board. The design of the winding assembly is optimized depending on at least one of eddy current losses, hysteresis losses, aerodynamical losses and mechanical losses.