https://mooseframework.inl.gov
INSADHeatConductionTimeDerivative.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 #include "INSADObjectTracker.h"
12 #include "FEProblemBase.h"
13 
15 
18 {
20  params.addClassDescription(
21  "AD Time derivative term $\\rho c_p \\frac{\\partial T}{\\partial t}$ of "
22  "the heat equation for quasi-constant specific heat $c_p$ and the density $\\rho$.");
23  return params;
24 }
25 
27  const InputParameters & parameters)
28  : ADTimeDerivative(parameters),
29  _temperature_td_strong_residual(getADMaterialProperty<Real>("temperature_td_strong_residual"))
30 {
31  // Bypass the UserObjectInterface method because it requires a UserObjectName param which we
32  // don't need
33  auto & obj_tracker = const_cast<INSADObjectTracker &>(
34  _fe_problem.getUserObject<INSADObjectTracker>("ins_ad_object_tracker"));
35  for (const auto block_id : blockIDs())
36  obj_tracker.set("has_energy_transient", true, block_id);
37 }
38 
39 ADReal
41 {
43 }
T & getUserObject(const std::string &name, unsigned int tid=0) const
void set(const std::string &name, const T &value, SubdomainID sub_id)
Set the internal parameter name to value.
virtual const std::set< SubdomainID > & blockIDs() const
INSADHeatConductionTimeDerivative(const InputParameters &parameters)
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", INSADHeatConductionTimeDerivative)
FEProblemBase & _fe_problem
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const ADMaterialProperty< Real > & _temperature_td_strong_residual
Object for tracking what kernels have been added to an INSAD simulation.
unsigned int _qp
static InputParameters validParams()