https://mooseframework.inl.gov
KokkosHeatConductionMaterial.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 
18 {
19 public:
21 
23 
24  template <typename Derived>
25  KOKKOS_FUNCTION void computeQpProperties(const unsigned int qp, Datum & datum) const;
26 
27 private:
30 
33 };
34 
35 template <typename Derived>
36 KOKKOS_FUNCTION void
37 KokkosHeatConductionMaterial::computeQpProperties(const unsigned int qp, Datum & datum) const
38 {
40  _specific_heat(datum, qp) = _my_specific_heat;
41 }
Simple material with properties set as constants.
Moose::Kokkos::MaterialProperty< Real > _specific_heat
const InputParameters & parameters() const
static InputParameters validParams()
virtual void computeQpProperties() override final
KokkosHeatConductionMaterial(const InputParameters &parameters)
Moose::Kokkos::MaterialProperty< Real > _thermal_conductivity
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real