11 #include "libmesh/point.h" 21 "function_x",
"0",
"The x component of the heating spot travel path");
23 "function_y",
"0",
"The y component of the heating spot travel path");
25 "function_z",
"0",
"The z component of the heating spot travel path");
28 "The maximum distance of the activated element to the point on the path.");
34 _function_x(isParamValid(
"function_x") ? &getFunction(
"function_x") : nullptr),
35 _function_y(isParamValid(
"function_y") ? &getFunction(
"function_y") : nullptr),
36 _function_z(isParamValid(
"function_z") ? &getFunction(
"function_z") : nullptr),
38 declareRestartableData<
Real>(
"activate_distance", getParam<
Real>(
"activate_distance")))
46 const static Point dummy;
registerMooseObject("MooseApp", ActivateElementsByPath)
const Function * _function_y
const Function * _function_z
const Function * _function_x
path of the heat source, x, y, z components
Real distance(const Point &p)
ActivateElementsByPath(const InputParameters ¶meters)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Elem *const & _current_elem
The current element pointer (available during execute())
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...
const Real _activate_distance
define the distance of the element to the point on the path, below which the element will be activate...
static InputParameters validParams()
virtual bool isElementActivated() override