v0.9.0
ExactFunction Struct Reference

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

Function.

This is prescribed exact function. If this function is given by polynomial order of "p" and order of approximation is "p" or higher, solution of finite element method is exact (with machine precision).

$u = 1+x+2y+3z$

This is prescribed exact function. If this function is given by polynomial order of "p" and order of approximation is "p" or higher, solution of finite element method is exact (with machine precision).

$u = 1+x^2+y^2+z^3$

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

Definition at line 46 of file analytical_nonlinear_poisson.cpp.

◆ operator()() [1/3]

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

Definition at line 45 of file analytical_poisson.cpp.

45  {
46  return 1 + x * x + y * y + z * z * z;
47  }

◆ operator()() [2/3]

 double ExactFunction::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 47 of file analytical_nonlinear_poisson.cpp.

47  {
48  return 1 + x + y + pow(z, 3);
49  }

◆ operator()() [3/3]

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

Definition at line 48 of file analytical_poisson_field_split.cpp.

48  {
49  return 1 + x * x + y * y + z * z * z;
50  }

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