https://mooseframework.inl.gov
EBSDMesh.h
Go to the documentation of this file.
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 "GeneratedMesh.h"
13 #include "EBSDMeshGenerator.h"
14 
15 #include <array>
16 
20 class EBSDMesh : public GeneratedMesh
21 {
22 public:
24 
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
44  const std::string & getEBSDFilename() const { return _filename; }
45 
46 protected:
48  void readEBSDHeader();
49 
51  std::string _filename;
52 
55 };
EBSDMesh(const InputParameters &parameters)
Definition: EBSDMesh.C:42
const std::string & getEBSDFilename() const
Definition: EBSDMesh.h:44
void readEBSDHeader()
Read the EBSD data file header.
Definition: EBSDMesh.C:57
static InputParameters validParams()
Definition: EBSDMesh.C:18
virtual ~EBSDMesh()
Definition: EBSDMesh.C:54
std::array< unsigned int, 3 > n
Definition: EBSDMesh.h:39
EBSDMeshGenerator::Geometry _geometry
EBSD data file mesh information.
Definition: EBSDMesh.h:54
std::array< Real, 3 > d
Definition: EBSDMesh.h:33
virtual void buildMesh()
Definition: EBSDMesh.C:137
std::string _filename
Name of the file containing the EBSD data.
Definition: EBSDMesh.h:51
const InputParameters & parameters() const
const EBSDMeshGenerator::Geometry & getEBSDGeometry() const
Definition: EBSDMesh.h:43
std::array< Real, 3 > min
Definition: EBSDMesh.h:35
Mesh generated from parameters.
Definition: EBSDMesh.h:20