Skip to content
Snippets Groups Projects
Select Git revision
  • a36e2db135652e89c4193e2ff0d1b815d1866025
  • master default protected
  • CLFFT_NO_MAD_ENABLE
  • BRP_build_fixes
  • override_cl_compile_options
  • improve_Makefile
  • HSA
  • clmathfft
  • longer_dft_support
  • current_brp_apps
  • current_fgrp_apps
11 results

fft_setup.cpp

Blame
  • test_aperture.py 709 B
    from pykat.utilities.optics.gaussian_beams import gauss_param
    from pykat import finesse
    from pykat.commands import xaxis
    import pylab as pl
    import numpy as np
    import math
    
    code = """
    l l1 1 0 0 n1
    s s1 10 1 n1 n2
    m m1 1 0 0 n2 n3
    
    pd refl n2
    
    xaxis m1 r_ap lin 0.1e-3 2e-3 10
    """
    
    kat = finesse.kat()
    kat.parseCommands(code)
    
    maxtem = np.arange(0, 4)
    
    kat.m1.n2.q = gauss_param(w0=1e-3, z=0)
    
    kat.verbose = False
    
    for tem in maxtem:
        print "Calculating maxtem ", tem, "..."
        kat.maxtem = tem
    
        r = kat.run()
        pl.plot(r.x/1e-3, r.y, label="maxtem={0}".format(tem))
    
    pl.ylabel("Reflected Power [W]")
    pl.xlabel("Mirror aperture [mm]")
    pl.legend()
    pl.show()