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"),
43 _system(_subproblem.getSystem(getParam<VariableName>(
"variable"))),
44 _point(getParam<Point>(
"point")),
61 pl->enable_out_of_mesh_mode();
63 auto * elem = (*pl)(
_point);
64 auto elem_id = elem ? elem->id() : DofObject::invalid_id;
67 if (elem_id == DofObject::invalid_id)
virtual MooseMesh & mesh()=0
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
PointValue(const InputParameters ¶meters)
static InputParameters validParams()
Compute the value of a variable at a specified location.
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
const Point & _point
The point to locate.
void gatherMin(T &value)
Gather the parallel min of the variable passed in.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual const std::string & name() const
Get the name of the class.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
SubProblem & _subproblem
Reference to the Subproblem for this user object.
static InputParameters validParams()
VarKindType
Framework-wide stuff.
const unsigned int _var_number
The variable number of the variable we are operating on.
const System & _system
A reference to the system containing the variable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
registerMooseObject("MooseApp", PointValue)
virtual void execute() override
Execute method.
Real _value
The value of the variable at the desired location.
virtual std::unique_ptr< PointLocatorBase > getPointLocator() const
Proxy function to get a (sub)PointLocator from either the underlying libMesh mesh (default)...