Tutorial for XFDTD Written by Cynthia Furse Utah State University.

39
Tutorial for XFDTD Written by Cynthia Furse Utah State University

Transcript of Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Page 1: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Tutorial for XFDTD

Written by Cynthia Furse

Utah State University

Page 2: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

XFDTD

• 3D Finite Difference Time Domain code

• Written by Remcom, Inc.

• http://www.remcom.com

Page 3: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

To start XFDTD at USU

• Edit your .cshrc file. Add the path/opt/xfdtd

• Type “source .cshrc” to run this file (otherwise you would have to log out/in)

Page 4: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Other versions of XFDTD available:

• Version 5Add path /opt/xfdtd/version5

• Multiple user-defined sourcesAdd path /opt/xfdtd/quicksign

Page 5: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

This is what the XFDTD Window Looks Like

Page 6: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

To Create an FDTD Grid Space:

Page 7: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Define the FDTD Grid

Cell Size

Total Space (model plus surrounding air)

This means you will be defining the materials at the locations of the E field components

Page 8: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

View the Grid.

Page 9: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

This will show you the grid. So far it contains only air.

Orientation.You are viewing the xy-plane.Slice #Zoom FactorWhere in the plane...

Location of your cursor

Page 10: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

To change the plane you are viewing:

Page 11: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Edit the Menu of Electrical Material Parameters

Page 12: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Edit Electrical Properties of the Materials to be in your model

Material 0=airMaterial 1 = PEC (metal)Here Material 2 will be teflon.

r

Page 13: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Display the Edit Panel to Draw or Edit your Model

Page 14: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Here are Several Model Elements

Choose Material

Draw one planeor more simultaneously.

Types of Single-Cell Models

Wire Plate Cube

Page 15: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

The Library has Other Elements

Page 16: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Let’s Start with a Single-Cell “Wire” made of Material 2

Page 17: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Ex

Ey

EzEach Cell has Ex, Ey, Ez components

Electric Grid Lines Represent Each Ex,Ey,Ez Component…

(The Grid has also been Zoomed)This means the Ex component is “in” material 2 (but the Ey,Ez components are in material 0=air)

Ez is in Material 2

Ey is in Material 2

Page 18: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

See How a Cube of Material is Defined in this layer:

Ex

ExEyEy

Ez

Ez

Ez

Ez

Page 19: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

And in the Layer Above it

Ex

Ex

EyEy

No Ez’s

Page 20: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Draw the Teflon Box for Patch Antenna on Slice 25

Alternatively we could have used rectangular box in the library.

Hold Middle Mouse Button to Drag, Click Left Button to Build.

Page 21: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Add Another Layer

Slice 26

Page 22: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

And Another

Slice 27

Page 23: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

The Top is Slice 28

Page 24: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

But we want the top of the patch antenna to be metal, so choose the plate element

and change it to Material 1 (PEC)

Page 25: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Add a plate to the bottom, too.

Slice 24

(Checking the coordinates of the teflon box in layer 25 and repeating them on layer 24 helped draw this plate)

Page 26: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Look at this “sandwich” in the yz and xz planes

If the plates andboxes aren’t linedup correctly, fix them

Page 27: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

We want to add a feedpoint to the center. Use the cursor to find

where this is.

(24,28)

Page 28: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Look at the feed location

X=24

View-YZplane

Page 29: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Use Single Cell Wire (PEC) from Edit Panel

Page 30: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Use these wires to connect top to bottom plate, leaving one cell gap

for voltage feed source

3 single-cellwires in thez (vertical)direction

gap

Page 31: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Find the Location of the Feed Point Gap with the Cursor

(24,28,27)

Page 32: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Open Voltage Sources Panel

Page 33: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Choose a Source and “Add Feed to List”. You may have several

sources.

This is yourfeedpoint location

Page 34: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Close the Source Window, and Reopen It to see the source

location on your grid.

The source location will only show when the source window is open.

Page 35: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Define what you want FDTD to save after calculation

Other valuesof interest areavailable forsine wave sourceonly

These areavailable forpulsed FDTD

Page 36: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Save your geometry

Page 37: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Save FDTD Parameters

Page 38: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

Run FDTD

Page 39: Tutorial for XFDTD Written by Cynthia Furse Utah State University.

This is what is displayed