https://mooseframework.inl.gov
ConvectionHeatTransferBC.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 
11 #include "Function.h"
12 
13 registerMooseObject("ThermalHydraulicsApp", ConvectionHeatTransferBC);
14 
17 {
19  params.addRequiredParam<FunctionName>("T_ambient", "Ambient temperature function");
20  params.addRequiredParam<FunctionName>("htc_ambient",
21  "Ambient heat transfer coefficient function");
22  params.addParam<PostprocessorName>(
23  "scale_pp", 1.0, "Post-processor by which to scale boundary condition");
24  params.addClassDescription("Adds a convective heat flux boundary condition with user-specified "
25  "ambient temperature and heat transfer coefficient functions");
26  return params;
27 }
28 
30  : IntegratedBC(parameters),
31  _T_ambient_fn(getFunction("T_ambient")),
32  _htc_ambient_fn(getFunction("htc_ambient")),
33  _scale_pp(getPostprocessorValue("scale_pp"))
34 {
35 }
36 
37 Real
39 {
42 }
43 
44 Real
46 {
48 }
const VariableTestValue & _test
unsigned int _j
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
ConvectionHeatTransferBC(const InputParameters &parameters)
static InputParameters validParams()
unsigned int _i
static InputParameters validParams()
const VariablePhiValue & _phi
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
const MooseArray< Point > & _q_point
const PostprocessorValue & _scale_pp
Post-processor by which to scale boundary condition.
const Function & _htc_ambient_fn
Ambient heat transfer coefficient function.
registerMooseObject("ThermalHydraulicsApp", ConvectionHeatTransferBC)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
const Function & _T_ambient_fn
Ambient temperature function.
const VariableValue & _u