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 
19 class StickyBC : public NodalBC
20 {
21 public:
23 
25 
26 protected:
27  virtual bool shouldApply() override;
28  virtual Real computeQpResidual() override;
29 
30  // old value of the variable
36 };
virtual Real computeQpResidual() override
Definition: StickyBC.C:50
StickyBC(const InputParameters &parameters)
Definition: StickyBC.C:32
Sticky-type boundary condition, where if the old variable value exceeds the bounds provided u is fixe...
Definition: StickyBC.h:19
const VariableValue & _u_old
Definition: StickyBC.h:31
virtual bool shouldApply() override
Definition: StickyBC.C:43
static InputParameters validParams()
Definition: StickyBC.C:16
const Real _min_value
The minimum bound.
Definition: StickyBC.h:33
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _max_value
The maximum bound.
Definition: StickyBC.h:35
const InputParameters & parameters() const