https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TrussHeatConductionTimeDerivative.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
13
16{
18 params.addClassDescription("Computes time derivative term in heat equation for truss elements, "
19 "taking cross-sectional area into account");
20 params.addCoupledVar("area", "Cross-sectional area of truss element");
21 return params;
22}
23
25 const InputParameters & parameters)
26 : HeatConductionTimeDerivative(parameters), _area(coupledValue("area"))
27{
28}
29
30Real
35
36Real
registerMooseObject("HeatTransferApp", TrussHeatConductionTimeDerivative)
A class for defining the time derivative of the heat equation.
virtual Real computeQpResidual()
Compute the residual of the Heat Equation time derivative.
virtual Real computeQpJacobian()
Compute the jacobian of the Heat Equation time derivative.
static InputParameters validParams()
Contructor for Heat Equation time derivative term.
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
unsigned int _qp
virtual Real computeQpJacobian() override
Compute the jacobian of the Heat Equation time derivative.
virtual Real computeQpResidual() override
Compute the residual of the Heat Equation time derivative.
const VariableValue & _area
Coupled variable for the cross-sectional area of truss element.
TrussHeatConductionTimeDerivative(const InputParameters &parameters)