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 
13 
14 // Forward Declarations
16 
23 {
24 public:
26 
28 
30  virtual void initialize(){};
31  virtual void execute();
32 
33 protected:
36 
40  const std::vector<Real> & _grain_volumes;
42  const std::vector<Point> & _grain_centers;
43 
44  unsigned int _total_grains;
45 };
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.
std::vector< Real > VectorPostprocessorValue
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.
const InputParameters & parameters() const
static InputParameters validParams()