https://mooseframework.inl.gov
Loading...
Searching...
No Matches
AverageValueConstraint.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 "ScalarKernel.h"
13
32{
33public:
35
37
38 virtual void reinit() override;
39 virtual void computeOffDiagJacobianScalar(unsigned int jvar) override;
40 virtual bool computesJacobian() const override { return _add_jacobian; }
41
42protected:
43 virtual Real computeQpResidual() override;
44 virtual Real computeQpJacobian() override;
45 virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar);
46
48 Real _value;
49
52
54 const bool _add_jacobian;
55};
Real PostprocessorValue
various MOOSE typedefs
Definition MooseTypes.h:230
This Kernel implements part of the equation that enforces the constraint of.
const bool _add_jacobian
Whether this object should add its zero Jacobian into matrices.
Real _value
Given (constant) which we want the integral of the solution variable to match.
const PostprocessorValue & _pp_value
Name of the Postprocessor value we are trying to equate with 'value'.
virtual bool computesJacobian() const override
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()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131