Home Forums GRATING Grating shape

Viewing 1 reply thread
  • Author
    Posts
    • #67399
      Ricardo Oliveira
      Participant

      Dear all,

      I’m trying to simulate a long period grating with a square wave profile. I want to change the duty cycle but I don’t know how to do that with functions in optigrating. I saw that it is possible to get the grating shape from a file. Yet I don’t know how it works.

      Could you please give me any feedback about this question?

      Thanks

    • #67409
      Amin Khorshidahmad
      Participant

      Hi Ricardo,

      You can import the fiber profile from a file, e.g. listing radii-indices of each region. For custom grating profiles, however, the ‘user defined function’ option provides ultimate flexibility in defining the profile. You can simply define the shape function and possibly use the built-in scripting capability (similar to Basic, e.g. IF THEN ELSE etc.) to define desired shape function over the grating period. The function editing area comes with quick access (click & place from combo boxes) to global variables (x:the position variable varying from 0 to grating period, Period:grating period etc.), math functions and constants. You can readily run/debug the function and visualize the grating profile graphically with designing your profile. For complete list of capabilities and scripting commands please see Appendix A of the Manual.
      You should be able to define a square profile with custom duty cycle through a conditional block using global ‘x’ and ‘Period’ variables.

      Kind regards,
      Amin

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