https://mooseframework.inl.gov
Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
EBSDAccessFunctorsTest Class Reference

#include <EBSDAccessFunctorsTest.h>

Inheritance diagram for EBSDAccessFunctorsTest:
[legend]

Static Public Member Functions

static MooseEnum getPointDataFieldType ()
 
static MooseEnum getAvgDataFieldType ()
 

Protected Member Functions

void SetUp ()
 

Protected Attributes

EBSDPointData _point
 
EBSDAvgData _avg
 
EulerAngles _angles
 

Detailed Description

Definition at line 15 of file EBSDAccessFunctorsTest.h.

Member Function Documentation

◆ getAvgDataFieldType()

MooseEnum EBSDAccessFunctors::getAvgDataFieldType ( )
staticinherited

Definition at line 19 of file EBSDAccessFunctors.C.

Referenced by EBSDReaderAvgDataAux::validParams().

20 {
21  return MooseEnum("phi1 phi phi2 phase symmetry local_id feature_id", "", true);
22 }

◆ getPointDataFieldType()

MooseEnum EBSDAccessFunctors::getPointDataFieldType ( )
staticinherited

Definition at line 13 of file EBSDAccessFunctors.C.

Referenced by EBSDReaderPointDataAux::validParams().

14 {
15  return MooseEnum("phi1 phi phi2 feature_id phase symmetry", "", true);
16 }

◆ SetUp()

void EBSDAccessFunctorsTest::SetUp ( )
inlineprotected

Definition at line 18 of file EBSDAccessFunctorsTest.h.

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  }
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.
EulerAngles * _angles
Averaged Euler angles.
unsigned int _feature_id
EBSD grain, symmetry, and phase data.
unsigned int _n
Number of EBSD data points in the global grain.

Member Data Documentation

◆ _angles

EulerAngles EBSDAccessFunctorsTest::_angles
protected

Definition at line 53 of file EBSDAccessFunctorsTest.h.

Referenced by SetUp().

◆ _avg

EBSDAvgData EBSDAccessFunctorsTest::_avg
protected

Definition at line 51 of file EBSDAccessFunctorsTest.h.

Referenced by SetUp().

◆ _point

EBSDPointData EBSDAccessFunctorsTest::_point
protected

Definition at line 50 of file EBSDAccessFunctorsTest.h.

Referenced by SetUp().


The documentation for this class was generated from the following file: