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

Example 14 Output

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
SolutionUserObject
to read in the fine-grid solution.Next, a
SolutionFunction
utilizes theSolutionUserObject
to present the solution field as a MOOSEFunction
.Finally, an
ElementL2Error
Postprocessor
is utilized to compute the difference between the solutions.