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 
12 #include "KokkosIntegratedBC.h"
13 
19 {
20 public:
22 
24 
25  KOKKOS_FUNCTION Real computeQpResidual(const unsigned int i,
26  const unsigned int qp,
27  ResidualDatum & datum) const;
28  KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i,
29  const unsigned int j,
30  const unsigned int qp,
31  ResidualDatum & datum) const;
32 
33 private:
36 
39 
42 };
43 
44 KOKKOS_FUNCTION inline Real
46  const unsigned int qp,
47  ResidualDatum & datum) const
48 {
49  return -_test(datum, i, qp) * _htc(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp));
50 }
51 
52 KOKKOS_FUNCTION inline Real
54  const unsigned int j,
55  const unsigned int qp,
56  ResidualDatum & datum) const
57 {
58  return -_test(datum, i, qp) * _phi(datum, j, qp) *
59  (-_htc(datum, qp) + _htc_dT(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp)));
60 }
Boundary condition for convective heat flux where temperature and heat transfer coefficient are given...
const InputParameters & parameters() const
const VariableValue _u
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i, const unsigned int j, const unsigned int qp, ResidualDatum &datum) 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()
const VariableTestValue _test
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 computeQpResidual(const unsigned int i, const unsigned int qp, ResidualDatum &datum) const