https://mooseframework.inl.gov
ADHeatFluxFromHeatStructureBaseUserObject.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 
13 
27 {
28 public:
30 
31  const std::vector<ADReal> & getHeatedPerimeter(dof_id_type element_id) const;
32  const std::vector<ADReal> & getHeatFlux(dof_id_type element_id) const;
33 
34 protected:
35  virtual std::vector<std::map<dof_id_type, std::vector<ADReal>> *>
36  getCachedQuantityMaps() override;
37  virtual std::vector<const std::map<dof_id_type, std::vector<ADReal>> *>
38  getCachedQuantityMaps() const override;
39 
40  virtual ADReal computeQpHeatFlux() = 0;
41 
43  unsigned int _qp;
45  std::map<dof_id_type, std::vector<ADReal>> _heated_perimeter;
47  std::map<dof_id_type, std::vector<ADReal>> _heat_flux;
50 
51 private:
52  virtual void computeQpCachedQuantities() override;
53 
54 public:
56 };
const ADVariableValue & _P_hf
Coupled heated perimeter variable.
std::map< dof_id_type, std::vector< ADReal > > _heat_flux
Cached heat flux.
const std::vector< ADReal > & getHeatFlux(dof_id_type element_id) const
unsigned int _qp
Flow channel quadrature point index.
Base class for caching heat flux between a flow channel and a heat structure.
const std::vector< ADReal > & getHeatedPerimeter(dof_id_type element_id) const
ADHeatFluxFromHeatStructureBaseUserObject(const InputParameters &parameters)
std::map< dof_id_type, std::vector< ADReal > > _heated_perimeter
Cached heated perimeter.
virtual void computeQpCachedQuantities() override
Computes the cached quantities at a quadrature point.
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.
const InputParameters & parameters() const
uint8_t dof_id_type