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

#include <ConvectiveFluxFunction.h>

Inheritance diagram for ConvectiveFluxFunction:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Protected Attributes

Function & _T_infinity
 
const Real _coefficient
 
Function *const _coef_func
 

Detailed Description

Definition at line 12 of file ConvectiveFluxFunction.h.

Constructor & Destructor Documentation

ConvectiveFluxFunction::ConvectiveFluxFunction ( const InputParameters &  parameters)

Definition at line 25 of file ConvectiveFluxFunction.C.

26  : IntegratedBC(parameters),
27  _T_infinity(getFunction("T_infinity")),
28  _coefficient(getParam<Real>("coefficient")),
29  _coef_func(isParamValid("coefficient_function") ? &getFunction("coefficient_function") : NULL)
30 {
31 }
virtual ConvectiveFluxFunction::~ConvectiveFluxFunction ( )
inlinevirtual

Definition at line 16 of file ConvectiveFluxFunction.h.

16 {}

Member Function Documentation

Real ConvectiveFluxFunction::computeQpJacobian ( )
protectedvirtual

Definition at line 41 of file ConvectiveFluxFunction.C.

Referenced by ~ConvectiveFluxFunction().

42 {
43  const Real coef(_coefficient * (_coef_func ? _coef_func->value(_t, _q_point[_qp]) : 1));
44  return _test[_i][_qp] * coef * _phi[_j][_qp];
45 }
Real ConvectiveFluxFunction::computeQpResidual ( )
protectedvirtual

Definition at line 34 of file ConvectiveFluxFunction.C.

Referenced by ~ConvectiveFluxFunction().

35 {
36  const Real coef(_coefficient * (_coef_func ? _coef_func->value(_t, _q_point[_qp]) : 1));
37  return _test[_i][_qp] * coef * (_u[_qp] - _T_infinity.value(_t, _q_point[_qp]));
38 }

Member Data Documentation

Function* const ConvectiveFluxFunction::_coef_func
protected

Definition at line 24 of file ConvectiveFluxFunction.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const Real ConvectiveFluxFunction::_coefficient
protected

Definition at line 23 of file ConvectiveFluxFunction.h.

Referenced by computeQpJacobian(), and computeQpResidual().

Function& ConvectiveFluxFunction::_T_infinity
protected

Definition at line 22 of file ConvectiveFluxFunction.h.

Referenced by computeQpResidual().


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