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 : #include "VolumePostprocessor.h" 11 : 12 : registerMooseObject("MooseApp", VolumePostprocessor); 13 : 14 : InputParameters 15 14944 : VolumePostprocessor::validParams() 16 : { 17 14944 : InputParameters params = ElementIntegralPostprocessor::validParams(); 18 14944 : params.addClassDescription("Computes the volume of a specified block"); 19 14944 : return params; 20 0 : } 21 : 22 342 : VolumePostprocessor::VolumePostprocessor(const InputParameters & parameters) 23 342 : : ElementIntegralPostprocessor(parameters) 24 : { 25 342 : } 26 : 27 : void 28 60 : VolumePostprocessor::threadJoin(const UserObject & y) 29 : { 30 60 : const auto & pps = static_cast<const VolumePostprocessor &>(y); 31 60 : _integral_value += pps._integral_value; 32 60 : } 33 : 34 : Real 35 182739 : VolumePostprocessor::computeQpIntegral() 36 : { 37 182739 : return 1.0; 38 : }