https://mooseframework.inl.gov
CoupledConvectiveFlux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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  params.addClassDescription("Integrated boundary condition for modeling a convective heat flux.");
23 
24  return params;
25 }
26 
28  : IntegratedBC(parameters),
29  _T_infinity(coupledValue("T_infinity")),
30  _coefficient(getParam<Real>("coefficient"))
31 {
33  "CoupledConvectiveFlux boundary condition is deprecated, use CoupledConvectiveHeatFluxBC "
34  "instead. To update your input file:\n 1. change type from `CoupledConvectiveFlux` to "
35  "`CoupledConvectiveHeatFluxBC`\n 2. change `coefficient` parameter to `htc`.");
36 }
37 
38 Real
40 {
41  return _test[_i][_qp] * _coefficient * (_u[_qp] - _T_infinity[_qp]);
42 }
43 
44 Real
46 {
47  return _test[_i][_qp] * _coefficient * _phi[_j][_qp];
48 }
const VariableTestValue & _test
const VariableValue & _T_infinity
unsigned int _j
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
void mooseDeprecated(Args &&... args) const
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
void addClassDescription(const std::string &doc_string)
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
CoupledConvectiveFlux(const InputParameters &parameters)
const VariableValue & _u