ParametricComplexExpression

A complex expression is a Lua string that defines a complex expression.

Example

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

    -- Create an anisotropic 3D medium using a complex tensor definition

properties = cf.AnisotropicDielectric.GetDefaultProperties()
properties.TensorDescription = cf.Enums.TensorDescriptionMethodEnum.ComplexTensor

    -- Set the Permittivity matrix using complex expressions

properties.ComplexTensor.Permittivity[1][1] = "14.5 + j*0.0"
properties.ComplexTensor.Permittivity[1][2] = "0.0 + j*0.0"
properties.ComplexTensor.Permittivity[1][3] = "0.0 + j*0.0"
properties.ComplexTensor.Permittivity[2][1] = "0.0 + j*0.0"
properties.ComplexTensor.Permittivity[2][2] = "14.5 + j*0.0"
properties.ComplexTensor.Permittivity[2][3] = "0.0 + j*0.0"
properties.ComplexTensor.Permittivity[3][1] = "0.0 + j*0.0"
properties.ComplexTensor.Permittivity[3][2] = "0.0 + j*0.0"
properties.ComplexTensor.Permittivity[3][3] = "14.5 + j*0.0"

    -- Set the Permeability matrix using complex expressions

properties.ComplexTensor.Permeability[1][1] = "0.998 + j*0.0"
properties.ComplexTensor.Permeability[1][2] = "0.0 - j*0.008"
properties.ComplexTensor.Permeability[1][3] = "0.0 + j*0.0"
properties.ComplexTensor.Permeability[2][1] = "0.0 + j*0.008"
properties.ComplexTensor.Permeability[2][2] = "0.998 + j*0.0"
properties.ComplexTensor.Permeability[2][3] = "0.0 + j*0.0"
properties.ComplexTensor.Permeability[3][1] = "0.0 + j*0.0"
properties.ComplexTensor.Permeability[3][2] = "0.0 + j*0.0"
properties.ComplexTensor.Permeability[3][3] = "1.0 + j*0.0"
anisotropicDielectric = project.Definitions.Media.AnisotropicDielectric:AddAnisotropicDielectric(properties)

    -- Change the colour to Cyan

anisotropicDielectric.Colour = "#00FFFF"

Inheritance

The ParametricComplexExpression object is derived from the CompositeValue object.

Usage locations

The ParametricComplexExpression object can be accessed from the following locations: