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 "FXValueBC.h" 11 : #include "FunctionSeries.h" 12 : 13 : registerMooseObject("FunctionalExpansionToolsApp", FXValueBC); 14 : 15 : InputParameters 16 40 : FXValueBC::validParams() 17 : { 18 40 : InputParameters params = FunctionDirichletBC::validParams(); 19 : 20 40 : params.addClassDescription( 21 : "Imposes a fixed value boundary condition, evaluated using a FunctionSeries instance."); 22 : 23 40 : return params; 24 0 : } 25 : 26 21 : FXValueBC::FXValueBC(const InputParameters & parameters) : FunctionDirichletBC(parameters) 27 : { 28 21 : FunctionSeries & fe_basis = FunctionSeries::checkAndConvertFunction(_func, getBase(), name()); 29 : 30 19 : fe_basis.useCache(true); 31 19 : }