22template <
typename T,
unsigned int state>
44 T
qpData(
unsigned int)
const;
68#define defineMOOSEQuantityToNEML2(T) \
69 using MOOSE##T##ToNEML2 = MOOSEQuantityToNEML2<T, 0>; \
70 using MOOSEOld##T##ToNEML2 = MOOSEQuantityToNEML2<T, 1>
75#undef defineMOOSEQuantityToNEML2
defineMOOSEQuantityToNEML2(Real)
OutputTools< Real >::VariableValue VariableValue
Base class for function objects.
Gather a MOOSE quantity for insertion into the NEML2 model.
void execute() override
Execute method.
const VariableValue * _var_scalar_old
std::vector< T > _buffer
Intermediate data buffer, filled during the element loop.
bool _batched
Whether the gathered data should be batched.
neml2::Tensor gatheredData() const override
Convert data gathered from MOOSE into neml2::Tensor.
void finalize() override
Finalize.
const MaterialProperty< T > * _mat_prop_old
void initialize() override
Called before execute() is ever called so that data can be cleared.
static InputParameters validParams()
const VariableValue * _var
const VariableValue * _var_scalar
const MaterialProperty< T > * _mat_prop
const VariableValue * _var_old
T qpData(unsigned int) const
const NEML2Utils::MOOSEIOType _type
MOOSE quantity type to read from.
void threadJoin(const UserObject &) override
Must override.
Common interface for inserting gathered MOOSE data into the NEML2 material model.
Base class for user-specific data.