https://mooseframework.inl.gov
MassFluxIntegral.C
Go to the documentation of this file.
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 
16 {
18  params.addClassDescription("Computes the integral of the mass flux over a boundary");
19  params.addRequiredCoupledVar("arhouA", "Momentum equation variable");
20  return params;
21 }
22 
24  : SideIntegralPostprocessor(parameters), _arhouA(coupledValue("arhouA"))
25 {
26 }
27 
28 void
30 {
31  const auto & pps = static_cast<const MassFluxIntegral &>(y);
32  _integral_value += pps._integral_value;
33 }
34 
35 Real
37 {
38  return _arhouA[_qp];
39 }
static InputParameters validParams()
const std::vector< double > y
Computes the boundary integral of the mass flux.
MassFluxIntegral(const InputParameters &parameters)
virtual Real computeQpIntegral() override
registerMooseObject("ThermalHydraulicsApp", MassFluxIntegral)
virtual void threadJoin(const UserObject &y) override
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _arhouA
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)