Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Physics.hh
Go to the documentation of this file.
1 #ifndef __PHYSICS__
2 #define __PHYSICS__
3 
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
Auxiliary methods for PDF calculations.
const double getSpeedOfLight()
Number of bytes in a gigabyte.
Definition: JConstants.hh:89
Implementation of dispersion for water in deep sea.
Definition: JDispersion.hh:26
virtual double getIndexOfRefractionGroup(const double lambda) const
Index of refraction for group velocity.
double c_water_genhen()
Definition: Physics.hh:25
double c_water(double wavelength, double water_depth)
Definition: Physics.hh:9