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 : #include "SubChannelMesh.h" 14 : 15 : /** 16 : * Calculates a mass flow averaged mean of a subchannel variable on a plane 17 : */ 18 : class SCMPlanarMean : public GeneralPostprocessor 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : SCMPlanarMean(const InputParameters & params); 23 60 : virtual void initialize() override {} 24 : virtual void execute() override; 25 60 : virtual void finalize() override {} 26 : virtual Real getValue() const override; 27 : 28 : protected: 29 : /// geometric information 30 : const SubChannelMesh & _mesh; 31 : /// name of variable 32 : AuxVariableName const & _variable; 33 : /// axial location [m] 34 : const Real & _height; 35 : /// average value we want to calculate 36 : Real _mean_value; 37 : };