https://mooseframework.inl.gov
Loading...
Searching...
No Matches
heat_transfer
src
postprocessors
ViewFactorPP.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 "
ViewFactorPP.h
"
11
#include "
ViewFactorBase.h
"
12
13
registerMooseObject
(
"HeatTransferApp"
,
ViewFactorPP
);
14
15
InputParameters
16
ViewFactorPP::validParams
()
17
{
18
InputParameters
params =
GeneralPostprocessor::validParams
();
19
params.
addRequiredParam
<UserObjectName>(
"view_factor_object_name"
,
20
"Name of the ViewFactor userobjects."
);
21
params.
addRequiredParam
<BoundaryName>(
"from_boundary"
,
22
"The boundary from which to compute the view factor."
);
23
params.
addRequiredParam
<BoundaryName>(
"to_boundary"
,
24
"The boundary from which to compute the view factor."
);
25
params.
addClassDescription
(
26
"This postprocessor allows to extract view factors from ViewFactor userobjects."
);
27
return
params;
28
}
29
30
ViewFactorPP::ViewFactorPP
(
const
InputParameters
& parameters)
31
:
GeneralPostprocessor
(parameters),
32
_vf_uo(getUserObject<
ViewFactorBase
>(
"view_factor_object_name"
)),
33
_from_bnd_id(_fe_problem.
mesh
().getBoundaryID(getParam<BoundaryName>(
"from_boundary"
))),
34
_to_bnd_id(_fe_problem.
mesh
().getBoundaryID(getParam<BoundaryName>(
"to_boundary"
)))
35
{
36
}
37
38
PostprocessorValue
39
ViewFactorPP::getValue
()
const
40
{
41
return
_vf_uo
.
getViewFactor
(
_from_bnd_id
,
_to_bnd_id
);
42
}
PostprocessorValue
Real PostprocessorValue
ViewFactorBase.h
registerMooseObject
registerMooseObject("HeatTransferApp", ViewFactorPP)
ViewFactorPP.h
GeneralPostprocessor
GeneralPostprocessor::validParams
static InputParameters validParams()
InputParameters::addRequiredParam
void addRequiredParam(const std::string &name, const std::string &doc_string)
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
ViewFactorBase
A base class for automatic computation of view factors between sidesets.
Definition
ViewFactorBase.h:20
ViewFactorBase::getViewFactor
Real getViewFactor(BoundaryID from_id, BoundaryID to_id) const
public interface for obtaining view factors
Definition
ViewFactorBase.C:73
ViewFactorPP
This postprocessor allows to extract view factors from ViewFactor userobjects.
Definition
ViewFactorPP.h:20
ViewFactorPP::validParams
static InputParameters validParams()
Definition
ViewFactorPP.C:16
ViewFactorPP::_to_bnd_id
const BoundaryID _to_bnd_id
Definition
ViewFactorPP.h:33
ViewFactorPP::ViewFactorPP
ViewFactorPP(const InputParameters ¶meters)
Definition
ViewFactorPP.C:30
ViewFactorPP::getValue
virtual PostprocessorValue getValue() const override
Definition
ViewFactorPP.C:39
ViewFactorPP::_from_bnd_id
const BoundaryID _from_bnd_id
Definition
ViewFactorPP.h:32
ViewFactorPP::_vf_uo
const ViewFactorBase & _vf_uo
Definition
ViewFactorPP.h:31
mesh
MeshBase & mesh
InputParameters
Generated on Fri Aug 21 2026 13:41:05 for https://mooseframework.inl.gov by
1.9.8