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
ce28a2e8
Verified
Commit
ce28a2e8
authored
11 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Restructure
parent
d1787a2c
No related branches found
No related tags found
No related merge requests found
Pipeline
#51094
failed
11 months ago
Stage: test
Stage: docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LumenManufaktur.jl
+2
-54
2 additions, 54 deletions
src/LumenManufaktur.jl
with
2 additions
and
54 deletions
src/LumenManufaktur.jl
+
2
−
54
View file @
ce28a2e8
...
...
@@ -4,16 +4,10 @@ using BasicInterpolators
using
FastGaussQuadrature
include
(
"dispersion.jl"
)
#
include("scattering.jl")
#
include("absorption.jl")
include
(
"scattering.jl"
)
include
(
"absorption.jl"
)
include
(
"exports.jl"
)
abstract type
ScatteringModel
end
abstract type
AbsorptionModel
end
struct
Kopelevich
<:
ScatteringModel
end
struct
DefaultAbsorption
<:
AbsorptionModel
end
struct
PMTModel
{
T1
,
T2
}
photocathode_area
::
Float64
...
...
@@ -85,52 +79,6 @@ function Base.show(io::IO, p::LMParameters)
end
const
absorptionlengthinterpolator
=
LinearInterpolator
(
[
0
,
290
,
310
,
330
,
350
,
375
,
412
,
440
,
475
,
488
,
510
,
532
,
555
,
650
,
676
,
715
,
720
,
999999
],
[
0.0
,
0.0
,
11.9
,
16.4
,
20.6
,
29.5
,
48.5
,
67.5
,
59.0
,
55.1
,
26.1
,
19.9
,
14.7
,
2.8
,
2.3
,
1.0
,
0.0
,
0.0
],
NoBoundaries
()
)
"""
absorptionlength(λ)
Returns the absorption length [m] in deep sea water for a given wavelength [nm].
Reference missing! The interpolation values are taken from the Jpp framework,
written by Maarten de Jong.
"""
absorptionlength
(
::
DefaultAbsorption
,
λ
)
=
absorptionlengthinterpolator
(
λ
)
"""
scatteringlength(λ)
Calculates the scattering length [m] for a given wavelength `λ` [ns] using the
Kopelevich model for spectral volume scattering functions. The model separates
the contributions by:
- pure_sea: pure sea water;
- small_par: 'small' particles (size < 1 micro meter);
- large_par: 'large' particles (size > 1 micro meter).
Values are taken from reference C.D. Mobley "
Light
and
Water
", ISBN 0-12-502750-8, pag. 119.
"""
function
scatteringlength
(
::
Kopelevich
,
λ
)
Vs
=
0.0075
Vl
=
0.0075
bw
=
0.0017
bs
=
1.340
bl
=
0.312
x
=
550.0
/
λ
pure_sea
=
bw
*
x
^
4.3
small_par
=
bs
*
Vs
*
x
^
1.7
large_par
=
bl
*
Vl
*
x
^
0.3
1.0
/
(
pure_sea
+
small_par
+
large_par
)
end
"""
cherenkov(λ, n)
...
...
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