www.mooseframework.org
EulerAngleFileReader.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 EULERANGLEFILEREADER_H
8 #define EULERANGLEFILEREADER_H
9 
10 #include "EulerAngleProvider.h"
11 #include <vector>
12 
13 // Forward declaration
15 
16 template <>
17 InputParameters validParams<EulerAngleFileReader>();
18 
23 {
24 public:
25  EulerAngleFileReader(const InputParameters & parameters);
26 
27  virtual const EulerAngles & getEulerAngles(unsigned int) const;
28  virtual unsigned int getGrainNum() const;
29 
30  virtual void initialize() {}
31  virtual void execute() {}
32  virtual void finalize() {}
33 
34 protected:
35  void readFile();
36 
37  FileName _file_name;
38  std::vector<EulerAngles> _angles;
39 };
40 
41 #endif // EULERANGLEFILEREADER_H
EulerAngleFileReader(const InputParameters &parameters)
virtual unsigned int getGrainNum() const
virtual const EulerAngles & getEulerAngles(unsigned int) const
InputParameters validParams< EulerAngleFileReader >()
Euler angle triplet.
Definition: EulerAngles.h:20
Read a set of Euler angles from a file.
Abstract base class for user objects that implement the Euler Angle provider interface.
std::vector< EulerAngles > _angles