I've built a PWM circuit using LM2902 opamps driving a 12V fan with irf8734pbf and stps1545d as a flyback diode. I ran the circuit for a few minutes with PWM advancing from 0% to roughly 40% duty cycle and both mosfet and the diode went up in temperature to about 40 deg celcius. Neither of them have any cooling at all. My clamp current meter measured 6A at the peak. Not having much experience in this I wonder if it's ok for the mosfet and diode to heat up like that or should they stay room temp?