22 "Stores the distance between a block and boundary or between two boundaries.");
23 params.
addRequiredParam<BoundaryName>(
"paired_boundary",
"The boundary to find the distance to.");
24 params.
set<
bool>(
"use_displaced_mesh") =
true;
30 _nearest_node(_nodal ? getNearestNodeLocator(parameters.
get<BoundaryName>(
"paired_boundary"),
32 : getQuadratureNearestNodeLocator(
33 parameters.
get<BoundaryName>(
"paired_boundary"), boundaryNames()[0]))
36 mooseError(
"NearestNodeDistanceAux can only be used with one boundary at a time!");
registerMooseObject("MooseApp", NearestNodeDistanceAux)
const unsigned int & _current_side
current side of the current element
Computes the distance from a block or boundary to another boundary.
static InputParameters validParams()
const Node *const & _current_node
Current node (valid only for nodal kernels)
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
Real distance(dof_id_type node_id)
Valid to call this after findNodes() has been called to get the distance to the nearest node...
MooseMesh & _mesh
Mesh this kernel is active on.
virtual Real computeValue() override
Compute and return the value of the aux variable.
NearestNodeDistanceAux(const InputParameters ¶meters)
Node * getQuadratureNode(const Elem *elem, const unsigned short int side, const unsigned int qp)
Get a specified quadrature node.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
NearestNodeLocator & _nearest_node
const bool _nodal
Flag indicating if the AuxKernel is nodal.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
unsigned int _qp
Quadrature point index.
static InputParameters validParams()
const std::vector< BoundaryName > & boundaryNames() const
Return the boundary names for this object.