Adds a mesh constraint (override region) to the 'CHARGE' simulation. A CHARGE solver region must be present in the objects tree for this command to work.
| Syntax | Description |
|---|---|
| addchargemesh; |
Adds a mesh constraint to the 'CHARGE' simulation environment. This function does not return any data. |
| addchargemesh(struct_data); |
Adds a mesh constraint and set its property using a struct containing "property" and value pairs. See the struct script command page for an example. This function does not return any data. |
Example
The following script commands will add a mesh constraint to the CHARGE solver region in Lumerical Multiphysics, name it, set its dimension, and set the maximum edge length for any element within the volume.
addchargesolver;
addchargemesh;
set("name","mesh_SCR");
# set dimension
set("x",0);
set("x span",2e-6);
set("y",0);
set("y span",5e-6);
set("z",0);
set("z span",10e-6);
# restrict maximum edge length for elements
set("max edge length",5e-9);See Also