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

#include <CoefDiffusion.h>

Inheritance diagram for CoefDiffusion:
[legend]

Public Member Functions

 CoefDiffusion (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Private Attributes

const Real _coef
 
Function *const _func
 

Detailed Description

Definition at line 19 of file CoefDiffusion.h.

Constructor & Destructor Documentation

CoefDiffusion::CoefDiffusion ( const InputParameters &  parameters)

Definition at line 23 of file CoefDiffusion.C.

24  : Kernel(parameters),
25  _coef(getParam<Real>("coef")),
26  _func(parameters.isParamValid("function") ? &getFunction("function") : NULL)
27 {
28 }
const Real _coef
Definition: CoefDiffusion.h:29
Function *const _func
Definition: CoefDiffusion.h:30

Member Function Documentation

Real CoefDiffusion::computeQpJacobian ( )
protectedvirtual

Definition at line 42 of file CoefDiffusion.C.

43 {
44  Real diffusivity = _coef;
45 
46  if (_func)
47  diffusivity += _func->value(_t, _q_point[_qp]);
48 
49  return diffusivity * _grad_test[_i][_qp] * _grad_phi[_j][_qp];
50 }
const Real _coef
Definition: CoefDiffusion.h:29
Function *const _func
Definition: CoefDiffusion.h:30
Real CoefDiffusion::computeQpResidual ( )
protectedvirtual

Definition at line 31 of file CoefDiffusion.C.

32 {
33  Real diffusivity = _coef;
34 
35  if (_func)
36  diffusivity += _func->value(_t, _q_point[_qp]);
37 
38  return diffusivity * _grad_test[_i][_qp] * _grad_u[_qp];
39 }
const Real _coef
Definition: CoefDiffusion.h:29
Function *const _func
Definition: CoefDiffusion.h:30

Member Data Documentation

const Real CoefDiffusion::_coef
private

Definition at line 29 of file CoefDiffusion.h.

Referenced by computeQpJacobian(), and computeQpResidual().

Function* const CoefDiffusion::_func
private

Definition at line 30 of file CoefDiffusion.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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