19 params.
addClassDescription(
"Outputs one color or a scalar for the RGB-encoding of the local "
20 "Euler angles for the grain orientation");
24 params.
addParam<
MooseEnum>(
"output_type", output_types,
"Type of value that will be outputted");
29 params.
addCoupledVar(
"symmetry",
"Grain symmetry identifier");
36 _output_type(getParam<
MooseEnum>(
"output_type")),
37 _phi1(coupledValue(
"phi1")),
38 _phi(coupledValue(
"phi")),
39 _phi2(coupledValue(
"phi2")),
40 _phase(coupledValue(
"phase")),
41 _sym(coupledValue(
"symmetry"))
62 for (
unsigned int i = 0; i < 3; ++i)
63 RGBint = 256 * RGBint + (RGB(i) >= 1 ? 255 : std::floor(RGB(i) * 256.0));
68 mooseError(
"Incorrect value for output_type in EulerAngleVariables2RGBAux");
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,...
registerMooseObject("PhaseFieldApp", EulerAngleVariables2RGBAux)
static InputParameters validParams()
Create an encoded RGB triplet from Euler angle data.
EulerAngleVariables2RGBAux(const InputParameters ¶meters)
virtual Real computeValue()
const unsigned int _output_type
Type of value to be outputted.
const VariableValue & _phi1
Euler angles to visualize.
static InputParameters validParams()
const unsigned int _sd
Reference direction of the sample.
const VariableValue & _phase
EBSD Phase index.
const VariableValue & _phi2
const VariableValue & _sym
EBSD Crystal symmetry identifier.
const VariableValue & _phi
void mooseError(Args &&... args) const