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

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

#include <INSMomentumTimeDerivative.h>

Inheritance diagram for INSMomentumTimeDerivative:
[legend]

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

const MaterialProperty< Real > & _rho
 

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 INSMomentumTimeDerivative.h.

Constructor & Destructor Documentation

INSMomentumTimeDerivative::INSMomentumTimeDerivative ( const InputParameters &  parameters)

Definition at line 20 of file INSMomentumTimeDerivative.C.

21  : TimeDerivative(parameters), _rho(getMaterialProperty<Real>("rho_name"))
22 {
23 }
const MaterialProperty< Real > & _rho
virtual INSMomentumTimeDerivative::~INSMomentumTimeDerivative ( )
inlinevirtual

Definition at line 28 of file INSMomentumTimeDerivative.h.

28 {}

Member Function Documentation

Real INSMomentumTimeDerivative::computeQpJacobian ( )
protectedvirtual

Definition at line 32 of file INSMomentumTimeDerivative.C.

Referenced by ~INSMomentumTimeDerivative().

33 {
34  return _rho[_qp] * TimeDerivative::computeQpJacobian();
35 }
const MaterialProperty< Real > & _rho
Real INSMomentumTimeDerivative::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 38 of file INSMomentumTimeDerivative.C.

Referenced by ~INSMomentumTimeDerivative().

39 {
40  return 0.;
41 }
Real INSMomentumTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 26 of file INSMomentumTimeDerivative.C.

Referenced by ~INSMomentumTimeDerivative().

27 {
28  return _rho[_qp] * TimeDerivative::computeQpResidual();
29 }
const MaterialProperty< Real > & _rho

Member Data Documentation

const MaterialProperty<Real>& INSMomentumTimeDerivative::_rho
protected

Definition at line 36 of file INSMomentumTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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