Jpp
examples
JNanobeacon
Physics.hh
Go to the documentation of this file.
1
#ifndef __PHYSICS__
2
#define __PHYSICS__
3
4
#include "
JPhysics/JPDFToolkit.hh
"
5
#include "
JPhysics/JDispersion.hh
"
6
7
8
9
inline
double
c_water
(
double
wavelength,
double
water_depth){
10
11
double
cwater ;
12
13
const
double
pressure = 0.1 * water_depth ;
// atm
14
15
JPHYSICS::JDispersion
jd(pressure) ;
16
17
const
double
index_of_refraction = jd.
getIndexOfRefractionGroup
(wavelength) ;
18
19
cwater =
JTOOLS::getSpeedOfLight
() / index_of_refraction ;
20
21
return
cwater;
22
23
}
24
25
inline
double
c_water_genhen
(){
26
27
double
c_w = 0.2172 ;
28
29
return
c_w ;
30
31
}
32
33
#endif
c_water_genhen
double c_water_genhen()
Definition:
Physics.hh:25
JTOOLS::getSpeedOfLight
const double getSpeedOfLight()
Number of bytes in a gigabyte.
Definition:
JConstants.hh:89
c_water
double c_water(double wavelength, double water_depth)
Definition:
Physics.hh:9
JPDFToolkit.hh
JPHYSICS::JDispersion
Implementation of dispersion for water in deep sea.
Definition:
JDispersion.hh:26
JDispersion.hh
JPHYSICS::JDispersionInterface::getIndexOfRefractionGroup
virtual double getIndexOfRefractionGroup(const double lambda) const
Index of refraction for group velocity.
Definition:
JDispersionInterface.hh:52
Generated by
1.8.16