www.mooseframework.org
Classes | Functions
MaterialDerivativeTestAction.h File Reference

Go to the source code of this file.

Classes

class  MaterialDerivativeTestAction
 Sets up variables and Kernels to test the derivatives of material properties via the Jacobian checker. More...
 

Functions

template<>
InputParameters validParams< MaterialDerivativeTestAction > ()
 

Function Documentation

Definition at line 28 of file MaterialDerivativeTestAction.C.

29 {
31  params.addParam<std::vector<VariableName>>("args",
32  "Variables the tested material property depends on.");
33  params.addRequiredParam<MaterialPropertyName>(
34  "prop_name", "Name of the material property to test the derivatives of.");
35  MooseEnum prop_type_enum("Real RankTwoTensor RankFourTensor");
36  params.addParam<MooseEnum>(
37  "prop_type", prop_type_enum, "Type of the material property to test the derivatives of.");
38  params.addParam<unsigned int>(
39  "derivative_order", 0, "Highest order derivative to test derivatives of.");
40  return params;
41 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:37
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...
InputParameters validParams< Action >()
Definition: Action.C:23