https://mooseframework.inl.gov
Loading...
Searching...
No Matches
UserForcingFunction.C
Go to the documentation of this file.
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
14
20
22{
23 mooseDeprecated("UserForcingFunction has been replaced by BodyForce.");
24}
25
26Real
28{
29 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 return _function.value(_t, _q_point[_qp]);
32}
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition MooseError.h:363
registerMooseObjectRenamed("MooseApp", UserForcingFunction, "04/01/2018 00:00", BodyForce)
This kernel implements a generic functional body force term: $ - c \cdof f \cdot \phi_i $.
Definition BodyForce.h:26
const Function & _function
Optional function value.
Definition BodyForce.h:39
static InputParameters validParams()
Definition BodyForce.C:21
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...
Definition Function.C:30
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
unsigned int _qp
The current quadrature point index.
Definition KernelBase.h:43
const MooseArray< Point > & _q_point
The physical location of the element's quadrature Points, indexed by _qp.
Definition KernelBase.h:46
Deprecated, use BodyForce.
static InputParameters validParams()
UserForcingFunction(const InputParameters &parameters)