www.mooseframework.org
GrainCentersPostprocessor.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef GRAINCENTERSPOSTPROCESSOR_H
8 #define GRAINCENTERSPOSTPROCESSOR_H
9 
10 #include "GeneralVectorPostprocessor.h"
11 
12 // Forward Declarations
15 
16 template <>
18 
24 class GrainCentersPostprocessor : public GeneralVectorPostprocessor
25 {
26 public:
27  GrainCentersPostprocessor(const InputParameters & parameters);
28 
30  virtual void initialize(){};
31  virtual void execute();
32 
33 protected:
35  VectorPostprocessorValue & _grain_volume_center_vector;
36 
40  const std::vector<Real> & _grain_volumes;
42  const std::vector<Point> & _grain_centers;
43 
44  unsigned int _total_grains;
45 };
46 
47 #endif // GRAINCENTERSPOSTPROCESSOR_H
This UserObject computes a volumes and centers of grains.
GrainCentersPostprocessor(const InputParameters &parameters)
GrainCentersPostprocessor is a type of VectorPostprocessor that outputs center and volume of grains c...
const ComputeGrainCenterUserObject & _grain_data
Userobject that calculates volumes and centers of grains.
InputParameters validParams< GrainCentersPostprocessor >()
const std::vector< Point > & _grain_centers
Extracting grain centers from Userobject.
const std::vector< Real > & _grain_volumes
Extracting grain volumes from Userobject.
VectorPostprocessorValue & _grain_volume_center_vector
The VectorPostprocessorValue object where the results are stored.