# [HFSS] MagE and CmplxE

1. ## [HFSS] MagE and CmplxE

Hello,
just to be sure, could someone comment on the difference between magE and cmplxE in HFSS.
Thank you very much.
Best regards
-e

•

2. ## Re: [HFSS] MagE and CmplxE

E(x,y,z,t) = Epeak(x,y,z) * cos[wt + phi(x,y,z)]
I guess HFSS is using Epeak(x,y,z) in case of magE. Using animation the cos-term is multiplied.
Does anybody know the difference to cmplxE. In the latter case, animation is not possible, result does not depend on time.

3. ## Re: [HFSS] MagE and CmplxE

MagE is a complex number. "Mag" here indicates the vectorial magnitude, ie. sqrt(reEx+reEy+reEz)+i*sqrt(imEx+imEy+imEz)
ComplexMag is a real number, and it is the absolute value of MagE.

MagE is a complex number so it can be animated wrt time.
ComplexMag is a real number, it cannot be animated wrt time.

..i think

4. ## Re: [HFSS] MagE and CmplxE

Thank you.
Ansys answered: magE=magnitude of complex number, cmplxMagE=averaged over all phases

•

5. ## Re: [HFSS] MagE and CmplxE

Originally Posted by elektr0
Thank you.
Ansys answered: magE=magnitude of complex number, cmplxMagE=averaged over all phases
This answer is not clear. It is better to look at their definitions:
Mag_E is defined as Mag(AtPhase(Smooth<Ex, Ey, Ez>, Phase))
ComplexMag_E is defined as Mag(CmplxMag(Smooth<Ex, Ey, Ez>)) or Mag(Smooth<Ex, Ey, Ez>) in new HFSS versions

Both two parameters correspond to Etot due to the Mag() operation.

The difference between Mag_E and ComplexMag_E can be simply described by the equation: Mag_E = ComplexMag_E * cos(Phase)

6. ## Re: [HFSS] MagE and CmplxE

Mag_E = ComplexMag_E * cos(Phase)[/QUOTE]

Hi, but then the CmplxMag result should be identical to at least one MagE result, but this is not the case ?!
-e

7. ## Re: [HFSS] MagE and CmplxE

Originally Posted by elektr0
Hi, but then the CmplxMag result should be identical to at least one MagE result, but this is not the case ?!
-e
Phase varies with time and location

8. ## Re: [HFSS] MagE and CmplxE

Originally Posted by volker@muehlhaus
Phase varies with time and location
True, so Volker you agree with streamlet.
Fine for me, thank you all very much!
Even if it the answer from support was different...
-e

•

9. ## Re: [HFSS] MagE and CmplxE

Hi, but then the CmplxMag result should be identical to at least one MagE result, but this is not the case ?!
-e[/QUOTE]

It is. Taking a rectangular cavity resonator working at TE101 mode and excited by 1-V/m E-field with 0-deg initial phase for instance, you will see the Mag_E@0 deg is the same as ComplexMag_E, and Mag_H@90 deg is the same as ComplexMag_H.

--[[ ]]--