https://mooseframework.inl.gov
MOOSEVariableToNEML2.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "MOOSEVariableToNEML2.h"
11 
14 
15 template <unsigned int state>
18 {
19  auto params = MOOSEToNEML2Batched::validParams();
20  params.addClassDescription(
21  NEML2Utils::docstring("Gather a MOOSE variable for insertion into the specified input or "
22  "model parameter of a NEML2 model."));
23  params.addRequiredCoupledVar("from_moose", NEML2Utils::docstring("MOOSE variable to read from"));
24  return params;
25 }
26 
27 template <>
29  : MOOSEToNEML2Batched(params)
30 #ifdef NEML2_ENABLED
31  ,
32  _moose_variable(coupledValue("from_moose"))
33 #endif
34 {
35 }
36 
37 template <>
39  : MOOSEToNEML2Batched(params)
40 #ifdef NEML2_ENABLED
41  ,
42  _moose_variable(coupledValueOld("from_moose"))
43 #endif
44 {
45 }
46 
47 template class MOOSEVariableToNEML2Templ<0>;
Gather a MOOSE variable for insertion into the NEML2 model.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Generic gatherer for collecting "batched" MOOSE data for NEML2.
static InputParameters validParams()
std::string docstring(const std::string &desc)
Augment docstring if NEML2 is not enabled.
Definition: NEML2Utils.C:77
registerMooseObject("MooseApp", MOOSEVariableToNEML2)
static InputParameters validParams()
MOOSEVariableToNEML2Templ(const InputParameters &params)