Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

CST E-Field Export - Calculate Magnitude of complex field export

hfield

Newbie
Joined
Apr 6, 2020
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
26
Hello,

after simulation I can export the electric field values in CST Microwave Studio Suite.
The e-field is exported in complex form, to be specific in the folowing form:

x | y | z | ExRe | ExIm | EyRe | EyIm | EzRe | EzIm

As you can see, for every spatial point in 3D volume (x,y,z) the e-field yields a real and imaginary part for every coordinate point respectively.
Now I would like to calculate the magnitude of the e-field, how would I do that?
I tried:

ex = sqrt( ExRe² + ExIm² )
ey = sqrt( EyRe² + EyIm² )
ez = sqrt( EzRe² + EzIm² )
Emag = sqrt( ex² + ey² + ez² )

But when I place an e-field probe in CST and check its recorded e-field magnitude at the same position, it shows slightly different results compared to my calculation above.
Where is my mistake?

Im happy about every hint.
Thank you very much.

-hfield
 

stenzer

Full Member level 6
Joined
Oct 1, 2012
Messages
385
Helped
71
Reputation
142
Reaction score
74
Trophy points
1,308
Activity points
4,365
Hi,

how large is the difference? Your "slightly" deviation might be caused by a precision difference of CST and your "calculation" program e.g. MATLAB uses 16 Bit precision by default. Maybe the fractional digits of your exported data is limited/croped. Are you able to extract the individual directional field components by the use of a E-field probe? If so use this values to exclude the data export function.

BR
 

Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top