v0.13.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ExactLaplacianFunction Struct Reference

Laplacian of function. More...

Public Member Functions

double operator() (const double x, const double y, const double z) const
 
double operator() (const double x, const double y, const double z) const
 
double operator() (const double x, const double y, const double z) const
 

Detailed Description

Laplacian of function.

This is Laplacian of \(u\), it is calculated using formula

\[ \nabla^2 u(x,y,z) = \nabla \cdot \nabla u \frac{\partial^2 u}{\partial x^2}+ \frac{\partial^2 u}{\partial y^2}+ \frac{\partial^2 u}{\partial z^2} \]

This is Laplacian of \(u\), it is calculated using formula

\[ \nabla^2 u(x,y,z) = \nabla \cdot \nabla u \frac{\partial^2 u}{\partial x^2}+ \frac{\partial^2 u}{\partial y^2}+ \frac{\partial^2 u}{\partial z^2} \]

Examples
analytical_nonlinear_poisson.cpp, analytical_poisson.cpp, and analytical_poisson_field_split.cpp.

Definition at line 58 of file analytical_nonlinear_poisson.cpp.

Member Function Documentation

◆ operator()() [1/3]

double ExactLaplacianFunction::operator() ( const double  x,
const double  y,
const double  z 
) const
inline
Examples
analytical_nonlinear_poisson.cpp, analytical_poisson.cpp, and analytical_poisson_field_split.cpp.

Definition at line 59 of file analytical_nonlinear_poisson.cpp.

59 {
60 return 0.4e1 + (double)(4 * x) + (double)(4 * y) + 0.4e1 * pow(z, 0.3e1) +
61 0.3e1 *
62 (0.6e1 * z * z + 0.6e1 * (double)x * z * z +
63 0.6e1 * (double)y * z * z + 0.6e1 * pow(z, 0.5e1)) *
64 z * z +
65 0.6e1 *
66 (0.2e1 + (double)(2 * x) + (double)(2 * y) +
67 0.2e1 * pow(z, 0.3e1) + (double)(x * x) + (double)(2 * x * y) +
68 0.2e1 * (double)x * pow(z, 0.3e1) + (double)(y * y) +
69 0.2e1 * (double)y * pow(z, 0.3e1) + pow(z, 0.6e1)) *
70 z;
71 }

◆ operator()() [2/3]

double ExactLaplacianFunction::operator() ( const double  x,
const double  y,
const double  z 
) const
inline

Definition at line 65 of file analytical_poisson.cpp.

65 {
66 return 4 + 6 * z;
67 }

◆ operator()() [3/3]

double ExactLaplacianFunction::operator() ( const double  x,
const double  y,
const double  z 
) const
inline

Definition at line 68 of file analytical_poisson_field_split.cpp.

68 {
69 return 4 + 6 * z;
70 }

The documentation for this struct was generated from the following files: