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");
registerMooseObject("MooseApp", ContainsPointAux)
bool isNodal() const
Nodal or elemental kernel?
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
static InputParameters validParams()
Computes a binary field where the field is 1 in the elements that contain the point (we say elements ...
ContainsPointAux(const InputParameters ¶meters)
const Point & _point
The point we're checking that the elements contain.
static InputParameters validParams()
virtual Real computeValue() override
Compute and return the value of the aux variable.
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 ...