11#include "libmesh/system.h"
20 "Lagrange multiplier approach.");
22 "pp_name",
"Name of the Postprocessor value we are trying to equate with 'value'.");
24 "value",
"Given (constant) which we want the integral of the solution variable to match.");
30 _value(getParam<Real>(
"value")),
31 _pp_value(getPostprocessorValue(
"pp_name")),
32 _add_jacobian(!_sys.system().has_static_condensation())
registerMooseObject("MooseApp", AverageValueConstraint)
This Kernel implements part of the equation that enforces the constraint of.
Real _value
Given (constant) which we want the integral of the solution variable to match.
AverageValueConstraint(const InputParameters ¶meters)
const PostprocessorValue & _pp_value
Name of the Postprocessor value we are trying to equate with 'value'.
virtual Real computeQpJacobian() override
virtual Real computeQpResidual() override
virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar)
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
virtual void reinit() override
Reinitialization method called before each call to computeResidual()
static InputParameters validParams()
static InputParameters validParams()