https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ArrayLowerDIntegratedBC.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 "ArrayIntegratedBC.h"
13
18{
19public:
21
23
24 const ArrayMooseVariable & variable() const override final { return _var; }
25 const ArrayMooseVariable & lowerDVariable() const { return _lowerd_var; }
26
27 virtual void computeResidual() override;
28 virtual void computeJacobian() override;
29 virtual void computeOffDiagJacobian(unsigned int jvar) override;
30
31protected:
36 virtual void computeLowerDQpResidual(RealEigenVector & residual) = 0;
37
42
48
53 const unsigned int jvar_num);
54
59 const MooseVariableFEBase & jvar);
60
64 virtual void initLowerDQpResidual() {}
65
70
87
88private:
90 RealEigenVector _work_vector;
91};
OutputTools< RealEigenVector >::VariableValue ArrayVariableValue
Definition MooseTypes.h:382
OutputTools< RealEigenVector >::VariablePhiValue ArrayVariablePhiValue
Definition MooseTypes.h:389
OutputTools< RealEigenVector >::VariableTestValue ArrayVariableTestValue
Definition MooseTypes.h:395
Base class for deriving any boundary condition of a integrated type.
ArrayMooseVariable & _var
Base class for deriving any boundary condition of a integrated type.
RealEigenVector _work_vector
Work vector for residual.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-ivar-residual / d-jvar...
virtual void computeLowerDJacobian(Moose::ConstraintJacobianType type)
Method for computing the LowerLower, PrimaryLower and LowerPrimary parts of Jacobian.
void computeLowerDOffDiagJacobian(Moose::ConstraintJacobianType type, const unsigned int jvar_num)
Method for computing an off-diagonal jacobian component.
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
virtual RealEigenMatrix computeLowerDQpOffDiagJacobian(Moose::ConstraintJacobianType type, const MooseVariableFEBase &jvar)
Method for computing an off-diagonal jacobian component at quadrature points.
const ArrayVariableValue & _lambda
Holds the current solution at the current quadrature point on the face.
const ArrayMooseVariable & variable() const override final
Returns the variable that this object operates on.
virtual void initLowerDQpOffDiagJacobian(Moose::ConstraintJacobianType, const MooseVariableFEBase &)
Put necessary evaluations depending on qp but independent on test and shape functions here for off-di...
virtual RealEigenVector computeLowerDQpJacobian(Moose::ConstraintJacobianType)=0
Method for computing the LowerLower, PrimaryLower and LowerPrimary parts of Jacobian at quadrature po...
static InputParameters validParams()
virtual void computeLowerDQpResidual(RealEigenVector &residual)=0
Method for computing the Lower part of residual at quadrature points, to be filled in residual.
const ArrayVariableTestValue & _test_lambda
test functions
virtual void initLowerDQpResidual()
Put necessary evaluations depending on qp but independent on test functions here.
virtual void initLowerDQpJacobian(Moose::ConstraintJacobianType)
Put necessary evaluations depending on qp but independent on test and shape functions here.
const ArrayMooseVariable & _lowerd_var
Variable this kernel operates on.
const ArrayVariablePhiValue & _phi_lambda
Shape functions.
virtual void computeResidual() override
Compute this object's contribution to the residual.
const ArrayMooseVariable & lowerDVariable() const
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
const std::string & type() const
Get the type of this class.
Definition MooseBase.h:93
This class provides an interface for common operations on field variables of both FE and FV types wit...
ConstraintJacobianType
Definition MooseTypes.h:851