demisjohn / pyFIMM

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

Device: Plot input field/get input field #50

Closed demisjohn closed 8 years ago

demisjohn commented 8 years ago

From Vincent Brulis: Yes you just need to sum up the field amplitudes. If you want to normalise your vector you simply need to normalise the field coefficients; the normalised vector corresponding to [1.0 + 0j , 0.5 + 0.5j , 0 , 0] is [1.0/sqrt(1.5) + 0j , 0.5/sqrt(1.5) + 0.5j/sqrt(1.5) , 0 , 0]

demisjohn commented 8 years ago

V.Brulis: Provided that you are only launching light from one end of the Device (either LHS or RHS) then the best way to do this is to export the forward (LHS) or backward (RHS) field profile at the launching end of the Device; this is the equivalent of right-click "\View XY field at..." in the GUI.

demisjohn commented 8 years ago

matches what is shown in the "preview" window of FimmWave:"set input"