https://mooseframework.inl.gov
src
postprocessors
NumFixedPointIterations.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
// MOOSE includes
11
#include "
NumFixedPointIterations.h
"
12
#include "
MooseApp.h
"
13
#include "
Executioner.h
"
14
15
registerMooseObject
(
"MooseApp"
,
NumFixedPointIterations
);
16
registerMooseObjectRenamed
(
"MooseApp"
,
17
NumPicardIterations,
18
"06/30/2021 24:00"
,
19
NumFixedPointIterations
);
20
21
InputParameters
22
NumFixedPointIterations::validParams
()
23
{
24
InputParameters
params =
GeneralPostprocessor::validParams
();
25
params.
addClassDescription
(
26
"Returns the number of fixed point iterations taken by the executioner."
);
27
return
params;
28
}
29
30
NumFixedPointIterations::NumFixedPointIterations
(
const
InputParameters
& parameters)
31
:
GeneralPostprocessor
(parameters)
32
{
33
}
34
35
Real
36
NumFixedPointIterations::getValue
()
const
37
{
38
return
_app
.
getExecutioner
()->
fixedPointSolve
().
numFixedPointIts
();
39
}
NumFixedPointIterations::NumFixedPointIterations
NumFixedPointIterations(const InputParameters ¶meters)
Definition:
NumFixedPointIterations.C:30
NumFixedPointIterations::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
NumFixedPointIterations.C:36
NumFixedPointIterations
Returns the number of fixed point iterations taken by the Executioner as a Postprocessor.
Definition:
NumFixedPointIterations.h:18
NumFixedPointIterations::validParams
static InputParameters validParams()
Definition:
NumFixedPointIterations.C:22
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
GeneralPostprocessor
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
Definition:
GeneralPostprocessor.h:21
FixedPointSolve::numFixedPointIts
unsigned int numFixedPointIts() const
Get the number of fixed point iterations performed Because this returns the number of fixed point ite...
Definition:
FixedPointSolve.h:56
registerMooseObjectRenamed
registerMooseObjectRenamed("MooseApp", NumPicardIterations, "06/30/2021 24:00", NumFixedPointIterations)
GeneralPostprocessor::validParams
static InputParameters validParams()
Definition:
GeneralPostprocessor.C:13
Executioner.h
MooseApp.h
MooseBase::_app
MooseApp & _app
The MOOSE application this is associated with.
Definition:
MooseBase.h:84
MooseApp::getExecutioner
Executioner * getExecutioner() const
Retrieve the Executioner for this App.
Definition:
MooseApp.C:2085
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
NumFixedPointIterations.h
Executioner::fixedPointSolve
FixedPointSolve & fixedPointSolve()
Definition:
Executioner.h:124
InputParameters::addClassDescription
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...
Definition:
InputParameters.C:82
registerMooseObject
registerMooseObject("MooseApp", NumFixedPointIterations)
Generated on Wed Jul 16 2025 13:56:15 for https://mooseframework.inl.gov by
1.8.14