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 "AreaPostprocessor.h" 11 : 12 : registerMooseObject("MooseApp", AreaPostprocessor); 13 : 14 : InputParameters 15 3960 : AreaPostprocessor::validParams() 16 : { 17 3960 : InputParameters params = SideIntegralPostprocessor::validParams(); 18 : 19 3960 : params.addClassDescription("Computes the \"area\" or dimension - 1 \"volume\" of a given " 20 : "boundary or boundaries in your mesh."); 21 3960 : return params; 22 0 : } 23 : 24 457 : AreaPostprocessor::AreaPostprocessor(const InputParameters & parameters) 25 457 : : SideIntegralPostprocessor(parameters) 26 : { 27 457 : } 28 : 29 : void 30 223 : AreaPostprocessor::threadJoin(const UserObject & y) 31 : { 32 223 : const auto & pps = static_cast<const AreaPostprocessor &>(y); 33 223 : _integral_value += pps._integral_value; 34 223 : } 35 : 36 : Real 37 58768 : AreaPostprocessor::computeQpIntegral() 38 : { 39 58768 : return 1.0; 40 : }