https://mooseframework.inl.gov
SolidProperties.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 "SolidProperties.h"
11 #include "MooseObject.h"
12 
15 {
17  params.addParam<bool>(
18  "allow_imperfect_jacobians",
19  false,
20  "true to allow unimplemented property derivative terms to be set to zero for the AD API");
21  params.registerBase("SolidProperties");
22 
23  // Suppress unused parameters
24  params.suppressParameter<bool>("use_displaced_mesh");
25  params.suppressParameter<ExecFlagEnum>("execute_on");
26  params.suppressParameter<bool>("allow_duplicate_execution_on_initial");
27  params.suppressParameter<bool>("force_preic");
28  params.suppressParameter<bool>("force_preaux");
29  params.suppressParameter<bool>("force_postaux");
30  params.suppressParameter<int>("execution_order_group");
31 
32  return params;
33 }
34 
36  : ThreadedGeneralUserObject(parameters),
38  _allow_imperfect_jacobians(getParam<bool>("allow_imperfect_jacobians"))
39 {
40 }
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
void suppressParameter(const std::string &name)
void registerBase(const std::string &value)
SolidProperties(const InputParameters &parameters)