Line data Source code
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 : #ifdef NEML2_ENABLED 11 : 12 : // MOOSE includes 13 : #include "NEML2PostKernel.h" 14 : 15 : InputParameters 16 0 : NEML2PostKernel::validParams() 17 : { 18 0 : InputParameters params = NEML2Kernel::validParams(); 19 0 : params.addRequiredParam<UserObjectName>( 20 : "executor", 21 : "The NEML2ModelExecutor used to perform the constitutive update (where stress is an output " 22 : "variable). If you are using the NEML2 action, the parameter executor_name can be used to " 23 : "specify the name of the NEML2ModelExecutor."); 24 : 25 0 : ExecFlagEnum & exec_enum = params.set<ExecFlagEnum>("execute_on", true); 26 0 : exec_enum.addAvailableFlags(EXEC_PRE_KERNELS); 27 0 : exec_enum = {EXEC_INITIAL, EXEC_PRE_KERNELS}; 28 0 : params.suppressParameter<ExecFlagEnum>("execute_on"); 29 : 30 0 : return params; 31 0 : } 32 : 33 0 : NEML2PostKernel::NEML2PostKernel(const InputParameters & parameters) 34 0 : : NEML2Kernel(parameters), _constitutive(getUserObject<NEML2ModelExecutor>("executor")) 35 : { 36 0 : } 37 : 38 : #endif