https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
37Real
43
44Real
registerMooseObject("ThermalHydraulicsApp", ConvectionHeatTransferBC)
const PostprocessorValue & _scale_pp
Post-processor by which to scale boundary condition.
const Function & _htc_ambient_fn
Ambient heat transfer coefficient function.
static InputParameters validParams()
const Function & _T_ambient_fn
Ambient temperature function.
ConvectionHeatTransferBC(const InputParameters &parameters)
virtual Real value(Real t, const Point &p) const
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
unsigned int _j
const MooseArray< Point > & _q_point
const VariableValue & _u
static InputParameters validParams()
const VariablePhiValue & _phi
const VariableTestValue & _test