PRISMS-PF Manual v3.0-pre
Loading...
Searching...
No Matches
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.

Member Function Documentation

◆ reassignGrains()

template<int dim>
void SimplifiedGrainManipulator< dim >::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.

◆ transferGrainIds()

template<int dim>
void SimplifiedGrainManipulator< dim >::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.


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