https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
29void
34
35void
40
46
47void
52
53void
55{
56 const auto & niep = static_cast<const NodalEnergyFluxPostprocessor &>(uo);
57 _value += niep._value;
58}
Real PostprocessorValue
registerMooseObject("ThermalHydraulicsApp", NodalEnergyFluxPostprocessor)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Computes sum of energy flux for a phase over nodes.
virtual void threadJoin(const UserObject &uo) override
NodalEnergyFluxPostprocessor(const InputParameters &parameters)
virtual PostprocessorValue getValue() const override
static InputParameters validParams()
const unsigned int _qp
void gatherSum(T &value)