https://mooseframework.inl.gov
ThermalCompliance.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 "ThermalCompliance.h"
11 
12 registerMooseObject("HeatTransferApp", ThermalCompliance);
13 
16 {
18  params.addClassDescription("Computes cost sensitivity needed for multimaterial SIMP method.");
19  params.addRequiredCoupledVar("temperature", "temperature");
20  params.addRequiredParam<MaterialPropertyName>("thermal_conductivity",
21  "DerivativeParsedMaterial for cost of materials.");
22  return params;
23 }
24 
27  _grad_temperature(coupledGradient("temperature")),
28  _thermal_conductivity(
29  getMaterialPropertyByName<Real>(getParam<MaterialPropertyName>("thermal_conductivity"))),
30  _thermal_compliance(declareProperty<Real>("thermal_compliance"))
31 {
32 }
33 
34 void
36 {
39 }
MaterialProperty< Real > & _thermal_compliance
Generated thermal compliance material.
void addRequiredParam(const std::string &name, const std::string &doc_string)
const MaterialProperty< Real > & _thermal_conductivity
Thermal conductivity material (parsed)
static InputParameters validParams()
static InputParameters validParams()
registerMooseObject("HeatTransferApp", ThermalCompliance)
Computes heat conduction compliance.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const VariableGradient & _grad_temperature
Temperature gradient vector.
ThermalCompliance(const InputParameters &parameters)
virtual void computeQpProperties() override