www.mooseframework.org
CoupledConvectiveFlux.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 #include "Function.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<IntegratedBC>();
16  params.addRequiredCoupledVar("T_infinity", "Field holding far-field temperature");
17  params.addRequiredParam<Real>("coefficient", "Heat transfer coefficient");
18 
19  return params;
20 }
21 
22 CoupledConvectiveFlux::CoupledConvectiveFlux(const InputParameters & parameters)
23  : IntegratedBC(parameters),
24  _T_infinity(coupledValue("T_infinity")),
25  _coefficient(getParam<Real>("coefficient"))
26 {
27 }
28 
29 Real
31 {
32  return _test[_i][_qp] * _coefficient * (_u[_qp] - _T_infinity[_qp]);
33 }
34 
35 Real
37 {
38  return _test[_i][_qp] * _coefficient * _phi[_j][_qp];
39 }
const VariableValue & _T_infinity
InputParameters validParams< CoupledConvectiveFlux >()
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
CoupledConvectiveFlux(const InputParameters &parameters)