https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADHeatFluxFromHeatStructureBaseUserObject.C
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
11
14{
16 params.addRequiredCoupledVar("P_hf", "Heat flux perimeter");
18 "Base class for caching heat flux between flow channels and heat structures.");
19 return params;
20}
21
27
28const std::vector<ADReal> &
30{
31 return getCachedQuantity(element_id, _heated_perimeter, "heated perimeter");
32}
33
34const std::vector<ADReal> &
36{
37 return getCachedQuantity(element_id, _heat_flux, "heat flux");
38}
39
40std::vector<std::map<dof_id_type, std::vector<ADReal>> *>
45
46std::vector<const std::map<dof_id_type, std::vector<ADReal>> *>
51
52void
DualNumber< Real, DNDerivativeType, true > ADReal
unsigned int _qp
Flow channel quadrature point index.
const ADVariableValue & _P_hf
Coupled heated perimeter variable.
const std::vector< ADReal > & getHeatFlux(dof_id_type element_id) const
ADHeatFluxFromHeatStructureBaseUserObject(const InputParameters &parameters)
const std::vector< ADReal > & getHeatedPerimeter(dof_id_type element_id) const
std::map< dof_id_type, std::vector< ADReal > > _heat_flux
Cached heat flux.
virtual void computeQpCachedQuantities() override
Computes the cached quantities at a quadrature point.
std::map< dof_id_type, std::vector< ADReal > > _heated_perimeter
Cached heated perimeter.
virtual std::vector< std::map< dof_id_type, std::vector< ADReal > > * > getCachedQuantityMaps() override
Gets the cached quantity maps.
Base class for caching quantities computed between flow channels and heat structures.
dof_id_type _hs_elem_id
Current heat structure element ID.
unsigned int _hs_qp
Current heat structure quadrature point index.
unsigned int _fc_qp
Current flow channel quadrature point index.
const std::vector< ADReal > & getCachedQuantity(dof_id_type elem_id, const std::map< dof_id_type, std::vector< ADReal > > &elem_id_to_values, const std::string &description) const
Gets a cached quantity from a map.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)