https://mooseframework.inl.gov
KokkosHeatConduction.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 "KokkosDiffusion.h"
13 
14 class KokkosHeatConduction final : public KokkosDiffusion<KokkosHeatConduction>
15 {
16 public:
18 
20 
21  KOKKOS_FUNCTION Real computeQpResidual(const unsigned int i,
22  const unsigned int qp,
23  ResidualDatum & datum) const;
24  KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i,
25  const unsigned int j,
26  const unsigned int qp,
27  ResidualDatum & datum) const;
28 
29 private:
32 };
33 
34 KOKKOS_FUNCTION inline Real
36  const unsigned int qp,
37  ResidualDatum & datum) const
38 {
39  return _diffusion_coefficient(datum, qp) * KokkosDiffusion::computeQpResidual(i, qp, datum);
40 }
41 
42 KOKKOS_FUNCTION inline Real
44  const unsigned int j,
45  const unsigned int qp,
46  ResidualDatum & datum) const
47 {
48  Real jac =
51  jac += _diffusion_coefficient_dT(datum, qp) * _phi(datum, j, qp) *
53  return jac;
54 }
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i, const unsigned int j, const unsigned int qp, ResidualDatum &datum) const
KOKKOS_FUNCTION Real computeQpResidual(const unsigned int i, const unsigned int qp, ResidualDatum &datum) const
const InputParameters & parameters() const
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i, const unsigned int j, const unsigned int qp, ResidualDatum &datum) const
Moose::Kokkos::MaterialProperty< Real > _diffusion_coefficient_dT
Moose::Kokkos::MaterialProperty< Real > _diffusion_coefficient
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
KOKKOS_FUNCTION Real computeQpResidual(const unsigned int i, const unsigned int qp, ResidualDatum &datum) const
static InputParameters validParams()
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
KokkosHeatConduction(const InputParameters &parameters)