v0.14.0
Public Member Functions | List of all members
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 34 of file analytical_nonlinear_poisson.cpp.

Member Function Documentation

◆ operator()() [1/3]

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

Definition at line 33 of file analytical_poisson.cpp.

33  {
34  return 1 + x * x + y * y + z * z * z;
35  }

◆ operator()() [2/3]

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

35  {
36  return 1 + x + y + pow(z, 3);
37  }

◆ operator()() [3/3]

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

Definition at line 36 of file analytical_poisson_field_split.cpp.

36  {
37  return 1 + x * x + y * y + z * z * z;
38  }

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