Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LumenManufaktur.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Tamas Gal
LumenManufaktur.jl
Commits
98d40737
Verified
Commit
98d40737
authored
11 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Add wavelength() for dispersion
parent
02ae69d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dispersion.jl
+29
-0
29 additions, 0 deletions
src/dispersion.jl
with
29 additions
and
0 deletions
src/dispersion.jl
+
29
−
0
View file @
98d40737
...
...
@@ -8,6 +8,9 @@ Light dispersion model for water in deep sea based on David J.L. Bailey's work:
and
predicting
its
sensitivity
to
Dark
Matter
" - PhD thesis, University of
Oxford, United Kingdom, 2002.
The Bailey dispersion interface is based on the implementation in the Jpp
framework by Maarten de Jong.
"""
Base
.
@kwdef
struct
BaileyDispersion
<:
DispersionModel
P
::
Float64
=
1
# ambient pressure [atm]
...
...
@@ -49,3 +52,29 @@ end
ng
^
2
*
(
2
*
np
^
2
-
n
*
npp
)
*
λ
/
(
n
^
3
);
end
"""
Determine wavelength [nm] for a given index of refraction corresponding to the
group velocity. The estimate of the wavelength is made by successive linear
extrapolations. The procedure starts from the given wavelength and
terminates if the index of refraction is equal to the target value within
the given precision.
# Arguments
- `n`: of refraction
- `w`: value wavelength [nm]
- `eps`: precision index of refraction
"""
function
wavelength
(
dp
::
BaileyDispersion
,
n
,
w
,
eps
)
v
=
w
while
true
y
=
refractionindexgroup
(
dp
,
v
)
abs
(
y
-
n
)
<
eps
&&
break
v
+=
(
n
-
y
)
/
dispersiongroup
(
dp
,
v
)
end
v
end
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