https://mooseframework.inl.gov
EnergyFluxIntegral.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 "EnergyFluxIntegral.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", EnergyFluxIntegral);
13 
16 {
18  params.addClassDescription("Computes the integral of the energy flux over a boundary");
19  params.addRequiredCoupledVar("arhouA", "alpha*rho*u*A");
20  params.addRequiredCoupledVar("H", "Specific total enthalpy");
21  return params;
22 }
23 
25  : SideIntegralPostprocessor(parameters),
26  _arhouA(coupledValue("arhouA")),
27  _enthalpy(coupledValue("H"))
28 {
29 }
30 
31 void
33 {
34  const auto & pps = static_cast<const EnergyFluxIntegral &>(y);
35  _integral_value += pps._integral_value;
36 }
37 
38 Real
40 {
41  return _arhouA[_qp] * _enthalpy[_qp];
42 }
virtual void threadJoin(const UserObject &y) override
const VariableValue & _enthalpy
static InputParameters validParams()
const std::vector< double > y
registerMooseObject("ThermalHydraulicsApp", EnergyFluxIntegral)
EnergyFluxIntegral(const InputParameters &parameters)
const VariableValue & _arhouA
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Computes the boundary integral of the energy flux.
void addClassDescription(const std::string &doc_string)
virtual Real computeQpIntegral() override