22 template <
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 const MaterialProperty< T > * _mat_prop
Base class for function objects.
MOOSEQuantityToNEML2(const InputParameters ¶ms)
const VariableValue * _var
Gather a MOOSE quantity for insertion into the NEML2 model.
bool _batched
Whether the gathered data should be batched.
defineMOOSEQuantityToNEML2(Real)
void execute() override
Execute method.
void threadJoin(const UserObject &) override
Must override.
const VariableValue * _var_old
neml2::Tensor gatheredData() const override
Convert data gathered from MOOSE into neml2::Tensor.
const VariableValue * _var_scalar
void finalize() override
Finalize.
const NEML2Utils::MOOSEIOType _type
MOOSE quantity type to read from.
T qpData(unsigned int) const
static InputParameters validParams()
const VariableValue * _var_scalar_old
Common interface for inserting gathered MOOSE data into the NEML2 material model. ...
std::vector< T > _buffer
Intermediate data buffer, filled during the element loop.
void initialize() override
Called before execute() is ever called so that data can be cleared.
const MaterialProperty< T > * _mat_prop_old
Base class for user-specific data.