Go to the documentation of this file.
24 "Stores the distance between a block and boundary or between two boundaries.");
25 params.
addRequiredParam<BoundaryName>(
"paired_boundary",
"The boundary to find the distance to.");
26 params.
set<
bool>(
"use_displaced_mesh") =
true;
32 _nearest_node(_nodal ? getNearestNodeLocator(parameters.get<BoundaryName>(
"paired_boundary"),
34 : getQuadratureNearestNodeLocator(
35 parameters.get<BoundaryName>(
"paired_boundary"), boundaryNames()[0]))
38 mooseError(
"NearestNodeDistanceAux can only be used with one boundary at a time!");
void mooseError(Args &&... args) const
Computes the distance from a block or boundary to another boundary.
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Node * getQuadratureNode(const Elem *elem, const unsigned short int side, const unsigned int qp)
Get a specified quadrature node.
Real distance(dof_id_type node_id)
Valid to call this after findNodes() has been called to get the distance to the nearest node.
NearestNodeDistanceAux(const InputParameters ¶meters)
const unsigned int & _current_side
current side of the current element
defineLegacyParams(NearestNodeDistanceAux)
MooseMesh & _mesh
Mesh this kernel is active on.
virtual Real computeValue() override
Compute and return the value of the aux variable.
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
static InputParameters validParams()
NearestNodeLocator & _nearest_node
bool _nodal
Flag indicating if the AuxKernel is nodal.
const Node *const & _current_node
Current node (valid only for nodal kernels)
unsigned int _qp
Quadrature point index.
registerMooseObject("MooseApp", NearestNodeDistanceAux)
static InputParameters validParams()
const std::vector< BoundaryName > & boundaryNames() const
Return the boundary names for this object.