www.mooseframework.org
CoupledConvectiveFlux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "CoupledConvectiveFlux.h"
11 
12 #include "Function.h"
13 
14 registerMooseObject("HeatTransferApp", CoupledConvectiveFlux);
15 
18 {
20  params.addRequiredCoupledVar("T_infinity", "Field holding far-field temperature");
21  params.addRequiredParam<Real>("coefficient", "Heat transfer coefficient");
22 
23  return params;
24 }
25 
27  : IntegratedBC(parameters),
28  _T_infinity(coupledValue("T_infinity")),
29  _coefficient(getParam<Real>("coefficient"))
30 {
32  "CoupledConvectiveFlux boundary condition is deprecated, use CoupledConvectiveHeatFluxBC "
33  "instead. To update your input file:\n 1. change type from `CoupledConvectiveFlux` to "
34  "`CoupledConvectiveHeatFluxBC`\n 2. change `coefficient` parameter to `htc`.");
35 }
36 
37 Real
39 {
40  return _test[_i][_qp] * _coefficient * (_u[_qp] - _T_infinity[_qp]);
41 }
42 
43 Real
45 {
46  return _test[_i][_qp] * _coefficient * _phi[_j][_qp];
47 }
const VariableTestValue & _test
const VariableValue & _T_infinity
unsigned int _j
void mooseDeprecated(Args &&... args) const
static InputParameters validParams()
unsigned int _i
registerMooseObject("HeatTransferApp", CoupledConvectiveFlux)
const VariablePhiValue & _phi
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
CoupledConvectiveFlux(const InputParameters &parameters)
const VariableValue & _u