When using the direct plot option to trace out the PAE (= Pout - Pin / Pdc) after a pss analysis, if the PAE is added to the outputs the formula which gets added to Output window reads as follows :
((100.0 * harmonic ((spectralPower(i("/PORT1/PLUS" ?result "pss_fd") v("/P_out" ?result "pss_fd")) + spectralPower(i("/PORT0/PLUS" ?result "pss_fd") v("/P_in" ?result "pss_fd"))) '(120))) / -harmonic ((spectralPower(i("/V1/PLUS" ?result "pss_fd") v("/Vdc" ?result "pss_fd"))) '(0)))
Here, PORT1 is my output port and Port0 is my input port. P_out and P_in are the output and input nets respectively. 120 refers to the index of the harmonic of interest in my analysis.
Intuitively, I do not understand the following :
There is a worked example of this in Article 1837740
In this example (and I recommend looking at this Article if you haven't already to see the assumptions that were made and the circuit that was being simulated), it explains...
The spectralPower function assumes that the power is going into the selected terminal. For both the input port and the power source the power is actually coming out of the sources, resulting in a negative power value. Hence the addition of the extra negative signs to account for this, or
Thanks a tonne for the very quick and helpful reply !