www.mooseframework.org
EBSDMesh.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 EBSDMESH_H
8 #define EBSDMESH_H
9 
10 #include "GeneratedMesh.h"
11 
12 #include <array>
13 
14 class EBSDMesh;
15 
16 template <>
17 InputParameters validParams<EBSDMesh>();
18 
22 class EBSDMesh : public GeneratedMesh
23 {
24 public:
25  EBSDMesh(const InputParameters & parameters);
26  virtual ~EBSDMesh();
27 
28  virtual void buildMesh();
29 
31  {
32  // grid spacing
33  std::array<Real, 3> d;
34  // grid origin
35  std::array<Real, 3> min;
36  // mesh dimension
37  unsigned int dim;
38  // grid size
39  std::array<unsigned int, 3> n;
40  };
41 
42  // Interface functions for the EBSDReader
43  const EBSDMeshGeometry & getEBSDGeometry() const { return _geometry; }
44  const std::string & getEBSDFilename() const { return _filename; }
45 
46 protected:
48  void readEBSDHeader();
49 
51  std::string _filename;
52 
55 };
56 
57 #endif // EBSDMESH_H
EBSDMeshGeometry _geometry
EBSD data file mesh information.
Definition: EBSDMesh.h:54
EBSDMesh(const InputParameters &parameters)
Definition: EBSDMesh.C:38
void readEBSDHeader()
Read the EBSD data file header.
Definition: EBSDMesh.C:48
virtual ~EBSDMesh()
Definition: EBSDMesh.C:45
std::array< unsigned int, 3 > n
Definition: EBSDMesh.h:39
std::array< Real, 3 > d
Definition: EBSDMesh.h:33
virtual void buildMesh()
Definition: EBSDMesh.C:128
std::string _filename
Name of the file containing the EBSD data.
Definition: EBSDMesh.h:51
InputParameters validParams< EBSDMesh >()
Definition: EBSDMesh.C:14
std::array< Real, 3 > min
Definition: EBSDMesh.h:35
const EBSDMeshGeometry & getEBSDGeometry() const
Definition: EBSDMesh.h:43
Mesh generated from parameters.
Definition: EBSDMesh.h:22
const std::string & getEBSDFilename() const
Definition: EBSDMesh.h:44