https://mooseframework.inl.gov
Loading...
Searching...
No Matches
VariableOldValueBounds.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
11
14 VariableOldValueBoundsAux,
15 "06/30/2024 24:00",
17
20{
22 params.addClassDescription("Uses the old variable values as the bounds for the new solve.");
23 return params;
24}
25
30
31Real
33{
34 if (_fe_var && isNodal())
36 else
37 mooseError("This variable type is not supported yet");
38}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
registerMooseObjectRenamed("MooseApp", VariableOldValueBoundsAux, "06/30/2024 24:00", VariableOldValueBounds)
registerMooseObject("MooseApp", VariableOldValueBounds)
bool isNodal() const
Nodal or elemental kernel?
Definition AuxKernel.h:43
const Node *const & _current_node
Current node (valid only for nodal kernels)
Definition AuxKernel.h:143
This is a base class used to set an upper and/or lower bound of a variable for the PETSc's variationa...
Definition BoundsBase.h:18
static InputParameters validParams()
Definition BoundsBase.C:16
MooseVariableFE< Real > * _fe_var
Pointer to the finite element variable we set the bound for. Will be null for finite volume.
Definition BoundsBase.h:52
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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.
DofValue getNodalValueOld(const Node &node) const
Get the old value of this variable at given node.
Provides a bound of a variable using its old value.
VariableOldValueBounds(const InputParameters &parameters)
static InputParameters validParams()
virtual Real getBound() override
Method to get bound value for a variable.