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

This class computes the time derivative for the incompressible Navier-Stokes momentum equation. More...

#include <INSTemperatureTimeDerivative.h>

Inheritance diagram for INSTemperatureTimeDerivative:
[legend]

Public Member Functions

 INSTemperatureTimeDerivative (const InputParameters &parameters)
 
virtual ~INSTemperatureTimeDerivative ()
 

Protected Member Functions

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

Protected Attributes

const MaterialProperty< Real > & _rho
 
const MaterialProperty< Real > & _cp
 

Detailed Description

This class computes the time derivative for the incompressible Navier-Stokes momentum equation.

Could instead use CoefTimeDerivative for this.

Definition at line 23 of file INSTemperatureTimeDerivative.h.

Constructor & Destructor Documentation

INSTemperatureTimeDerivative::INSTemperatureTimeDerivative ( const InputParameters &  parameters)

Definition at line 21 of file INSTemperatureTimeDerivative.C.

22  : TimeDerivative(parameters),
23  _rho(getMaterialProperty<Real>("rho_name")),
24  _cp(getMaterialProperty<Real>("cp_name"))
25 {
26 }
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho
virtual INSTemperatureTimeDerivative::~INSTemperatureTimeDerivative ( )
inlinevirtual

Definition at line 28 of file INSTemperatureTimeDerivative.h.

28 {}

Member Function Documentation

Real INSTemperatureTimeDerivative::computeQpJacobian ( )
protectedvirtual

Definition at line 35 of file INSTemperatureTimeDerivative.C.

Referenced by ~INSTemperatureTimeDerivative().

36 {
37  return _rho[_qp] * _cp[_qp] * TimeDerivative::computeQpJacobian();
38 }
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho
Real INSTemperatureTimeDerivative::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 41 of file INSTemperatureTimeDerivative.C.

Referenced by ~INSTemperatureTimeDerivative().

42 {
43  return 0.;
44 }
Real INSTemperatureTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 29 of file INSTemperatureTimeDerivative.C.

Referenced by ~INSTemperatureTimeDerivative().

30 {
31  return _rho[_qp] * _cp[_qp] * TimeDerivative::computeQpResidual();
32 }
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho

Member Data Documentation

const MaterialProperty<Real>& INSTemperatureTimeDerivative::_cp
protected

Definition at line 37 of file INSTemperatureTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<Real>& INSTemperatureTimeDerivative::_rho
protected

Definition at line 36 of file INSTemperatureTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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