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

Constructor & Destructor Documentation

◆ INSMomentumTimeDerivative()

INSMomentumTimeDerivative::INSMomentumTimeDerivative ( const InputParameters &  parameters)

Definition at line 25 of file INSMomentumTimeDerivative.C.

26  : TimeDerivative(parameters), _rho(getMaterialProperty<Real>("rho_name"))
27 {
28 }
const MaterialProperty< Real > & _rho

◆ ~INSMomentumTimeDerivative()

virtual INSMomentumTimeDerivative::~INSMomentumTimeDerivative ( )
inlinevirtual

Definition at line 31 of file INSMomentumTimeDerivative.h.

31 {}

Member Function Documentation

◆ computeQpJacobian()

Real INSMomentumTimeDerivative::computeQpJacobian ( )
protectedvirtual

Definition at line 37 of file INSMomentumTimeDerivative.C.

38 {
39  return _rho[_qp] * TimeDerivative::computeQpJacobian();
40 }
const MaterialProperty< Real > & _rho

◆ computeQpOffDiagJacobian()

Real INSMomentumTimeDerivative::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 43 of file INSMomentumTimeDerivative.C.

44 {
45  return 0.;
46 }

◆ computeQpResidual()

Real INSMomentumTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 31 of file INSMomentumTimeDerivative.C.

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

Member Data Documentation

◆ _rho

const MaterialProperty<Real>& INSMomentumTimeDerivative::_rho
protected

Definition at line 39 of file INSMomentumTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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