tidy3d.SurfaceFieldStructureData#

class SurfaceFieldStructureData[source]#

Bases: SurfaceFieldData

Data associated with a SurfaceFieldStructureMonitor: the H field (and the E field when recorded), the interface normal, and per-vertex structure ownership on a triangulated PEC/lossy-metal surface.

Parameters:
  • E (Optional[TriangularSurfaceDataset] = None) – Spatial distribution of the electric field on the one side of the surface.

  • H (Optional[TriangularSurfaceDataset] = None) – Spatial distribution of the magnetic field on the one side of the surface.

  • normal (TriangularSurfaceDataset) – Normal direction of the surface oriented outward from the surface.

  • monitor (SurfaceFieldStructureMonitor) – Frequency-domain field-structure monitor associated with the data.

  • symmetry (tuple[Literal[0, -1, 1], Literal[0, -1, 1], Literal[0, -1, 1]] = (0, 0, 0)) – Symmetry of the original simulation in x, y, and z.

  • symmetry_center (tuple[float, float, float] = (0, 0, 0)) – Symmetry center of the original simulation in x, y, and z.

  • structure_index (TriangularSurfaceDataset) – Per-vertex owning-structure index on the triangulated surface (-1 for the background medium, -2 for an automatic PEC frame, i for simulation.structures[i]).

Notes

The stored primitives (E, H, normal, structure_index) are recorded on the triangulated surface mesh. The derived tangential-magnetic-field magnitude (h_tan_squared) and surface loss density (surface_loss_density()) are computed on demand from the raw self arrays.

Attributes

h_tan_squared

squared magnitude of H's component tangential to the interface normal, collapsing both tangential directions into one scalar.

monitor

structure_index

symmetry

symmetry_center

E

H

normal

Methods

surface_loss_density(sim)

Surface loss density SLD = 0.5 * Re(Z_s) * |H_tan|^2 [W/um^2] at each vertex.

monitor#
structure_index#
property h_tan_squared#

squared magnitude of H’s component tangential to the interface normal, collapsing both tangential directions into one scalar.

Type:

|H_tan|^2 at each vertex

surface_loss_density(sim)[source]#

Surface loss density SLD = 0.5 * Re(Z_s) * |H_tan|^2 [W/um^2] at each vertex.

Re(Z_s) is looked up per vertex from sim.structures[structure_index].medium (sim is the Simulation the data was recorded against; it is not stored on this data object, and the lookup uses each medium’s surface_impedance()). A vertex owned by the background medium (structure_index == -1, Simulation.medium – e.g. a PEC- like surface with no explicit Structure, such as one facet of an infinite lossy-metal half-space) looks up sim.medium instead, the same as any other owner; vertices owned by a lossless medium (no surface_impedance, e.g. PECMedium) get Re(Z_s) = 0 either way, as do those of an automatic PEC frame (structure_index == -2). Vertices owned by a medium the solver did not model as a surface, such as a LossyMetalMedium solved as a conductor (subpixel=False, Staircasing or VolumetricAveraging), are NaN: that medium loses power in its volume, which a FieldStructureMonitor records.

Owners are rounded and range-checked with the same _check_owner_range helper that per_structure_loss uses, so a non-integer owner selects the same structure, and an out-of-range owner raises the same error, whether this method is called directly or through per_structure_loss.