cst huygens box tutorial - emclab · 2019. 12. 16. · cst huygens box tutorial ling zhang...

18
CST Huygens Box Tutorial Ling Zhang ([email protected]) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Upload: others

Post on 03-Aug-2021

27 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

CST Huygens Box TutorialLing Zhang ([email protected])

Missouri University of Science and Technology, Rolla, MO

Last update: 12/16/2019

Page 2: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Objective

• A simple tutorial of how to use Huygens-box source in CST, including:oHow to create a near field source and export the source file

oHow to edit the source file and import it into CST model

Page 3: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

FSM File (from CST Help)

However, FSM file cannot be edited. Instead, it can only be exported from and imported into CST models.

Page 4: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

NFS File (from CST Help)

• FSM file can be converted to NFS file (including xml and dat file), and NFS file can be then edited.

Page 5: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Convert FSM File to NFS File (from CST Help)

Convert FSM to NFS file through VBA command

Page 6: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

An Example of Using Huygens Box in CST

Page 7: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Field Source Monitor

Create a new field monitor

Choose Field source

Define frequency of interest

A subvolume box can be defined. Then the source file will include the field on the outer surface of the box

Page 8: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

FSM FileAfter simulation is done, there will be a FSM file in the ‘Result’ folder

The FSM file can be directly imported into CST through ‘Field Sources’:

Select the FSM file

Page 9: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Convert FSM to NFS File

Open VBA Macro Editor to convert FSM to NFS file

With Monitor.Reset

.Export ("nfs" ,"" ,"c:\dummy\my_monitor_file.fsm", True)

End With

Input VBA commands and run

The address of the FSM file

Page 10: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

NFS FileThere will be a folder in the same folder with the FSM file

DAT file

XML file

Page 11: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

DAT File Contains coordination and field information. Can be edited

x y z Real part of field

Imaginary part of field

Page 12: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

XML File

Coordination information. Must match with the corresponding DAT file

Frequency

Point to the right DAT file that contains the coordination and field information

XML file can be edited

Page 13: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Import XML File

The XML files can be imported as field source

Field distribution can also be viewed

The XML and DAT file can be edited. Therefore, measured field can also be imported into CST through this way.

Page 14: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

An Example of Using Huygens Box in CST with multiple frequency points

Page 15: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

XML File – Multiple Frequency Points

Define multiple frequencies

Page 16: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

DAT File – Multiple Frequencies

x, y, z location Real and imaginary part of field at different frequencies

Page 17: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Remember to flip the phase on xmin and ymin side

Page 18: CST Huygens Box Tutorial - EMCLAB · 2019. 12. 16. · CST Huygens Box Tutorial Ling Zhang (lzd76@mst.edu) Missouri University of Science and Technology, Rolla, MO Last update: 12/16/2019

Flip Phase on xmin and ymin

Original Ez phase on Huygens box Ez phase on multiple planes

From CST help file:When describing a box using multiple planes, be aware that the plane normal vector is always assumed to point to the positive coordinate axis direction on all box planes. Change the phase of the data on the lower box planes to account for the change of the normal orientation.

When importing source into CST using multiple planes, we can find that the phase on xmin and ymin plane is flipped, compared with the original phase distribution on Huygens box.

The reason is:

So remember to flip the phase on xmin and ymin side when dealing with DAT files!!!