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 14497 : EigenArrayDirichletBC::validParams() 16 : { 17 14497 : InputParameters params = ArrayNodalBC::validParams(); 18 : 19 14497 : params.set<MultiMooseEnum>("vector_tags") = "eigen"; 20 14497 : params.set<MultiMooseEnum>("matrix_tags") = "eigen"; 21 : 22 14497 : params.addClassDescription("Array Dirichlet BC for eigenvalue solvers"); 23 : 24 14497 : return params; 25 0 : } 26 : 27 112 : EigenArrayDirichletBC::EigenArrayDirichletBC(const InputParameters & parameters) 28 112 : : ArrayNodalBC(parameters) 29 : { 30 112 : } 31 : 32 : void 33 20056 : EigenArrayDirichletBC::computeQpResidual(RealEigenVector & residual) 34 : { 35 20056 : residual.setZero(); 36 20056 : } 37 : 38 : RealEigenVector 39 0 : EigenArrayDirichletBC::computeQpJacobian() 40 : { 41 0 : return RealEigenVector::Zero(_var.count()); 42 : } 43 : 44 : RealEigenMatrix 45 2416 : EigenArrayDirichletBC::computeQpOffDiagJacobian(MooseVariableFEBase & jvar) 46 : { 47 4832 : return RealEigenMatrix::Zero(_var.count(), jvar.count()); 48 : }