https://mooseframework.inl.gov
MOOSEToNEML2Unbatched.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 "MOOSEToNEML2Unbatched.h"
11 
14 {
15  auto params = MOOSEToNEML2::validParams();
17 
18  // Since we use the NEML2 model to evaluate the residual AND the Jacobian at the same time, we
19  // want to execute this user object only at execute_on = LINEAR (i.e. during residual evaluation).
20  // The NONLINEAR exec flag below is for computing Jacobian during automatic scaling.
22  execute_options = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR};
23  params.set<ExecFlagEnum>("execute_on") = execute_options;
24 
25  return params;
26 }
27 
29  : MOOSEToNEML2(params), GeneralUserObject(params)
30 {
31 }
A MultiMooseEnum object to hold "execute_on" flags.
Definition: ExecFlagEnum.h:21
static InputParameters validParams()
MOOSEToNEML2Unbatched(const InputParameters &params)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
ExecFlagEnum getDefaultExecFlagEnum()
Return the default ExecFlagEnum for MOOSE.
Definition: MooseUtils.C:1067
const ExecFlagType EXEC_LINEAR
Definition: Moose.C:29
const ExecFlagType EXEC_NONLINEAR
Definition: Moose.C:31
static InputParameters validParams()
Common interface for inserting gathered MOOSE data into the NEML2 material model. ...
Definition: MOOSEToNEML2.h:28
static InputParameters validParams()
Definition: MOOSEToNEML2.C:13
const ExecFlagType EXEC_INITIAL
Definition: Moose.C:28