demisjohn / pyFIMM

Python Interface to PhotonDesign's FimmWave/FimmProp software.
15 stars 4 forks source link

Cavity.Calc( gain=True ) - calculate gain required for lasing #77

Open demisjohn opened 8 years ago

demisjohn commented 8 years ago

This would sweep the gain of the Active region, and find where the imaginary part of the guided mode = 0 (or eigenvalue = 1).

May require additional Materials parameter:

myMat = pf.Material( 3.45, active=True )

So Cavity.calc knows which layer's imaginary part to sweep. It's possible this could also be determined by just looking at the Eigenvalue's real part without sweeping it.

demisjohn commented 8 years ago

Losses are now calc'd in ea21b87d69224e19f5fae747812837b80859fc34.

Instead of sweeping gain, just calc losses, and user can plot the lowest-loss mode?