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

#include <SurfaceRadiationVectorPostprocessor.h>

Inheritance diagram for SurfaceRadiationVectorPostprocessor:
[legend]

Public Member Functions

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

Protected Attributes

const GrayLambertSurfaceRadiationBase_glsr_uo
 the surface radiation user object More...
 
MultiMooseEnum _information_types
 Type of information that is retrieved. More...
 
unsigned int _n_data
 number of data types More...
 
std::vector< VectorPostprocessorValue * > _data
 The data that this VPP harvests off the surface radiation userobject. More...
 
VectorPostprocessorValue & _surface_ids
 The surface ids of the data. More...
 

Detailed Description

Definition at line 21 of file SurfaceRadiationVectorPostprocessor.h.

Constructor & Destructor Documentation

◆ SurfaceRadiationVectorPostprocessor()

SurfaceRadiationVectorPostprocessor::SurfaceRadiationVectorPostprocessor ( const InputParameters &  parameters)

Definition at line 35 of file SurfaceRadiationVectorPostprocessor.C.

37  : GeneralVectorPostprocessor(parameters),
38  _glsr_uo(getUserObject<GrayLambertSurfaceRadiationBase>("surface_radiation_object_name")),
39  _information_types(getParam<MultiMooseEnum>("information")),
41  _data(_n_data),
42  _surface_ids(declareVector("subdomain_id"))
43 {
44  for (unsigned int j = 0; j < _n_data; ++j)
45  _data[j] = &declareVector(_information_types[j]);
46 }

Member Function Documentation

◆ execute()

void SurfaceRadiationVectorPostprocessor::execute ( )
override

Definition at line 64 of file SurfaceRadiationVectorPostprocessor.C.

65 {
66  for (unsigned int i = 0; i < _n_data; ++i)
67  {
68  switch (_information_types.get(i))
69  {
70  case 0:
71  for (unsigned int j = 0; j < _surface_ids.size(); ++j)
73  break;
74  case 1:
75  for (unsigned int j = 0; j < _surface_ids.size(); ++j)
77  break;
78  case 2:
79  for (unsigned int j = 0; j < _surface_ids.size(); ++j)
81  break;
82  case 3:
83  for (unsigned int j = 0; j < _surface_ids.size(); ++j)
85  break;
86  default:
87  mooseError("Unrecognized information type. This should never happen");
88  break;
89  }
90  }
91 }

◆ initialize()

void SurfaceRadiationVectorPostprocessor::initialize ( )
override

Definition at line 49 of file SurfaceRadiationVectorPostprocessor.C.

50 {
51  std::set<BoundaryID> bids = _glsr_uo.getSurfaceIDs();
52  _surface_ids.resize(bids.size());
53  for (unsigned int j = 0; j < _n_data; ++j)
54  _data[j]->resize(bids.size());
55  unsigned int j = 0;
56  for (auto & bid : bids)
57  {
58  _surface_ids[j] = bid;
59  ++j;
60  }
61 }

Member Data Documentation

◆ _data

std::vector<VectorPostprocessorValue *> SurfaceRadiationVectorPostprocessor::_data
protected

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

Definition at line 40 of file SurfaceRadiationVectorPostprocessor.h.

Referenced by execute(), initialize(), and SurfaceRadiationVectorPostprocessor().

◆ _glsr_uo

const GrayLambertSurfaceRadiationBase& SurfaceRadiationVectorPostprocessor::_glsr_uo
protected

the surface radiation user object

Definition at line 31 of file SurfaceRadiationVectorPostprocessor.h.

Referenced by execute(), and initialize().

◆ _information_types

MultiMooseEnum SurfaceRadiationVectorPostprocessor::_information_types
protected

Type of information that is retrieved.

Definition at line 34 of file SurfaceRadiationVectorPostprocessor.h.

Referenced by execute(), and SurfaceRadiationVectorPostprocessor().

◆ _n_data

unsigned int SurfaceRadiationVectorPostprocessor::_n_data
protected

number of data types

Definition at line 37 of file SurfaceRadiationVectorPostprocessor.h.

Referenced by execute(), initialize(), and SurfaceRadiationVectorPostprocessor().

◆ _surface_ids

VectorPostprocessorValue& SurfaceRadiationVectorPostprocessor::_surface_ids
protected

The surface ids of the data.

Definition at line 43 of file SurfaceRadiationVectorPostprocessor.h.

Referenced by execute(), and initialize().


The documentation for this class was generated from the following files:
SurfaceRadiationVectorPostprocessor::_surface_ids
VectorPostprocessorValue & _surface_ids
The surface ids of the data.
Definition: SurfaceRadiationVectorPostprocessor.h:43
SurfaceRadiationVectorPostprocessor::_n_data
unsigned int _n_data
number of data types
Definition: SurfaceRadiationVectorPostprocessor.h:37
SurfaceRadiationVectorPostprocessor::_data
std::vector< VectorPostprocessorValue * > _data
The data that this VPP harvests off the surface radiation userobject.
Definition: SurfaceRadiationVectorPostprocessor.h:40
GrayLambertSurfaceRadiationBase::getSurfaceEmissivity
Real getSurfaceEmissivity(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:301
SurfaceRadiationVectorPostprocessor::_information_types
MultiMooseEnum _information_types
Type of information that is retrieved.
Definition: SurfaceRadiationVectorPostprocessor.h:34
GrayLambertSurfaceRadiationBase::getSurfaceRadiosity
Real getSurfaceRadiosity(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:293
GrayLambertSurfaceRadiationBase::getSurfaceIDs
std::set< BoundaryID > getSurfaceIDs() const
Definition: GrayLambertSurfaceRadiationBase.C:260
SurfaceRadiationVectorPostprocessor::_glsr_uo
const GrayLambertSurfaceRadiationBase & _glsr_uo
the surface radiation user object
Definition: SurfaceRadiationVectorPostprocessor.h:31
GrayLambertSurfaceRadiationBase::getSurfaceHeatFluxDensity
Real getSurfaceHeatFluxDensity(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:277
GrayLambertSurfaceRadiationBase::getSurfaceTemperature
Real getSurfaceTemperature(BoundaryID id) const
Definition: GrayLambertSurfaceRadiationBase.C:285