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 15 of file ConvectiveFluxFunction.h.

Constructor & Destructor Documentation

◆ ConvectiveFluxFunction()

ConvectiveFluxFunction::ConvectiveFluxFunction ( const InputParameters &  parameters)

Definition at line 30 of file ConvectiveFluxFunction.C.

31  : IntegratedBC(parameters),
32  _T_infinity(getFunction("T_infinity")),
33  _coefficient(getParam<Real>("coefficient")),
34  _coef_func(isParamValid("coefficient_function") ? &getFunction("coefficient_function") : NULL)
35 {
36 }

◆ ~ConvectiveFluxFunction()

virtual ConvectiveFluxFunction::~ConvectiveFluxFunction ( )
inlinevirtual

Definition at line 19 of file ConvectiveFluxFunction.h.

19 {}

Member Function Documentation

◆ computeQpJacobian()

Real ConvectiveFluxFunction::computeQpJacobian ( )
protectedvirtual

Definition at line 46 of file ConvectiveFluxFunction.C.

47 {
48  const Real coef(_coefficient * (_coef_func ? _coef_func->value(_t, _q_point[_qp]) : 1));
49  return _test[_i][_qp] * coef * _phi[_j][_qp];
50 }

◆ computeQpResidual()

Real ConvectiveFluxFunction::computeQpResidual ( )
protectedvirtual

Definition at line 39 of file ConvectiveFluxFunction.C.

40 {
41  const Real coef(_coefficient * (_coef_func ? _coef_func->value(_t, _q_point[_qp]) : 1));
42  return _test[_i][_qp] * coef * (_u[_qp] - _T_infinity.value(_t, _q_point[_qp]));
43 }

Member Data Documentation

◆ _coef_func

Function* const ConvectiveFluxFunction::_coef_func
protected

Definition at line 27 of file ConvectiveFluxFunction.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _coefficient

const Real ConvectiveFluxFunction::_coefficient
protected

Definition at line 26 of file ConvectiveFluxFunction.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _T_infinity

Function& ConvectiveFluxFunction::_T_infinity
protected

Definition at line 25 of file ConvectiveFluxFunction.h.

Referenced by computeQpResidual().


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