So here is the circuit alongside my sim attempt. I am not that familiar with Spice and need help with a few items, in particular how I add an accurate model to a basic MI MOSFET for the STW12N170K5 (N-channel), or a close equivalent. I think I have to add some code as a Spice directive from some source but don't know where to obtain that.

D1 and D3 should really be IN4001s but again, I can only find the IN4007. Also, do I need to add inductance and resistance values to C1 which is made up of 4 x 15mF 80V low ESR capacitors wired in parallel and with a measured value of 53mF. It may also be appropriate to add some resistance between the Drain and the capacitor as a specific resistor - I estimate a few m.
The FET Gate is then fed by the PWM unit at 50Hz to produce 1.7kV flyback pulses at the Drain to charge the capacitor. My aim is to look at the sim currents and voltages and somehow derive the energy transferred and efficiency.
I would appreciate any help.

D1 and D3 should really be IN4001s but again, I can only find the IN4007. Also, do I need to add inductance and resistance values to C1 which is made up of 4 x 15mF 80V low ESR capacitors wired in parallel and with a measured value of 53mF. It may also be appropriate to add some resistance between the Drain and the capacitor as a specific resistor - I estimate a few m.
The FET Gate is then fed by the PWM unit at 50Hz to produce 1.7kV flyback pulses at the Drain to charge the capacitor. My aim is to look at the sim currents and voltages and somehow derive the energy transferred and efficiency.
I would appreciate any help.







