18#include "libmesh/system.h"
28 "variable",
"The name of the variable that this postprocessor operates on.");
30 "The physical point where the solution will be evaluated.");
37 _var_number(_subproblem
39 parameters.get<VariableName>(
"variable"),
40 Moose::VarKindType::VAR_ANY,
41 Moose::VarFieldType::VAR_FIELD_STANDARD)
43 _system(_subproblem.getSystem(getParam<VariableName>(
"variable"))),
44 _point(getParam<Point>(
"point")),
58 if (MooseUtils::absoluteFuzzyEqual(
_value, 0.0))
61 pl->enable_out_of_mesh_mode();
63 auto * elem = (*pl)(
_point);
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", PointValue)
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
const std::string & name() const
Get the name of the class.
virtual std::unique_ptr< libMesh::PointLocatorBase > getPointLocator() const
Proxy function to get a (sub)PointLocator from either the underlying libMesh mesh (default),...
Compute the value of a variable at a specified location.
const Point & _point
The point to locate.
Real _value
The value of the variable at the desired location.
PointValue(const InputParameters ¶meters)
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
const unsigned int _var_number
The variable number of the variable we are operating on.
virtual void execute() override
Execute method.
const libMesh::System & _system
A reference to the system containing the variable.
static InputParameters validParams()
virtual MooseMesh & mesh()=0
SubProblem & _subproblem
Reference to the Subproblem for this user object.
void gatherMin(T &value)
Gather the parallel min of the variable passed in.
static constexpr dof_id_type invalid_id
Number point_value(unsigned int var, const Point &p, const bool insist_on_success=true, const NumericVector< Number > *sol=nullptr) const
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...