www.mooseframework.org
RelativeSolutionDifferenceNorm.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
16 #include "Transient.h"
17 
18 template <>
21 {
23  return params;
24 }
25 
27  : GeneralPostprocessor(params), _trex(dynamic_cast<Transient *>(_app.getExecutioner()))
28 {
29  if (!_trex)
30  mooseError("RelativeSolutionDifferenceNorm postprocessor is only for transient calculations");
31 }
32 
33 Real
35 {
37 }
Transient executioners usually loop through a number of timesteps...
Definition: Transient.h:36
virtual Real getValue() override
Returns the relative solution norm taken from the transient executioner.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< GeneralPostprocessor >()
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
RelativeSolutionDifferenceNorm(const InputParameters &parameters)
Class constructor.
InputParameters validParams< RelativeSolutionDifferenceNorm >()
Transient * _trex
Transient executioner.
virtual Real relativeSolutionDifferenceNorm()
The relative L2 norm of the difference between solution and old solution vector.
Definition: Transient.C:833
void mooseError(Args &&...args) const
Definition: MooseObject.h:80