Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Arne Striegler
pypho
Commits
fb0d9add
Commit
fb0d9add
authored
Jun 18, 2018
by
Arne Striegler
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update of Example 1
parent
23382b20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
pypho_fiber.py
pypho_fiber.py
+1
-4
pypho_fiber.pyc
pypho_fiber.pyc
+0
-0
pypho_functions.py
pypho_functions.py
+3
-3
No files found.
pypho_fiber.py
View file @
fb0d9add
...
...
@@ -159,10 +159,7 @@ class pypho_fiber(object):
next_leff
=
(
1
-
np
.
exp
(
-
self
.
alpha
*
next_l
))
/
self
.
alpha
doCoordRot
=
True
# linear & nonlinear calculation
#next_l = 100
#next_leff = next_l
#self.E[zsep]['E'][0], self.E[zsep]['E'][1] = self.timestep(self.E[zsep]['E'][0], self.E[zsep]['E'][1], power_x, power_y, next_leff)
self
.
E
[
zsep
][
'E'
][
0
],
self
.
E
[
zsep
][
'E'
][
1
]
=
(
self
.
E
[
zsep
][
'E'
][
0
]
*
np
.
exp
(
-
1j
*
next_leff
*
self
.
gamma_intern
*
(
power_x
+
0.6666666666666666
*
power_y
)),
self
.
E
[
zsep
][
'E'
][
1
]
*
np
.
exp
(
-
1j
*
next_leff
*
self
.
gamma_intern
*
(
power_y
+
0.6666666666666666
*
power_x
)))
...
...
pypho_fiber.pyc
View file @
fb0d9add
No preview for this file type
pypho_functions.py
View file @
fb0d9add
...
...
@@ -17,11 +17,11 @@ import scipy.fftpack
#import pyfftw
import
urllib2
import
json
import
os
import
pycurl
#
import os
#
import pycurl
from
StringIO
import
StringIO
from
pypho_constants
import
pypho_constants
import
zlib
#
import zlib
import
zipfile
cv
=
pypho_constants
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment