Commit cea34c8c authored by Striegler, Arne's avatar Striegler, Arne 😁
Browse files

cfiber memory, power

parent 6dbf09f1
Loading
Loading
Loading
Loading

pypho_arbmod.pyc

0 → 100644
+2.46 KiB

File added.

No diff preview for this file type.

pypho_bits.pyc

0 → 100644
+2.81 KiB

File added.

No diff preview for this file type.

+25 −3
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ class pypho_cfiber(object):

        self.set(fibertype, D, S, gamma, alpha, l, phi_max)

        self.E = E
        #self.E = E

        self.gamma_intern = self.gamma * 1e-3
        self.max_step = 200
@@ -75,10 +75,32 @@ class pypho_cfiber(object):
        z = 0

        #for Ei in E:
        self.fibtrans(z)
        #self.fibtrans(z)
        #z += 1
        
        return self.E
        print('Start!')  

        tic0 = time.time()   
        n = self.glova.sps*self.glova.nos
        #Ef_out = np.zeros((1,n)) + 1j*np.ones((1,n))
        Ex_out = np.zeros(n) + 1j*np.ones(n)
        Ey_out = np.zeros(n) + 1j*np.ones(n)
        birefarraydoubles = np.zeros((len(self.birefarray), 3))
        for i in range (0, len(self.birefarray)):
            birefarraydoubles[i,0] = self.birefarray[i].angle
            birefarraydoubles[i,1] = self.birefarray[i].z_point
            birefarraydoubles[i,2] = self.birefarray[i].delta_beta
            
        cyfiber(self.glova.sps*self.glova.nos, self.l, np.asarray(E[z]['E'][0]), np.asarray(E[z]['E'][1]),
                self.alpha, self.gamma_intern, self.phi_max, birefarraydoubles, len(self.birefarray), self.max_step, self.beta_fac,
                np.asarray(1j * scipy.fftpack.fftshift( self.Domega )), Ex_out, Ey_out)
           
        E[z]['E'][0] = Ex_out
        E[z]['E'][1] = Ey_out
 
        print ('Fertig: ', time.time() - tic0 )        

        return E


 ########################################################################

pypho_constants.pyc

0 → 100644
+477 B

File added.

No diff preview for this file type.

pypho_cwlaser.pyc

0 → 100644
+2.56 KiB

File added.

No diff preview for this file type.

Loading