This repository was archived by the owner on Apr 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRayTrace_IceModels.h
More file actions
127 lines (107 loc) · 4.8 KB
/
Copy pathRayTrace_IceModels.h
File metadata and controls
127 lines (107 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#ifndef RAYTRACE_ICEMODELS_H
#define RAYTRACE_ICEMODELS_H
#include "RayTrace.h"
///\brief Implements an exponential parameterization for the ice index of refraction.
class exponentialRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double A,B,C;
public:
///Constructs the index of refraction model with the given parameters.
///
///\param n_surface The value of the index of refraction at the surface of the ice.
///\param n_deep The value the index of refraction approaches as the depth goes to infinity.
///\param transition The scale of the exponential transition, in inverse meters.
exponentialRefractiveIndex(double n_surface, double n_deep, double transition);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
virtual RayTrace::indexOfRefractionModel::RayEstimate estimateRayAngle(double sourceDepth, double receiverDepth, double distance) const;
};
class inverseExponentialRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double A,B,C;
public:
///Constructs the index of refraction model with the given parameters.
///
///\param n_surface The value of the index of refraction at the surface of the ice.
///\param n_deep The value the index of refraction approaches as the depth goes to infinity.
///\param transition The scale of the exponential transition, in inverse meters.
inverseExponentialRefractiveIndex(double n_surface, double n_deep, double transition);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
virtual RayTrace::indexOfRefractionModel::RayEstimate estimateRayAngle(double sourceDepth, double receiverDepth, double distance) const;
};
class simpleExponentialRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double A,B;
public:
simpleExponentialRefractiveIndex(double a, double b);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
};
class quadraticRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double A,B,C;
const double maxPoint, maxVal;
public:
quadraticRefractiveIndex(double a, double b, double c);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
};
double todorDensity(double z);
double approxTodorDensity(double z);
double approxTodorDensityDerivative(double z);
class todorLinearRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double nref0,rho0;
public:
todorLinearRefractiveIndex(double a, double b);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
};
class todorChiRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double nref0,rho0;
public:
todorChiRefractiveIndex(double a, double b);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
};
class todorLLRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double nref0,rho0;
public:
todorLLRefractiveIndex(double a, double b);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
};
///\brief Implements an attenuation model with no attenuation.
class negligibleAttenuationModel : public RayTrace::attenuationModel{
public:
virtual double attenuationLength(double z, double frequency) const;
};
class basicAttenuationModel : public RayTrace::attenuationModel{
public:
///Computes the ice temperature at a given depth.
///
///\param z The depth at which to calculate the temperature.
///\return The ice temperature, in degrees Celsius.
double temperature(double z) const;
virtual double attenuationLength(double z, double frequency) const;
};
class constantRefractiveIndex : public RayTrace::indexOfRefractionModel{
protected:
const double n_fixed;
public:
constantRefractiveIndex(double n);
virtual double indexOfRefraction(double z) const;
virtual double indexOfRefractionDerivative(double z) const;
virtual void indexOfRefractionWithDerivative(double z, double& n, double& dndz) const;
};
#endif