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

Go to the source code of this file.

Classes

class  GrainTrackerInterface
 This class defines the interface for the GrainTracking objects. More...
 

Functions

template<>
InputParameters validParams< GrainTrackerInterface > ()
 

Function Documentation

◆ validParams< GrainTrackerInterface >()

template<>
InputParameters validParams< GrainTrackerInterface > ( )

Definition at line 15 of file GrainTrackerInterface.C.

16 {
17  InputParameters params = validParams<FeatureFloodCount>();
18  params.addParam<int>("tracking_step", 0, "The timestep for when we should start tracking grains");
19  params.addParam<unsigned short>(
20  "halo_level", 2, "The thickness of the halo surrounding each feature.");
21  params.addParam<bool>(
22  "remap_grains", true, "Indicates whether remapping should be done or not (default: true)");
23  params.addParam<bool>("tolerate_failure",
24  false,
25  "Allow the grain tracker to continue when it fails to find suitable grains "
26  "for remapping. This will allow the simulation to continue but it will "
27  "also allow non-physical grain coalescence. DO NOT USE for production "
28  "results!");
29 
30  params.addParam<unsigned short>(
31  "reserve_op",
32  0,
33  "Indicates the number of reserved ops (variables that cannot be remapped to)");
34  params.addParam<Real>("reserve_op_threshold",
35  0.95,
36  "Threshold for locating a new feature on the reserved op variable(s)");
37  params.addParam<UserObjectName>("polycrystal_ic_uo", "Optional: Polycrystal IC object");
38  params.addParam<bool>("error_on_grain_creation",
39  false,
40  "Terminate with an error if a grain is created "
41  "(does not include initial callback to start simulation)");
42 
43  params.addParam<unsigned short>("max_remap_recursion_depth",
44  6,
45  "The recursion depth allowed when searching for remapping "
46  "candidates. Note: Setting this value high may result in very "
47  "computationally expensive searches with little benefit. "
48  "(Recommended level: 6)");
49 
50  params.addRangeCheckedParam<short>(
51  "verbosity_level",
52  1,
53  "verbosity_level>=0 & verbosity_level<=3",
54  "Level 0: Silent during normal operation, "
55  "Level 1: Informational messages but no detailed grain structure printouts, "
56  "Level 2: Verbose output including data structure dumps, "
57  "Level 3: Debugging mode.");
58 
59  params.addRequiredCoupledVarWithAutoBuild(
60  "variable", "var_name_base", "op_num", "Array of coupled variables");
61 
62  params.addParamNamesToGroup("tolerate_failure max_remap_recursion_depth", "Advanced");
63 
64  // Set suitable default parameters for grain tracking
65  params.set<Real>("threshold") = 0.1; // flood out to a fairly low value for grain remapping
66  params.set<Real>("connecting_threshold") =
67  0.09; // connecting threshold should be just slightly lower than threshold
68  params.set<bool>("use_single_map") =
69  false; // This is needed to allow for arbitrary feature overlap during remapping
70  params.set<bool>("condense_map_info") =
71  true; // It's better to have all information in one map for normal visualization
72  params.set<bool>("enable_var_coloring") =
73  true; // Generally we need to see the variable (OP) indices
74 
75  params.set<ExecFlagEnum>("execute_on") = {EXEC_INITIAL, EXEC_TIMESTEP_END};
76  return params;
77 }

Referenced by validParams< FauxGrainTracker >(), and validParams< GrainTracker >().

validParams< FeatureFloodCount >
InputParameters validParams< FeatureFloodCount >()
Definition: FeatureFloodCount.C:104