WaveguideModeOptions

The waveguide mode properties.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Create a waveguide port

cuboid = project.Geometry:AddCuboid(cf.Point(-1,1,0), 1, 1, 1)
cuboid.Regions[1].Medium = project.Media:GetFreeSpace()

waveguidePort = project.Ports:AddWaveguidePort(cuboid.Faces[1])

    -- Add a waveguide source to the waveguide port

configuration = project.SolutionConfigurations[1]
source = configuration.Sources:AddWaveguideSource(waveguidePort)

    -- Specify the mode manually
    -- A properties table is used as the changes need to be
    -- made in one step
    
properties = source:GetProperties()
properties.SourceDefinitionType = cf.Enums.WaveguideSourceDefinitionTypeEnum.SpecifyModesManually
properties.ManuallySpecifiedModesProperties[1].WaveguideModeType = 
    cf.Enums.SParameterWaveguideModeTypeEnum.TE
properties.ManuallySpecifiedModesProperties[1].IndexM = 1
properties.ManuallySpecifiedModesProperties[1].IndexN = 1
properties.ManuallySpecifiedModesProperties[1].Magnitude = 1
properties.ManuallySpecifiedModesProperties[1].Phase = 0
source:SetProperties(properties)

Property List

IndexM
The waveguide mode M index. (Read/Write Expression)
IndexN
The waveguide mode N index. (Read/Write Expression)
Magnitude
The waveguide mode magnitude (V). (Read/Write Expression)
Phase
The waveguide mode phase (degrees). (Read/Write Expression)
Rotation
The waveguide mode rotation (degrees). (Read/Write Expression)
WaveguideModeType
The waveguide mode type. (Read/Write SParameterWaveguideModeTypeEnum)

Property Details

IndexM
The waveguide mode M index.
Type
Expression
Access
Read/Write
IndexN
The waveguide mode N index.
Type
Expression
Access
Read/Write
Magnitude
The waveguide mode magnitude (V).
Type
Expression
Access
Read/Write
Phase
The waveguide mode phase (degrees).
Type
Expression
Access
Read/Write
Rotation
The waveguide mode rotation (degrees).
Type
Expression
Access
Read/Write
WaveguideModeType
The waveguide mode type.
Type
SParameterWaveguideModeTypeEnum
Access
Read/Write