Line data Source code
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 : 12 : #include "GeneralPostprocessor.h" 13 : 14 : class VectorPostprocessorReductionValue : public GeneralPostprocessor 15 : { 16 : public: 17 : static InputParameters validParams(); 18 : 19 : VectorPostprocessorReductionValue(const InputParameters & parameters); 20 : 21 88 : virtual void initialize() override {} 22 88 : virtual void execute() override {} 23 : 24 : virtual Real getValue() const override; 25 : 26 : protected: 27 : /// Name of the VectorPostprocessor object that contains the vector to read 28 : const VectorPostprocessorName _vpp_name; 29 : /// Name of the vector to read the component from 30 : const std::string _vector_name; 31 : /// VectorPostprocessorValue object to read a specified component from 32 : const VectorPostprocessorValue & _vpp_values; 33 : /// The type pf reduction operation performed on the vpp 34 : const MooseEnum _value_type; 35 : };