20 params.
addClassDescription(
"Outputs the requested EBSD reader average data, for a given phase if " 21 "specified, for the grain at the local node/element.");
22 params.
addParam<
unsigned int>(
"phase",
"The phase to use for all queries.");
23 params.
addRequiredParam<UserObjectName>(
"ebsd_reader",
"The EBSDReader GeneralUserObject");
24 params.
addRequiredParam<UserObjectName>(
"grain_tracker",
"The GrainTracker UserObject");
29 "The averaged data to be extracted from the EBSD data by this AuxKernel");
30 params.
addParam<
Real>(
"invalid", -1.0,
"Value to return for points without active grains.");
37 _ebsd_reader(getUserObject<
EBSDReader>(
"ebsd_reader")),
39 _data_name(getParam<
MooseEnum>(
"data_name")),
40 _val(_ebsd_reader.getAvgDataAccessFunctor(_data_name)),
41 _invalid(getParam<
Real>(
"invalid"))
static MooseEnum getAvgDataFieldType()
MooseSharedPointer< EBSDAvgDataFunctor > _val
Accessor functor to fetch the selected data field form the EBSD data point.
registerMooseObject("PhaseFieldApp", EBSDReaderAvgDataAux)
const EBSDAvgData & getAvgData(unsigned int i) const
Get the requested type of average data for (global) grain number i.
This class defines the interface for the GrainTracking objects.
const unsigned int invalid_uint
const Node *const & _current_node
This kernel makes data from the EBSDReader GeneralUserObject available as AuxVariables.
Real _value
precalculated element value
const EBSDReader & _ebsd_reader
EBSD reader user object.
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
const GrainTrackerInterface & _grain_tracker
Grain tracker user object.
EBSDReaderAvgDataAux(const InputParameters ¶meters)
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _phase
Optional phase number needed for global grain index retrieval.
virtual Real computeValue()
const Elem *const & _current_elem
static InputParameters validParams()
virtual void precalculateValue()
void ErrorVector unsigned int
static InputParameters validParams()
const Real _invalid
Value to return for points without active grains.
virtual Real getEntityValue(dof_id_type entity_id, FeatureFloodCount::FieldType, std::size_t var_index=0) const =0
Accessor for retrieving either nodal or elemental information (unique grains or variable indicies) ...