www.mooseframework.org
ReconPhaseVarIC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "InitialCondition.h"
13 #include "EBSDReader.h"
14 #include "PolycrystalICTools.h"
15 
16 // Forward Declarations
17 class ReconPhaseVarIC;
18 
19 template <>
20 InputParameters validParams<ReconPhaseVarIC>();
21 
28 class ReconPhaseVarIC : public InitialCondition
29 {
30 public:
31  ReconPhaseVarIC(const InputParameters & parameters);
32 
33  virtual Real value(const Point & /*p*/);
34 
35 private:
36  MooseMesh & _mesh;
37 
39 
40  unsigned int _phase;
41 
42  const std::map<dof_id_type, std::vector<Real>> & _node_to_phase_weight_map;
43 };
44 
ReconPhaseVarIC
ReconPhaseVarIC initializes a single order parameter to represent a phase obtained form an EBSDReader...
Definition: ReconPhaseVarIC.h:28
ReconPhaseVarIC::value
virtual Real value(const Point &)
Definition: ReconPhaseVarIC.C:35
ReconPhaseVarIC::_node_to_phase_weight_map
const std::map< dof_id_type, std::vector< Real > > & _node_to_phase_weight_map
Definition: ReconPhaseVarIC.h:42
ReconPhaseVarIC::_phase
unsigned int _phase
Definition: ReconPhaseVarIC.h:40
EBSDReader.h
EBSDReader
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
Definition: EBSDReader.h:36
ReconPhaseVarIC::_mesh
MooseMesh & _mesh
Definition: ReconPhaseVarIC.h:36
ReconPhaseVarIC::_ebsd_reader
const EBSDReader & _ebsd_reader
Definition: ReconPhaseVarIC.h:38
ReconPhaseVarIC::ReconPhaseVarIC
ReconPhaseVarIC(const InputParameters &parameters)
Definition: ReconPhaseVarIC.C:25
PolycrystalICTools.h
validParams< ReconPhaseVarIC >
InputParameters validParams< ReconPhaseVarIC >()
Definition: ReconPhaseVarIC.C:16