https://mooseframework.inl.gov
Loading...
Searching...
No Matches
StickyBC.h
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#pragma once
11
12#include "NodalBC.h"
13
19class StickyBC : public NodalBC
20{
21public:
23
25
26protected:
27 virtual bool shouldApply() const override;
28 virtual Real computeQpResidual() override;
29
30 // old value of the variable
33 const Real _min_value;
35 const Real _max_value;
36};
const InputParameters & parameters() const
Sticky-type boundary condition, where if the old variable value exceeds the bounds provided u is fixe...
Definition StickyBC.h:20
const VariableValue & _u_old
Definition StickyBC.h:31
const Real _max_value
The maximum bound.
Definition StickyBC.h:35
const Real _min_value
The minimum bound.
Definition StickyBC.h:33
static InputParameters validParams()
Definition StickyBC.C:16
virtual bool shouldApply() const override
Definition StickyBC.C:43
virtual Real computeQpResidual() override
Definition StickyBC.C:50
VariableValueTempl< false > VariableValue