Base class for convergence criteria.
MooseConvergenceStatus
Status returned by calls to checkConvergence.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
std::shared_ptr< SymFunction > SymFunctionPtr
Shorthand for an smart pointer to an autodiff function parser object.
Base class for function objects.
const InputParameters & parameters() const
Get the parameters of the object.
Evaluates convergence from a parsed expression.
bool convertRealToBool(Real value, const std::string ¶m) const
Converts a Real value to a bool.
std::vector< unsigned int > _pp_indices
void updatePostprocessorSymbolValues()
std::vector< const PostprocessorValue * > _pp_values
Post-processor values in the provided symbols.
const std::string _divergence_expression
Expression to parse for divergence.
void initializeFunctionSymbol(unsigned int i)
std::vector< std::string > _symbol_names
User-defined symbols to use in parsed expression.
std::vector< Convergence * > _convergences
Convergences in the provided symbols.
std::vector< unsigned int > _function_indices
std::vector< Real > _convergence_function_params
Convergence function parameters.
void updateFunctionSymbolValues()
SymFunctionPtr _divergence_function
Parsed function for divergence.
virtual MooseConvergenceStatus checkConvergence(unsigned int n_iter) override
Returns convergence status.
void initializePostprocessorSymbol(unsigned int i)
std::vector< std::string > _convergence_symbol_names
void updateConvergenceSymbolValues(unsigned int n_iter)
std::vector< unsigned int > _convergence_indices
void updateSymbolValues(unsigned int n_iter)
Updates non-constant symbol values.
const std::string _convergence_expression
Expression to parse for convergence.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
usingFunctionParserUtilsMembers(false)
std::vector< Function * > _functions
Functions in the provided symbols.
void initializeConstantSymbol(unsigned int i)
SymFunctionPtr _convergence_function
Parsed function for convergence.
void initializeSymbols()
Initializes symbols used in the parsed expression.
void initializeConvergenceSymbol(unsigned int i)
std::vector< Real > _divergence_function_params
Divergence function parameters.
SymFunctionPtr makeParsedFunction(const std::string &expression)
Makes a parsed function.
FEProblemBase & _fe_problem
static InputParameters validParams()
std::vector< std::string > _symbol_values
Corresponding symbol values (Convergence, Function, Postprocessor, or constant)