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