https://mooseframework.inl.gov
NodalEnergyFluxPostprocessor.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 
11 
12 registerMooseObject("ThermalHydraulicsApp", NodalEnergyFluxPostprocessor);
13 
16 {
18  params.addRequiredCoupledVar("arhouA", "alpha*rho*u*A");
19  params.addRequiredCoupledVar("H", "Specific total enthalpy");
20  params.addClassDescription("Compute the energy flux from the sum of the nodal energy fluxes");
21  return params;
22 }
23 
25  : NodalPostprocessor(parameters), _arhouA(coupledValue("arhouA")), _H(coupledValue("H"))
26 {
27 }
28 
29 void
31 {
32  _value = 0;
33 }
34 
35 void
37 {
38  _value = _arhouA[_qp] * _H[_qp];
39 }
40 
43 {
44  return _value;
45 }
46 
47 void
49 {
51 }
52 
53 void
55 {
56  const auto & niep = static_cast<const NodalEnergyFluxPostprocessor &>(uo);
57  _value += niep._value;
58 }
void gatherSum(T &value)
static InputParameters validParams()
Real PostprocessorValue
registerMooseObject("ThermalHydraulicsApp", NodalEnergyFluxPostprocessor)
const unsigned int _qp
Computes sum of energy flux for a phase over nodes.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
virtual void threadJoin(const UserObject &uo) override
NodalEnergyFluxPostprocessor(const InputParameters &parameters)
virtual PostprocessorValue getValue() const override
void addClassDescription(const std::string &doc_string)