tidy3d.VolumeMeshData#

class VolumeMeshData[source]#

Bases: HeatChargeMonitorData

Data associated with a VolumeMeshMonitor: stores the unstructured mesh.

Parameters:

Example

>>> import tidy3d as td
>>> import numpy as np
>>> mesh_mnt = td.VolumeMeshMonitor(size=(1, 2, 3), name="mesh")
>>> tet_grid_points = td.PointDataArray(
...     [[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [1.0, 1.0, 0.0], [0.0, 0.0, 1.0]],
...     dims=("index", "axis"),
... )
>>> tet_grid_cells = td.CellDataArray(
...     [[0, 1, 2, 4], [1, 2, 3, 4]],
...     dims=("cell_index", "vertex_index"),
... )
>>> tet_grid_values = td.IndexedDataArray(
...     np.zeros((tet_grid_points.shape[0],)),
...     dims=("index",),
...     name="Mesh",
... )
>>> tet_grid = td.TetrahedralGridDataset(
...     points=tet_grid_points,
...     cells=tet_grid_cells,
...     values=tet_grid_values,
... )
>>> mesh_mnt_data = td.VolumeMeshData(monitor=mesh_mnt, mesh=tet_grid) 

Attributes

field_components

Maps the field components to their associated data.

monitor

mesh

symmetry

symmetry_center

Methods

field_name(val)

Gets the name of the fields to be plot.

monitor#
mesh#
property field_components#

Maps the field components to their associated data.

field_name(val)[source]#

Gets the name of the fields to be plot.