File: kernelRadialGradient.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 (51 lines) | stat: -rw-r--r-- 1,314 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
/***********************************************/
/**
* @file kernelRadialGradient.h
*
* @brief 2nd radial derivative (gravity gradients).
* @see Kernel
*
* @author Torsten Mayer-Guerr
* @date 2003-09-20
*
*/
/***********************************************/

#ifndef __GROOPS_KERNELRADIALGRADIENT__
#define __GROOPS_KERNELRADIALGRADIENT__

// Latex documentation
#ifdef DOCSTRING_Kernel
static const char *docstringKernelRadialGradient = R"(
\subsection{RadialGradient}
This kernel defines the second radial derivative of the (disturbance) potential.
\begin{equation}
T_{rr} = \frac{\partial^2 T}{\partial r^2}.
\end{equation}
The coefficients of the kernel defined in \eqref{eq.kernel} are
\begin{equation}
k_n = \frac{r^2}{(n+1)(n+2)}.
\end{equation}
)";
#endif

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

#include "classes/kernel/kernel.h"

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

/** @brief 2nd radial derivative (gravity gradients).
* @ingroup kernelGroup
* @see Kernel */
class KernelRadialGradient : public Kernel
{
public:
  KernelRadialGradient(Config &/*config*/) {}
  Vector   coefficients       (const Vector3d &p, UInt degree) const;
  Vector   inverseCoefficients(const Vector3d &p, UInt degree, Bool interior) const;
};

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

#endif