Creating a Second Dielectric Medium

Create a second dielectric medium by searching and navigating the documentation.

The second dielectric is defined using the AddDielectric (properties) method. With this method a temporary table is first created with all the (minimum) required settings for the dielectric. After the table is created, we define the conductivity.
1. Find Dielectric (object) in the integrated help, see Step 1.

To know which properties to set for any object, we use the static function GetDefaultProperties().

1. Create a dielectric with default properties using the following syntax:
my_diel2_properties = cf.Dielectric.GetDefaultProperties()
2. Use the inspect function to print the properties to screen.
inspect(my_diel2_properties)
The screen output is as follows:
Tip: Only modify the relevant properties and apply the modified table to the handle, myDiel2.
The inspect output shows that the property, ConductivityType is set to LossTangent.
3. Navigate to the .ConductivityType property in the integrated help.
Note: Use MediumDielectricConductivityEnum to set the .ConductivityType property.
myDiel2Properties.DielectricModelling.ConductivityType = cf.Enums.MediumDielectricConductivityTypeEnum.Conductivity
my_diel2_properties.DielectricModelling.Conductivity = "1e-2"
my_diel2 = myProject.Media:AddDielectric(my_diel2_properties)