Jpp  18.0.1-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JSeaWater.hh
Go to the documentation of this file.
1 #ifndef __JSIRENE__SEAWATER__
2 #define __JSIRENE__SEAWATER__
3 
4 #include "JLang/JCC.hh"
5 
6 /**
7  * \author mdejong
8  */
9 
10 namespace JSIRENE {}
11 namespace JPP { using namespace JSIRENE; }
12 
13 namespace JSIRENE {
14 
15 
16  /**
17  * Sea water composition.
18  */
19  class JSeaWater
20  {
21  public:
22  /**
23  * Estimated mass fractions of chemical elements in sea water
24  */
25  static double O () { return 0.8584; }
26  static double H () { return 0.1082; }
27  static double Na() { return 0.0108; }
28  static double Cl() { return 0.0194; }
29 
30  //Comment the first block and uncomment this one if you desire more accuracy (in exchange for time). Remember to do the same in JSirene.cc.
31  /*
32  static double O () { return 0.85630; }
33  static double H () { return 0.10790; }
34  static double Na() { return 0.01160; }
35  static double Cl() { return 0.02090; }
36  static double Ca() { return 0.00045; }
37  static double Mg() { return 0.00140; }
38  static double K () { return 0.00045; }
39  static double S () { return 0.00100; }
40  */
41 
42  };
43 }
44 
45 #endif
static double O()
Estimated mass fractions of chemical elements in sea water.
Definition: JSeaWater.hh:25
static double H()
Definition: JSeaWater.hh:26
Compiler version dependent expressions, macros, etc.
static double Cl()
Definition: JSeaWater.hh:28
static double Na()
Definition: JSeaWater.hh:27
Sea water composition.
Definition: JSeaWater.hh:19