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 "INSFEFluidIntegratedBCBase.h" 13 : #include "Function.h" 14 : 15 : /** 16 : * An integral BC for the energy (temperature) equation 17 : */ 18 : class INSFEFluidEnergyBC : public INSFEFluidIntegratedBCBase 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : INSFEFluidEnergyBC(const InputParameters & parameters); 24 88 : virtual ~INSFEFluidEnergyBC() {} 25 : 26 : protected: 27 : virtual Real computeQpResidual() override; 28 : virtual Real computeQpJacobian() override; 29 : virtual Real computeQpOffDiagJacobian(unsigned int jvar) override; 30 : 31 : // Material properties 32 : const MaterialProperty<Real> & _cp; 33 : 34 : bool _has_vbc; 35 : bool _has_Tbc; 36 : const Function * _v_fn; 37 : const Function * _T_fn; 38 : const MaterialProperty<Real> & _k_elem; 39 : bool _has_porosity_elem; 40 : const VariableValue & _porosity_elem; 41 : 42 : bool _has_Tbranch; 43 : const VariableValue & _T_branch; 44 : unsigned int _T_branch_var_number; 45 : };