Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
turbulent-channel-model
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Krimmer
turbulent-channel-model
Commits
c228da77
Commit
c228da77
authored
2 weeks ago
by
Jonas Krimmer
Browse files
Options
Downloads
Patches
Plain Diff
fix: default to dxn = dx1
parent
060430f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/repeated_wave_propagation.jl
+2
-2
2 additions, 2 deletions
examples/repeated_wave_propagation.jl
with
2 additions
and
2 deletions
examples/repeated_wave_propagation.jl
+
2
−
2
View file @
c228da77
...
...
@@ -111,7 +111,7 @@ function repeated_wave_propagation(utx::AbstractArray{Complex{T}}, midx, domain:
nothing
end
function
repeated_wave_propagation
(
iters
,
T
::
DataType
=
Float64
;
Nx
::
Int
=
128
,
λ
=
1.55e-6
,
w0
=
1e-2
,
dx1
=
1e-3
,
dxn
=
1e-3
,
dz
=
5e1
,
Nz
::
Int
=
21
,
m
=
0
,
n
=
0
,
kwargs
...
)
function
repeated_wave_propagation
(
iters
,
T
::
DataType
=
Float64
;
Nx
::
Int
=
128
,
λ
=
1.55e-6
,
w0
=
1e-2
,
dx1
=
1e-3
,
dxn
=
dx1
,
dz
=
5e1
,
Nz
::
Int
=
21
,
m
=
0
,
n
=
0
,
kwargs
...
)
beam
=
Beam
{
T
}(
m
,
n
,
λ
,
w0
)
domain
=
if
dx1
==
dxn
...
...
@@ -126,7 +126,7 @@ function repeated_wave_propagation(iters, T::DataType=Float64; Nx::Int=128, λ=1
repeated_wave_propagation
(
utx
,
midx
,
domain
,
iters
;
beam
.
λ
,
beam
.
w0
,
kwargs
...
)
end
function
repeated_wave_propagation_multi
(
iters
,
T
::
DataType
=
Float64
;
Nx
::
Int
=
128
,
λ
=
1.55e-6
,
w0
=
1e-2
,
dx1
=
1e-3
,
dxn
=
1e-3
,
dz
=
5e1
,
Nz
::
Int
=
21
,
ng
=
3
,
kwargs
...
)
function
repeated_wave_propagation_multi
(
iters
,
T
::
DataType
=
Float64
;
Nx
::
Int
=
128
,
λ
=
1.55e-6
,
w0
=
1e-2
,
dx1
=
1e-3
,
dxn
=
dx1
,
dz
=
5e1
,
Nz
::
Int
=
21
,
ng
=
3
,
kwargs
...
)
# simulation domain
domain
=
if
dx1
==
dxn
Domain
{
T
}(
dx1
,
dz
,
Nx
,
Nz
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment