16 #include "libmesh/mesh_tools.h" 26 "variable",
"The names of the variables that this VectorPostprocessor operates on");
28 "scaling", 1.0,
"The postprocessor that the variables are multiplied with");
30 "warn_discontinuous_face_values",
32 "Whether to return a warning if a discontinuous variable is sampled on a face");
77 std::vector<Point> point_vec(1);
virtual void initialize()
Initialize the datastructures.
virtual void execute()
Execute method.
virtual void initialize()
Initialize the datastructures.
std::vector< Point > _points
The points to evaluate at.
PointVariableSamplerBase(const InputParameters ¶meters)
virtual void setCurrentSubdomainID(const Elem *elem, const THREAD_ID tid)=0
static InputParameters validParams()
SubProblem & _subproblem
Reference to the Subproblem for this user object.
std::vector< std::vector< Real > > _point_values
Vector of values per point.
void setupVariables(const std::vector< std::string > &variable_names)
You MUST call this in the constructor of the child class and pass down the name of the variables...
const Elem * getLocalElemContainingPoint(const Point &p)
Find the local element that contains the point.
std::vector< short > _found_points
Whether or not the Point was found on this processor (short because bool and char don't work with MPI...
static InputParameters validParams()
virtual unsigned int dimension() const
Returns MeshBase::mesh_dimension(), (not MeshBase::spatial_dimension()!) of the underlying libMesh me...
VarKindType
Framework-wide stuff.
void transferPointsVector(std::vector< Point > &&points)
const Real & _pp_value
Postprocessor multiplying the variables.
bool _discontinuous_at_faces
Whether values are requested for objects that are discontinuous on faces.
Base class for sampling objects (variables, functors etc) at points.
static InputParameters validParams()
std::vector< MooseVariableFieldBase * > _coupled_moose_vars
Vector of all coupled variables.
virtual void reinitElemPhys(const Elem *elem, const std::vector< Point > &phys_points_in_elem, const THREAD_ID tid)=0
void addMooseVariableDependency(MooseVariableFieldBase *var)
Call this function to add the passed in MooseVariableFieldBase as a variable that this object depends...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface for objects that need to get values of MooseVariables.
libMesh::BoundingBox getInflatedProcessorBoundingBox(Real inflation_multiplier=0.01) const
Get a (slightly inflated) processor bounding box.
MooseVariableField< Real > & mooseVariableField()
Return the MooseVariableField object that this interface acts on.
MooseMesh & _mesh
The Mesh we're using.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
const FEBase *const & getFE(FEType type, unsigned int dim) const
Get a reference to a pointer that will contain the current volume FE.
void checkForStandardFieldVariableType(const MooseVariableFieldBase *const var_ptr, const std::string &var_param_name="variable") const
Checks whether the passed variable pointer corresponds to a regular single-valued field variable...
void setPointsVector(const std::vector< Point > &points)