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.");
36 _phase(isParamValid(
"phase") ? getParam<unsigned
int>(
"phase") :
libMesh::invalid_uint),
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"))
registerMooseObject("PhaseFieldApp", EBSDReaderAvgDataAux)
void ErrorVector unsigned int
const Elem *const & _current_elem
const Node *const & _current_node
static InputParameters validParams()
static MooseEnum getAvgDataFieldType()
This kernel makes data from the EBSDReader GeneralUserObject available as AuxVariables.
const GrainTrackerInterface & _grain_tracker
Grain tracker user object.
EBSDReaderAvgDataAux(const InputParameters ¶meters)
const unsigned int _phase
Optional phase number needed for global grain index retrieval.
static InputParameters validParams()
const EBSDReader & _ebsd_reader
EBSD reader user object.
const Real _invalid
Value to return for points without active grains.
Real _value
precalculated element value
virtual Real computeValue()
virtual void precalculateValue()
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
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.
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)
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
const unsigned int invalid_uint