www.mooseframework.org
StickyBC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #pragma once
11 
12 #include "NodalBC.h"
13 
14 class StickyBC;
15 
16 template <>
17 InputParameters validParams<StickyBC>();
18 
24 class StickyBC : public NodalBC
25 {
26 public:
27  static InputParameters validParams();
28 
29  StickyBC(const InputParameters & parameters);
30 
31 protected:
32  virtual bool shouldApply() override;
33  virtual Real computeQpResidual() override;
34 
35  // old value of the variable
36  const VariableValue & _u_old;
38  const Real _min_value;
40  const Real _max_value;
41 };
validParams< StickyBC >
InputParameters validParams< StickyBC >()
StickyBC::computeQpResidual
virtual Real computeQpResidual() override
Definition: StickyBC.C:52
StickyBC::_max_value
const Real _max_value
The maximum bound.
Definition: StickyBC.h:40
StickyBC::_min_value
const Real _min_value
The minimum bound.
Definition: StickyBC.h:38
StickyBC::_u_old
const VariableValue & _u_old
Definition: StickyBC.h:36
StickyBC::validParams
static InputParameters validParams()
Definition: StickyBC.C:18
StickyBC::StickyBC
StickyBC(const InputParameters &parameters)
Definition: StickyBC.C:34
StickyBC
Sticky-type boundary condition, where if the old variable value exceeds the bounds provided u is fixe...
Definition: StickyBC.h:24
StickyBC::shouldApply
virtual bool shouldApply() override
Definition: StickyBC.C:45