www.mooseframework.org
NumNonlinearIterations.h
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 
15 #ifndef NUMNONLINEARITERATIONS_H
16 #define NUMNONLINEARITERATIONS_H
17 
18 #include "GeneralPostprocessor.h"
19 
20 // Forward Declarations
22 
23 template <>
25 
31 {
32 public:
34 
38  virtual void timestepSetup() override;
39 
40  virtual void initialize() override {}
41  virtual void execute() override {}
42 
46  virtual Real getValue() override;
47 
48 protected:
51 
54 
56  unsigned int _num_iters;
57 
59  Real _time;
60 };
61 
62 #endif // NUMNONLINEARITERATIONS_H
InputParameters validParams< NumNonlinearIterations >()
virtual void timestepSetup() override
Initialization to be done at each timestep.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
NumNonlinearIterations(const InputParameters &parameters)
NumNonlinearIterations is a postprocessor that reports the number of nonlinear iterations.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Real _time
Stores the last time this was executed.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
unsigned int _num_iters
Stores the nonlinear iteration count.
FEProblemBase * _fe_problem
Pointer to the FEProblemBase.
bool _accumulate_over_step
True if we should accumulate over all nonlinear solves done as part of Picard iterations in a step...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual void execute() override
Execute method.
virtual Real getValue() override
Get the numer of nonlinear iterations.