Go to the documentation of this file.
51 const EBSDPointData &
getData(
const Point & p)
const;
56 const EBSDAvgData &
getAvgData(
unsigned int i)
const;
61 const EBSDAvgData &
getAvgData(
unsigned int phase,
unsigned int local_id)
const;
81 virtual unsigned int getGrainNum(
unsigned int phase)
const;
84 unsigned int getFeatureID(
unsigned int phase,
unsigned int local_id)
const
95 virtual unsigned int getGlobalID(
unsigned int phase,
unsigned int local_id)
const
100 virtual unsigned int getGlobalID(
unsigned int feature_id)
const;
103 MooseSharedPointer<EBSDPointDataFunctor>
106 MooseSharedPointer<EBSDAvgDataFunctor>
127 NonlinearSystemBase &
_nl;
unsigned int getFeatureID(unsigned int global_id) const
Return the EBSD feature id for a given (global) grain number.
unsigned int _bins
number of bins for each quaternion component
void meshChanged()
Maps need to be updated when the mesh changes.
std::vector< EBSDPointData > _data
Logically three-dimensional data indexed by geometric points in a 1D vector.
virtual unsigned int getGlobalID(unsigned int phase, unsigned int local_id) const
Return the (global) grain id for a given phase and (local) grain number.
MooseMesh & _mesh
MooseMesh Variables.
unsigned indexFromIndex(unsigned int var) const
Transfer the index into the _avg_data array from given index.
const int & _time_step
current timestep. Maps are only rebuild on mesh change during time step zero
const std::map< dof_id_type, std::vector< Real > > & getNodeToGrainWeightMap() const
Returns a map consisting of the node index followd by a vector of all grain weights for that node.
const std::map< dof_id_type, std::vector< Real > > & getNodeToPhaseWeightMap() const
Returns a map consisting of the node index followd by a vector of all phase weights for that node.
std::map< dof_id_type, std::vector< Real > > _node_to_grain_weight_map
Map of grain weights per node.
unsigned int _custom_columns
number of additional custom data columns
unsigned int _mesh_dimension
Dimension of the problem domain.
NonlinearSystemBase & _nl
virtual unsigned int getGrainNum() const
Return the total number of grains.
Mix-in class that adds so called access functors to select a field from an EBSDPointData or EBSDPoint...
std::vector< EulerAngles > _avg_angles
Euler Angles by (global) grain ID.
Abstract base class for user objects that implement the Euler Angle provider interface.
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
std::vector< std::vector< unsigned int > > _global_id
global ID for given phases and grains
Real _maxx
Maximum grid extent.
unsigned int _grain_num
Variables needed to determine reduced order parameter values.
void buildNodeWeightMaps()
Build grain and phase weight maps.
virtual unsigned int getPhaseNum() const
Return the total number of phases.
virtual void initialize()
virtual const EulerAngles & getEulerAngles(unsigned int) const
EulerAngleProvider interface implementation to fetch a triplet of Euler angles.
const EBSDAvgData & getAvgData(unsigned int i) const
Get the requested type of average data for (global) grain number i.
MooseSharedPointer< EBSDAvgDataFunctor > getAvgDataAccessFunctor(const MooseEnum &field_name) const
Factory function to return a average functor specified by name.
const EBSDPointData & getData(const Point &p) const
Get the requested type of data at the point p.
MooseSharedPointer< EBSDPointDataFunctor > getPointDataAccessFunctor(const MooseEnum &field_name) const
Factory function to return a point functor specified by name.
unsigned int getFeatureID(unsigned int phase, unsigned int local_id) const
Return the EBSD feature id for a given phase and phase (local) grain number.
InputParameters validParams< EBSDReader >()
Real _dx
The spacing of the values in x, y and z directions.
unsigned _nx
The number of values in the x, y and z directions.
std::map< dof_id_type, std::vector< Real > > _node_to_phase_weight_map
Map of phase weights per node.
unsigned indexFromPoint(const Point &p) const
Computes a global index in the _data array given an input centroid point.
EBSDReader(const InputParameters ¶ms)
unsigned int _L_norm
L_norm value for averaging.
std::vector< EBSDAvgData > _avg_data
Averages by (global) grain ID.
std::map< unsigned int, unsigned int > _global_id_map
map from feature_id to global_id