www.mooseframework.org
ADHeatConductionTimeDerivative.C
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 
11 
13 
16 {
18  params.addClassDescription(
19  "AD Time derivative term $\\rho c_p \\frac{\\partial T}{\\partial t}$ of "
20  "the heat equation for quasi-constant specific heat $c_p$ and the density $\\rho$.");
21  params.set<bool>("use_displaced_mesh") = true;
22  params.addParam<MaterialPropertyName>(
23  "specific_heat", "specific_heat", "Property name of the specific heat material property");
24  params.addParam<MaterialPropertyName>(
25  "density_name", "density", "Property name of the density material property");
26  return params;
27 }
28 
30  : ADTimeDerivative(parameters),
31  _specific_heat(getADMaterialProperty<Real>("specific_heat")),
32  _density(getADMaterialProperty<Real>("density_name"))
33 {
34 }
35 
36 ADReal
38 {
40 }
const ADMaterialProperty< Real > & _specific_heat
Specific heat material property.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
virtual ADReal precomputeQpResidual() override
const ADMaterialProperty< Real > & _density
Density material property.
DualReal ADReal
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADHeatConductionTimeDerivative(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
virtual ADReal precomputeQpResidual() override
unsigned int _qp
static InputParameters validParams()
registerMooseObject("HeatTransferApp", ADHeatConductionTimeDerivative)