https://mooseframework.inl.gov
HSCoupler2D2DRadiationUserObject.h
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 #pragma once
11 
12 #include "SideUserObject.h"
13 
15 class MeshAlignment2D2D;
16 
21 {
22 public:
24 
26 
27  virtual void initialize() override;
28  virtual void execute() override;
29  virtual void threadJoin(const UserObject & uo) override;
30  virtual void finalize() override;
31 
37  const std::vector<ADReal> & getHeatFlux(dof_id_type elem_id) const;
38 
39 protected:
41  const std::vector<Real> & _emissivities;
42 
44  const std::vector<std::vector<Real>> & _view_factors;
45 
48 
51 
54 
57 
59  const unsigned int _n_hs;
60 
62  const unsigned int _n_surfaces;
63 
65  std::map<dof_id_type, std::vector<ADReal>> _elem_id_to_heat_flux;
66 };
const std::vector< ADReal > & getHeatFlux(dof_id_type elem_id) const
Gets the heat fluxes for each quadrature point for a given element ID.
const bool _include_environment
Whether or not to include an environment surrounding all of the surfaces.
std::map< dof_id_type, std::vector< ADReal > > _elem_id_to_heat_flux
Map of the element ID to the heat flux.
const std::vector< Real > & _emissivities
Emissivities of each boundary.
Stores variable values at each quadrature point on a side by element ID.
virtual void threadJoin(const UserObject &uo) override
const std::vector< std::vector< Real > > & _view_factors
View factors between each surface.
Builds mapping between multiple 2D boundaries.
const unsigned int _n_hs
Number of heat structures.
HSCoupler2D2DRadiationUserObject(const InputParameters &parameters)
const StoreVariableByElemIDSideUserObject & _temperature_uo
User object containing the temperature values on the boundary.
const Real & _T_environment
Environment temperature.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
const unsigned int _n_surfaces
Number of surfaces.
Computes heat fluxes for HSCoupler2D2DRadiation.
const MeshAlignment2D2D & _mesh_alignment
Mesh alignment object.
uint8_t dof_id_type