示例#1
0
    def __repr__(self):

        return IO(f"""
        Integrating sphere
        Coupling Mode: Intensity
        Sampling:      {self.Mesh.Sampling}
        """)
示例#2
0
    def __repr__(self):

        return IO(f"""
                PlaneWave source beam
                Wavelenght:   {self.Wavelength}
                Polarization: {self.Polarization.Degree}
                """)
示例#3
0
    def __repr__(self):

        return IO(f"""
        Photodiode detector
        Coupling Mode: Intensity
        Sampling:      {self.Mesh.Sampling}
        Gamma offset:  {self.Mesh.GammaOffset}
        Phi offset:    {self.Mesh.PhiOffset}
        """)
示例#4
0
    def __repr__(self):

        return IO(f"""
                Gaussian source beam
                Wavelenght:   {self.Wavelength}
                Polarization: {self.Polarization.Degree}
                NA:           {self.NA}
                Waist (w_0)   {self.w0}
                """)
示例#5
0
    def __repr__(self):

        return IO(f"""
        Photodiode detector
        Coupling Mode: Intensity
        Numerical aperture:  {self.NA:.4f}
        Sampling:            {self.Mesh.Sampling}
        Gamma offset:        {self.Mesh.GammaOffset}
        Phi offset:          {self.Mesh.PhiOffset}
        """)
示例#6
0
 def __repr__(self):
     return IO(f"""
     LP mode detector
     Coupling Mode: Amplitude
     LP Mode:             {self.ModeNumber}
     Numerical aperture:  {self.NA:.4f}
     Sampling:            {self.Mesh.Sampling}
     Gamma offset:        {self.Mesh.GammaOffset}
     Phi offset:          {self.Mesh.PhiOffset}
     """)
示例#7
0
    def __init__(self, name):
        self._Data = None
        self.__name__ = name

        with open(os.path.join(PATH, 'Meta.json'), 'r+') as f:
            META = json.load(f)
            assert name in META['local'],\
            IO( f"""\nMaterial {name} not in the local bank {META['local']}\n
                Please refer to Documentation Material section
                https://pymiesim.readthedocs.io/en/latest/Material.html""")

        self.LocalDir = META['local'][name]