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
d1787a2c
Verified
Commit
d1787a2c
authored
11 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Restructure
parent
22450031
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/absorption.jl
+19
-0
19 additions, 0 deletions
src/absorption.jl
src/scattering.jl
+33
-0
33 additions, 0 deletions
src/scattering.jl
with
52 additions
and
0 deletions
src/absorption.jl
0 → 100644
+
19
−
0
View file @
d1787a2c
abstract type
AbsorptionModel
end
struct
DefaultAbsorption
<:
AbsorptionModel
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
(
λ
)
This diff is collapsed.
Click to expand it.
src/scattering.jl
0 → 100644
+
33
−
0
View file @
d1787a2c
abstract type
ScatteringModel
end
struct
Kopelevich
<:
ScatteringModel
end
"""
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
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