Photonics

Photonics

Inverse design python script error (Duplicated)

    • mohitkhurana
      Subscriber

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

      Initializing super optimization

      Checking for one forward simulation :  More than One Wavelengths range, one forward simulation is not possible

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

      Traceback (most recent call last):

       File "C:UsersakimoDropboxMohitJupyter-labfilterLumerical_scripting1Input_1Outputfilter_opt_3D_TE_topology_minfeaturesize.py", line 88, in

        runSim(startingParams, eps_bg, eps_wg, x_pos, y_pos, z_pos, filter_R=filter_R, min_feature_size=min_feature_size, working_dir=working_dir, beta = startingBeta)

       File "C:UsersakimoDropboxMohitJupyter-labfilterLumerical_scripting1Input_1Outputfilter_opt_3D_TE_topology_minfeaturesize.py", line 59, in runSim

        opt.run(working_dir = working_dir)

       File "C:Program FilesLumericalv212apipythonlumoptoptimization.py", line 460, in run

        self.initialize(working_dir=working_dir)

       File "C:Program FilesLumericalv212apipythonlumoptoptimization.py", line 141, in initialize

        list(map(init_suboptimization, self.optimizations))

       File "C:Program FilesLumericalv212apipythonlumoptoptimization.py", line 137, in init_suboptimization

        cur_optimization.initialize(local_working_dir)

       File "C:Program FilesLumericalv212apipythonlumoptoptimization.py", line 667, in initialize

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

       File "C:Program FilesLumericalv212apipythonlumoptgeometries opology.py", line 554, in add_geo

        self.check_param_count_matches_sim_eps(params, sim)

       File "C:Program FilesLumericalv212apipythonlumoptgeometries opology.py", line 165, in check_param_count_matches_sim_eps

        ". This can occur when the initial condition specified to LumOpt do not match the dimensions of the FDTD grid.")

      UserWarning: Project file index monitor reports 1 coordinates, where expected 22801. This can occur when the initial condition specified to LumOpt do not match the dimensions of the FDTD grid.

    • m.su
      Subscriber
      I have same problem when I tried to try the code in a new computer. But the same code actually works for my old computer. No idea how to deal with it. Have you solved the issue?
    • Guilin Sun
      Ansys Employee
      The reply to this post is here Inverse design python script error
      Please do not follow up this post any more.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.