www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
ViewfactorVectorPostprocessor Class Reference

#include <ViewfactorVectorPostprocessor.h>

Inheritance diagram for ViewfactorVectorPostprocessor:
[legend]

Public Member Functions

 ViewfactorVectorPostprocessor (const InputParameters &parameters)
 
void execute () override
 
void initialize () override
 

Protected Attributes

const GrayLambertSurfaceRadiationBase_glsr_uo
 the surface radiation user object More...
 
VectorPostprocessorValue & _surface_ids
 The surface ids of the data. More...
 
std::vector< VectorPostprocessorValue * > _vf
 The data that this VPP harvests off the surface radiation userobject. More...
 

Detailed Description

Definition at line 21 of file ViewfactorVectorPostprocessor.h.

Constructor & Destructor Documentation

◆ ViewfactorVectorPostprocessor()

ViewfactorVectorPostprocessor::ViewfactorVectorPostprocessor ( const InputParameters &  parameters)

Definition at line 27 of file ViewfactorVectorPostprocessor.C.

28  : GeneralVectorPostprocessor(parameters),
29  _glsr_uo(getUserObject<GrayLambertSurfaceRadiationBase>("surface_radiation_object_name")),
30  _surface_ids(declareVector("subdomain_id"))
31 {
32 }

Member Function Documentation

◆ execute()

void ViewfactorVectorPostprocessor::execute ( )
override

Definition at line 60 of file ViewfactorVectorPostprocessor.C.

61 {
62  for (unsigned int i = 0; i < _surface_ids.size(); ++i)
63  for (unsigned int j = 0; j < _surface_ids.size(); ++j)
65 }

◆ initialize()

void ViewfactorVectorPostprocessor::initialize ( )
override

Definition at line 35 of file ViewfactorVectorPostprocessor.C.

36 {
37  // setup of surface_id arrays
38  std::set<BoundaryID> bids = _glsr_uo.getSurfaceIDs();
39  unsigned int ns = bids.size();
40  _surface_ids.resize(ns);
41  unsigned int j = 0;
42  for (auto & bid : bids)
43  {
44  _surface_ids[j] = bid;
45  ++j;
46  }
47 
48  // setup of view factors
49  _vf.resize(ns);
50  for (unsigned int j = 0; j < ns; ++j)
51  {
52  std::stringstream ss;
53  ss << "vf_to_" << _surface_ids[j];
54  _vf[j] = &declareVector(ss.str());
55  _vf[j]->resize(ns);
56  }
57 }

Member Data Documentation

◆ _glsr_uo

const GrayLambertSurfaceRadiationBase& ViewfactorVectorPostprocessor::_glsr_uo
protected

the surface radiation user object

Definition at line 31 of file ViewfactorVectorPostprocessor.h.

Referenced by execute(), and initialize().

◆ _surface_ids

VectorPostprocessorValue& ViewfactorVectorPostprocessor::_surface_ids
protected

The surface ids of the data.

Definition at line 34 of file ViewfactorVectorPostprocessor.h.

Referenced by execute(), and initialize().

◆ _vf

std::vector<VectorPostprocessorValue *> ViewfactorVectorPostprocessor::_vf
protected

The data that this VPP harvests off the surface radiation userobject.

Definition at line 37 of file ViewfactorVectorPostprocessor.h.

Referenced by execute(), and initialize().


The documentation for this class was generated from the following files:
ViewfactorVectorPostprocessor::_vf
std::vector< VectorPostprocessorValue * > _vf
The data that this VPP harvests off the surface radiation userobject.
Definition: ViewfactorVectorPostprocessor.h:37
ViewfactorVectorPostprocessor::_glsr_uo
const GrayLambertSurfaceRadiationBase & _glsr_uo
the surface radiation user object
Definition: ViewfactorVectorPostprocessor.h:31
GrayLambertSurfaceRadiationBase::getSurfaceIDs
std::set< BoundaryID > getSurfaceIDs() const
Definition: GrayLambertSurfaceRadiationBase.C:260
ViewfactorVectorPostprocessor::_surface_ids
VectorPostprocessorValue & _surface_ids
The surface ids of the data.
Definition: ViewfactorVectorPostprocessor.h:34
GrayLambertSurfaceRadiationBase::getViewFactor
Real getViewFactor(BoundaryID from_id, BoundaryID to_id) const
Definition: GrayLambertSurfaceRadiationBase.C:309