RP Photonics logo
www.rp-photonics.com

RP Resonator 2.0 – Advanced Laser Resonator Design and Optimization

The Script Language

RP Resonator is controlled with a very powerful script language. Each input script contains everything from the definition of a resonator to the calculations to be made and the resulting graphics. (Of course, you can store frequently used script parts in external files and easily call them in your main script.)

Some code snippets show you that the script language is easy to use. The first example shows how a simple resonator is defined:

F_cr:=0.3  { diopters of the laser crystal }
 
resonator: standing-wave
* mirror (M1): R = 500 mm
* air: d = 100 mm
* lens (Crystal): f = if F_cr <> 0 then 1 / F_cr
* air: d = 200 mm
* mirror (M2): R = 0 { no curvature }
resonator end

Here, the arm lengths are simply defined with numerical values, but the dioptric power of the laser crystal is given as a parameter which can be varied, for example, in graphics.

The second example shows you how to display calculated mode radii, well formatted with 3 valid digits and units of meters:

show "w at M1:       ", w(zm[M1],lambda_ref):d3:"m"
show "w at Crystal:  ", w(zm[Crystal],lambda_ref):d3:"m"
show "w at M2:       ", w(zm[M2],lambda_ref):d3:"m"

Finally, we define graphical output, showing the beam radius vs. position:

graph 1:
 
"Beam Radius vs. Position"
 
x: 0, L_res/cm
"z position (cm)", @x
y: 0, 800
frame
hx
hy
 
f: w(x*cm,lambda_ref)/um, "w(z) (µm)", color=blue, width=3

You will soon appreciate the manifold advantages of the scripting approach:

The Input Wizards Form

Particularly beginners might be concerned about the need to learn the script language. However, the input wizards form makes it very easy to get started. Just type numbers or even mathematical expressions into the form fields, and you instantly see the corresponding script code being generated.

input wizards form for generating script commands in RP Resonator

Graphical Output

Your script can define one or many different types of graphs for visualizing the results of the calculations. Examples are shown on the pages for various example cases. Each diagram is shown in a separate window, which also allows you to measure positions using one or two cursors, save the graphics in GIF or PNG format, and to copy the graphics to the Windows clipboard. Below you see an example of such a graph window, showing the beam radius vs. position within a resonator.

a graph window of RP Resonator

Comprehensive Documentation

RP Resonator comes with very well worked out documentation, which allows you to have a quick start and work efficiently even when doing sophisticated modeling:

online help of RP Resonator

Support

Any remaining problems can be addressed with the support. The commercial license includes 8 hours of technical support, the non-commercial version 4 hours. This is usually more than sufficient, even if you use the software for sophisticated tasks.

You may, for example, send some portions of script code via e-mail and receive corrected code for doing certain things. RP Photonics also has very handy software for remote support, where you can give Dr. Paschotta access to your screen via the Internet and watch how he fixes problems on your PC.

It is good to know that support is always given by Dr. Paschotta himself, who has developed the software, is a distinguished expert in that technical area, and feels personally responsible to make sure that his customers can successfully use the software.

© 2004–2010 RP Photonics Consulting GmbH      All rights reserved worldwide      Last update: 2010-08-18
arrow