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  : public Moose::Kokkos::IntegratedBC<KokkosConvectiveHeatFluxBC>
20 {
21 public:
23 
25 
26  KOKKOS_FUNCTION Real computeQpResidual(const unsigned int i,
27  const unsigned int qp,
28  ResidualDatum & datum) const;
29  KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i,
30  const unsigned int j,
31  const unsigned int qp,
32  ResidualDatum & datum) const;
33 
34 private:
37 
40 
43 };
44 
45 KOKKOS_FUNCTION inline Real
47  const unsigned int qp,
48  ResidualDatum & datum) const
49 {
50  return -_test(datum, i, qp) * _htc(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp));
51 }
52 
53 KOKKOS_FUNCTION inline Real
55  const unsigned int j,
56  const unsigned int qp,
57  ResidualDatum & datum) const
58 {
59  return -_test(datum, i, qp) * _phi(datum, j, qp) *
60  (-_htc(datum, qp) + _htc_dT(datum, qp) * (_T_infinity(datum, qp) - _u(datum, qp)));
61 }
Boundary condition for convective heat flux where temperature and heat transfer coefficient are given...
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()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Moose::Kokkos::MaterialProperty< Real > _htc
Convective heat transfer coefficient.
KokkosConvectiveHeatFluxBC(const InputParameters &parameters)
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