Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

adddgtdmesh

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

Adds a mesh constraint (override region) to the 'DGTD' simulation environment in DEVICE.  A DGTD solver region must be present in the objects tree for this command to work.

 

Supported Product: DEVICE

 

Syntax

Description

adddgtdmesh;

Adds a mesh constraint to the 'DGTD' simulation environment.

 

This function does not return any data.

 

Example 1

The following script commands will add a mesh constraint to the DGTD solver already present in the objects tree and print the name of all of its properties.

 

adddgtdmesh;

?set;

 

Example 2

The following script commands will add a mesh constraint to the DGTD solver region in DEVICE, name it, assign it to a specific surface between two domains, and set the maximum edge length for any element on the surface.

 

adddgtdsolver;  # this command should be used if there is no DGTD solver present in the objects tree

 

adddgtdmesh;

set("name","mesh_surface");

 

# set geometry

set("geometry type","surface");

set("surface type","domain:domain");

set("domain 1",2);

set("domain 2",3);

 

# restrict maximum edge length for elements

set("max edge length",0.05e-6);

 

See Also

adddgtdsolver

Copyright Lumerical Inc. | Privacy | Site Map