www.mooseframework.org
StickyBC.h
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 #ifndef STICKYBC_H
16 #define STICKYBC_H
17 
18 #include "NodalBC.h"
19 
20 class StickyBC;
21 
22 template <>
23 InputParameters validParams<StickyBC>();
24 
30 class StickyBC : public NodalBC
31 {
32 public:
33  StickyBC(const InputParameters & parameters);
34 
35 protected:
36  virtual bool shouldApply() override;
37  virtual Real computeQpResidual() override;
38 
39  // old value of the variable
40  const VariableValue & _u_old;
42  const Real _min_value;
44  const Real _max_value;
45 };
46 
47 #endif /* STICKYBC_H */
virtual Real computeQpResidual() override
Definition: StickyBC.C:54
StickyBC(const InputParameters &parameters)
Definition: StickyBC.C:36
Sticky-type boundary condition, where if the old variable value exceeds the bounds provided u is fixe...
Definition: StickyBC.h:30
InputParameters validParams< StickyBC >()
Definition: StickyBC.C:20
const VariableValue & _u_old
Definition: StickyBC.h:40
virtual bool shouldApply() override
Definition: StickyBC.C:47
const Real _min_value
The minimum bound.
Definition: StickyBC.h:42
const Real _max_value
The maximum bound.
Definition: StickyBC.h:44