https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
28public:
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
34protected:
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
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
51private:
52 virtual void computeQpCachedQuantities() override;
53
54public:
56};
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for caching heat flux between a flow channel and a heat structure.
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
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.
const InputParameters & parameters() const
VariableValueTempl< true > ADVariableValue