MCPcopy Create free account
hub / github.com/NanoComp/meep / EigenmodeData

Class EigenmodeData

python/simulation.py:854–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852
853
854class EigenmodeData:
855 def __init__(
856 self,
857 band_num,
858 freq: float,
859 group_velocity: float,
860 k: Vector3Type,
861 swigobj,
862 kdom: Vector3Type,
863 ):
864 """Construct an `EigenmodeData`."""
865 self.band_num = band_num
866 self.freq = freq
867 self.group_velocity = group_velocity
868 self.k = k
869 self.swigobj = swigobj
870 self.kdom = kdom
871
872 def amplitude(self, point, component):
873 swig_point = mp.vec(point.x, point.y, point.z)
874 return mp.eigenmode_amplitude(self.swigobj, swig_point, component)
875
876
877class PadeDFT:

Callers 1

get_eigenmodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected