PRISMS-PF  v2.1
SimplifiedGrainManipulator< dim > Class Template Reference

#include <SimplifiedGrainRepresentation.h>

Public Member Functions

void reassignGrains (std::vector< SimplifiedGrainRepresentation< dim >> &grain_representations, double buffer_distance, std::vector< unsigned int > order_parameter_id_list)
 
void transferGrainIds (const std::vector< SimplifiedGrainRepresentation< dim >> &old_grain_representations, std::vector< SimplifiedGrainRepresentation< dim >> &new_grain_representations) const
 

Detailed Description

template<int dim>
class SimplifiedGrainManipulator< dim >

This class contains methods to make changes to lists of SimplifiedGrainRepresentation objects to aid in order parameter remapping. Currently, this is a stub class containing two unrelated methods and no internal members. If this stays the case, this class may be absorbed into another one.

Definition at line 118 of file SimplifiedGrainRepresentation.h.

Member Function Documentation

◆ reassignGrains()

void reassignGrains ( std::vector< SimplifiedGrainRepresentation< dim >> &  grain_representations,
double  buffer_distance,
std::vector< unsigned int >  order_parameter_id_list 
)

This method checks for collisions between SimplifiedGrainRepresentation objects with the same order parameter and reassigns them, if needed.

Definition at line 111 of file SimplifiedGrainRepresentation.cc.

◆ transferGrainIds()

void transferGrainIds ( const std::vector< SimplifiedGrainRepresentation< dim >> &  old_grain_representations,
std::vector< SimplifiedGrainRepresentation< dim >> &  new_grain_representations 
) const

This method checks the centers of two lists of SimplifiedGrainRepresentation objects from different times in the simulation and reassigns the grain ids so that they consistently refer to the same grains.

Definition at line 184 of file SimplifiedGrainRepresentation.cc.


The documentation for this class was generated from the following files: