We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Photonics

Photonics

Topics related to Lumerical and more.

mode area error

    • Zhaoyu Zhang
      Subscriber

      Hi, I'm getting the following error for mode area calculations. Both the field and the index monitors are set to the same settings with 200 frequency points each. Any idea how to fix this?

    • Guilin Sun
      Ansys Employee

      Please use

      mode(1:sz(1),1:sz(2),1:sz(3),i)

      with loop sz(4).

      as E and n are 4D matrices (x,y,z,f).

      eg:

      for (i=1:sz(4)) { # normalize each frequency

      mode(1:sz(1),1:sz(2),1:sz(3),i) =

       

    • Zhaoyu Zhang
      Subscriber

      Thanks. So in order to run mode area for 3D simulations, we should always change the code according to your last reply, right?

    • Guilin Sun
      Ansys Employee

      I believe so, since the monitors have 4 dimensions. You can pinch them for any singleton.

Viewing 3 reply threads
  • The topic ‘mode area error’ is closed to new replies.