ComplexTensor
The rows of the tensor defined using complex expressions.
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 -- Permittivity 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" -- Permeability 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 ComplexTensor object is derived from the CompositeValue object.
Usage locations
The ComplexTensor object can be accessed from the following locations:
- Properties
- AnisotropicDielectric object has property ComplexTensor.
- Methods
- ComplexTensorList object has method Append().
- ComplexTensorList object has method Get(number).
Property List
- Permeability
- Defines the complex expressions of the permeability tensor definition. (Read/Write ParametricComplexExpressionTable)
- Permittivity
- Defines the complex expressions of the permittivity tensor definition. (Read/Write ParametricComplexExpressionTable)
Property Details
- Permeability
- Defines the complex expressions of the permeability tensor definition.
- Type
- ParametricComplexExpressionTable
- Access
- Read/Write
- Permittivity
- Defines the complex expressions of the permittivity tensor definition.
- Type
- ParametricComplexExpressionTable
- Access
- Read/Write