26 std::vector<unsigned int> & grains)
const override;
54 const unsigned int & gr_index,
55 const std::vector<unsigned int> & grain_ids)
const;
56 Point
findNormalVector(
const Point & point,
const Point & p1,
const Point & p2)
const;
57 Point
findCenterPoint(
const Point & point,
const Point & p1,
const Point & p2)
const;
61 const unsigned int dim)
const;
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.
const FileName _file_name
static InputParameters validParams()
const InputParameters & parameters() const
std::vector< Point > _new_points
Original grain center points and duplicated grain center points.
virtual std::vector< Point > getGrainCenters() const
virtual Real getVariableValue(unsigned int op_index, const Point &p) const override
Returns the variable value for a given op_index and mesh point.
Point findCenterPoint(const Point &point, const Point &p1, const Point &p2) const
std::vector< Point > _centerpoints
This object provides the base capability for creating proper polycrystal ICs.
std::vector< dof_id_type > _grain_gtl_ids
The domain is extended to consider periodic boundary conditions.
Real computeDiffuseInterface(const Point &point, const unsigned int &gr_index, const std::vector< unsigned int > &grain_ids) const
Point findNormalVector(const Point &point, const Point &p1, const Point &p2) const
PolycrystalVoronoi(const InputParameters ¶meters)
Real findLinePoint(const Point &point, const Point &N, const Point &cntr, const unsigned int dim) const
std::unique_ptr< KDTree > _kd_tree
KD tree that is used to speedup grain search.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void precomputeGrainStructure() override
This callback is triggered after the object is initialized and may be optionally overridden to do pre...
virtual unsigned int getNumGrains() const override
Must be overridden by the deriving class to provide the number of grains in the polycrystal structure...
unsigned int _grain_patch_size
The number of neighboring grains.
bool _use_kdtree
Whether or not to use a KD tree to speedup grain search.
const unsigned int _rand_seed
unsigned int _grain_num
The number of grains to create.
unsigned int _point_patch_size
The number of nearest points.