www.mooseframework.org
UnobstructedPlanarViewFactor.h
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 
10 #pragma once
11 
12 #include "ViewFactorBase.h"
13 
14 // Forward Declarations
16 
17 template <>
19 
24 {
25 public:
26  static InputParameters validParams();
27 
28  UnobstructedPlanarViewFactor(const InputParameters & parameters);
29 
30  virtual void execute() override;
31  virtual void initialize() override;
32 
33 protected:
34  virtual void threadJoinViewFactor(const UserObject & y) override;
35  virtual void finalizeViewFactor() override;
36 
38  void reinitFace(dof_id_type elem_id, unsigned int side);
39 
40  BoundaryInfo * _boundary_info;
41  std::vector<std::tuple<dof_id_type, unsigned short int, boundary_id_type>> _side_list;
42 
44  std::unique_ptr<const Elem> _current_remote_side;
45  std::unique_ptr<FEBase> _current_remote_fe;
47  const std::vector<Real> * _current_remote_JxW;
48  const std::vector<Point> * _current_remote_xyz;
49  const std::vector<Point> * _current_remote_normals;
50  std::vector<Real> _current_remote_coord;
52 
53  unsigned int _exponent;
54  Real _divisor;
55 };
ViewFactorBase.h
ViewFactorBase
A base class for automatic computation of view factors between sidesets.
Definition: ViewFactorBase.h:23
UnobstructedPlanarViewFactor::initialize
virtual void initialize() override
Definition: UnobstructedPlanarViewFactor.C:108
UnobstructedPlanarViewFactor::_current_remote_fe
std::unique_ptr< FEBase > _current_remote_fe
Definition: UnobstructedPlanarViewFactor.h:45
UnobstructedPlanarViewFactor::_exponent
unsigned int _exponent
Definition: UnobstructedPlanarViewFactor.h:53
UnobstructedPlanarViewFactor::_current_remote_side
std::unique_ptr< const Elem > _current_remote_side
data of the to_elem side being initialized
Definition: UnobstructedPlanarViewFactor.h:44
UnobstructedPlanarViewFactor::validParams
static InputParameters validParams()
Definition: UnobstructedPlanarViewFactor.C:28
UnobstructedPlanarViewFactor::UnobstructedPlanarViewFactor
UnobstructedPlanarViewFactor(const InputParameters &parameters)
Definition: UnobstructedPlanarViewFactor.C:36
UnobstructedPlanarViewFactor::finalizeViewFactor
virtual void finalizeViewFactor() override
a purely virtural function called in finalize, must be overriden by derived class
Definition: UnobstructedPlanarViewFactor.C:126
validParams< UnobstructedPlanarViewFactor >
InputParameters validParams< UnobstructedPlanarViewFactor >()
UnobstructedPlanarViewFactor::_current_remote_side_volume
Real _current_remote_side_volume
Definition: UnobstructedPlanarViewFactor.h:46
UnobstructedPlanarViewFactor::_current_remote_JxW
const std::vector< Real > * _current_remote_JxW
Definition: UnobstructedPlanarViewFactor.h:47
UnobstructedPlanarViewFactor::execute
virtual void execute() override
Definition: UnobstructedPlanarViewFactor.C:62
UnobstructedPlanarViewFactor::_side_list
std::vector< std::tuple< dof_id_type, unsigned short int, boundary_id_type > > _side_list
Definition: UnobstructedPlanarViewFactor.h:41
UnobstructedPlanarViewFactor::_current_remote_normals
const std::vector< Point > * _current_remote_normals
Definition: UnobstructedPlanarViewFactor.h:49
UnobstructedPlanarViewFactor::_current_remote_xyz
const std::vector< Point > * _current_remote_xyz
Definition: UnobstructedPlanarViewFactor.h:48
UnobstructedPlanarViewFactor
Computes the view factors for planar faces in unobstructed radiative heat transfer.
Definition: UnobstructedPlanarViewFactor.h:23
UnobstructedPlanarViewFactor::reinitFace
void reinitFace(dof_id_type elem_id, unsigned int side)
helper function that reinits an element face
Definition: UnobstructedPlanarViewFactor.C:145
UnobstructedPlanarViewFactor::threadJoinViewFactor
virtual void threadJoinViewFactor(const UserObject &y) override
a purely virtural function called in finalize, must be overriden by derived class
Definition: UnobstructedPlanarViewFactor.C:137
UnobstructedPlanarViewFactor::_current_remote_coord
std::vector< Real > _current_remote_coord
Definition: UnobstructedPlanarViewFactor.h:50
UnobstructedPlanarViewFactor::_divisor
Real _divisor
Definition: UnobstructedPlanarViewFactor.h:54
UnobstructedPlanarViewFactor::_boundary_info
BoundaryInfo * _boundary_info
Definition: UnobstructedPlanarViewFactor.h:40