https://mooseframework.inl.gov
Loading...
Searching...
No Matches
BoundaryIntegralValueConstraint.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 "IntegratedBC.h"
13
15
24{
25public:
27
29
31
32 virtual std::set<std::string> additionalROVariables() override;
33
34protected:
35 virtual Real computeQpResidual() override;
36 virtual void computeResidual() override;
37 virtual void computeOffDiagJacobian(unsigned int jvar) override;
38 virtual void computeOffDiagJacobianScalar(unsigned int jvar) override;
39 virtual void computeResidualAndJacobian() override;
40
43
46
49
52
55
58
61};
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
Real PostprocessorValue
various MOOSE typedefs
Definition MooseTypes.h:230
Enforces the average value of a finite element variable on a boundary using a scalar Lagrange multipl...
virtual void computeResidualAndJacobian() override
Compute this object's contribution to the residual and Jacobian simultaneously.
const VariableValue & _lambda
Lagrange multiplier scalar variable value.
void computeScalarResidual()
Compute the Lagrange multiplier residual contribution.
void computeScalarFieldJacobian()
Compute the Jacobian contribution from the field variable to the Lagrange multiplier equation.
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-ivar-residual / d-jvar...
const MooseVariableScalar & _lambda_var
Lagrange multiplier scalar variable.
void computeScalarJacobian()
Compute the zero diagonal block for the Lagrange multiplier equation.
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
const MooseVariableScalar & lambdaVariable() const
virtual std::set< std::string > additionalROVariables() override
const PostprocessorValue & _phi0
The value that the boundary average of the field variable is constrained to.
void computeFieldScalarJacobian()
Compute the Jacobian contribution from the Lagrange multiplier to the field equation.
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Base class for deriving any boundary condition of a integrated type.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Class for scalar variables (they are different).