Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addctmaterialproperty

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Adds a new electrical material property to the selected material model or the selected binary alloy.  A material model (in the 'materials' folder) or a binary alloy electrical material property must be selected in the object tree for this script command to work. A binary alloy may not be created as a component of a binary alloy. To add an electrical material property from the electrothermal material database, see addmaterialproperties. For details of electrical material models, see Electrical/Thermal Material Models or the page specifically about Semiconductors.

 

Supported Product: DEVICE

 

Syntax

Description

addctmaterialproperty("property_type");

Adds a new electrical material property to the selected material model or the selected binary alloy.  

The "property_type" argument can be one of the following:

 

"Semiconductor"

"Insulator"

"Conductor"

"Binary Alloy"

 

This function does not return any data.

 

Example

The following script commands will add a new material to the objects tree in DEVICE, and assign electrical property of conductor to it.

 

addmodelmaterial;

addctmaterialproperty("Conductor");

 

NOTE:  Once a material property is assigned to the material model the selection changes to the corresponding property.  Therefore the material model must be re-selected before adding a new property to it.

 

NOTE:  For a newly created alloy, when the first base material is added to the alloy, the second base material will also be the same material as the first. For example, the following lines will create a new alloy and assign the solid material "A" as both base material 1 and base material 2 for the alloy:

 

addmodelmaterial;

set("name","test");

addctmaterialproperty("Binary Alloy");

set("name","alloy");

addctmaterialproperty("Semiconductor");

set("name","A");

 

See Also

addmodelmaterial, addmaterialpropertiesaddemmaterialpropertyaddhtmaterialproperty

Copyright Lumerical Inc. | Privacy | Site Map