When I Alt-click on the mosfet U1, the green graph is shown. Ctrl-click on the green formula shows an average dissipation of 279.46mW
The formula in red is changed, I wanted absolute values for the three parts that are summed. Ctrl-click on the red formula shows an average dissipation of 605.6mW
A rather large difference. Is there an error in LTspice, the mosfet model or is my assumption incorrect that I need to sum absolute values?
I've seen this negative dissipation issue before in other mosfets but i've added the model below just in case.
.SUBCKT irlz44n 1 2 3
**************************************
* Model Generated by MODPEX *
*Copyright(c) Symmetry Design Systems*
* All Rights Reserved *
* UNPUBLISHED LICENSED SOFTWARE *
* Contains Proprietary Information *
* Which is The Property of *
* SYMMETRY OR ITS LICENSORS *
*Commercial Use or Resale Restricted *
* by Symmetry License Agreement *
**************************************
* Model generated on Apr 24, 96
* Model format: SPICE3
* Symmetry POWER MOS Model (Version 1.0)
* External Node Designations
* Node 1 -> Drain
* Node 2 -> Gate
* Node 3 -> Source
M1 9 7 8 8 MM L=100u W=100u
* Default values used in MM:
* The voltage-dependent capacitances are
* not included. Other default values are:
* RS=0 RD=0 LD=0 CBD=0 CBS=0 CGBO=0
.MODEL MM NMOS LEVEL=1 IS=1e-32
+VTO=2.08819 LAMBDA=0.0038193 KP=67.9211
+CGSO=1.59143e-05 CGDO=3.04562e-08
RS 8 3 0.014066
D1 3 1 MD
.MODEL MD D IS=4.4574e-09 RS=0.007275 N=1.40246 BV=55
+IBV=0.00025 EG=1.14011 XTI=3.00078 TT=0
+CJO=8.92434e-10 VJ=4.94724 M=0.75496 FC=0.5
RDS 3 1 2.2e+06
RD 9 1 0.00179971
RG 2 7 2.4114
D2 4 5 MD1
* Default values used in MD1:
* RS=0 EG=1.11 XTI=3.0 TT=0
* BV=infinite IBV=1mA
.MODEL MD1 D IS=1e-32 N=50
+CJO=1.15401e-09 VJ=0.859156 M=0.642548 FC=1e-08
D3 0 5 MD2
* Default values used in MD2:
* EG=1.11 XTI=3.0 TT=0 CJO=0
* BV=infinite IBV=1mA
.MODEL MD2 D IS=1e-10 N=0.4 RS=3e-06
RL 5 10 1
FI2 7 9 VFI2 -1
VFI2 4 0 0
EV16 10 0 9 7 1
CAP 11 10 3.64838e-09
FI1 7 9 VFI1 -1
VFI1 11 6 0
RCAP 6 10 1
D4 0 6 MD3
* Default values used in MD3:
* EG=1.11 XTI=3.0 TT=0 CJO=0
* RS=0 BV=infinite IBV=1mA
.MODEL MD3 D IS=1e-10 N=0.4
.ENDS
UPDATE: I forgot the ground connection, and that explains the odd 360W spikes in the above circuit.