File: kernelWaterHeight.h

package info (click to toggle)
groops 0%2Bgit20250907%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 11,140 kB
  • sloc: cpp: 135,607; fortran: 1,603; makefile: 20
file content (59 lines) | stat: -rw-r--r-- 1,707 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/***********************************************/
/**
* @file kernelWaterHeight.h
*
* @brief Kernel for computation of equivalent water height.
* Conversion of density in equivalent water heights.
* @see Kernel
*
* @author Torsten Mayer-Guerr
* @date 2003-09-20
*
*/
/***********************************************/

#ifndef __GROOPS_KERNELWATERHEIGHT__
#define __GROOPS_KERNELWATERHEIGHT__

// Latex documentation
#ifdef DOCSTRING_Kernel
static const char *docstringKernelWaterHeight = R"(
\subsection{WaterHeight}\label{kernelType:waterHeight}
Height of equivalent water columns taking the effect of the loading into account.

The coefficients of the kernel defined in \eqref{eq.kernel} are
\begin{equation}
k_n = 4\pi G \rho R\frac{1+k_n'}{2n+1},
\end{equation}
where $G$ is the gravitational constant, $\rho$ is the \config{density} of water
and $k_n'$ are the load Love numbers.
)";
#endif

/***********************************************/

#include "classes/kernel/kernel.h"

/***** CLASS ***********************************/

/** @brief Kernel for computation of equivalent water height.
* @ingroup kernelGroup
* Conversion of density in equivalent water heights.
* @see Kernel */
class KernelWaterHeight : public Kernel
{
  Double rho;
  Vector kn;

public:
  KernelWaterHeight(Config &config);

  Vector coefficients       (const Vector3d &p, UInt degree) const;
  Vector inverseCoefficients(const Vector3d &p, UInt degree, Bool interior) const;
  Double inverseKernel(const Vector3d &p, const Vector3d &q, const Kernel &kernel) const;
  Double inverseKernel(const Time &time, const Vector3d &p, const GravityfieldBase &field) const;
};

/***********************************************/

#endif