https://mooseframework.inl.gov
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 {
33 public:
35 
37 
38  virtual void reinit() override;
39  virtual void computeOffDiagJacobianScalar(unsigned int jvar) override;
40 
41 protected:
42  virtual Real computeQpResidual() override;
43  virtual Real computeQpJacobian() override;
44  virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar);
45 
48 
51 };
virtual Real computeQpJacobian() override
AverageValueConstraint(const InputParameters &parameters)
const PostprocessorValue & _pp_value
Name of the Postprocessor value we are trying to equate with 'value'.
virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This Kernel implements part of the equation that enforces the constraint of.
virtual Real computeQpResidual() override
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
Real PostprocessorValue
various MOOSE typedefs
Definition: MooseTypes.h:202
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
virtual void reinit() override
Reinitialization method called before each call to computeResidual()
static InputParameters validParams()
Real _value
Given (constant) which we want the integral of the solution variable to match.