tidy3d.SurfaceFieldStructureData#
- class SurfaceFieldStructureData[source]#
Bases:
SurfaceFieldDataData 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 rawselfarrays.Attributes
squared magnitude of
H's component tangential to the interface normal, collapsing both tangential directions into one scalar.symmetrysymmetry_centerEHnormalMethods
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|^2at 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 fromsim.structures[structure_index].medium(simis theSimulationthe data was recorded against; it is not stored on this data object, and the lookup uses each medium’ssurface_impedance()). A vertex owned by the background medium (structure_index == -1,Simulation.medium– e.g. a PEC- like surface with no explicitStructure, such as one facet of an infinite lossy-metal half-space) looks upsim.mediuminstead, the same as any other owner; vertices owned by a lossless medium (nosurface_impedance, e.g.PECMedium) getRe(Z_s) = 0either 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 aLossyMetalMediumsolved as a conductor (subpixel=False,StaircasingorVolumetricAveraging), are NaN: that medium loses power in its volume, which aFieldStructureMonitorrecords.Owners are rounded and range-checked with the same
_check_owner_rangehelper thatper_structure_lossuses, 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 throughper_structure_loss.