22 params.addParam<Real>(
23 "velocity", 1,
"Value of the velocity. Used as scale factor if function is given.");
24 params.addParam<FunctionName>(
"function",
"1",
"Function describing the velocity.");
27 params.set<
bool>(
"preset") =
true;
28 params.suppressParameter<
bool>(
"preset");
34 : DirichletBCBase(parameters),
36 _velocity(parameters.get<Real>(
"velocity")),
37 _function(getFunction(
"function"))
44 Real v2 =
_function.value(_t, *_current_node);
45 Real v1 =
_function.value(_t - _dt, *_current_node);
48 return _u_old[_qp] + _dt * vel;