v0.14.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 43 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
inline

Definition at line 42 of file analytical_poisson.cpp.

43  {
45  grad(0) = 2 * x;
46  grad(1) = 2 * y;
47  grad(2) = 3 * z * z;
48  return grad;
49  }

◆ operator()() [2/3]

FTensor::Tensor1<double, 3> ExactFunctionGrad::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 44 of file analytical_nonlinear_poisson.cpp.

45  {
47  grad(0) = 1;
48  grad(1) = 1;
49  grad(2) = 3 * z * z;
50  return grad;
51  }

◆ operator()() [3/3]

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

Definition at line 45 of file analytical_poisson_field_split.cpp.

46  {
48  grad(0) = 2 * x;
49  grad(1) = 2 * y;
50  grad(2) = 3 * z * z;
51  return grad;
52  }

The documentation for this struct was generated from the following files:
FTensor::Tensor1< double, 3 >