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

This calculates the time derivative for a coupled variable multiplied by a scalar coefficient. More...

#include <CoefCoupledTimeDerivative.h>

Inheritance diagram for CoefCoupledTimeDerivative:
[legend]

Public Member Functions

 CoefCoupledTimeDerivative (const InputParameters &parameters)
 

Protected Member Functions

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

Protected Attributes

const Real _coef
 

Detailed Description

This calculates the time derivative for a coupled variable multiplied by a scalar coefficient.

Definition at line 22 of file CoefCoupledTimeDerivative.h.

Constructor & Destructor Documentation

CoefCoupledTimeDerivative::CoefCoupledTimeDerivative ( const InputParameters &  parameters)

Definition at line 19 of file CoefCoupledTimeDerivative.C.

20  : CoupledTimeDerivative(parameters), _coef(getParam<Real>("coef"))
21 {
22 }

Member Function Documentation

Real CoefCoupledTimeDerivative::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 31 of file CoefCoupledTimeDerivative.C.

32 {
33  return CoupledTimeDerivative::computeQpOffDiagJacobian(jvar) * _coef;
34 }
Real CoefCoupledTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 25 of file CoefCoupledTimeDerivative.C.

26 {
27  return CoupledTimeDerivative::computeQpResidual() * _coef;
28 }

Member Data Documentation

const Real CoefCoupledTimeDerivative::_coef
protected

Definition at line 31 of file CoefCoupledTimeDerivative.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().


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