Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addmodelmaterial

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

Adds an empty material model to the 'materials' folder in the objects tree.  Different properties (electrical, thermal, or optical) can then be assigned to the material.  Once created the material can be assigned to any geometry and be used in simulations using the CHARGE, HEAT, or DGTD solvers.

 

Supported Product: DEVICE

 

Syntax

Description

addmodelmaterial;

Adds a new material to the 'materials' folder in the objects tree in DEVICE.

 

This function does not return any data.

 

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");

select("materials::silicon");

addmaterialproperties("CT","Si (Silicon)");

select("materials::silicon");

addmaterialproperties("HT","Si (Silicon)");

 

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

addmaterialproperties

Copyright Lumerical Inc. | Privacy | Site Map