Home Forums GRATING Grating shape

Grating shape

Profile Photo
(joined June 2020)
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

Responses (2):

    • #67399
      Profile Photo
      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
      Profile Photo

      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

      +1

Login You must be logged in to reply to this topic.