https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
34
35template <typename Derived>
36KOKKOS_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
Moose::Kokkos::MaterialProperty< Real > _d_specific_heat_dT
Moose::Kokkos::MaterialProperty< Real > _thermal_conductivity
Moose::Kokkos::MaterialProperty< Real > _d_density_dT
KokkosHeatConductionDerivativeMaterial(const InputParameters &parameters)
static InputParameters validParams()
Moose::Kokkos::MaterialProperty< Real > _specific_heat
Moose::Kokkos::MaterialProperty< Real > _d_thermal_conductivity_dT
const InputParameters & parameters() const
virtual void computeQpProperties() override final