https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
32void
registerMooseObject("HeatTransferTestApp", ADThermalConductivityTest)
ADThermalConductivityTest(const InputParameters &parameters)
const ADVariableValue & _temperature
ADMaterialProperty< Real > & _diffusivity
static InputParameters validParams()
unsigned int _qp
static InputParameters validParams()