www.mooseframework.org
Public Member Functions | Protected Member Functions | List of all members
ConsistentHeatCapacityTimeDerivative Class Reference

A class for defining the time derivative of the heat equation. More...

#include <ConsistentHeatCapacityTimeDerivative.h>

Inheritance diagram for ConsistentHeatCapacityTimeDerivative:
[legend]

Public Member Functions

 ConsistentHeatCapacityTimeDerivative (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar) override
 

Protected Attributes

const MaterialProperty< Real > & _heat_capacity
 Heat capacity and its derivatives with respect to temperature and other coupled variables. More...
 
const MaterialProperty< Real > & _d_heat_capacity_dT
 
std::vector< const MaterialProperty< Real > * > _d_heat_capacity_dargs
 

Detailed Description

A class for defining the time derivative of the heat equation.

By default this Kernel computes: \( (C_p + T \frac{\partial C_p}{\partial T}) * \frac{\partial T}{\partial t}, \) where \( C_p \) is material property for the "heat_capacity".

Definition at line 27 of file ConsistentHeatCapacityTimeDerivative.h.

Constructor & Destructor Documentation

ConsistentHeatCapacityTimeDerivative::ConsistentHeatCapacityTimeDerivative ( const InputParameters &  parameters)

Definition at line 20 of file ConsistentHeatCapacityTimeDerivative.C.

23 {
24 }
HeatCapacityConductionTimeDerivative(const InputParameters &parameters)

Member Function Documentation

Real HeatCapacityConductionTimeDerivative::computeQpJacobian ( )
overrideprotectedvirtualinherited

Definition at line 52 of file HeatCapacityConductionTimeDerivative.C.

53 {
54  // on-diagonal Jacobian with all terms that may depend on the kernel variable
55  return _heat_capacity[_qp] * TimeDerivative::computeQpJacobian() +
56  _d_heat_capacity_dT[_qp] * _phi[_j][_qp] * TimeDerivative::computeQpResidual();
57 }
const MaterialProperty< Real > & _heat_capacity
Heat capacity and its derivatives with respect to temperature and other coupled variables.
Real HeatCapacityConductionTimeDerivative::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtualinherited

Definition at line 60 of file HeatCapacityConductionTimeDerivative.C.

61 {
62  // get the coupled variable jvar is referring to
63  const unsigned int cvar = mapJvarToCvar(jvar);
64 
65  // off-diagonal contribution with terms that depend on coupled variables
66  return (*_d_heat_capacity_dargs[cvar])[_qp] * _phi[_j][_qp] * TimeDerivative::computeQpResidual();
67 }
std::vector< const MaterialProperty< Real > * > _d_heat_capacity_dargs
Real ConsistentHeatCapacityTimeDerivative::computeQpResidual ( )
overrideprotectedvirtual

Reimplemented from HeatCapacityConductionTimeDerivative.

Definition at line 27 of file ConsistentHeatCapacityTimeDerivative.C.

28 {
29  return (_heat_capacity[_qp] + _d_heat_capacity_dT[_qp] * _u[_qp]) *
30  TimeDerivative::computeQpResidual();
31 }
const MaterialProperty< Real > & _heat_capacity
Heat capacity and its derivatives with respect to temperature and other coupled variables.

Member Data Documentation

std::vector<const MaterialProperty<Real> *> HeatCapacityConductionTimeDerivative::_d_heat_capacity_dargs
protectedinherited
const MaterialProperty<Real>& HeatCapacityConductionTimeDerivative::_d_heat_capacity_dT
protectedinherited
const MaterialProperty<Real>& HeatCapacityConductionTimeDerivative::_heat_capacity
protectedinherited

Heat capacity and its derivatives with respect to temperature and other coupled variables.

Definition at line 40 of file HeatCapacityConductionTimeDerivative.h.

Referenced by HeatCapacityConductionTimeDerivative::computeQpJacobian(), computeQpResidual(), and HeatCapacityConductionTimeDerivative::computeQpResidual().


The documentation for this class was generated from the following files: