Common interface for inserting gathered MOOSE data into the NEML2 material model. More...
#include <MOOSEToNEML2.h>
Public Member Functions | |
| MOOSEToNEML2 (const InputParameters ¶ms) | |
| const std::string & | NEML2Name () const |
| Name of the NEML2 variable/parameter. More... | |
| virtual neml2::Tensor | gatheredData () const =0 |
| Convert data gathered from MOOSE into neml2::Tensor. More... | |
| void | insertInto (std::map< std::string, neml2::Tensor > &) const |
| Insert the gathered data into the NEML2 material model. More... | |
Static Public Member Functions | |
| static InputParameters | validParams () |
Private Attributes | |
| const std::string | _neml2_name |
| Name of the input variable or model parameter. More... | |
Common interface for inserting gathered MOOSE data into the NEML2 material model.
This interface handles the insertion into both NEML2 input variable and NEML2 model parameter.
Users are only required to provide the name of the variable/parameter, and we perform a run-time introspection of the NEML2 model to determine if the supplied name is for a NEML2 variable or for a NEML2 model parameter.
Definition at line 28 of file MOOSEToNEML2.h.
| MOOSEToNEML2::MOOSEToNEML2 | ( | const InputParameters & | params | ) |
Definition at line 23 of file MOOSEToNEML2.C.
|
pure virtual |
Convert data gathered from MOOSE into neml2::Tensor.
Implemented in MOOSEQuantityToNEML2< T, state >, and NEML2PreKernel.
Referenced by insertInto().
| void MOOSEToNEML2::insertInto | ( | std::map< std::string, neml2::Tensor > & | map | ) | const |
Insert the gathered data into the NEML2 material model.
Definition at line 34 of file MOOSEToNEML2.C.
|
inline |
Name of the NEML2 variable/parameter.
Definition at line 37 of file MOOSEToNEML2.h.
Referenced by NEML2PreKernel::NEML2PreKernel().
|
static |
Definition at line 13 of file MOOSEToNEML2.C.
Referenced by NEML2PreKernel::validParams(), and MOOSEQuantityToNEML2< T, state >::validParams().
|
private |
Name of the input variable or model parameter.
Definition at line 47 of file MOOSEToNEML2.h.
Referenced by insertInto().
1.8.14