Go to the documentation of this file.
19 InputParameters params = validParams<AuxKernel>();
20 MooseEnum sd_enum = MooseEnum(
"100=1 010=2 001=3",
"001");
21 params.addParam<MooseEnum>(
"sd", sd_enum,
"Reference sample direction");
22 MooseEnum output_types = MooseEnum(
"red green blue scalar",
"scalar");
23 params.addParam<MooseEnum>(
"output_type", output_types,
"Type of value that will be outputted");
24 params.addCoupledVar(
"phi1",
"Euler angle 1");
25 params.addCoupledVar(
"phi",
"Euler angle 2");
26 params.addCoupledVar(
"phi2",
"Euler angle 3");
27 params.addCoupledVar(
"phase",
"Grain phase index");
28 params.addCoupledVar(
"symmetry",
"Grain symmetry identifier");
33 : AuxKernel(parameters),
34 _sd(getParam<MooseEnum>(
"sd")),
35 _output_type(getParam<MooseEnum>(
"output_type")),
36 _phi1(coupledValue(
"phi1")),
37 _phi(coupledValue(
"phi")),
38 _phi2(coupledValue(
"phi2")),
39 _phase(coupledValue(
"phase")),
40 _sym(coupledValue(
"symmetry"))
49 _phi1[0] / 180.0 * libMesh::pi,
50 _phi[0] / 180.0 * libMesh::pi,
51 _phi2[0] / 180.0 * libMesh::pi,
61 for (
unsigned int i = 0; i < 3; ++i)
62 RGBint = 256 * RGBint + (RGB(i) >= 1 ? 255 : std::floor(RGB(i) * 256.0));
67 mooseError(
"Incorrect value for output_type in EulerAngleVariables2RGBAux");
const unsigned int _output_type
Type of value to be outputted.
virtual Real computeValue()
const VariableValue & _phi1
Euler angles to visualize.
InputParameters validParams< EulerAngleVariables2RGBAux >()
const unsigned int _sd
Reference direction of the sample.
Point euler2RGB(unsigned int sd, Real phi1, Real PHI, Real phi2, unsigned int phase, unsigned int sym)
This function rotates a set of three Bunge Euler angles into the standard Stereographic triangle,...
Create an encoded RGB triplet from Euler angle data.
EulerAngleVariables2RGBAux(const InputParameters ¶meters)
registerMooseObject("PhaseFieldApp", EulerAngleVariables2RGBAux)
const VariableValue & _phase
EBSD Phase index.
const VariableValue & _phi
const VariableValue & _sym
EBSD Crystal symmetry identifier.
const VariableValue & _phi2