Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "EulerAngleProvider.h" 13 : #include <vector> 14 : 15 : // Forward declaration 16 : 17 : /** 18 : * Read a set of Euler angles from a file 19 : */ 20 : class EulerAngleFileReader : public EulerAngleProvider 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : 25 : EulerAngleFileReader(const InputParameters & parameters); 26 : 27 : virtual const EulerAngles & getEulerAngles(unsigned int) const; 28 : virtual unsigned int getGrainNum() const; 29 : 30 0 : virtual void initialize() {} 31 0 : virtual void execute() {} 32 0 : virtual void finalize() {} 33 : 34 : protected: 35 : void readFile(); 36 : 37 : FileName _file_name; 38 : std::vector<EulerAngles> _angles; 39 : };