https://mooseframework.inl.gov
ADConvectiveHeatFluxBC.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 "ADIntegratedBC.h"
13 
19 {
20 public:
22 
24 
30  virtual void initialSetup() override;
31 
32 protected:
33  virtual ADReal computeQpResidual() override;
34 
37 
40 
43 
46 
49 
51  bool _htc_use_neighbor = false;
52 
54  const Elem * _current_neighbor_elem = nullptr;
55 
58 };
Boundary condition for convective heat flux where temperature and heat transfer coefficient are given...
bool _T_infinity_use_neighbor
Whether the far-field temperature functor should be evaluated on neighbor elements.
const unsigned int invalid_uint
virtual ADReal computeQpResidual() override
static InputParameters validParams()
const ADMaterialProperty< Real > *const _htc
Convective heat transfer coefficient.
const Elem * _current_neighbor_elem
Neighbor of the current element&#39;s side (can be nullptr)
const ADMaterialProperty< Real > *const _T_infinity
Far-field temperature variable.
ADConvectiveHeatFluxBC(const InputParameters &parameters)
DualNumber< Real, DNDerivativeType, true > ADReal
unsigned int _current_neighbor_side
Corresponding side on the neighbor.
virtual void initialSetup() override
Here we check if the functors are defined on primary side of the boundary.
const Moose::Functor< ADReal > *const _T_infinity_functor
Far-field temperature functor.
bool _htc_use_neighbor
Whether the heat transfer coefficient functor should be evaluated on neighbor elements.
const InputParameters & parameters() const
const Moose::Functor< ADReal > *const _htc_functor
Convective heat transfer coefficient as a functor.