https://mooseframework.inl.gov
ADSolidMaterial.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 
10 #include "ADSolidMaterial.h"
11 #include "HeatConductionModel.h"
12 
13 registerMooseObjectDeprecated("ThermalHydraulicsApp", ADSolidMaterial, "04/31/2024 24:00");
14 
17 {
19  params.addClassDescription("Computes solid thermal properties as a function of temperature");
20  // Coupled variables
21  params.addRequiredCoupledVar("T", "Temperature in the solid");
22 
23  params.addRequiredParam<UserObjectName>(
24  "properties", "The name of an user object describing material conductivity");
25  return params;
26 }
27 
29  : Material(parameters),
30  _thermal_conductivity(declareADProperty<Real>(HeatConductionModel::THERMAL_CONDUCTIVITY)),
31  _specific_heat(declareADProperty<Real>(HeatConductionModel::SPECIFIC_HEAT_CONSTANT_PRESSURE)),
32  _density(declareADProperty<Real>(HeatConductionModel::DENSITY)),
33  _temp(adCoupledValue("T")),
34  _props(getUserObject<SolidMaterialProperties>("properties"))
35 {
37  "Heat structure materials are deprecated in favor of SolidProperties objects, so this "
38  "Material should no longer be used. See heat structure documentation for more information.");
39 }
40 
41 void
43 {
47 }
static const std::string SPECIFIC_HEAT_CONSTANT_PRESSURE
Definition: THMNames.h:34
const SolidMaterialProperties & _props
User object with material properties.
void mooseDeprecated(Args &&... args) const
ADMaterialProperty< Real > & _specific_heat
static const std::string THERMAL_CONDUCTIVITY
Definition: THMNames.h:41
ADReal rho(const ADReal &temp) const
static InputParameters validParams()
virtual void computeQpProperties()
const ADVariableValue & _temp
Temperature in the solid structure.
void addRequiredParam(const std::string &name, const std::string &doc_string)
ADSolidMaterial(const InputParameters &parameters)
ADReal cp(const ADReal &temp) const
unsigned int _qp
A class to define materials for the solid structures in the THM application.
static InputParameters validParams()
ADReal k(const ADReal &temp) const
ADMaterialProperty< Real > & _thermal_conductivity
The solid material properties.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADMaterialProperty< Real > & _density
void addClassDescription(const std::string &doc_string)
registerMooseObjectDeprecated("ThermalHydraulicsApp", ADSolidMaterial, "04/31/2024 24:00")
Provides functions to setup the heat conduction model.
static const std::string DENSITY
Definition: THMNames.h:16