www.mooseframework.org
Functions
PolycrystalUserObjectBase.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< PolycrystalUserObjectBase > ()
 

Function Documentation

◆ validParams< PolycrystalUserObjectBase >()

template<>
InputParameters validParams< PolycrystalUserObjectBase > ( )

Run this user object more than once on the initial condition to handle initial adaptivity

Definition at line 24 of file PolycrystalUserObjectBase.C.

25 {
26  InputParameters params = validParams<FeatureFloodCount>();
27  params.addClassDescription("This object provides the base capability for creating proper reduced "
28  "order parameter polycrystal initial conditions.");
29  params.addRequiredCoupledVarWithAutoBuild(
30  "variable", "var_name_base", "op_num", "Array of coupled variables");
31  params.addParam<bool>("output_adjacency_matrix",
32  false,
33  "Output the Grain Adjacency Matrix used in the coloring algorithms. "
34  "Additionally, the grain to OP assignments will be printed");
35  params.addParam<MooseEnum>("coloring_algorithm",
38 
39  // FeatureFloodCount adds a relationship manager, but we need to extend that for PolycrystalIC
40  params.clearRelationshipManagers();
41 
42  params.addRelationshipManager(
43  "ElementSideNeighborLayers",
44  Moose::RelationshipManagerType::GEOMETRIC,
45 
46  [](const InputParameters & /*obj_params*/, InputParameters & rm_params) {
47  rm_params.set<unsigned short>("layers") = 2;
48  }
49 
50  );
51 
52  params.addRelationshipManager("ElementSideNeighborLayers",
53  Moose::RelationshipManagerType::ALGEBRAIC);
54 
55  // Hide the output of the IC objects by default, it doesn't change over time
56  params.set<std::vector<OutputName>>("outputs") = {"none"};
57 
59  params.set<bool>("allow_duplicate_execution_on_initial") = true;
60 
61  // This object should only be executed _before_ the initial condition
62  ExecFlagEnum execute_options = MooseUtils::getDefaultExecFlagEnum();
63  execute_options = EXEC_INITIAL;
64  params.set<ExecFlagEnum>("execute_on") = execute_options;
65 
66  return params;
67 }

Referenced by validParams< PolycrystalCircles >(), validParams< PolycrystalEBSD >(), and validParams< PolycrystalVoronoi >().

validParams< FeatureFloodCount >
InputParameters validParams< FeatureFloodCount >()
Definition: FeatureFloodCount.C:104
PolycrystalUserObjectBase::coloringAlgorithms
static MooseEnum coloringAlgorithms()
Returns all available coloring algorithms as an enumeration type for input files.
Definition: PolycrystalUserObjectBase.C:516
PolycrystalUserObjectBase::coloringAlgorithmDescriptions
static std::string coloringAlgorithmDescriptions()
Returns corresponding descriptions of available coloring algorithms.
Definition: PolycrystalUserObjectBase.C:522