www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
GrainCentersPostprocessor Class Reference

GrainCentersPostprocessor is a type of VectorPostprocessor that outputs center and volume of grains calculated in GrainCenterUserObject. More...

#include <GrainCentersPostprocessor.h>

Inheritance diagram for GrainCentersPostprocessor:
[legend]

Public Member Functions

 GrainCentersPostprocessor (const InputParameters &parameters)
 
virtual ~GrainCentersPostprocessor ()
 
virtual void initialize ()
 
virtual void execute ()
 

Protected Attributes

VectorPostprocessorValue & _grain_volume_center_vector
 The VectorPostprocessorValue object where the results are stored. More...
 
const ComputeGrainCenterUserObject_grain_data
 Userobject that calculates volumes and centers of grains. More...
 
const std::vector< Real > & _grain_volumes
 Extracting grain volumes from Userobject. More...
 
const std::vector< Point > & _grain_centers
 Extracting grain centers from Userobject. More...
 
unsigned int _total_grains
 

Detailed Description

GrainCentersPostprocessor is a type of VectorPostprocessor that outputs center and volume of grains calculated in GrainCenterUserObject.

Definition at line 27 of file GrainCentersPostprocessor.h.

Constructor & Destructor Documentation

◆ GrainCentersPostprocessor()

GrainCentersPostprocessor::GrainCentersPostprocessor ( const InputParameters &  parameters)

Definition at line 24 of file GrainCentersPostprocessor.C.

25  : GeneralVectorPostprocessor(parameters),
26  _grain_volume_center_vector(declareVector("grain_volume_center_vector")),
27  _grain_data(getUserObject<ComputeGrainCenterUserObject>("grain_data")),
31 {
33 }
const std::vector< Real > & getGrainVolumes() const
const ComputeGrainCenterUserObject & _grain_data
Userobject that calculates volumes and centers of grains.
const std::vector< Point > & getGrainCenters() const
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.

◆ ~GrainCentersPostprocessor()

virtual GrainCentersPostprocessor::~GrainCentersPostprocessor ( )
inlinevirtual

Definition at line 32 of file GrainCentersPostprocessor.h.

32 {}

Member Function Documentation

◆ execute()

void GrainCentersPostprocessor::execute ( )
virtual

Definition at line 36 of file GrainCentersPostprocessor.C.

37 {
38  for (unsigned int i = 0; i < _total_grains; ++i)
39  {
44  }
45 }
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.

◆ initialize()

virtual void GrainCentersPostprocessor::initialize ( )
inlinevirtual

Definition at line 33 of file GrainCentersPostprocessor.h.

33 {};

Member Data Documentation

◆ _grain_centers

const std::vector<Point>& GrainCentersPostprocessor::_grain_centers
protected

Extracting grain centers from Userobject.

Definition at line 45 of file GrainCentersPostprocessor.h.

Referenced by execute().

◆ _grain_data

const ComputeGrainCenterUserObject& GrainCentersPostprocessor::_grain_data
protected

Userobject that calculates volumes and centers of grains.

Definition at line 41 of file GrainCentersPostprocessor.h.

◆ _grain_volume_center_vector

VectorPostprocessorValue& GrainCentersPostprocessor::_grain_volume_center_vector
protected

The VectorPostprocessorValue object where the results are stored.

Definition at line 38 of file GrainCentersPostprocessor.h.

Referenced by execute(), and GrainCentersPostprocessor().

◆ _grain_volumes

const std::vector<Real>& GrainCentersPostprocessor::_grain_volumes
protected

Extracting grain volumes from Userobject.

Definition at line 43 of file GrainCentersPostprocessor.h.

Referenced by execute().

◆ _total_grains

unsigned int GrainCentersPostprocessor::_total_grains
protected

Definition at line 47 of file GrainCentersPostprocessor.h.

Referenced by execute(), and GrainCentersPostprocessor().


The documentation for this class was generated from the following files: