www.mooseframework.org
MaterialVectorPostprocessor.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef MATERIALVECTORPOSTPROCESSOR_H
16 #define MATERIALVECTORPOSTPROCESSOR_H
17 
19 
21 
22 template <>
24 
30 {
31 public:
33 
34  virtual void initialize() override{};
35  virtual void execute() override;
36  virtual void finalize() override;
37  virtual void threadJoin(const UserObject & y) override;
38 
39 private:
43  void sortVecs();
44 
46  std::set<unsigned int> _elem_filter;
47 
50 
53 
55  std::vector<VectorPostprocessorValue *> _prop_vecs;
56 
59  std::vector<const PropertyValue *> _prop_refs;
60 
63  std::vector<std::string> _prop_names;
64 };
65 
66 #endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::vector< VectorPostprocessorValue * > _prop_vecs
Columns for each (scalar) property of the material.
VectorPostprocessorValue & _qp_ids
Column of quadrature point indices.
virtual void finalize() override
Finalize.
virtual void threadJoin(const UserObject &y) override
Must override.
std::set< unsigned int > _elem_filter
Element ids to record material properties for.
void sortVecs()
Sorts all data in the VectorPostProcessorValue objects so that output from this postprocessor is orde...
virtual void execute() override
Execute method.
std::vector< const PropertyValue * > _prop_refs
Reference to each material property - used to retrieve the actual property values at every execution ...
std::vector< std::string > _prop_names
Names for every property in the material - used for determining if properties are scalar or not...
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
std::vector< Real > VectorPostprocessorValue
Definition: MooseTypes.h:74
InputParameters validParams< MaterialVectorPostprocessor >()
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
VectorPostprocessorValue & _elem_ids
Column of element id info.
This postprocessor records all scalar material properties of the specified material object on specifi...
Base class for user-specific data.
Definition: UserObject.h:42
MaterialVectorPostprocessor(const InputParameters &parameters)