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 "FXFluxBC.h" 11 : #include "FunctionSeries.h" 12 : 13 : registerMooseObject("FunctionalExpansionToolsApp", FXFluxBC); 14 : 15 : InputParameters 16 116 : FXFluxBC::validParams() 17 : { 18 116 : InputParameters params = FunctionNeumannBC::validParams(); 19 : 20 116 : params.addClassDescription( 21 : "Sets a flux boundary condition, evaluated using a FunctionSeries instance. This does not " 22 : "fix the flux, but rather 'strongly encourages' flux agreement by penalizing the differences " 23 : "through contributions to the residual."); 24 : 25 116 : return params; 26 0 : } 27 : 28 78 : FXFluxBC::FXFluxBC(const InputParameters & parameters) : FunctionNeumannBC(parameters) 29 : { 30 78 : FunctionSeries & fe_basis = FunctionSeries::checkAndConvertFunction(_func, getBase(), name()); 31 : 32 76 : fe_basis.useCache(true); 33 76 : }