UnitCellLayer

A layer within a unit cell.

Example

application = cf.Application.GetInstance()
project = application:NewProject()

-- Add a dielectric

properties = cf.Dielectric.GetDefaultProperties()
properties.DielectricModelling.RelativePermittivity = "2.0"
dielectric = application.Project.Definitions.Media.Dielectric:AddDielectric(properties)

-- Add a strip hexagon

properties1 = cf.StripHexagonShape.GetDefaultProperties()
stripHexagonShape = application.Project.Definitions.PeriodicStructures.Shapes:AddStripHexagon(properties1)

shape1 = application.Project.Definitions.PeriodicStructures.Shapes[1]

-- Add a unit cell with multiple layers

properties = cf.UnitCell.GetDefaultProperties()
properties.Layers[1].Thickness = "0.01"
properties.Layers[1].Medium = dielectric
properties.Layers[1].Method = cf.Enums.UnitCellLayerMethodTypeEnum.Substrate
properties.Layers[2] = {}
properties.Layers[2].Method = cf.Enums.UnitCellLayerMethodTypeEnum.Aperture
properties.Layers[2].Shape = shape1
properties.Layers[2].FiniteThickness = true
properties.Layers[2].Thickness = "0.001"
properties.Layers[2].Rotation = "45"
properties.Layers[3] = {}
properties.Layers[3].Thickness = "0.02"
properties.Layers[3].Medium = dielectric
properties.Layers[3].Method = cf.Enums.UnitCellLayerMethodTypeEnum.Substrate
properties.ZValue = "0.05"
unitCell = application.Project.Definitions.PeriodicStructures.UnitCells:AddUnitCell(properties)

-- Create geometry for the multi-layer unit cell and use periodic boundary conditions

unitCell:BuildGeometry(true)

Inheritance

The UnitCellLayer object is derived from the CompositeValue object.

Usage locations

The UnitCellLayer object can be accessed from the following locations:

Property List

FiniteThickness
Set finite thickness for a unit cell layer. (Read/Write boolean)
Medium
The medium of a unit cell layer. (Read/Write Dielectric)
Method
The type of unit cell layer. (Read/Write UnitCellLayerMethodTypeEnum)
Rotation
Rotation for a shape on a unit cell layer. (Read/Write ParametricExpression)
Shape
The shape used for the unit cell layer. (Read/Write Shape)
Thickness
Thickness of the unit cell layer. (Read/Write ParametricExpression)

Property Details

FiniteThickness
Set finite thickness for a unit cell layer.
Type
boolean
Access
Read/Write
Medium
The medium of a unit cell layer.
Type
Dielectric
Access
Read/Write
Method
The type of unit cell layer.
Type
UnitCellLayerMethodTypeEnum
Access
Read/Write
Rotation
Rotation for a shape on a unit cell layer.
Type
ParametricExpression
Access
Read/Write
Shape
The shape used for the unit cell layer.
Type
Shape
Access
Read/Write
Thickness
Thickness of the unit cell layer.
Type
ParametricExpression
Access
Read/Write