www.mooseframework.org
CrystalPlasticityUOBase.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<DiscreteElementUserObject>();
14  params.addRequiredParam<unsigned int>("variable_size", "The userobject's variable size.");
15  params.addClassDescription("Crystal plasticity userobject system base class. Override the "
16  "virtual functions in your class");
17  return params;
18 }
19 
20 CrystalPlasticityUOBase::CrystalPlasticityUOBase(const InputParameters & parameters)
21  : DiscreteElementUserObject(parameters), _variable_size(getParam<unsigned int>("variable_size"))
22 {
23 }
24 
25 unsigned int
27 {
28  return _variable_size;
29 }
InputParameters validParams< CrystalPlasticityUOBase >()
virtual unsigned int variableSize() const
Returns the size of variable.
CrystalPlasticityUOBase(const InputParameters &parameters)