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 26 of file INSTemperatureTimeDerivative.h.

Constructor & Destructor Documentation

◆ INSTemperatureTimeDerivative()

INSTemperatureTimeDerivative::INSTemperatureTimeDerivative ( const InputParameters &  parameters)

Definition at line 26 of file INSTemperatureTimeDerivative.C.

27  : TimeDerivative(parameters),
28  _rho(getMaterialProperty<Real>("rho_name")),
29  _cp(getMaterialProperty<Real>("cp_name"))
30 {
31 }
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho

◆ ~INSTemperatureTimeDerivative()

virtual INSTemperatureTimeDerivative::~INSTemperatureTimeDerivative ( )
inlinevirtual

Definition at line 31 of file INSTemperatureTimeDerivative.h.

31 {}

Member Function Documentation

◆ computeQpJacobian()

Real INSTemperatureTimeDerivative::computeQpJacobian ( )
protectedvirtual

Definition at line 40 of file INSTemperatureTimeDerivative.C.

41 {
42  return _rho[_qp] * _cp[_qp] * TimeDerivative::computeQpJacobian();
43 }
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho

◆ computeQpOffDiagJacobian()

Real INSTemperatureTimeDerivative::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 46 of file INSTemperatureTimeDerivative.C.

47 {
48  return 0.;
49 }

◆ computeQpResidual()

Real INSTemperatureTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 34 of file INSTemperatureTimeDerivative.C.

35 {
36  return _rho[_qp] * _cp[_qp] * TimeDerivative::computeQpResidual();
37 }
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho

Member Data Documentation

◆ _cp

const MaterialProperty<Real>& INSTemperatureTimeDerivative::_cp
protected

Definition at line 40 of file INSTemperatureTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _rho

const MaterialProperty<Real>& INSTemperatureTimeDerivative::_rho
protected

Definition at line 39 of file INSTemperatureTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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