19 "Sets the initial condition of the phase weights from the EBSD reader");
21 "The EBSDReader object holding the EBSD data");
22 params.
addRequiredParam<
unsigned int>(
"phase",
"EBSD phase number this variable is to represent");
28 _mesh(_fe_problem.
mesh()),
29 _ebsd_reader(getUserObject<
EBSDReader>(
"ebsd_reader")),
30 _phase(getParam<unsigned
int>(
"phase")),
31 _node_to_phase_weight_map(_ebsd_reader.getNodeToPhaseWeightMap())
43 std::map<dof_id_type, std::vector<Real>>::const_iterator it =
49 if (
_phase >= it->second.size())
50 mooseError(
"Requested an out-of-range phase number");
virtual Real value(const Point &)
ReconPhaseVarIC initializes a single order parameter to represent a phase obtained form an EBSDReader...
static InputParameters validParams()
ReconPhaseVarIC(const InputParameters ¶meters)
const Node * _current_node
const std::map< dof_id_type, std::vector< Real > > & _node_to_phase_weight_map
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("PhaseFieldApp", ReconPhaseVarIC)
void mooseError(Args &&... args) const
void ErrorVector unsigned int
static InputParameters validParams()