60 void setupVariables(
const std::vector<std::string> & variable_names);
69 const std::string & var_param_name =
"variable")
const;
77 virtual void addSample(
const Point & p,
const Real &
id,
const std::vector<Real> &
values);
131 std::vector<VectorPostprocessorValue *>
_values;
std::vector< Real > VectorPostprocessorValue
std::array< Real, 2 > values
InputParameters validParams()
This class provides an interface for common operations on field variables of both FE and FV types wit...
Base class for VectorPostprocessors that need to do "sampling" of values in the domain.
const InputParameters & _sampler_params
The child params.
std::vector< std::string > _variable_names
The variable names.
unsigned int _sort_by_index
The index for what to sort by: x=0, y=1, z=2, then sampled variables in ordered specified in the para...
std::vector< VectorPostprocessorValue * > _values
const std::string _sort_by
What to sort by.
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.
VectorPostprocessorValue & _x
x coordinate of the points
VectorPostprocessorValue & _y
y coordinate of the points
const TransientBase *const _sampler_transient
Transient executioner used to determine if the last solve converged.
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.
virtual void initialize()
Initialize the datastructures.
virtual void threadJoin(const SamplerBase &y)
Join the values.
VectorPostprocessor * _vpp
The child VectorPostprocessor.
VectorPostprocessorValue & _id
The node ID of each point.
VectorPostprocessorValue & _z
x coordinate of the points
virtual void finalize()
Finalize the values.
std::size_t _curr_num_samples
The number of samples added in the last execution.
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.
std::size_t _curr_total_samples
The full size of the vector since the last execution.
const libMesh::Parallel::Communicator & _comm
The communicator of the child.
std::set< std::size_t, std::greater< std::size_t > > _curr_indices
The indices of the samples in the last execution.
virtual ~SamplerBase()=default
static InputParameters validParams()
Base class for transient executioners that use a FixedPointSolve solve object for multiapp-main app i...
Base class for Postprocessors that produce a vector of values.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...