Line data Source code
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 : #include "EigenArrayDirichletBC.h" 11 : 12 : registerMooseObject("MooseApp", EigenArrayDirichletBC); 13 : 14 : InputParameters 15 14509 : EigenArrayDirichletBC::validParams() 16 : { 17 14509 : InputParameters params = ArrayNodalBC::validParams(); 18 : 19 14509 : params.set<MultiMooseEnum>("vector_tags") = "eigen"; 20 14509 : params.set<MultiMooseEnum>("matrix_tags") = "eigen"; 21 : 22 14509 : params.addClassDescription("Array Dirichlet BC for eigenvalue solvers"); 23 : 24 14509 : return params; 25 0 : } 26 : 27 118 : EigenArrayDirichletBC::EigenArrayDirichletBC(const InputParameters & parameters) 28 118 : : ArrayNodalBC(parameters) 29 : { 30 118 : } 31 : 32 : void 33 22248 : EigenArrayDirichletBC::computeQpResidual(RealEigenVector & residual) 34 : { 35 22248 : residual.setZero(); 36 22248 : } 37 : 38 : RealEigenVector 39 0 : EigenArrayDirichletBC::computeQpJacobian() 40 : { 41 0 : return RealEigenVector::Zero(_var.count()); 42 : } 43 : 44 : RealEigenMatrix 45 2592 : EigenArrayDirichletBC::computeQpOffDiagJacobian(MooseVariableFEBase & jvar) 46 : { 47 5184 : return RealEigenMatrix::Zero(_var.count(), jvar.count()); 48 : }