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 "NodalBCBase.h" 11 : 12 : InputParameters 13 521562 : NodalBCBase::validParams() 14 : { 15 521562 : InputParameters params = BoundaryCondition::validParams(); 16 521562 : params.addParam<std::vector<AuxVariableName>>( 17 : "save_in", 18 : {}, 19 : "The name of auxiliary variables to save this BC's residual contributions to. " 20 : "Everything about that variable must match everything about this variable (the " 21 : "type, what blocks it's on, etc.)"); 22 521562 : params.addParam<std::vector<AuxVariableName>>( 23 : "diag_save_in", 24 : {}, 25 : "The name of auxiliary variables to save this BC's diagonal jacobian " 26 : "contributions to. Everything about that variable must match everything " 27 : "about this variable (the type, what blocks it's on, etc.)"); 28 : 29 521562 : params.addParamNamesToGroup("vector_tags matrix_tags", "Tagging"); 30 : 31 521562 : params.set<MultiMooseEnum>("vector_tags") = "residual"; 32 521562 : params.set<MultiMooseEnum>("matrix_tags") = "system time"; 33 521562 : return params; 34 0 : } 35 : 36 67265 : NodalBCBase::NodalBCBase(const InputParameters & parameters) 37 : : BoundaryCondition(parameters, true), // true is for being Nodal 38 : CoupleableMooseVariableDependencyIntermediateInterface(this, true), 39 67261 : _save_in_strings(parameters.get<std::vector<AuxVariableName>>("save_in")), 40 134526 : _diag_save_in_strings(parameters.get<std::vector<AuxVariableName>>("diag_save_in")) 41 : { 42 67261 : }