Example 14 : Postprocessors and Code Verification
Complete Source Files
Example 14 Output

Example 14 Output
Postprocessor Values:
+----------------+----------------+----------------+
| time | dofs | integral |
+----------------+----------------+----------------+
| 0.000000e+00 | 1.210000e+02 | 7.071068e-01 |
| 1.000000e+00 | 1.210000e+02 | 2.359249e+00 |
| 2.000000e+00 | 4.410000e+02 | 3.093980e-01 |
| 3.000000e+00 | 1.681000e+03 | 8.861951e-02 |
| 4.000000e+00 | 6.561000e+03 | 2.297902e-02 |
| 5.000000e+00 | 2.592100e+04 | 5.797875e-03 |
| 6.000000e+00 | 1.030410e+05 | 1.452813e-03 |
+----------------+----------------+----------------+

Comparison to a Fine Grid Solution
Also present in Example 14 are two input files (ex14_solution_comparison_1.i and ex14_solution_comparison_1.i) that demonstrate how to use a SolutionUserObject to read in a fine grid solution and then compare a coarse grid solution to that using ElementL2Error.
The first input file computes the fine grid solution and outputs an XDA file.
An XDA file contains the full set of sata necessary to perfectly read in a previous solution...even on adapted meshes.
The second inout file uses
SolutionUserObjectto read in the fine-grid solution.Next, a
SolutionFunctionutilizes theSolutionUserObjectto present the solution field as a MOOSEFunction.Finally, an
ElementL2ErrorPostprocessoris utilized to compute the difference between the solutions.