https://mooseframework.inl.gov
Loading...
Searching...
No Matches
VectorNodalBC.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 "NodalBCBase.h"
14
18class VectorNodalBC : public NodalBCBase, public MooseVariableInterface<RealVectorValue>
19{
20public:
22
24
29 virtual const VectorMooseVariable & variable() const override { return _var; }
30 virtual void computeResidual() override;
31 virtual void computeJacobian() override;
32 virtual void computeOffDiagJacobian(unsigned int jvar) override;
33
34protected:
36
38 const Node * const & _current_node;
39
41 const RealVectorValue & _u;
42
43 virtual RealVectorValue computeQpResidual() = 0;
44
50 virtual RealVectorValue computeQpJacobian();
51
56 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
57};
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
Class for stuff related to variables.
Interface for objects that need to get values of MooseVariables.
Base class for deriving any boundary condition that works at nodes.
Definition NodalBCBase.h:28
Base class for deriving any boundary condition that works at nodes on vector variables.
virtual RealVectorValue computeQpJacobian()
The user can override this function to compute the "on-diagonal" Jacobian contribution for this Vecto...
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
const VectorMooseVariable & _var
virtual RealVectorValue computeQpResidual()=0
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual const VectorMooseVariable & variable() const override
Gets the variable this BC is active on.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes this object's contribution to off-diagonal blocks of the system Jacobian matrix.
const Node *const & _current_node
current node being processed
const RealVectorValue & _u
Value of the unknown variable this BC is acting on.