https://mooseframework.inl.gov
KokkosHeatConductionDerivativeMaterial.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 "KokkosMaterial.h"
13 
15 {
16 public:
18 
20 
21  template <typename Derived>
22  KOKKOS_FUNCTION void computeQpProperties(const unsigned int qp, Datum & datum) const;
23 
24 private:
31 
33 };
34 
35 template <typename Derived>
36 KOKKOS_FUNCTION void
38  Datum & datum) const
39 {
40  Real T = _temp(datum, qp);
41 
42  _thermal_conductivity(datum, qp) = Kokkos::exp(T);
43  _d_thermal_conductivity_dT(datum, qp) = Kokkos::exp(T);
44  _specific_heat(datum, qp) = T * T * T * T;
45  _d_specific_heat_dT(datum, qp) = 4 * T * T * T;
46  _density(datum, qp) = T * T * T + 2 / T;
47  _d_density_dT(datum, qp) = 3 * T * T - 2 / T / T;
48 }
const double T
const InputParameters & parameters() const
virtual void computeQpProperties() override final
Moose::Kokkos::MaterialProperty< Real > _specific_heat
KokkosHeatConductionDerivativeMaterial(const InputParameters &parameters)
Moose::Kokkos::MaterialProperty< Real > _d_density_dT
Moose::Kokkos::MaterialProperty< Real > _d_thermal_conductivity_dT
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Moose::Kokkos::MaterialProperty< Real > _thermal_conductivity
Moose::Kokkos::MaterialProperty< Real > _d_specific_heat_dT
static InputParameters validParams()