www.mooseframework.org
GrayLambertSurfaceRadiationPP.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
15 
16 InputParameters
18 {
19  InputParameters params = GeneralPostprocessor::validParams();
20  MooseEnum return_type("RADIOSITY HEAT_FLUX_DENSITY TEMPERATURE", "HEAT_FLUX_DENSITY");
21  params.addParam<MooseEnum>("return_type",
22  return_type,
23  "Requested return type: RADIOSITY | HEAT_FLUX_DENSITY | TEMPERATURE");
24  params.addRequiredParam<UserObjectName>("surface_radiation_object_name",
25  "Name of the GrayLambertSurfaceRadiationBase UO");
26  params.addRequiredParam<BoundaryName>("boundary", "The boundary of interest.");
27  params.addClassDescription("This postprocessor allows to extract radiosity, heat flux density, "
28  "and temperature from the GrayLambertSurfaceRadiationBase object.");
29  return params;
30 }
31 
33  : GeneralPostprocessor(parameters),
34  _glsr_uo(getUserObject<GrayLambertSurfaceRadiationBase>("surface_radiation_object_name")),
35  _return_type(getParam<MooseEnum>("return_type")),
36  _bnd_id(_fe_problem.mesh().getBoundaryID(getParam<BoundaryName>("boundary")))
37 {
38 }
39 
40 PostprocessorValue
42 {
43  if (_return_type == "RADIOSITY")
45  else if (_return_type == "TEMPERATURE")
48 }
registerMooseObject
registerMooseObject("HeatConductionApp", GrayLambertSurfaceRadiationPP)
GrayLambertSurfaceRadiationPP::_return_type
MooseEnum _return_type
Definition: GrayLambertSurfaceRadiationPP.h:37
GrayLambertSurfaceRadiationPP::validParams
static InputParameters validParams()
Definition: GrayLambertSurfaceRadiationPP.C:17
GrayLambertSurfaceRadiationPP::_glsr_uo
const GrayLambertSurfaceRadiationBase & _glsr_uo
Definition: GrayLambertSurfaceRadiationPP.h:36
GrayLambertSurfaceRadiationPP::GrayLambertSurfaceRadiationPP
GrayLambertSurfaceRadiationPP(const InputParameters &parameters)
Definition: GrayLambertSurfaceRadiationPP.C:32
GrayLambertSurfaceRadiationPP::_bnd_id
BoundaryID _bnd_id
Definition: GrayLambertSurfaceRadiationPP.h:38
validParams
InputParameters validParams()
GrayLambertSurfaceRadiationBase::getSurfaceRadiosity
Real getSurfaceRadiosity(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:293
GrayLambertSurfaceRadiationPP.h
GrayLambertSurfaceRadiationPP::getValue
virtual PostprocessorValue getValue() override
Definition: GrayLambertSurfaceRadiationPP.C:41
GrayLambertSurfaceRadiationPP
A postprocessor that extracts information from the GrayLambertSurfaceRadiationBase UserObject.
Definition: GrayLambertSurfaceRadiationPP.h:24
GrayLambertSurfaceRadiationBase::getSurfaceHeatFluxDensity
Real getSurfaceHeatFluxDensity(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:277
defineLegacyParams
defineLegacyParams(GrayLambertSurfaceRadiationPP)
GrayLambertSurfaceRadiationBase::getSurfaceTemperature
Real getSurfaceTemperature(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:285
GrayLambertSurfaceRadiationBase
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
Definition: GrayLambertSurfaceRadiationBase.h:25