Ansys Learning Forum › Forums › Discuss Simulation › Photonics › unable to calcualte mode expansion › Reply To: unable to calcualte mode expansion
Hi, I seem to have fixed the libglut.so.3 problem with patchelf. Now if I call
fdtd-engine forward.fsp
I getÂ
Messages file /ansys_inc/shared_files/licensing/language/en-us/ansysli_msgs.xml does not exist.
0.224167% complete. Elapsed simulation time: 2.24167e-15 secs. Max time remaining: 6 secs. Auto Shutoff: 1
2.31639% complete. Elapsed simulation time: 2.31639e-14 secs. Max time remaining: 6 secs. Auto Shutoff: 1
4.7075% complete. Elapsed simulation time: 4.7075e-14 secs. Max time remaining: 6 secs. Auto Shutoff: 1
9.48972% complete. Elapsed simulation time: 9.48972e-14 secs. Max time remaining: 6 secs. Auto Shutoff: 0.0011975
19.0542% complete. Elapsed simulation time: 1.90542e-13 secs. Max time remaining: 5 secs. Auto Shutoff: 2.17561e-07
So Lumerical seems to be working fine directly from the terminal (with the exception of the missing message file), but im still getting errors when using the python API. If run my script I get
CONFIGURATION FILE {'root': '/home/mila/l/letournv/opt/lumerical/v241/api/python', 'lumapi': '/home/mila/l/letournv/opt/lumerical/v241/api/python'}
Traceback (most recent call last):
 File "/home/mila/l/letournv/repos/nanophoto/lumtest.py", line 42, in
  print(fom.get_fom(sim))
 File "/home/mila/l/letournv/opt/lumerical/v241/api/python/lumopt/figures_of_merit/modematch.py", line 207, in get_fom
  trans_coeff, self.wavelengths = ModeMatch.get_transmission_coefficient(sim, self.direction, self.monitor_name, self.mode_expansion_monitor_name)
 File "/home/mila/l/letournv/opt/lumerical/v241/api/python/lumopt/figures_of_merit/modematch.py", line 234, in get_transmission_coefficient
  raise UserWarning('unable to calcualte mode expansion.')
UserWarning: unable to calcualte mode expansion.
Any help on this would be appreciated