www.mooseframework.org
TimestepSize.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 
15 #include "TimestepSize.h"
16 #include "FEProblem.h"
17 
18 template <>
21 {
23  params.addClassDescription("Reports the timestep size");
24  return params;
25 }
26 
28  : GeneralPostprocessor(parameters), _feproblem(dynamic_cast<FEProblemBase &>(_subproblem))
29 {
30 }
31 
32 Real
34 {
35  return _feproblem.dt();
36 }
TimestepSize(const InputParameters &parameters)
Definition: TimestepSize.C:27
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...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual Real getValue() override
This will return the current time step size.
Definition: TimestepSize.C:33
FEProblemBase & _feproblem
Definition: TimestepSize.h:40
virtual Real & dt() const
InputParameters validParams< TimestepSize >()
Definition: TimestepSize.C:20
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...