Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addmaterialproperties

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

Adds a (material) property to the selected material model.  A material model (in the 'materials' folder) must be selected in the objects tree for this script command to work.

 

Supported Product: DEVICE

 

Syntax

Description

addmaterialproperties("material_type","material_name");

Adds a (material) property to the selected material model in the objects tree in DEVICE.  The property comes from one of the material databases in DEVICE.  

The "material_type" argument selects the type of material property to be added.  The options are "CT" for electrical property, "HT" for thermal property, and "EM" for optical property.  

The "material_name" argument defines the name of the material in the appropriate material database whose properties will be imported.

 

The function does not return any data.

addmaterialproperties("material_type");

The "material_type" argument selects the type of material property to be added.  The options are "CT" for electrical property, "HT" for thermal property, and "EM" for optical property.

 

The function returns a list of available material names as a string.

 

Example

The following script commands will add a new material to the objects tree in DEVICE, name it, and assign optical properties to it using a material model in the optical material database.  The script will then add electrical and thermal properties to the same material using an appropriate material model in the electrical/thermal material database.

 

addmodelmaterial;

set("name","silicon");

addmaterialproperties("EM","Si (Silicon) - Palik");  # importing from optical material database

select("materials::silicon");

addmaterialproperties("CT","Si (Silicon)");  # importing from electrical material database

select("materials::silicon");

addmaterialproperties("HT","Si (Silicon)");  # importing from thermal material database

 

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.

 

See Also

addmodelmaterial, addemmaterialpropertyaddctmaterialpropertyaddhtmaterialproperty

Copyright Lumerical Inc. | Privacy | Site Map