16 #include "neml2/models/Model.h" 72 void insertInto(neml2::ValueMap &, std::map<std::string, neml2::Tensor> &)
const;
neml2::VariableName _neml2_variable
NEML2 input variable to transfer data to.
void insertInto(neml2::ValueMap &, std::map< std::string, neml2::Tensor > &) const
Insert the gathered data into the NEML2 material model.
Mode _mode
Whether we should insert into NEML2 input variable or NEML2 model parameter.
void setMode(Mode) const
Change the mode of operation.
Mode getMode() const
Get the current mode of operation.
MOOSEToNEML2(const InputParameters ¶ms)
const neml2::VariableName & NEML2VariableName() const
Name of the NEML2 input variable (only meaningful when _mode == VARIABLE)
virtual neml2::Tensor gatheredData() const =0
Convert data gathered from MOOSE into neml2::Tensor.
Common interface for inserting gathered MOOSE data into the NEML2 material model. ...
const std::string & NEML2Name() const
Raw name of the NEML2 variable/parameter.
static InputParameters validParams()
const std::string & NEML2ParameterName() const
Name of the NEML2 parameter (only meaningful when _mode == PARAMETER)
virtual void checkMode() const
Perform error checking after _mode has been set.
std::string _neml2_parameter
NEML2 parameter to transfer data to.
const std::string _raw_name
Raw name of the input variable or model parameter.