https://mooseframework.inl.gov
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 {
20 public:
22 
24 
25  template <typename Derived>
26  KOKKOS_FUNCTION Real computeQpResidual(const unsigned int qp, AssemblyDatum & datum) const;
27  template <typename Derived>
28  KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int j,
29  const unsigned int qp,
30  AssemblyDatum & datum) const;
31 
32 private:
35 
38 
41 };
42 
43 template <typename Derived>
44 KOKKOS_FUNCTION Real
45 KokkosConvectiveHeatFluxBC::computeQpResidual(const unsigned int qp, AssemblyDatum & datum) const
46 {
47  return -_htc(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp));
48 }
49 
50 template <typename Derived>
51 KOKKOS_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...
const InputParameters & parameters() const
Moose::Kokkos::MaterialProperty< Real > _htc_dT
Derivative of convective heat transfer coefficient with respect to temperature.
Moose::Kokkos::MaterialProperty< Real > _T_infinity
Far-field temperature variable.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Moose::Kokkos::MaterialProperty< Real > _htc
Convective heat transfer coefficient.
KokkosConvectiveHeatFluxBC(const InputParameters &parameters)
const VariablePhiValue _phi
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int j, const unsigned int qp, AssemblyDatum &datum) const
KOKKOS_FUNCTION Real computeQpResidual(const unsigned int qp, AssemblyDatum &datum) const