https://mooseframework.inl.gov
EBSDAccessFunctorsTest.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 "gtest_include.h"
13 #include "EBSDAccessFunctors.h"
14 
15 class EBSDAccessFunctorsTest : public ::testing::Test, public EBSDAccessFunctors
16 {
17 protected:
18  void SetUp()
19  {
20  // EBSD point data
21  _point._phi1 = 1.0;
22  _point._Phi = 2.0;
23  _point._phi2 = 3.0;
24  _point._symmetry = 4;
25  _point._feature_id = 5;
26  _point._phase = 6;
27  _point._p = Point(9.0, 10.0, 11.0);
28  _point._custom.resize(3);
29  for (unsigned int i = 0; i < 3; ++i)
30  _point._custom[i] = i + 12.0;
31 
32  // Averaged EBSD data
33  _avg._angles = &_angles;
34  _avg._phase = 1;
35  _avg._local_id = 2;
36  _avg._symmetry = 3;
37  _avg._feature_id = 4;
38  _avg._n = 5;
39  _avg._p = Point(6.0, 7.0, 8.0);
40  _avg._custom.resize(3);
41  for (unsigned int i = 0; i < 3; ++i)
42  _avg._custom[i] = i + 9.0;
43 
44  // initialize Euler angle object
45  _angles.phi1 = 0.1;
46  _angles.Phi = 0.2;
47  _angles.phi2 = 0.3;
48  }
49 
52 
54 };
55 
unsigned int _local_id
Index in the per-phase list of global IDs.
std::vector< Real > _custom
Custom data columns.
Point _p
Center of mass for the global grain.
std::vector< Real > _custom
Grain averaged custom data columns.
unsigned int _feature_id
EBSD feature id, (gklobal) grain number, symmetry, and phase data.
Point _p
Element centroid position.
Per element EBSD data point.
Mix-in class that adds so called access functors to select a field from an EBSDPointData or EBSDPoint...
EulerAngles * _angles
Averaged Euler angles.
unsigned int _feature_id
EBSD grain, symmetry, and phase data.
Euler angle triplet.
Definition: EulerAngles.h:24
unsigned int _n
Number of EBSD data points in the global grain.