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 25 of file CoefCoupledTimeDerivative.h.

Constructor & Destructor Documentation

◆ CoefCoupledTimeDerivative()

CoefCoupledTimeDerivative::CoefCoupledTimeDerivative ( const InputParameters &  parameters)

Definition at line 24 of file CoefCoupledTimeDerivative.C.

25  : CoupledTimeDerivative(parameters), _coef(getParam<Real>("coef"))
26 {
27 }

Member Function Documentation

◆ computeQpOffDiagJacobian()

Real CoefCoupledTimeDerivative::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 36 of file CoefCoupledTimeDerivative.C.

37 {
38  return CoupledTimeDerivative::computeQpOffDiagJacobian(jvar) * _coef;
39 }

◆ computeQpResidual()

Real CoefCoupledTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 30 of file CoefCoupledTimeDerivative.C.

31 {
32  return CoupledTimeDerivative::computeQpResidual() * _coef;
33 }

Member Data Documentation

◆ _coef

const Real CoefCoupledTimeDerivative::_coef
protected

Definition at line 34 of file CoefCoupledTimeDerivative.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().


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