https://mooseframework.inl.gov
Loading...
Searching...
No Matches
KokkosConvectiveHeatFluxBC.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://www.mooseframework.org
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
19{
20public:
22
24
25 template <typename Derived>
26 KOKKOS_FUNCTION Real precomputeQpResidual(const unsigned int qp, AssemblyDatum & datum) const;
27 template <typename Derived>
28 KOKKOS_FUNCTION Real precomputeQpJacobian(const unsigned int j,
29 const unsigned int qp,
30 AssemblyDatum & datum) const;
31
32private:
35
38
41};
42
43template <typename Derived>
44KOKKOS_FUNCTION Real
46{
47 return -_htc(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp));
48}
49
50template <typename Derived>
51KOKKOS_FUNCTION Real
53 const unsigned int qp,
54 AssemblyDatum & datum) const
55{
56 return -_phi(datum, j, qp) *
57 (-_htc(datum, qp) + _htc_dT(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp)));
58}
Boundary condition for convective heat flux where temperature and heat transfer coefficient are given...
Moose::Kokkos::MaterialProperty< Real > _T_infinity
Far-field temperature variable.
static InputParameters validParams()
Moose::Kokkos::MaterialProperty< Real > _htc_dT
Derivative of convective heat transfer coefficient with respect to temperature.
KokkosConvectiveHeatFluxBC(const InputParameters &parameters)
Moose::Kokkos::MaterialProperty< Real > _htc
Convective heat transfer coefficient.
KOKKOS_FUNCTION Real precomputeQpResidual(const unsigned int qp, AssemblyDatum &datum) const
KOKKOS_FUNCTION Real precomputeQpJacobian(const unsigned int j, const unsigned int qp, AssemblyDatum &datum) const
const InputParameters & parameters() const
const VariablePhiValue _phi