Hi Peter
Thanks very much for open sourcing CAMFR. It is a efficient and elegant way to modelling the device. I try to model a DBR laser . I am using following stack to model the DBR laser
Air | gain region (Epi) | DBR ( etched_ epi + epi)*N | Air
I try to find the reflectivity of the DBR at gain region / DBR region interface. In order to do that I set a slab called epi and calcuate the epi to find foundamental mode in gain region. Then I try tp set that foundamental mode as incident wave for DBR structure and calcaute R12(0,0) of the DBR stack. The python code give me following error
DBR.set_inc_field(epi.mode(0).field()) # fundamental mode as incident field
Boost.Python.ArgumentError: Python argument types in
Mode.field(Mode)
did not match C++ signature:
field(class Mode {lvalue}, class Coord)
My understanding of this error message is this is a bug in python wrapper for low level c++ file. I attached the python file in this ticket. Could you please help me on that ? BTW: I have another technical question related to DBR modelling. Assuming that the problem is fixed. Does abs(DBR.R12(0, 0))^2 give me the reflectivity between gain region and DBR region ? Thanks again for your software and time Best wishes Le
Last edit: Nezzar Amina 2021-12-23