https://mooseframework.inl.gov
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 
11 
13 
16 {
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 
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 
40 {
41  if (_return_type == "RADIOSITY")
43  else if (_return_type == "TEMPERATURE")
46 }
virtual PostprocessorValue getValue() const override
registerMooseObject("HeatTransferApp", GrayLambertSurfaceRadiationPP)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
MeshBase & mesh
const GrayLambertSurfaceRadiationBase & _glsr_uo
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
BoundaryID getBoundaryID(const BoundaryName &boundary_name, const MeshBase &mesh)
GrayLambertSurfaceRadiationPP(const InputParameters &parameters)
Real PostprocessorValue
A postprocessor that extracts information from the GrayLambertSurfaceRadiationBase UserObject...
void addClassDescription(const std::string &doc_string)