Sticky-type boundary condition, where if the old variable value exceeds the bounds provided u is fixed (ala Dirichlet) to the old value.
More...
#include <StickyBC.h>
|
| StickyBC (const InputParameters ¶meters) |
|
Sticky-type boundary condition, where if the old variable value exceeds the bounds provided u is fixed (ala Dirichlet) to the old value.
Definition at line 24 of file StickyBC.h.
◆ StickyBC()
StickyBC::StickyBC |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 34 of file StickyBC.C.
35 : NodalBC(parameters),
36 _u_old(_var.dofValuesOld()),
41 mooseError(
"StickyBC: min_value must not be greater than max_value");
◆ computeQpResidual()
Real StickyBC::computeQpResidual |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ shouldApply()
bool StickyBC::shouldApply |
( |
| ) |
|
|
overrideprotectedvirtual |
Definition at line 45 of file StickyBC.C.
47 const unsigned qp = 0;
◆ validParams()
InputParameters StickyBC::validParams |
( |
| ) |
|
|
static |
Definition at line 18 of file StickyBC.C.
21 params.addParam<Real>(
23 std::numeric_limits<Real>::lowest(),
24 "If the old variable value <= min_value, the variable is fixed at its old value");
25 params.addParam<Real>(
27 std::numeric_limits<Real>::max(),
28 "If the old variable value >= max_value, the variable is fixed at its old value");
29 params.addClassDescription(
30 "Imposes the boundary condition $u = u_{old}$ if $u_{old}$ exceeds the bounds provided");
◆ _max_value
const Real StickyBC::_max_value |
|
protected |
◆ _min_value
const Real StickyBC::_min_value |
|
protected |
◆ _u_old
const VariableValue& StickyBC::_u_old |
|
protected |
The documentation for this class was generated from the following files: