www.mooseframework.org
EBSDReaderAvgDataAux.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef EBSDREADERAVGDATAAUX_H
8 #define EBSDREADERAVGDATAAUX_H
9 
10 #include "AuxKernel.h"
11 #include "EBSDAccessFunctors.h"
12 
13 // Forward Declarations
15 class EBSDReader;
17 
18 template <>
19 InputParameters validParams<EBSDReaderAvgDataAux>();
20 
25 class EBSDReaderAvgDataAux : public AuxKernel, EBSDAccessFunctors
26 {
27 public:
28  EBSDReaderAvgDataAux(const InputParameters & parameters);
29 
30 protected:
31  virtual Real computeValue();
32  virtual void precalculateValue();
33 
36 
38  MooseEnum _data_name;
39 
41  MooseSharedPointer<EBSDAvgDataFunctor> _val;
42 
44  const Real _invalid;
45 
47  Real _value;
48 };
49 
50 #endif // EBSDREADERAVGDATAAUX_H
MooseSharedPointer< EBSDAvgDataFunctor > _val
Accessor functor to fetch the selected data field form the EBSD data point.
This class defines the interface for the GrainTracking objects.
MooseEnum _data_name
MooseEnum that stores the type of data this AuxKernel extracts.
This kernel makes data from the EBSDReader GeneralUserObject available as AuxVariables.
Real _value
precalculated element value
const EBSDReader & _ebsd_reader
const GrainTrackerInterface & _grain_tracker
EBSDReaderAvgDataAux(const InputParameters &parameters)
Mix-in class that adds so called access functors to select a field from an EBSDPointData or EBSDPoint...
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
Definition: EBSDReader.h:34
InputParameters validParams< EBSDReaderAvgDataAux >()
virtual void precalculateValue()
const Real _invalid
Value to return for points without active grains.