https://mooseframework.inl.gov
PolycrystalEBSD.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
13 
14 // Forward Declarations
15 class EBSDReader;
16 
18 {
19 public:
21 
23 
24  virtual void getGrainsBasedOnPoint(const Point & point,
25  std::vector<unsigned int> & grains) const override;
26  virtual Real getVariableValue(unsigned int op_index, const Point & p) const override;
27  virtual Real getNodalVariableValue(unsigned int op_index, const Node & n) const override;
28  virtual unsigned int getNumGrains() const override;
29 
30 protected:
31  const unsigned int _phase;
33  const std::map<dof_id_type, std::vector<Real>> & _node_to_grain_weight_map;
34 };
const unsigned int _phase
This object provides the base capability for creating proper polycrystal ICs.
const std::map< dof_id_type, std::vector< Real > > & _node_to_grain_weight_map
virtual Real getVariableValue(unsigned int op_index, const Point &p) const override
Returns the variable value for a given op_index and mesh point.
const EBSDReader & _ebsd_reader
A GeneralUserObject that reads an EBSD file and stores the centroid data in a data structure which in...
Definition: EBSDReader.h:31
static InputParameters validParams()
virtual void getGrainsBasedOnPoint(const Point &point, std::vector< unsigned int > &grains) const override
Method for retrieving active grain IDs based on some point in the mesh.
PolycrystalEBSD(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual unsigned int getNumGrains() const override
Must be overridden by the deriving class to provide the number of grains in the polycrystal structure...
virtual Real getNodalVariableValue(unsigned int op_index, const Node &n) const override
Similarly to the getVariableValue method, this method also returns values but may be optimized for re...
const InputParameters & parameters() const