Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
irp
Fresnel
Commits
fa1223b3
Commit
fa1223b3
authored
Feb 16, 2021
by
Leon Merten Lohse
Browse files
aufraeumen
parent
1236de9a
Pipeline
#174172
passed with stage
in 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fresnel/propagate.py
View file @
fa1223b3
from
pyfftw.interfaces.numpy_fft
import
fftn
,
ifftn
,
ifftshift
,
fftshift
import
numpy
as
np
from
functools
import
reduce
from
pyfftw.interfaces.numpy_fft
import
fftn
,
ifftn
,
ifftshift
,
fftshift
from
.
import
finite_differences
as
fd
from
.misc
import
fftfreqn
...
...
@@ -9,8 +9,7 @@ _lambda0 = 1. # all lengths are in units of the wavelength
_k0
=
2
*
np
.
pi
/
_lambda0
def
_compute_potential
(
n_
,
k_
=
_k0
):
return
k_
*
k_
*
(
1
-
n_
*
n_
)
def
_compute_potential
(
n_
,
k_
=
_k0
):
return
k_
*
k_
*
(
1
-
n_
*
n_
)
def
squaresum
(
a
):
...
...
fresnel/vacuum.py
View file @
fa1223b3
from
.
import
hankel
from
.misc
import
fftfreqn
,
gridn
import
numpy
as
np
from
pyfftw.interfaces.numpy_fft
import
fftn
,
ifftn
from
scipy.signal
import
fftconvolve
_lambda0
=
1.
# all lengths are in units of the wavelength
_k0
=
2
*
np
.
pi
/
_lambda0
from
.
import
hankel
from
.misc
import
fftfreqn
,
gridn
def
fresnelKernelCS
(
N
,
fresnelNumber
):
...
...
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