11 #include "libmesh/elem.h" 19 params.
addRequiredParam<Point>(
"point",
"The point we're checking containment of");
20 params.
addClassDescription(
"Computes a binary field where the field is 1 in the elements that " 21 "contain the point and 0 everywhere else");
26 :
AuxKernel(parameters), _point(getParam<Point>(
"point"))
29 paramError(
"variable",
"This AuxKernel only supports Elemental fields");
virtual Real computeValue() override
Compute and return the value of the aux variable.
registerMooseObject("MooseApp", ContainsPointAux)
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
ContainsPointAux(const InputParameters ¶meters)
Computes a binary field where the field is 1 in the elements that contain the point (we say elements ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
static InputParameters validParams()
static InputParameters validParams()
const Point & _point
The point we're checking that the elements contain.
bool isNodal() const
Nodal or elemental kernel?