https://mooseframework.inl.gov
thermal_hydraulics
src
postprocessors
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
14
InputParameters
15
EnergyFluxIntegral::validParams
()
16
{
17
InputParameters
params =
SideIntegralPostprocessor::validParams
();
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
24
EnergyFluxIntegral::EnergyFluxIntegral
(
const
InputParameters
& parameters)
25
:
SideIntegralPostprocessor
(parameters),
26
_arhouA(coupledValue(
"arhouA"
)),
27
_enthalpy(coupledValue(
"H"
))
28
{
29
}
30
31
void
32
EnergyFluxIntegral::threadJoin
(
const
UserObject
&
y
)
33
{
34
const
auto
& pps =
static_cast<
const
EnergyFluxIntegral
&
>
(
y
);
35
_integral_value
+= pps._integral_value;
36
}
37
38
Real
39
EnergyFluxIntegral::computeQpIntegral
()
40
{
41
return
_arhouA
[
_qp
] *
_enthalpy
[
_qp
];
42
}
EnergyFluxIntegral.h
EnergyFluxIntegral::threadJoin
virtual void threadJoin(const UserObject &y) override
Definition:
EnergyFluxIntegral.C:32
EnergyFluxIntegral::_enthalpy
const VariableValue & _enthalpy
Definition:
EnergyFluxIntegral.h:35
SideIntegralPostprocessor::validParams
static InputParameters validParams()
y
const std::vector< double > y
Definition:
EquilibriumConstantFitTest.C:18
SideIntegralPostprocessor::_qp
unsigned int _qp
registerMooseObject
registerMooseObject("ThermalHydraulicsApp", EnergyFluxIntegral)
EnergyFluxIntegral::EnergyFluxIntegral
EnergyFluxIntegral(const InputParameters ¶meters)
Definition:
EnergyFluxIntegral.C:24
InputParameters
SideIntegralPostprocessor
EnergyFluxIntegral::_arhouA
const VariableValue & _arhouA
Definition:
EnergyFluxIntegral.h:34
InputParameters::addRequiredCoupledVar
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
EnergyFluxIntegral::validParams
static InputParameters validParams()
Definition:
EnergyFluxIntegral.C:15
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
EnergyFluxIntegral
Computes the boundary integral of the energy flux.
Definition:
EnergyFluxIntegral.h:24
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
EnergyFluxIntegral::computeQpIntegral
virtual Real computeQpIntegral() override
Definition:
EnergyFluxIntegral.C:39
SideIntegralPostprocessor::_integral_value
Real _integral_value
UserObject
Generated on Fri Jul 18 2025 13:44:03 for https://mooseframework.inl.gov by
1.8.14