https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GrainCentersPostprocessor.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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{
24public:
26
28
30 virtual void initialize() {}
31 virtual void execute();
32
33protected:
36
40 const std::vector<Real> & _grain_volumes;
42 const std::vector<Point> & _grain_centers;
43
44 unsigned int _total_grains;
45};
std::vector< Real > VectorPostprocessorValue
This UserObject computes a volumes and centers of grains.
GrainCentersPostprocessor is a type of VectorPostprocessor that outputs center and volume of grains c...
VectorPostprocessorValue & _grain_volume_center_vector
The VectorPostprocessorValue object where the results are stored.
const std::vector< Real > & _grain_volumes
Extracting grain volumes from Userobject.
const ComputeGrainCenterUserObject & _grain_data
Userobject that calculates volumes and centers of grains.
const std::vector< Point > & _grain_centers
Extracting grain centers from Userobject.
static InputParameters validParams()
const InputParameters & parameters() const