www.mooseframework.org
GrainCentersPostprocessor.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralVectorPostprocessor.h"
13 
14 // Forward Declarations
17 
18 template <>
20 
26 class GrainCentersPostprocessor : public GeneralVectorPostprocessor
27 {
28 public:
29  GrainCentersPostprocessor(const InputParameters & parameters);
30 
32  virtual void initialize(){};
33  virtual void execute();
34 
35 protected:
37  VectorPostprocessorValue & _grain_volume_center_vector;
38 
42  const std::vector<Real> & _grain_volumes;
44  const std::vector<Point> & _grain_centers;
45 
46  unsigned int _total_grains;
47 };
48 
GrainCentersPostprocessor::_total_grains
unsigned int _total_grains
Definition: GrainCentersPostprocessor.h:46
GrainCentersPostprocessor::_grain_data
const ComputeGrainCenterUserObject & _grain_data
Userobject that calculates volumes and centers of grains.
Definition: GrainCentersPostprocessor.h:40
GrainCentersPostprocessor
GrainCentersPostprocessor is a type of VectorPostprocessor that outputs center and volume of grains c...
Definition: GrainCentersPostprocessor.h:26
GrainCentersPostprocessor::_grain_centers
const std::vector< Point > & _grain_centers
Extracting grain centers from Userobject.
Definition: GrainCentersPostprocessor.h:44
ComputeGrainCenterUserObject
This UserObject computes a volumes and centers of grains.
Definition: ComputeGrainCenterUserObject.h:23
GrainCentersPostprocessor::_grain_volumes
const std::vector< Real > & _grain_volumes
Extracting grain volumes from Userobject.
Definition: GrainCentersPostprocessor.h:42
GrainCentersPostprocessor::_grain_volume_center_vector
VectorPostprocessorValue & _grain_volume_center_vector
The VectorPostprocessorValue object where the results are stored.
Definition: GrainCentersPostprocessor.h:37
validParams< GrainCentersPostprocessor >
InputParameters validParams< GrainCentersPostprocessor >()
Definition: GrainCentersPostprocessor.C:15
GrainCentersPostprocessor::initialize
virtual void initialize()
Definition: GrainCentersPostprocessor.h:32
GrainCentersPostprocessor::execute
virtual void execute()
Definition: GrainCentersPostprocessor.C:36
GrainCentersPostprocessor::GrainCentersPostprocessor
GrainCentersPostprocessor(const InputParameters &parameters)
Definition: GrainCentersPostprocessor.C:24
GrainCentersPostprocessor::~GrainCentersPostprocessor
virtual ~GrainCentersPostprocessor()
Definition: GrainCentersPostprocessor.h:31