Structures
Structures #
This section is an introduction to structures.
The software supports the 3D Computer Aided Design (CAD). See CAD.
Users can add and modify structures through script in the software. Please refer to Script.
Structures #
Structure and Project #
A simulation should include a structure and a solution algorithm.
Structure is the basic unit of a simulation. The software provides rich structures and structure groups.
Structure Creation #
- In the Structure area of the Home tab, all available structures are included.
- Select the desired structure and click anywhere within the Composite viewer window.
- Make the appropriate settings in the pop-up Edit Structure Properties window to finalize the creation.

Structure Settings #
Geometry Size Settings #
The Geometry tab is used to set the geometry size of the structure.
| Name | Description |
|---|---|
| X/Y/Z pos | Set the structure center. |
| X/Y/Z span | Set the structure scope. |
| Radius X/Y/Z | Set the radius X/Y/Z of the structure. |
| Scene view type | It determines the structure creation direction. |

Rotation Settings #
The Rotation tab is used to set the structure rotation.
| Name | Description |
|---|---|
| Rotation axis | Set the rotation axis. The rotation axis is the normal vector of the rotation plane. |
| Rotation | Enter the rotation angle (unit: degree). |

In the world coordinate system of the composite viewer, the forward direction of the coordinate axis is the forward direction of the normal vector of the rotation plane.
Material Setting #
The Material tab is used to set the structure material. The structure without material does not exist (the default material is given at the beginning of the creation of the structure). See Dielectric.
| Name | Description |
|---|---|
| Material | Drop-down menu. Select the structure material. |
| Add/Edit | Add/Edit project materials. |
| Override mesh order | Start mesh level input. |
| Mesh order | Mesh level. Set the order to create mesh. |
The rest items of the default material such as Name, Type, etc. are automatically filled in, which are view-only items.

Graphics Rendering Setting #
The Graphical rendering tab is used to set the opacity and rendering precision of the structure.
| Name | Description |
|---|---|
| Override default transparency | Select and set the material opacity. |
| Opacity | Set the material opacity: 1: opacity; 0: transparency. |
| Detail points | The rendering accuracy of the structure in the 3D display. The higher the accuracy, the more detailed the rendering effect. |
Built-in Structures and Structure Group #
Built-in Structure #
The following table lists the structure types that are supported by the software:
| Name | Description |
|---|---|
| Polygon class | Polygon, Rectangle, Triangle. |
| Polygon 2D class | Polygon2D, Rectangle2D. |
| Ellipse class | Ellipse, Circle, Sector. |
| Ring class | Circle ring, Ellipse ring. |
| Sphere | Ball. |
| Pyramid class | Pyramid, Cone. |
| Sidewall class | Sidewall linear, Sidewall arc, Sidewall bezier. |
| Waveguide class | Linear waveguide, Arc waveguide, Linear taper. |
| Equation | Use the analytic expressions to build a 2D outline of the structure, and then form a 3D structure through rotation or stretch. |
| Photonic Crystal | Photonic crystal structure, which can be used to construct various lattices such as square and hexagonal. |
| Planar Solid | Planar solid structure, which can be viewed as a 3D extension of a polygon. Complex 3D geometries are created by defining vertex coordinates and facet indices. |
Except for Planar Solid, the parameters of all other structures can be edited and set via the property panel. For Planar Solid structures, the vertices and facets variables must be defined via script. Users can either use the addplanarsolid command to add one directly or set the parameters using the set command.
Creating a Planar Solid requires defining two key variables:
vertices: Vertex coordinate matrix. Each row represents the (x, y, z) coordinates of a vertex.facets: Facet indices, defining which vertices enclose each face. This variable can be a matrix or a cell array. The order of vertex indices must follow the right-hand rule to determine the front (positive) and back (negative) sides of the face (e.g., in the figure, vertices 1→2→3→4 form a positive face, while vertices 5→6→7→8 form a negative face).

If these two variables are not defined, a rectangular structure is created.
Built-in Structure Groups #
See Structure groups.
Structure and Simulation #
Structure Inspection #
The software provides several methods of checking the created structure. The frequently-used methods are as follows:
- Use the Index monitor to check the created structure. Please refer to Index monitor;
- Use the shortcut tool View the current mesh data to view the current mesh data.

Boundary #
When Extend structure through PML is selected on the boundary condition setting interface in the solver and the structure extends beyond the simulation area, the device extends along the axis if using the PML boundary.

More #
Current View Surface and Structure #
The undersurfaces of the structure vary with the selected viewing plane types. In 3D view, select the plane observed through Switch to top (ZX) view as the undersurface of the structure.
In this setting, the component plane can be added in the toolbar of the composite viewer, or through script selection:
(In 3D view, select Switch to top (ZX) view)

Scene view type is view-only. No modification is allowed. Please use the Rotation tab to change the "Direction" of the built structure.

