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 "InterfacePostprocessor.h" 11 : 12 : InputParameters 13 86461 : InterfacePostprocessor::validParams() 14 : { 15 86461 : InputParameters params = InterfaceUserObject::validParams(); 16 86461 : params += Postprocessor::validParams(); 17 86461 : params.addClassDescription( 18 : "Basic class for Interface Postprocessors. All InterfacePostprocessors " 19 : "should be derived from this class."); 20 86461 : return params; 21 0 : } 22 : 23 453 : InterfacePostprocessor::InterfacePostprocessor(const InputParameters & parameters) 24 453 : : InterfaceUserObject(parameters), Postprocessor(this), _interface_primary_area(0.) 25 : { 26 453 : } 27 : 28 : void 29 418 : InterfacePostprocessor::initialize() 30 : { 31 418 : InterfaceUserObject::initialize(); 32 418 : _interface_primary_area = 0; 33 418 : } 34 : 35 : void 36 1877 : InterfacePostprocessor::execute() 37 : { 38 1877 : InterfaceUserObject::execute(); 39 1877 : _interface_primary_area += _current_side_volume; 40 1877 : } 41 : 42 : void 43 35 : InterfacePostprocessor::threadJoin(const UserObject & y) 44 : { 45 35 : const auto & pps = static_cast<const InterfacePostprocessor &>(y); 46 35 : _interface_primary_area += pps._interface_primary_area; 47 35 : } 48 : 49 : void 50 361 : InterfacePostprocessor::finalize() 51 : { 52 361 : gatherSum(_interface_primary_area); 53 361 : }