https://mooseframework.inl.gov
Loading...
Searching...
No Matches
VectorIntegratedBC.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 "IntegratedBCBase.h"
14
18class VectorIntegratedBC : public IntegratedBCBase, public MooseVariableInterface<RealVectorValue>
19{
20public:
22
24
25 virtual const VectorMooseVariable & variable() const override { return _var; }
26
27 virtual void computeResidual() override;
28 virtual void computeJacobian() override;
32 virtual void computeOffDiagJacobian(unsigned int jvar) override;
37 void computeOffDiagJacobianScalar(unsigned int jvar) override;
38
39protected:
43 virtual Real computeQpResidual() = 0;
44
48 virtual Real computeQpJacobian() { return 0; }
49
53 virtual Real computeQpOffDiagJacobian(unsigned int /*jvar*/) { return 0; }
54
58 virtual Real computeQpOffDiagJacobianScalar(unsigned int /*jvar*/) { return 0; }
59
61
64
65 // shape functions
66
69
70 // test functions
71
74
75 // solution variable
76
79};
OutputTools< RealVectorValue >::VariablePhiValue VectorVariablePhiValue
Definition MooseTypes.h:370
OutputTools< RealVectorValue >::VariableTestValue VectorVariableTestValue
Definition MooseTypes.h:375
OutputTools< RealVectorValue >::VariableValue VectorVariableValue
Definition MooseTypes.h:365
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.
forward declarations
Definition MooseArray.h:18
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Class for stuff related to variables.
Interface for objects that need to get values of MooseVariables.
Base class for deriving any boundary condition of a integrated type.
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual Real computeQpOffDiagJacobianScalar(unsigned int)
Method for computing an off-diagonal jacobian component from a scalar var.
virtual Real computeQpJacobian()
Method for computing the diagonal Jacobian at quadrature points.
static InputParameters validParams()
const MooseArray< Point > & _normals
normals at quadrature points
virtual Real computeQpOffDiagJacobian(unsigned int)
Method for computing an off-diagonal jacobian component at quadrature points.
const VectorVariablePhiValue & _phi
shape function values (in QPs)
const VectorMooseVariable & _var
void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-ivar-residual / d-jvar...
virtual const VectorMooseVariable & variable() const override
Returns the variable that this object operates on.
const VectorVariableTestValue & _test
test function values (in QPs)
virtual Real computeQpResidual()=0
Method for computing the residual at quadrature points.
const VectorVariableValue & _u
the values of the unknown variable this BC is acting on