https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
16
21{
22public:
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
39protected:
41 const std::vector<Real> & _emissivities;
42
44 const std::vector<std::vector<Real>> & _view_factors;
45
48
50 const Real & _T_environment;
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};
Computes heat fluxes for HSCoupler2D2DRadiation.
std::map< dof_id_type, std::vector< ADReal > > _elem_id_to_heat_flux
Map of the element ID to the heat flux.
const unsigned int _n_surfaces
Number of surfaces.
virtual void threadJoin(const UserObject &uo) override
const std::vector< Real > & _emissivities
Emissivities of each boundary.
const std::vector< std::vector< Real > > & _view_factors
View factors between each surface.
const unsigned int _n_hs
Number of heat structures.
const MeshAlignment2D2D & _mesh_alignment
Mesh alignment object.
const bool _include_environment
Whether or not to include an environment surrounding all of the surfaces.
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 Real & _T_environment
Environment temperature.
const StoreVariableByElemIDSideUserObject & _temperature_uo
User object containing the temperature values on the boundary.
Builds mapping between multiple 2D boundaries.
const InputParameters & parameters() const
Stores variable values at each quadrature point on a side by element ID.