59 void setupVariables(
const std::vector<std::string> & variable_names);
68 const std::string & var_param_name =
"variable")
const;
76 virtual void addSample(
const Point & p,
const Real &
id,
const std::vector<Real> & values);
127 std::vector<VectorPostprocessorValue *>
_values;
Base class for VectorPostprocessors that need to do "sampling" of values in the domain.
virtual void initialize()
Initialize the datastructures.
std::vector< std::string > _variable_names
The variable names.
This class provides an interface for common operations on field variables of both FE and FV types wit...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
VectorPostprocessorValue & _y
y coordinate of the points
const unsigned int _sort_by
What to sort by.
std::vector< VectorPostprocessorValue * > _values
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...
VectorPostprocessor * _vpp
The child VectorPostprocessor.
virtual void threadJoin(const SamplerBase &y)
Join the values.
VectorPostprocessorValue & _x
x coordinate of the points
static InputParameters validParams()
const InputParameters & _sampler_params
The child params.
SamplerBase(const InputParameters ¶meters, VectorPostprocessor *vpp, const libMesh::Parallel::Communicator &comm)
virtual void finalize()
Finalize the values.
std::vector< Real > VectorPostprocessorValue
VectorPostprocessorValue & _id
The node ID of each point.
virtual void addSample(const Point &p, const Real &id, const std::vector< Real > &values)
Call this with the value of every variable at each point you want to sample at.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual ~SamplerBase()=default
InputParameters validParams()
VectorPostprocessorValue & _z
x coordinate of the points
const libMesh::Parallel::Communicator & _comm
The communicator of the child.
Base class for Postprocessors that produce a vector of values.
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...