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