Go to the documentation of this file.
20 params.
addClassDescription(
"Extracts a component of a material type std::vector<Real> to an aux "
21 "variable. If the std::vector is not of sufficient size then zero is "
25 "Evaluate the std::vector<Real> at this quadpoint. This only needs to be "
26 "used if you are interested in a particular quadpoint in each element: "
27 "otherwise do not include this parameter in your input file");
34 _has_selected_qp(isParamValid(
"selected_qp")),
35 _selected_qp(_has_selected_qp ? getParam<unsigned int>(
"selected_qp") : 0)
46 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
47 mooseError(
"MaterialStdVectorAux. selected_qp specified as ",
49 " but there are only ",
51 " quadpoints in the element");
const unsigned int _selected_qp
The std::vector will be evaluated at this quadpoint only.
A base class for the various Material related AuxKernal objects.
const MaterialProperty< std::vector< Real > > & _prop
Reference to the material property for this AuxKernel.
void mooseError(Args &&... args) const
defineLegacyParams(MaterialStdVectorAux)
static InputParameters validParams()
AuxKernel for outputting a std::vector material-property component to an AuxVariable.
virtual Real getRealValue() override
Returns material property values at quadrature points.
const MooseArray< Point > & _q_point
Dimension of the problem being solved.
MaterialStdVectorAux(const InputParameters ¶meters)
Class constructor.
unsigned int _index
index of the vecor element
registerMooseObject("MooseApp", MaterialStdVectorAux)
static InputParameters validParams()
unsigned int _qp
Quadrature point index.
const bool _has_selected_qp
whether or not selected_qp has been set
unsigned int size() const
The number of elements that can currently be stored in the array.