Jpp
Functions
Physics.hh File Reference
#include "JPhysics/JPDFToolkit.hh"
#include "JPhysics/JDispersion.hh"

Go to the source code of this file.

Functions

double c_water (double wavelength, double water_depth)
 
double c_water_genhen ()
 

Function Documentation

◆ c_water()

double c_water ( double  wavelength,
double  water_depth 
)
inline

Definition at line 9 of file Physics.hh.

9  {
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 }

◆ c_water_genhen()

double c_water_genhen ( )
inline

Definition at line 25 of file Physics.hh.

25  {
26 
27  double c_w = 0.2172 ;
28 
29  return c_w ;
30 
31 }
JTOOLS::getSpeedOfLight
const double getSpeedOfLight()
Number of bytes in a gigabyte.
Definition: JConstants.hh:89
JPHYSICS::JDispersion
Implementation of dispersion for water in deep sea.
Definition: JDispersion.hh:26