https://mooseframework.inl.gov
ADThermalConductivityTest.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
11 
12 registerMooseObject("HeatTransferTestApp", ADThermalConductivityTest);
13 
16 {
17  auto params = Material::validParams();
18  params.addRequiredCoupledVar("temperature", "Coupled temperature");
19  params.addRequiredCoupledVar(
20  "c", "Coupled variable used to help verify automatic differentiation capability");
21  return params;
22 }
23 
25  : Material(parameters),
26  _diffusivity(declareADProperty<Real>("thermal_conductivity")),
27  _temperature(adCoupledValue("temperature")),
28  _c(adCoupledValue("c"))
29 {
30 }
31 
32 void
34 {
36 }
registerMooseObject("HeatTransferTestApp", ADThermalConductivityTest)
ADThermalConductivityTest(const InputParameters &parameters)
ADMaterialProperty< Real > & _diffusivity
unsigned int _qp
static InputParameters validParams()
static InputParameters validParams()
const ADVariableValue & _temperature
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real