https://mooseframework.inl.gov
heat_transfer
src
postprocessors
GrayLambertSurfaceRadiationPP.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 "
GrayLambertSurfaceRadiationPP.h
"
11
12
registerMooseObject
(
"HeatTransferApp"
,
GrayLambertSurfaceRadiationPP
);
13
14
InputParameters
15
GrayLambertSurfaceRadiationPP::validParams
()
16
{
17
InputParameters
params =
GeneralPostprocessor::validParams
();
18
MooseEnum
return_type(
"RADIOSITY HEAT_FLUX_DENSITY TEMPERATURE"
,
"HEAT_FLUX_DENSITY"
);
19
params.
addParam
<
MooseEnum
>(
"return_type"
,
20
return_type,
21
"Requested return type: RADIOSITY | HEAT_FLUX_DENSITY | TEMPERATURE"
);
22
params.
addRequiredParam
<UserObjectName>(
"surface_radiation_object_name"
,
23
"Name of the GrayLambertSurfaceRadiationBase UO"
);
24
params.
addRequiredParam
<BoundaryName>(
"boundary"
,
"The boundary of interest."
);
25
params.
addClassDescription
(
"This postprocessor allows to extract radiosity, heat flux density, "
26
"and temperature from the GrayLambertSurfaceRadiationBase object."
);
27
return
params;
28
}
29
30
GrayLambertSurfaceRadiationPP::GrayLambertSurfaceRadiationPP
(
const
InputParameters
& parameters)
31
:
GeneralPostprocessor
(parameters),
32
_glsr_uo(getUserObject<
GrayLambertSurfaceRadiationBase
>(
"surface_radiation_object_name"
)),
33
_return_type(getParam<
MooseEnum
>(
"return_type"
)),
34
_bnd_id(_fe_problem.
mesh
().
getBoundaryID
(getParam<BoundaryName>(
"boundary"
)))
35
{
36
}
37
38
PostprocessorValue
39
GrayLambertSurfaceRadiationPP::getValue
()
const
40
{
41
if
(
_return_type
==
"RADIOSITY"
)
42
return
_glsr_uo
.
getSurfaceRadiosity
(
_bnd_id
);
43
else
if
(
_return_type
==
"TEMPERATURE"
)
44
return
_glsr_uo
.
getSurfaceTemperature
(
_bnd_id
);
45
return
_glsr_uo
.
getSurfaceHeatFluxDensity
(
_bnd_id
);
46
}
GrayLambertSurfaceRadiationPP::getValue
virtual PostprocessorValue getValue() const override
Definition:
GrayLambertSurfaceRadiationPP.C:39
GrayLambertSurfaceRadiationPP::validParams
static InputParameters validParams()
Definition:
GrayLambertSurfaceRadiationPP.C:15
registerMooseObject
registerMooseObject("HeatTransferApp", GrayLambertSurfaceRadiationPP)
GrayLambertSurfaceRadiationPP::_return_type
MooseEnum _return_type
Definition:
GrayLambertSurfaceRadiationPP.h:32
InputParameters::addParam
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
GrayLambertSurfaceRadiationBase
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
Definition:
GrayLambertSurfaceRadiationBase.h:21
mesh
MeshBase & mesh
GeneralPostprocessor
GrayLambertSurfaceRadiationPP::_glsr_uo
const GrayLambertSurfaceRadiationBase & _glsr_uo
Definition:
GrayLambertSurfaceRadiationPP.h:31
InputParameters::addRequiredParam
void addRequiredParam(const std::string &name, const std::string &doc_string)
GeneralPostprocessor::validParams
static InputParameters validParams()
getBoundaryID
BoundaryID getBoundaryID(const BoundaryName &boundary_name, const MeshBase &mesh)
InputParameters
GrayLambertSurfaceRadiationPP::GrayLambertSurfaceRadiationPP
GrayLambertSurfaceRadiationPP(const InputParameters ¶meters)
Definition:
GrayLambertSurfaceRadiationPP.C:30
PostprocessorValue
Real PostprocessorValue
GrayLambertSurfaceRadiationPP
A postprocessor that extracts information from the GrayLambertSurfaceRadiationBase UserObject...
Definition:
GrayLambertSurfaceRadiationPP.h:19
MooseEnum
GrayLambertSurfaceRadiationPP.h
GrayLambertSurfaceRadiationPP::_bnd_id
BoundaryID _bnd_id
Definition:
GrayLambertSurfaceRadiationPP.h:33
GrayLambertSurfaceRadiationBase::getSurfaceRadiosity
Real getSurfaceRadiosity(BoundaryID id) const
Definition:
GrayLambertSurfaceRadiationBase.C:299
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
GrayLambertSurfaceRadiationBase::getSurfaceTemperature
Real getSurfaceTemperature(BoundaryID id) const
Definition:
GrayLambertSurfaceRadiationBase.C:291
GrayLambertSurfaceRadiationBase::getSurfaceHeatFluxDensity
Real getSurfaceHeatFluxDensity(BoundaryID id) const
Definition:
GrayLambertSurfaceRadiationBase.C:283
Generated on Fri Jul 18 2025 11:56:13 for https://mooseframework.inl.gov by
1.8.14