Adds a port object to the ports group under the FDTD simulation region. A simulation region must be present in order to add a port. For more information about the port object see Ports . This topic addresses the addport command in FDTD - for information about the INTERCONNECT command, see addport (INTERCONNECT) .
Syntax |
Description |
---|---|
addport; |
Adds a port. This function does not return any data. |
Example The following script adds a FDTD simulation region and port, then sets the name of the port, and selects the port modes and source mode.
addfdtd; # add FDTD simulation region addport; # add port # set up port set("name","input_port"); seteigensolver("bent waveguide",true); seteigensolver("bend radius",10e-6); updateportmodes(1:2); # select the first 2 modes of the port # select the second mode of the port to be the source mode select("FDTD::ports"); # select the port group set("source port","input_port"); set("source mode","mode 2");
See Also
Ports , set , geteigensolver , seteigensolver , updateportmodes , clearportmodedata