Line data Source code
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 : #pragma once 11 : 12 : #include "IntegratedBC.h" 13 : 14 : class ConvectiveFluxFunction : public IntegratedBC 15 : { 16 : public: 17 : static InputParameters validParams(); 18 : 19 : ConvectiveFluxFunction(const InputParameters & parameters); 20 968 : virtual ~ConvectiveFluxFunction() {} 21 : 22 : protected: 23 : virtual Real computeQpResidual() override; 24 : virtual Real computeQpJacobian() override; 25 : 26 : /// Far-field temperature 27 : const Function & _T_infinity; 28 : 29 : /// Heat transfer coefficient 30 : const Function & _coefficient; 31 : 32 : /// Enum used to define the type of function used for the heat transfer coefficient 33 : enum class CoefFuncType 34 : { 35 : TIME_AND_POSITION, 36 : TEMPERATURE 37 : }; 38 : 39 : /// Type of function used for the heat transfer coefficient 40 : const CoefFuncType _coef_func_type; 41 : };