Jpp  17.1.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JUNESCO.hh
Go to the documentation of this file.
1 #ifndef __JACOUSTICS__JUNESCO__
2 #define __JACOUSTICS__JUNESCO__
3 
4 /**
5  * \file
6  *
7  * Sound velocity according UNESCO equation.
8  * \author mdejong
9  */
10 namespace JACOUSTICS {}
11 namespace JPP { using namespace JACOUSTICS; }
12 
13 namespace JACOUSTICS {
14 
15  /**
16  * Get sound velocity according UNESCO equation.
17  *
18  * \param D Depth [m]
19  * \param S Salinity [ppk]
20  * \param T Temperature [C]
21  * \return sound velocity [m/s]
22  */
23  inline double getVelocity(const double D, const double S, const double T)
24  {
25  return (1448.96
26  + 4.591 * T
27  - 5.304e-2 * T*T
28  + 2.374e-4 * T*T*T
29  + 1.340 * (S - 35)
30  + 1.630e-2 * D
31  + 1.675e-7 * D*D
32  - 1.025e-2 * T * (S - 35)
33  - 7.139e-13 * T*D*D*D);
34  }
35 }
36 
37 #endif
do set_variable OUTPUT_DIRECTORY $WORKDIR T
double getVelocity(const double D, const double S, const double T)
Get sound velocity according UNESCO equation.
Definition: JUNESCO.hh:23
do echo Generating $dir eval D
Definition: JDrawLED.sh:53