libMesh
|
Go to the source code of this file.
Functions | |
Real | exact_solution (const int component, const Real x, const Real y, const Real z=0.) |
This is the exact solution that we are trying to obtain. More... | |
Real | forcing_function (const int component, const Real x, const Real y, const Real z=0.) |
Real exact_solution | ( | const int | component, |
const Real | x, | ||
const Real | y, | ||
const Real | z = 0. |
||
) |
This is the exact solution that we are trying to obtain.
We will solve
and take a finite difference approximation using this function to get f. This is the well-known "method of manufactured solutions".
Definition at line 38 of file exact_solution.C.
References libMesh::pi, and libMesh::Real.
Referenced by assemble_poisson(), and compute_residual().
Real forcing_function | ( | const int | component, |
const Real | x, | ||
const Real | y, | ||
const Real | z = 0. |
||
) |
Definition at line 59 of file exact_solution.C.
References libMesh::pi, and libMesh::Real.
Referenced by compute_residual().