www.mooseframework.org
Functions
AverageGrainVolume.C File Reference

Go to the source code of this file.

Functions

 registerMooseObject ("PhaseFieldApp", AverageGrainVolume)
 
template<>
InputParameters validParams< AverageGrainVolume > ()
 

Function Documentation

◆ registerMooseObject()

registerMooseObject ( "PhaseFieldApp"  ,
AverageGrainVolume   
)

◆ validParams< AverageGrainVolume >()

template<>
InputParameters validParams< AverageGrainVolume > ( )

This object has two modes of operation: It can be used with the FeatureFloodCount object (recommended) to get the active grain on element information needed to calculate volumes. It can also work on small polycrystals where an equal number of grains and order parameters are used in the simulation. This dual-functionality creates two separate code paths and parameter sets.

Definition at line 22 of file AverageGrainVolume.C.

23 {
24  InputParameters params = validParams<GeneralPostprocessor>();
25  params.addClassDescription("Calculate average grain area in a polycrystal");
26 
34  // Mode 1: Use the GrainTracker
35  params.addParam<UserObjectName>("feature_counter",
36  "The FeatureFloodCount UserObject to get values from.");
37 
38  // Mode 2: Calculate grain volumes adirectly
39  params.addCoupledVarWithAutoBuild(
40  "variable", "var_name_base", "op_num", "Array of coupled variables");
41  params.addParam<unsigned int>("grain_num", "number of grains to create");
42  return params;
43 }