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 "UserForcingFunction.h" 11 : #include "Function.h" 12 : 13 : registerMooseObjectRenamed("MooseApp", UserForcingFunction, "04/01/2018 00:00", BodyForce); 14 : 15 : InputParameters 16 0 : UserForcingFunction::validParams() 17 : { 18 0 : return BodyForce::validParams(); 19 : } 20 : 21 0 : UserForcingFunction::UserForcingFunction(const InputParameters & parameters) : BodyForce(parameters) 22 : { 23 0 : mooseDeprecated("UserForcingFunction has been replaced by BodyForce."); 24 0 : } 25 : 26 : Real 27 0 : UserForcingFunction::f() 28 : { 29 0 : mooseDeprecated("This method is a legacy method from UserForcingFunction, please update your " 30 : "code to use the BodyForce object and the _function member variable instead."); 31 0 : return _function.value(_t, _q_point[_qp]); 32 : }