Go to the documentation of this file.
35 virtual void execute()
override;
40 std::size_t var_idx)
const override;
41 virtual const std::vector<unsigned int> &
43 virtual unsigned int getFeatureVar(
unsigned int feature_id)
const override;
virtual std::size_t getTotalFeatureCount() const override
Returns the total feature count (active and inactive ids, useful for sizing vectors)
This class defines the interface for the GrainTracking objects.
std::size_t _grain_count
Total Grain Count.
std::map< unsigned int, Point > _centroid
The centroid of the feature (average of coordinates from entities participating in the volume calcula...
virtual std::size_t getNumberActiveGrains() const override
Returns the number of active grains current stored in the GrainTracker.
std::map< dof_id_type, std::vector< unsigned int > > _entity_var_to_features
virtual Real getEntityValue(dof_id_type entity_id, FeatureFloodCount::FieldType field_type, std::size_t var_idx) const override
This object will mark nodes or elements of continuous regions all with a unique number for the purpos...
virtual void finalize() override
This class is a fake grain tracker object, it will not actually track grains nor remap them but will ...
virtual void execute() override
std::set< unsigned int > _variables_used
Used as the lightweight grain counter.
virtual const std::vector< unsigned int > & getVarToFeatureVector(dof_id_type elem_id) const override
Returns a list of active unique feature ids for a particular element.
virtual void initialize() override
virtual Real getValue() override
InputParameters validParams< FauxGrainTracker >()
const int _tracking_step
Used to emulate the tracking step of the real grain tracker object.
std::vector< unsigned int > _op_to_grains
Order parameter to grain indices (just a reflexive vector)
virtual Point getGrainCentroid(unsigned int grain_id) const override
Returns the centroid for the given grain number.
std::map< unsigned int, unsigned int > _vol_count
The count of entities contributing to the volume calculation.
virtual bool doesFeatureIntersectBoundary(unsigned int feature_id) const override
Returns a Boolean indicating whether this feature intersects any boundary.
virtual ~FauxGrainTracker()
virtual unsigned int getFeatureVar(unsigned int feature_id) const override
Returns the variable representing the passed in feature.
std::map< dof_id_type, unsigned int > _entity_id_to_var_num
The mapping of entities to grains, in this case always the order parameter.
std::vector< unsigned int > _empty_var_to_features
const std::size_t _n_vars
std::map< unsigned int, Real > _volume
The volume of the feature.
FauxGrainTracker(const InputParameters ¶meters)