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);
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...
Number point_value(unsigned int var, const Point &p, const bool insist_on_success=true, const NumericVector< Number > *sol=nullptr) const
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 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()
const std::string & name() const
Get the name of the class.
const libMesh::System & _system
A reference to the system containing the variable.
VarKindType
Framework-wide stuff.
static const dof_id_type invalid_id
const unsigned int _var_number
The variable number of the variable we are operating on.
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 and optionally a file path to the top-level block p...
virtual std::unique_ptr< libMesh::PointLocatorBase > getPointLocator() const
Proxy function to get a (sub)PointLocator from either the underlying libMesh mesh (default)...
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.