Defining a Dielectric Using the Properties Method

Define the second dielectric with ${\epsilon }_{\text{r}}$ = 2.5, $\sigma$ = 1e-2 and with label Substrate2.

myProp = cf.Dielectric.GetDefaultProperties()
myProp.MassDensity = "4"
myProp.Label = "Substrate2"
myProp.DielectricModelling.RelativePermittivity = "2.5"
myProp.DielectricModelling.ConductivityType = cf.Enums.MediumDielectricConductivityTypeEnum.Conductivity
myProp.DielectricModelling.Conductivity = "1e-2"
myDiel2:SetProperties(myProp)
1. Create the second dielectric using the properties method:
AddDielectric (properties table)
2. Since we want to know the properties for a Dielectric, search for Dielectric (object) in the Help1.
3. In the Help, under Dielectric > Static Function List, note the following:
GetDefaultProperties ()
4. Use GetDefaultProperties() to obtain the default properties of a dielectric:
myProperties = cf.Dielectric.GetDefaultProperties()
5. Specify the properties of the dielectric:
1. In the Help, under Dielectric > Property List, note the properties of interest:
• Label
• DielectricModelling
Set the Label property, for DielectricModelling we need to navigate deeper:
myProperties.Label = "Substrate2"
2. In the Help, click on the link in Dielectric > Static Function List > (Read/Write DielectricModelling) to navigate to the dielectric modelling properties.
3. In the Help, under DielectricModelling > Property List, note the properties of interest:
• RelativePermittivity
• Conductivity and ConductivityType
Set the RelativePermittivity property, for Conductivity we need to navigate deeper:
myProperties.DielectricModelling.RelativePermittivity = "2.5"
4. In the Help, click on the link in DielectricModelling > Property List > ConductivityType > MediumDielectricConductivityTypeEnum.
5. Specify that conductivity will be used as well as the value for the conductivity:
myProperties.DielectricModelling.ConductivityType = cf.Enums.MediumDielectricConductivityTypeEnum.Conductivity
myProperties.DielectricModelling.Conductivity = "1e-2"
6. Update myDielec1 with its new properties using SetProperties ():
myDielec2:SetProperties(properties)
1 The API is available in the Feko Scripting and API Reference Guide (PDF) or Feko WebHelp.