Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Material database

addmaterial

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

Adds a new material to the material database given the material model or type and returns the name of the new material. For details on available material models see: Material permittivity models and Material conductivity models.

 

Supported Product: FDTD, MODE

 

Syntax

Description

?addmaterial;

Lists all available material models that can be added into the material database.

out = addmaterial("materialtype");

Adds a new material and returns the name of the new material. The argument "materialtype" has to match correct string exactly.

 

Example

These commands add a new Conductive material, set the name to "aluminum", anisotropy to "Diagonal", and set the permittivity as well as conductivity properties for the material.

A=[4;5;6];

B=[1;2;3];

mymaterial = addmaterial("Conductive");

setmaterial(mymaterial,"name","Aluminum");

setmaterial("Aluminum", "Anisotropy", 1); # enable diagonal anisotropy

setmaterial("Aluminum","Permittivity", A);

setmaterial("Aluminum","Conductivity", B);

 

See Also

Material database, deletematerial, copymaterial, setmaterial, getmaterial

Copyright Lumerical Inc. | Privacy | Site Map