ZeroMedium

A non-physical medium that can be used with 3D anisotropic media. It represents no coupling to the particular tensor component.

Example

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

    -- Get a reference to the zero medium for use in a 3D anisotropic medium 

zeroMedium = project.Media:GetZero()

    -- Create a full tensor defined anisotropic 3D medium with zeros on the off diagonal

dielUU = project.Media:AddDielectric()
dielUU.Label = "dielUU"
dielVV = project.Media:AddDielectric()
dielVV.Label = "dielVV"
dielNN = project.Media:AddDielectric()
dielNN.Label = "dielNN"

properties = cf.AnisotropicDielectric.GetDefaultProperties()
properties.FullTensor.RowU.ColumnU = dielUU
properties.FullTensor.RowV.ColumnU = zeroMedium
properties.FullTensor.RowN.ColumnU = zeroMedium
properties.FullTensor.RowU.ColumnV = zeroMedium
properties.FullTensor.RowV.ColumnV = dielVV
properties.FullTensor.RowN.ColumnV = zeroMedium
properties.FullTensor.RowU.ColumnN = zeroMedium
properties.FullTensor.RowV.ColumnN = zeroMedium
properties.FullTensor.RowN.ColumnN = dielNN
properties.TensorDescription = cf.Enums.TensorDescriptionMethodEnum.FullTensor
anisotropicDielectric = project.Media:AddAnisotropicDielectric(properties)

Inheritance

The ZeroMedium object is derived from the Medium object.

Property List

Colour
The medium colour. (Read/Write Colour)
Label
The object label. (Read/Write string)
Suspect
Indicates whether the medium is suspect. (Read only boolean)
Type
The object type string. (Read only string)

Method List

AddToLibrary ()
Add the medium to the media library.
Delete ()
Delete the medium.
SetNotSuspect ()
Reset the suspect setting on the medium.

Property Details

Colour
The medium colour.
Type
Colour
Access
Read/Write
Label
The object label.
Type
string
Access
Read/Write
Suspect
Indicates whether the medium is suspect.
Type
boolean
Access
Read only
Type
The object type string.
Type
string
Access
Read only

Method Details

AddToLibrary ()
Add the medium to the media library.
Delete ()
Delete the medium.
SetNotSuspect ()
Reset the suspect setting on the medium.