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 "MassFluxIntegral.h" 11 : 12 : registerMooseObject("ThermalHydraulicsApp", MassFluxIntegral); 13 : 14 : InputParameters 15 342 : MassFluxIntegral::validParams() 16 : { 17 342 : InputParameters params = SideIntegralPostprocessor::validParams(); 18 342 : params.addClassDescription("Computes the integral of the mass flux over a boundary"); 19 684 : params.addRequiredCoupledVar("arhouA", "Momentum equation variable"); 20 342 : return params; 21 0 : } 22 : 23 126 : MassFluxIntegral::MassFluxIntegral(const InputParameters & parameters) 24 126 : : SideIntegralPostprocessor(parameters), _arhouA(coupledValue("arhouA")) 25 : { 26 126 : } 27 : 28 : void 29 18 : MassFluxIntegral::threadJoin(const UserObject & y) 30 : { 31 : const auto & pps = static_cast<const MassFluxIntegral &>(y); 32 18 : _integral_value += pps._integral_value; 33 18 : } 34 : 35 : Real 36 48 : MassFluxIntegral::computeQpIntegral() 37 : { 38 48 : return _arhouA[_qp]; 39 : }