Photonics

Photonics

lumopt complex index

    • pengzheng97
      Subscriber

      I need to use the lumopt with complex index, but meet some problems

      CONFIGURATION FILE {'root': 'D:\Program Files\Lumerical\api\python', 'lumapi': 'D:\Program Files\Lumerical\api\python'}

      Initializing super optimization

      Wavelength range of source object will be superseded by the global settings.

      Traceback (most recent call last):

       File "D:/Program Files/Lumerical/python-3.6.8-embed-amd64/fdtd-python/fdtd/JXP/Au_R.py", line 89, in

        beta=1)

       File "D:/Program Files/Lumerical/python-3.6.8-embed-amd64/fdtd-python/fdtd/JXP/Au_R.py", line 58, in runSim

        opt.run(working_dir=working_dir)

       File "D:Program FilesLumericalapipythonlumoptoptimization.py", line 351, in run

        self.initialize(working_dir=working_dir)

       File "D:Program FilesLumericalapipythonlumoptoptimization.py", line 97, in initialize

        list(map(init_suboptimization, self.optimizations))

       File "D:Program FilesLumericalapipythonlumoptoptimization.py", line 93, in init_suboptimization

        cur_optimization.initialize(local_working_dir)

       File "D:Program FilesLumericalapipythonlumoptoptimization.py", line 558, in initialize

        self.geometry.add_geo(self.sim, start_params, only_update = False)

       File "D:Program FilesLumericalapipythonlumoptgeometries opology_complex.py", line 481, in add_geo

        eps = self.eps if params is None else self.get_eps_from_params(sim, params.reshape(-1))

       File "D:Program FilesLumericalapipythonlumoptgeometries opology_complex.py", line 189, in get_eps_from_params

        'eps_geo = topoparamstoindex(params,topo_rho);').format(self.eps_min,self.eps_max,self.filter_R,self.beta,self.eta,self.dx,self.dy) )

       File "D:Program FilesLumericalapipythonlumapi.py", line 1184, in eval

        evalScript(self.handle, code)

       File "D:Program FilesLumericalapipythonlumapi.py", line 248, in evalScript

        raise LumApiError("Failed to evaluate code")

      lumapi.LumApiError: 'Failed to evaluate code'


      Process finished with exit code 1



      and I use the complex like this

      eps_wg = (6.5+8j) ** 2
      eps_bg = 1 ** 2
      

      there is any solution to solve it?


      best wish!😁

    • Taylor Robertson
      Ansys Employee


      Unfortunately topology optimization doesn't currently support materials with complex indices. You could submit this as feature request to IX.
      https://ix.lumerical.com



Viewing 1 reply thread
  • You must be logged in to reply to this topic.