https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
34void
registerMooseObject("HeatTransferApp", ThermalCompliance)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Computes heat conduction compliance.
const MaterialProperty< Real > & _thermal_conductivity
Thermal conductivity material (parsed)
static InputParameters validParams()
virtual void computeQpProperties() override
MaterialProperty< Real > & _thermal_compliance
Generated thermal compliance material.
ThermalCompliance(const InputParameters &parameters)
const VariableGradient & _grad_temperature
Temperature gradient vector.