https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
22
24
30 virtual void initialSetup() override;
31
32protected:
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};
DualNumber< Real, DNDerivativeType, true > ADReal
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 Moose::Functor< ADReal > *const _htc_functor
Convective heat transfer coefficient as a functor.
const ADMaterialProperty< Real > *const _T_infinity
Far-field temperature variable.
bool _htc_use_neighbor
Whether the heat transfer coefficient functor should be evaluated on neighbor elements.
const Moose::Functor< ADReal > *const _T_infinity_functor
Far-field temperature functor.
unsigned int _current_neighbor_side
Corresponding side on the neighbor.
virtual ADReal computeQpResidual() override
const Elem * _current_neighbor_elem
Neighbor of the current element's side (can be nullptr)
static InputParameters validParams()
const ADMaterialProperty< Real > *const _htc
Convective heat transfer coefficient.
virtual void initialSetup() override
Here we check if the functors are defined on primary side of the boundary.
const InputParameters & parameters() const
const unsigned int invalid_uint