v0.9.0
Public Member Functions | List of all members
ExactFunctionGrad Struct Reference

Exact gradient. More...

Public Member Functions

FTensor::Tensor1< double, 3 > operator() (const double x, const double y, const double z) const
 
FTensor::Tensor1< double, 3 > operator() (const double x, const double y, const double z) const
 
FTensor::Tensor1< double, 3 > operator() (const double x, const double y, const double z) const
 

Detailed Description

Exact gradient.

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

Definition at line 55 of file analytical_nonlinear_poisson.cpp.

Member Function Documentation

◆ operator()() [1/3]

FTensor::Tensor1<double, 3> ExactFunctionGrad::operator() ( const double  x,
const double  y,
const double  z 
) const

Definition at line 54 of file analytical_poisson.cpp.

55  {
57  grad(0) = 2 * x;
58  grad(1) = 2 * y;
59  grad(2) = 3 * z * z;
60  return grad;
61  }

◆ operator()() [2/3]

FTensor::Tensor1<double, 3> ExactFunctionGrad::operator() ( const double  x,
const double  y,
const double  z 
) const
Examples
analytical_nonlinear_poisson.cpp, analytical_poisson.cpp, and analytical_poisson_field_split.cpp.

Definition at line 56 of file analytical_nonlinear_poisson.cpp.

57  {
59  grad(0) = 1;
60  grad(1) = 1;
61  grad(2) = 3 * z * z;
62  return grad;
63  }

◆ operator()() [3/3]

FTensor::Tensor1<double, 3> ExactFunctionGrad::operator() ( const double  x,
const double  y,
const double  z 
) const

Definition at line 57 of file analytical_poisson_field_split.cpp.

58  {
60  grad(0) = 2 * x;
61  grad(1) = 2 * y;
62  grad(2) = 3 * z * z;
63  return grad;
64  }

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