Method for calculating model parameters for at least one coil to be modelled, the method comprising the following steps of: - incorporating the at least one coil to be modelled into a DC to DC converter with at least a first switching element; which converter has input terminals and output terminals; - connecting a resistive load between the output terminals of the DC to DC converter; - applying an input voltage at the input terminals of the converter; - controlling the first switching element in accordance with a frequency and duty cycle to obtain a voltage varying periodically in time across a coil of the at least one coil to be modelled, which voltage depends for at least a part of a period on the input voltage; - measuring at least a first quantity representative of the voltage across the coil at successive points in time in at least said part of a period; - measuring at least a second quantity representative of the current through the coil at successive points in time in at least said part of a period; - determining at least one voltage value for the voltage across the coil on the basis of the measured first quantity; - determining at least one current value for the current through the coil on the basis of the measured second quantity; - calculating a loss resistance and/or a loss power of the coil on the basis of the at least one voltage value and the at least one current value; - determining on the basis of the measured second quantity at least one first and second current value for the current through the coil at respectively a first and second point in time of the successive points in time in said part of the period; - calculating an inductance of the coil on the basis of the voltage value, the loss resistance or the loss power and at least the first and second current values. - repeating the above stated steps for a different input voltage and/or for a different frequency and/or for a different duty cycle and/or for a different resistive load. - incorporating the at least one coil to be modelled into a DC to DC converter with at least a first switching element; which converter has input terminals and output terminals; - connecting a resistive load between the output terminals of the DC to DC converter; - applying an input voltage at the input terminals of the converter; - controlling the first switching element in accordance with a frequency and duty cycle to obtain a voltage varying periodically in time across a coil of the at least one coil to be modelled, which voltage depends for at least a part of a period on the input voltage; - measuring at least a first quantity representative of the voltage across the coil at successive points in time in at least said part of a period; - measuring at least a second quantity representative of the current through the coil at successive points in time in at least said part of a period; - determining at least one voltage value for the voltage across the coil on the basis of the measured first quantity; - determining at least one current value for the current through the coil on the basis of the measured second quantity; - calculating a loss resistance and/or a loss power of the coil on the basis of the at least one voltage value and the at least one current value; - determining on the basis of the measured second quantity at least one first and second current value for the current through the coil at respectively a first and second point in time of the successive points in time in said part of the period; - calculating an inductance of the coil on the basis of the voltage value, the loss resistance or the loss power and at least the first and second current values. - repeating the above stated steps for a different input voltage and/or for a different frequency and/or for a different duty cycle and/or for a different resistive load.