https://mooseframework.inl.gov
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 
10 #include "VariableOldValueBounds.h"
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 
27  : BoundsBase(parameters)
28 {
29 }
30 
31 Real
33 {
34  if (_fe_var && isNodal())
36  else
37  mooseError("This variable type is not supported yet");
38 }
registerMooseObjectRenamed("MooseApp", VariableOldValueBoundsAux, "06/30/2024 24:00", VariableOldValueBounds)
const Node *const & _current_node
Current node (valid only for nodal kernels)
Definition: AuxKernel.h:214
VariableOldValueBounds(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real getBound() override
Method to get bound value for a variable.
Provides a bound of a variable using its old value.
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
static InputParameters validParams()
Definition: BoundsBase.C:16
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("MooseApp", VariableOldValueBounds)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
Definition: MooseBase.h:267
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...
This is a base class used to set an upper and/or lower bound of a variable for the PETSc&#39;s variationa...
Definition: BoundsBase.h:17
bool isNodal() const
Nodal or elemental kernel?
Definition: AuxKernel.h:86
static InputParameters validParams()
OutputData getNodalValueOld(const Node &node) const
Get the old value of this variable at given node.