33 _old_state(coupledValuesOld(
"old_state")),
34 _older_state(coupledValuesOlder(
"old_state")),
35 _size(
Moose::SerialAccess<T>::size()),
36 _prop_name(getParam<MaterialPropertyName>(
"prop_name")),
37 _prop_old(declareProperty<T>(_prop_name + _interpolated_old)),
38 _prop_older(declareProperty<T>(_prop_name + _interpolated_older))
41 paramError(
"old_state",
"Wrong number of component AuxVariables passed in.");
43 "Internal error. Old and older coupled variable vectors should have the same size.");
50 std::size_t index = 0;
52 v = (*_old_state[index++])[_qp];
56 v = (*_older_state[index++])[_qp];
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 ...
const std::size_t _size
Total number of components (e.g. 1 for Real, LIBMESH_DIM for RealVectorValue, LIBMESH_DIM^2 for RankT...
static InputParameters validParams()
Materials compute MaterialProperties.
SerialAccessRange< T > serialAccess(T &obj)
static InputParameters validParams()
registerMooseObject("MooseApp", InterpolatedStatefulMaterialReal)
virtual void computeQpProperties() override
Users must override this method.
const std::vector< const VariableValue * > _old_state
Old projected state.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
InterpolatedStatefulMaterialTempl(const InputParameters ¶meters)
Reconstitute a materal property from the old and older states of projected AuxVariables.
const std::vector< const VariableValue * > _older_state
Older projected state.