Skip to content
Snippets Groups Projects
Select Git revision
  • 2974b8482201005923a17938ae2e86c2f5191a38
  • master default protected
  • release_ABP1_012
  • release_ABP1_008
  • release_ABP1_006
  • release_ABP1_007
  • release_ABP1_005
  • release_ABP1_004
  • release_ABP1_003
  • pre_release_0.15
  • release_ABP1_001
  • release_ABP1_002
  • pre_release_0.13
  • pre_release_0.14
  • pre_release_0.11
  • pre_release_0.12
  • pre_release_0.10
  • pre_release_0.09
  • pre_release_0.08
19 results

SDL_sysevents.c.patch

Blame
    • Oliver Bock's avatar
      bf200e93
      Added patch for SDL · bf200e93
      Oliver Bock authored
      * The BOINC v6 screensaver expects the graphics app to bear a specific window class name
      * It exits if the graphics app can't be found by that name!
      * Ergo: patch SDL's default class name to trick (satisfy) BOINC :-)
      bf200e93
      History
      Added patch for SDL
      Oliver Bock authored
      * The BOINC v6 screensaver expects the graphics app to bear a specific window class name
      * It exits if the graphics app can't be found by that name!
      * Ergo: patch SDL's default class name to trick (satisfy) BOINC :-)
    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()