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

Go to the source code of this file.

Classes

class  PolycrystalVariablesAction
 Automatically generates all variables to model a polycrystal with op_num orderparameters. More...
 

Functions

template<>
InputParameters validParams< PolycrystalVariablesAction > ()
 

Function Documentation

◆ validParams< PolycrystalVariablesAction >()

template<>
InputParameters validParams< PolycrystalVariablesAction > ( )

Definition at line 25 of file PolycrystalVariablesAction.C.

26 {
27  InputParameters params = validParams<Action>();
28  params.addClassDescription("Set up order parameter variables for a polycrystal simulation");
29  // Get MooseEnums for the possible order/family options for this variable
30  MooseEnum families(AddVariableAction::getNonlinearVariableFamilies());
31  MooseEnum orders(AddVariableAction::getNonlinearVariableOrders());
32  params.addParam<MooseEnum>("family",
33  families,
34  "Specifies the family of FE "
35  "shape function to use for the order parameters");
36  params.addParam<MooseEnum>("order",
37  orders,
38  "Specifies the order of the FE "
39  "shape function to use for the order parameters");
40  params.addParam<bool>(
41  "initial_from_file",
42  false,
43  "Take the initial condition of all polycrystal variables from the mesh file");
44  params.addParam<Real>("scaling", 1.0, "Specifies a scaling factor to apply to this variable");
45  params.addRequiredParam<unsigned int>("op_num",
46  "specifies the number of order parameters to create");
47  params.addRequiredParam<std::string>("var_name_base", "specifies the base name of the variables");
48  return params;
49 }