Skip to content

Commit

Permalink
bugfix: incorrect mode normalisation in smf coupling link budget calc…
Browse files Browse the repository at this point in the history
…ulation
  • Loading branch information
ojdf committed Nov 27, 2024
1 parent e4f826b commit ce22039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def compute_link_budget(self):

self.link_budget['transmission_loss'] = 10*numpy.log10(self.params['TRANSMISSION'])

smf_coupling = 10*numpy.log10(((pupil_r * mode).sum() * dx_r**2)**2)
smf_coupling = 10*numpy.log10(((pupil_r * mode).sum() * dx_r)**2 / (mode**2).sum())
self.link_budget['smf_coupling'] = smf_coupling

self.diffraction_limit = 10**(sum(self.link_budget.values())/10) / 1e3 # W
Expand Down

0 comments on commit ce22039

Please sign in to comment.