42 "' is a nodal variable. Nodal variables can be sampled using a "
43 "'NodalValueSampler'.");
65 unsigned int i_fe = 0, i_fv = 0;
registerMooseObject("MooseApp", ElementValueSampler)
std::vector< MooseVariable * > _coupled_standard_moose_vars
Vector of standard coupled variables.
std::vector< MooseVariableFieldBase * > _coupled_moose_vars
Vector of all coupled variables.
std::vector< MooseVariableField< Real > * > _coupled_fv_moose_vars
Vector of all finite volume coupled variables.
const Elem *const & _current_elem
The current element pointer (available during execute())
Samples values of elemental variable(s).
static InputParameters validParams()
virtual void threadJoin(const UserObject &y) override
Must override.
std::vector< Real > _values
So we don't have to create and destroy this vector over and over again.
virtual void execute() override
Execute method.
ElementValueSampler(const InputParameters ¶meters)
virtual void finalize() override
Finalize.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Base class VectorPostprocessors operating on elemental variables.
static InputParameters validParams()
const std::string & name() const
Get the name of the class.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
Base class for VectorPostprocessors that need to do "sampling" of values in the domain.
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.
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.
virtual void finalize()
Finalize the 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.
static InputParameters validParams()
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
Base class for user-specific data.
A structure that is used to evaluate Moose functors logically at an element/cell center.